1 2010-03-17 Bert Wesarg <bert.wesarg@googlemail.com> (tiny change)
2 and Eric Blake <eblake@redhat.com>
4 test-vc-list-files-git: make more robust
5 * tests/test-vc-list-files-git.sh: Unset problematic environment
6 variables. Chain commands together.
8 2010-03-17 Ludovic Courtès <ludo@gnu.org> (tiny change)
10 * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
11 `AC_CHECK_DECL' invocation.
13 2010-03-15 Sergey Poznyakoff <gray@gnu.org.ua>
15 * lib/inttostr.c (inttostr): Make sure the invocation of verify
16 appears before executable statements. Suggested by Petr Sumbera
17 <Petr.Sumbera@Sun.COM>.
19 2010-03-14 Bruno Haible <bruno@clisp.org>
21 * tests/test-flock.c (test_exclusive): Comment out a test that causes
22 portability problems. Instead use a simpler test.
23 (main): Check that invalid arguments are rejected only on Linux.
25 2010-03-14 Bruno Haible <bruno@clisp.org>
27 Fix bug introduced on 2009-12-31.
28 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
29 gl_PREREQ_SYS_H_WINSOCK2 always.
30 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
31 SYS_SOCKET_H variable.
32 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
34 * m4/ctype.m4 (gl_CTYPE_H): Update comments.
35 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
38 * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
40 2010-03-14 Bruno Haible <bruno@clisp.org>
42 Fix values returned by sinl, cosl.
43 * lib/trigl.h: Add specification comments.
44 * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
45 that combines the values from the precomputed table with the values of
46 the Chebyshev polynomials.
48 2010-03-14 Bruno Haible <bruno@clisp.org>
50 Fix compilation error when modules 'posix_spawn[p]' are not used.
51 * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
52 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
54 2010-03-14 Bruno Haible <bruno@clisp.org>
56 Fix compilation error on mingw when module 'time_r' is not used.
57 * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
59 * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
60 * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
61 * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
62 * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
64 2010-03-14 Bruno Haible <bruno@clisp.org>
66 Fix compilation error with Sun C.
67 * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
68 Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
69 instead of GCC specific ULONG_LONG_MAX.
70 * lib/xstrtoll.c: Likewise.
71 * lib/xstrtoull.c: Likewise.
73 2010-03-13 Bruno Haible <bruno@clisp.org>
75 Allow the user to disable C++ code and tests.
76 * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
77 (gl_PROG_ANSI_CXX): Require it.
79 2010-03-13 Bruno Haible <bruno@clisp.org>
81 * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
84 2010-03-13 Bruno Haible <bruno@clisp.org>
86 Test that gnulib does not break the standard C++ headers.
87 * tests/test-locale-c++2.cc: New file.
88 * modules/locale-tests (Files): Add it.
89 (Makefile.am): Compile it for test-locale-c++.
90 * tests/test-math-c++2.cc: New file.
91 * modules/math-tests (Files): Add it.
92 (Makefile.am): Compile it for test-math-c++.
93 * tests/test-signal-c++2.cc: New file.
94 * modules/signal-tests (Files): Add it.
95 (Makefile.am): Compile it for test-signal-c++.
96 * tests/test-stdio-c++2.cc: New file.
97 * modules/stdio-tests (Files): Add it.
98 (Makefile.am): Compile it for test-stdio-c++.
99 * tests/test-stdlib-c++2.cc: New file.
100 * modules/stdlib-tests (Files): Add it.
101 (Makefile.am): Compile it for test-stdlib-c++.
102 * tests/test-string-c++2.cc: New file.
103 * modules/string-tests (Files): Add it.
104 (Makefile.am): Compile it for test-string-c++.
105 * tests/test-time-c++2.cc: New file.
106 * modules/time-tests (Files): Add it.
107 (Makefile.am): Compile it for test-time-c++.
108 Reported by John W. Eaton <jwe@gnu.org>.
110 2010-03-13 Bruno Haible <bruno@clisp.org>
112 * gnulib-tool (func_usage): Clarify which options are available for
113 --create-testdir and --create-megatestdir.
115 2010-03-13 Bruno Haible <bruno@clisp.org>
117 Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
118 * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
119 * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
120 * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
121 strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
123 Reported by Jim Meyering.
125 2010-03-12 Simon Josefsson <simon@josefsson.org>
127 * gnulib-tool (func_import): Explain origin of code.
129 2010-03-12 Bruno Haible <bruno@clisp.org>
131 Fix problem with automake's definition of CXXLINK.
132 * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
133 Reported by Simon Josefsson and Ludovic Courtès.
135 2010-03-12 Bruno Haible <bruno@clisp.org>
137 * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
140 2010-03-11 Bruno Haible <bruno@clisp.org>
142 Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
143 * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
144 whether the system provides one variant or multiple variants of the
146 * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
148 (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
149 _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
150 Reported by Jim Meyering.
152 2010-03-09 Simon Josefsson <simon@josefsson.org>
154 * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
156 2010-03-08 Bruno Haible <bruno@clisp.org>
158 gnulib-tool: Add support for --libtool in --create-testdir.
159 * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
160 (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
162 2010-03-08 Eric Blake <eblake@redhat.com>
164 gnulib-tool.texi: mention possibility of git submodule
165 * doc/gnulib-tool.texi (VCS Issues): Add details about using git
167 * doc/.gitignore: Ignore another generated file.
169 2010-03-08 Karl Berry <karl@gnu.org>
171 * doc/gnulib-tool.texi (VCS Issues): Mention third option
172 of committing gnulib files while skipping others.
174 2010-03-07 Bruno Haible <bruno@clisp.org>
176 Tests of module 'wctype' in C++ mode.
177 * tests/test-wctype-c++.cc: New file.
178 * modules/wctype-tests (Files): Add it and tests/signature.h.
179 (Depends-on): Add ansi-c++-opt.
180 (Makefile.am): Arrange to compile and run test-wctype-c++.
182 Tests of module 'wchar' in C++ mode.
183 * tests/test-wchar-c++.cc: New file.
184 * modules/wchar-tests (Files): Add it and tests/signature.h.
185 (Depends-on): Add ansi-c++-opt.
186 (Makefile.am): Arrange to compile and run test-wchar-c++.
187 * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
190 Tests of module 'unistd' in C++ mode.
191 * tests/test-unistd-c++.cc: New file.
192 * modules/unistd-tests (Files): Add it and tests/signature.h.
193 (Depends-on): Add ansi-c++-opt.
194 (Makefile.am): Arrange to compile and run test-unistd-c++.
195 * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
198 Tests of module 'time' in C++ mode.
199 * tests/test-time-c++.cc: New file.
200 * modules/time-tests (Files): Add it and tests/signature.h.
201 (Depends-on): Add ansi-c++-opt.
202 (Makefile.am): Arrange to compile and run test-time-c++.
203 * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
205 Tests of module 'sys_time' in C++ mode.
206 * tests/test-sys_time-c++.cc: New file.
207 * modules/sys_time-tests (Files): Add it and tests/signature.h.
208 (Depends-on): Add ansi-c++-opt.
209 (Makefile.am): Arrange to compile and run test-sys_time-c++.
210 * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
213 Tests of module 'sys_stat' in C++ mode.
214 * tests/test-sys_stat-c++.cc: New file.
215 * modules/sys_stat-tests (Files): Add it and tests/signature.h.
216 (Depends-on): Add ansi-c++-opt.
217 (Makefile.am): Arrange to compile and run test-sys_stat-c++.
218 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
221 Tests of module 'sys_socket' in C++ mode.
222 * tests/test-sys_socket-c++.cc: New file.
223 * modules/sys_socket-tests (Files): Add it and tests/signature.h.
224 (Depends-on): Add ansi-c++-opt.
225 (Makefile.am): Arrange to compile and run test-sys_socket-c++.
226 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
229 Tests of module 'sys_select' in C++ mode.
230 * tests/test-sys_select-c++.cc: New file.
231 * modules/sys_select-tests (Files): Add it and tests/signature.h.
232 (Depends-on): Add ansi-c++-opt.
233 (Makefile.am): Arrange to compile and run test-sys_select-c++.
234 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
237 Tests of module 'sys_ioctl' in C++ mode.
238 * tests/test-sys_ioctl-c++.cc: New file.
239 * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
240 (Depends-on): Add ansi-c++-opt.
241 (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
242 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
245 Tests of module 'string' in C++ mode.
246 * tests/test-string-c++.cc: New file.
247 * modules/string-tests (Files): Add it and tests/signature.h.
248 (Depends-on): Add ansi-c++-opt.
249 (Makefile.am): Arrange to compile and run test-string-c++.
250 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
253 Tests of module 'stdlib' in C++ mode.
254 * tests/test-stdlib-c++.cc: New file.
255 * modules/stdlib-tests (Files): Add it and tests/signature.h.
256 (Depends-on): Add ansi-c++-opt.
257 (Makefile.am): Arrange to compile and run test-stdlib-c++.
258 * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
261 Tests of module 'stdio' in C++ mode.
262 * tests/test-stdio-c++.cc: New file.
263 * modules/stdio-tests (Files): Add it and tests/signature.h.
264 (Depends-on): Add ansi-c++-opt.
265 (Makefile.am): Arrange to compile and run test-stdio-c++.
266 * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
269 Tests of module 'spawn' in C++ mode.
270 * tests/test-spawn-c++.cc: New file.
271 * modules/spawn-tests (Files): Add it and tests/signature.h.
272 (Depends-on): Add ansi-c++-opt.
273 (Makefile.am): Arrange to compile and run test-spawn-c++.
274 * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
277 Tests of module 'signal' in C++ mode.
278 * tests/test-signal-c++.cc: New file.
279 * modules/signal-tests (Files): Add it and tests/signature.h.
280 (Depends-on): Add ansi-c++-opt.
281 (Makefile.am): Arrange to compile and run test-signal-c++.
282 * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
285 Tests of module 'search' in C++ mode.
286 * tests/test-search-c++.cc: New file.
287 * modules/search-tests (Files): Add it and tests/signature.h.
288 (Depends-on): Add ansi-c++-opt.
289 (Makefile.am): Arrange to compile and run test-search-c++.
290 * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
293 Tests of module 'math' in C++ mode.
294 * tests/test-math-c++.cc: New file.
295 * modules/math-tests (Files): Add it and tests/signature.h.
296 (Depends-on): Add ansi-c++-opt.
297 (Makefile.am): Arrange to compile and run test-math-c++.
298 * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
300 Tests of module 'locale' in C++ mode.
301 * tests/test-locale-c++.cc: New file.
302 * modules/locale-tests (Files): Add it and tests/signature.h.
303 (Depends-on): Add ansi-c++-opt.
304 (Makefile.am): Arrange to compile and run test-locale-c++.
305 * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
308 Tests of module 'langinfo' in C++ mode.
309 * tests/test-langinfo-c++.cc: New file.
310 * modules/langinfo-tests (Files): Add it and tests/signature.h.
311 (Depends-on): Add ansi-c++-opt.
312 (Makefile.am): Arrange to compile and run test-langinfo-c++.
313 * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
316 Tests of module 'iconv-h' in C++ mode.
317 * tests/test-iconv-h-c++.cc: New file.
318 * modules/iconv-h-tests (Files): Add it and tests/signature.h.
319 (Depends-on): Add ansi-c++-opt.
320 (Makefile.am): Arrange to compile and run test-iconv-h-c++.
322 Tests of module 'glob' in C++ mode.
323 * tests/test-glob-c++.cc: New file.
324 * modules/glob-tests (Files): Add it.
325 (Depends-on): Add ansi-c++-opt.
326 (Makefile.am): Arrange to compile and run test-glob-c++.
328 Tests of module 'fcntl-h' in C++ mode.
329 * tests/test-fcntl-h-c++.cc: New file.
330 * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
331 (Depends-on): Add ansi-c++-opt.
332 (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
333 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
336 Tests of module 'dirent' in C++ mode.
337 * tests/test-dirent-c++.cc: New file.
338 * modules/dirent-tests (Files): Add it and tests/signature.h.
339 (Depends-on): Add ansi-c++-opt.
340 (Makefile.am): Arrange to compile and run test-dirent-c++.
341 * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
344 New module 'ansi-c++-opt'.
345 * modules/ansi-c++-opt: New file.
346 * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
348 Document C++ namespace mode.
349 * doc/gnulib.texi (A C++ namespace for gnulib): New section.
351 wctype: Avoid #define replacements in C++ mode.
352 * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
353 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
354 iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
355 In C++, define a namespaced alias symbol.
356 * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
357 * modules/wctype (Depends-on): Add c++defs, warn-on-use.
358 (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
361 wchar: Avoid #define replacements in C++ mode.
362 * lib/wchar.in.h: Include c++defs.h.
363 (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
364 wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
366 (wcwidth): Likewise. Fix prototype to be POSIX compliant.
367 * modules/wchar (Depends-on): Add c++defs.
368 (Makefile.am): Update wchar.h rule.
370 unistd: Avoid #define replacements in C++ mode.
371 * lib/unistd.in.h: Include c++defs.h.
372 (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
373 fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
374 getgroups, gethostname, getlogin, getlogin_r, getpagesize,
375 getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
376 pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
377 unlink, unlinkat, usleep, write): In C++, define a namespaced alias
380 * modules/unistd (Depends-on): Add c++defs.
381 (Makefile.am): Update unistd.h rule.
383 time: Avoid #define replacements in C++ mode.
384 * lib/time.in.h: Include c++defs.h, warn-on-use.h.
385 (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
386 define a namespaced alias symbol.
387 * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
388 (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
389 GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
390 * modules/time (Depends-on): Add c++defs, warn-on-use.
391 (Makefile.am): Update time.h rule.
392 * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
393 * modules/nanosleep (configure.ac): Likewise.
394 * modules/strptime (configure.ac): Likewise.
395 * modules/timegm (configure.ac): Likewise.
397 sys_time: Avoid #define replacements in C++ mode.
398 * lib/sys_time.in.h: Include c++defs.h.
399 (gettimeofday): In C++, define a namespaced alias symbol.
400 * modules/sys_time (Depends-on): Add c++defs.
401 (Makefile.am): Update sys/time.h rule.
403 sys_stat: Avoid #define replacements in C++ mode.
404 * lib/sys_stat.in.h: Include c++defs.h.
405 (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
406 mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
407 namespaced alias symbol.
408 In C++, define a namespaced alias symbol.
409 * modules/sys_stat (Depends-on): Add c++defs.
410 (Makefile.am): Update sys/stat.h rule.
412 sys_socket: Avoid #define replacements in C++ mode.
413 * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
414 Include c++defs.h. Include warn-on-use.h earlier. Enable the function
415 definitions also when the system has a <sys/socket.h>.
416 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
417 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
418 In C++, define a namespaced alias symbol.
419 * modules/sys_socket (Depends-on): Add c++defs.
420 (Makefile.am): Update sys/socket.h rule.
422 sys_select: Avoid #define replacements in C++ mode.
423 * lib/sys_select.in.h: Include c++defs.h. Enable the function
424 definitions also when the system has a <sys/select.h>.
425 (select): In C++, define a namespaced alias symbol.
426 * modules/sys_select (Depends-on): Add c++defs.
427 (Makefile.am): Update sys/select.h rule.
429 sys_ioctl: Avoid #define replacements in C++ mode.
430 * lib/sys_ioctl.in.h: Include c++defs.h.
431 (ioctl): In C++, define a namespaced alias symbol.
432 * modules/sys_ioctl (Depends-on): Add c++defs.
433 (Makefile.am): Update sys/ioctl.h rule.
435 string: Avoid #define replacements in C++ mode.
436 * lib/string.in.h: Include c++defs.h.
437 (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
438 (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
439 strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
440 strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
441 strsignal, strverscmp): In C++, define a namespaced alias symbol.
442 * modules/string (Depends-on): Add c++defs.
443 (Makefile.am): Update string.h rule.
445 stdlib: Avoid #define replacements in C++ mode.
446 * lib/stdlib.in.h: Include c++defs.h.
447 (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
448 mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
449 srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
450 strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
452 * modules/stdlib (Depends-on): Add c++defs.
453 (Makefile.am): Update stdlib.h rule.
455 stdio: Avoid #define replacements in C++ mode.
456 * lib/stdio.in.h: Include c++defs.h.
457 (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
458 freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
459 obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
460 puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
461 vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
462 namespaced alias symbol.
463 * modules/stdio (Depends-on): Add c++defs.
464 (Makefile.am): Update stdio.h rule.
466 spawn: Avoid #define replacements in C++ mode.
467 * lib/spawn.in.h: Include c++defs.h.
468 (posix_spawn, posix_spawnp, posix_spawnattr_init,
469 posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
470 posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
471 posix_spawnattr_setsigmask, posix_spawnattr_getflags,
472 posix_spawnattr_setflags, posix_spawnattr_getpgroup,
473 posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
474 posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
475 posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
476 posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
477 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
478 In C++, define a namespaced alias symbol.
479 * modules/spawn (Depends-on): Add c++defs.
480 (Makefile.am): Update spawn.h rule.
482 signal: Avoid #define replacements in C++ mode.
483 * lib/signal.in.h: Include c++defs.h.
484 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
485 sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
486 namespaced alias symbol.
487 * modules/signal (Depends-on): Add c++defs.
488 (Makefile.am): Update signal.h rule.
490 search: Avoid #define replacements in C++ mode.
491 * lib/search.in.h: Include c++defs.h.
492 (_gl_search_compar_fn, _gl_search_action_fn): New types.
493 (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
495 * modules/search (Depends-on): Add c++defs.
496 (Makefile.am): Update search.h rule.
498 math: Avoid #define replacements in C++ mode.
499 * lib/math.in.h: Include c++defs.h.
500 (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
501 frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
502 trunc, truncl): In C++, define a namespaced alias symbol.
503 * modules/math (Depends-on): Add c++defs.
504 (Makefile.am): Update math.h rule.
506 locale: Avoid #define replacements in C++ mode.
507 * lib/locale.in.h: Include c++defs.h.
508 (duplocale): In C++, define a namespaced alias symbol.
509 * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
510 * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
511 * modules/locale (Depends-on): Add c++defs.
512 (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
514 langinfo: Avoid #define replacements in C++ mode.
515 * lib/langinfo.in.h: Include c++defs.h.
516 (nl_langinfo): In C++, define a namespaced alias symbol.
517 * modules/langinfo (Depends-on): Add c++defs.
518 (Makefile.am): Update langinfo.h rule.
520 iconv-h: Avoid #define replacements in C++ mode.
521 * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
522 (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
524 * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
525 whenever iconv is present.
526 * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
527 (Makefile.am): Update iconv.h rule.
529 glob: Avoid #define replacements in C++ mode.
530 * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
531 (_gl_glob_errfunc_fn): New type.
532 (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
534 * modules/glob (Depends-on): Add c++defs, warn-on-use.
535 (Makefile.am): Update glob.h rule.
537 fcntl-h: Avoid #define replacements in C++ mode.
538 * lib/fcntl.in.h: Include c++defs.h.
539 (fcntl, open, openat): In C++, define a namespaced alias symbol.
540 * modules/fcntl-h (Depends-on): Add c++defs.
541 (Makefile.am): Update fcntl.h rule.
543 dirent: Avoid #define replacements in C++ mode.
544 * lib/dirent.in.h: Include c++defs.h.
545 (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
546 namespaced alias symbol.
547 (dirfd): Update declaration.
548 * modules/dirent (Depends-on): Add c++defs.
549 (Makefile.am): Update dirent.h rule.
551 ctype: Make it usable in C++ code.
552 * lib/ctype.in.h: Include c++defs.h.
553 (isblank): Declare as extern "C".
554 * modules/ctype (Depends-on): Add c++defs.
555 (Makefile.am): Update ctype.h rule.
557 New module 'c++defs'.
558 * modules/c++defs: New file.
559 * build-aux/c++defs.h: New file.
560 Reported by John W. Eaton <jwe@gnu.org>.
562 2010-03-07 Bruno Haible <bruno@clisp.org>
564 logb: Provide missing declaration for Cygwin.
565 * lib/math.in.h (logb): New declaration.
566 * m4/logb.m4: New file.
567 * modules/logb (Files): Add m4/logb.m4.
568 (Depends-on): Add math.
569 (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
570 * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
571 (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
572 * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
573 * doc/posix-functions/logb.texi: Mention the Cygwin bug.
575 2010-03-07 Bruno Haible <bruno@clisp.org>
577 Fix test-cond link error.
578 * tests/test-cond.c: Include <stdio.h>.
580 2010-03-07 Bruno Haible <bruno@clisp.org>
582 Fix test-dirent-safer link error.
583 * modules/dirent-safer-tests (Makefile.am): Define
584 test_dirent_safer_LDADD.
586 2010-03-07 Bruno Haible <bruno@clisp.org>
588 * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
589 among default module list.
591 2010-03-07 Bruno Haible <bruno@clisp.org>
593 Fix link error on platforms with GNU libiconv.
594 * modules/unistr/u8-strcoll-tests (Makefile): Define
595 test_u8_strcoll_LDADD.
596 * modules/unistr/u16-strcoll-tests (Makefile): Define
597 test_u16_strcoll_LDADD.
598 * modules/unistr/u32-strcoll-tests (Makefile): Define
599 test_u32_strcoll_LDADD.
601 2010-03-07 Bruno Haible <bruno@clisp.org>
603 Use POSIX declarations for socket functions.
604 * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
605 rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
606 rpl_sendto): Change declaration to match POSIX.
607 * lib/connect.c (rpl_connect): Likewise.
608 * lib/accept.c (rpl_accept): Likewise.
609 * lib/bind.c (rpl_bind): Likewise.
610 * lib/getpeername.c (rpl_getpeername): Likewise.
611 * lib/getsockname.c (rpl_getsockname): Likewise.
612 * lib/recv.c (rpl_recv): Likewise.
613 * lib/send.c (rpl_send): Likewise.
614 * lib/recvfrom.c (rpl_recvfrom): Likewise.
615 * lib/sendto.c (rpl_sendto): Likewise.
617 2010-03-06 Bruno Haible <bruno@clisp.org>
619 Clarify access, euidaccess, faccessat.
620 * doc/posix-functions/faccessat.texi: Mention security problem under
621 "Other problems", not "Portability problems".
622 * doc/posix-functions/access.texi: Likewise. Mention a related security
624 * doc/glibc-functions/euidaccess.texi: Mention security problems.
625 * lib/euidaccess.c: Add comments about platforms.
626 * lib/unistd.in.h (access, euidaccess): Add warnings.
628 2010-03-07 Bruno Haible <bruno@clisp.org>
630 Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
631 * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
632 (POSIX_SPAWN_SETSCHEDULER): Likewise.
633 (POSIX_SPAWN_USEVFORK): Define in a way that works when
634 POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
635 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
636 declare when POSIX_SPAWN_SETSCHEDULER is zero.
637 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
638 declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
639 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
640 POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
641 * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
642 replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
643 * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
644 * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
645 replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
646 * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
647 * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
648 nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
649 * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
651 * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
652 nothing if POSIX_SPAWN_SETSCHEDULER is zero.
653 * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
655 * tests/test-spawn.c (main): Make it work when
656 POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
658 2010-03-07 Bruno Haible <bruno@clisp.org>
660 Fix incorrect Makefile.am generation in German locale.
661 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
662 Execute sed command with character range in C locale.
664 2010-03-06 Bruno Haible <bruno@clisp.org>
666 Tests for module 'iconv-h'.
667 * modules/iconv-h-tests: New file.
668 * tests/test-iconv-h.c: New file.
670 New module 'iconv-h'.
671 * modules/iconv-h: New file.
672 * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
673 (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
674 (configure.ac): Remove gl_ICONV_H.
675 (Makefile.am): Remove rule for iconv.h.
677 2010-03-06 Bruno Haible <bruno@clisp.org>
679 More consistent naming of *.m4 files.
680 * m4/wctype_h.m4: Renamed from m4/wctype.m4.
681 * modules/wctype (Files): Update.
683 More consistent naming of *.m4 files.
684 * m4/wchar_h.m4: Renamed from m4/wchar.m4.
685 * modules/wchar (Files): Update.
687 2010-03-06 Jim Meyering <meyering@redhat.com>
689 euidaccess: relax license to LGPLv2+
690 * modules/euidaccess (License): Relax to LGPLv2+.
692 2010-03-06 Bruno Haible <bruno@clisp.org>
694 Prefer lib_SOURCES over unconditional AC_LIBOBJ.
695 * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
696 (Makefile.am): Augment lib_SOURCES instead.
698 2010-03-04 Jim Meyering <meyering@redhat.com>
700 utime: remove obsolete module
701 This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
702 unnecessary for years, and has been marked as obsolete for 10 months.
703 * modules/utime: Remove file.
704 * lib/utime.c: Remove file.
705 * m4/utime.m4: Remove file.
706 * m4/utimes-null.m4: Remove file.
707 * doc/posix-functions/utime.texi (utime): Remove reference to
708 the module. Move the sole "fixed by gnulib" item into the
709 "problems not fixed by Gnulib" list.
710 * MODULES.html.sh (func_all_modules): Remove reference to "utime".
712 2010-03-05 Simon Josefsson <simon@josefsson.org>
714 * modules/exit (License): Relax license to LGPLv2+.
715 (Status): Mark as obsolete.
716 * NEWS: Mention deprecated 'exit' module.
717 * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
718 of now obsolete 'exit'.
720 2010-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
722 fts-lgpl: remove unused module
723 * modules/fts-lgpl: Remove.
724 * MODULES.html.sh (func_all_modules): Adjust.
725 * check-module (find_included_lib_files): Adjust.
726 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
728 2010-03-02 Ben Walton <bwalton@artsci.utoronto.ca> (tiny change)
730 copy-acl: enhance Solaris ACL error handling
731 * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
732 * lib/set-mode-acl.c (qset_acl): Likewise.
734 2010-03-02 Bruno Haible <bruno@clisp.org>
736 spawn: Don't override the system defined values on FreeBSD 8.
737 * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
738 POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
739 POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
740 if HAVE_POSIX_SPAWN is 1.
741 Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
743 2010-03-01 Bruno Haible <bruno@clisp.org>
745 * doc/gnulib-tool.texi (Initial import): Clarify the requirements
748 2010-02-25 Bruno Haible <bruno@clisp.org>
750 Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
751 * gnulib-tool: Define 'echo' as a function only before the ksh alias
752 setting, not afterwards.
753 Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
755 2010-02-24 Eric Blake <eblake@redhat.com>
757 bootstrap, git-version-gen: use timestamp
758 * build-aux/git-version-gen (scriptversion): Force UTC.
759 * build-aux/bootstrap (scriptversion): New variable.
761 bootstrap: allow older git
762 * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
763 older than 1.6.4. Requested by the libvirt project.
765 2010-02-23 Eric Blake <eblake@redhat.com>
767 warn-on-use: work with old autoconf
768 * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
769 AS_VAR semantics of autoconf 2.60.
770 Reported by Bruno Haible.
772 bootstrap: improve some comments
773 * build-aux/bootstrap: Drop unneeded emacs hint. Add some
774 clarification comments.
776 gettimeofday: provide correct function
777 * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
778 when replacement is declared, otherwise provide gettimeofday.
779 Reported by Michael Goffioul.
781 2010-02-23 Jim Meyering <meyering@redhat.com>
783 lib-ignore: relax license to "unlimited", not LGPLv2+
784 * modules/lib-ignore (License): Relax to "unlimited".
786 2010-02-23 Jim Meyering <meyering@redhat.com>
788 lib-ignore: relax license to LGPLv2+
789 * modules/lib-ignore (License): Relax to LGPLv2+.
791 2010-02-22 Eric Blake <eblake@redhat.com>
793 lseek: avoid bash 3.2 broken pipe bug
794 * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
795 warning from bash 3.2.
796 Reported by Ben Pfaff, with analysis from Bruno Haible.
798 bootstrap: support non-FSF copyright holder
799 * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
800 bootstrap.conf override of COPYRIGHT_HOLDER.
801 (MSGID_BUGS_ADDRESS): Allow URL rather than email.
803 bootstrap: interoperate with gettext 0.14.1
804 * build-aux/bootstrap (slurp): Fix typo when using older gettext.
806 bootstrap: allow for alternate submodule location
807 * build-aux/bootstrap (gnulib_path): New variable; use instead of
808 hardcoding submodule location.
809 (gnulib_mk): Allow direct use of Makefile.am.
811 bootstrap: use GNULIB_SRCDIR to reduce disk usage
812 * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
813 rather than reconfiguring where the submodule points.
815 gettimeofday: restore support for platforms that lack function
816 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
817 replacement if function is missing.
818 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
819 * modules/sys_time (Makefile.am): Substitute it.
820 * lib/sys_time.in.h (gettimeofday): Check it.
821 Reported by Michael Goffioul.
823 2010-02-21 Bruno Haible <bruno@clisp.org>
825 * lib/stdio.in.h (obstack_printf): Fix typo.
827 2010-02-21 Jose E. Marchesi <jemarch@gnu.org>
829 vc-list-files: use bzr ls's -R option
830 * build-aux/vc-list-files: Invoke bazaar to generate a recursive
831 list of versioned files based on 'dir' (usage of -R in 'bzr ls').
833 2010-02-21 Jim Meyering <meyering@redhat.com>
835 init.sh: fix EXEEXT shims to work also for names like test-prog
836 * tests/init.sh: Re-exec a better shell, when needed.
837 If the current shell lacks support for posix $(...), an init.sh-using
838 test will now try to find a shell that supports that. If EXEEXT is
839 nonempty, we also require support for hyphen-in-alias-name and shell
840 substitutions like ${var#glob}. Failure to find such a shell results
843 2010-02-21 Bruno Haible <bruno@clisp.org>
845 Really work around around "broken pipe" error message from bash 3.2.
846 * gnulib-tool (func_reset_sigpipe): Remove function.
847 (echo): In bash 3.2, define to a function that uses printf.
848 Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
850 2010-02-20 Bruno Haible <bruno@clisp.org>
852 Restore support for automake 1.9.6 with autoconf 2.61.
853 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
854 Reported by James Youngman <jay@gnu.org>.
856 2010-02-20 Bruno Haible <bruno@clisp.org>
858 Improve *printf warning condition.
859 * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
860 also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
861 and the function is overridden due to SIGPIPE emulation.
863 2010-02-20 Bruno Haible <bruno@clisp.org>
865 * lib/stdio.in.h: Tweak comments.
867 2010-02-19 Bruno Haible <bruno@clisp.org>
869 Make it easier to find modules. New gnulib-tool option '--find'.
870 * gnulib-tool: New option --find.
871 (func_usage): Document it.
872 (func_sanitize_modulelist): New function, extracted from
874 (func_all_modules): Invoke it.
875 * doc/gnulib-tool.texi (Which modules?): New node.
877 2010-02-18 Markus Duft <mduft@gentoo.org> (tiny change)
879 * lib/sys_select.in.h: Provide select replacement even if
880 sys/select.h exists on a system, for Interix.
882 2010-02-18 Jim Meyering <meyering@redhat.com>
884 init.sh: don't use $(...) just yet
885 * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
886 to accommodate e.g., Solaris' /bin/sh.
888 2010-02-17 Bruno Haible <bruno@clisp.org>
890 * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
891 Reported by Ludovic Courtès <ludo@gnu.org>.
893 2010-02-16 Simon Josefsson <simon@josefsson.org>
895 * modules/userspec-tests (test_userspec_LDADD): Add variable, for
898 2010-02-17 Simon Josefsson <simon@josefsson.org>
900 * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
901 if not provided by the system's netdb.h. Reported by
902 ludo@gnu.org (Ludovic Courtès).
904 2010-02-15 Jim Meyering <meyering@redhat.com>
906 init.sh: improve portability and efficiency
907 * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
908 "dummy" in a for loop.
909 Use '!', not '^' to select the complement of a character set used
910 in a "case" statement.
911 Use shell variable manipulation, a la ${...%.exe}, rather than sed.
912 Suggestions from Eric Blake.
914 init.sh: automatically accommodate programs with the .exe suffix
915 Automatically arrange for an invocation of "prog" to execute the
916 program named "prog$EXEEXT" (usually prog.exe). Thus, all invocations
917 may use the simpler "prog", yet still work when built on a system
918 that requires specifying the added suffix.
919 Do this by constructing a function named "prog" that invokes
920 "prog.exe" for each .exe file in selected directories.
921 * tests/init.sh (find_exe_basenames_): New function.
922 (create_exe_shim_functions_): New function.
923 (path_prepend_): Use it.
925 maint.mk: mark syntax-check sc_*.m rules as .PHONY
926 * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
927 "make -t syntax-check" doesn't create a ton of sc_*.m files.
929 2010-02-14 Jim Meyering <meyering@redhat.com>
931 maint.mk: prohibit inclusion of "hash-pjw.h" without_use
932 * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
933 (sc_prohibit_hash_pjw_without_use): New rule.
935 maint.mk: allow the default upload destination dir to be overridden
936 * top/maint.mk (upload_dest_dir_): Define with a default that
937 preserves the status quo.
938 (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
939 Reported by Peter Simons.
941 maint.mk: prohibit inclusion of "hash.h" without_use
942 * top/maint.mk (sc_prohibit_hash_without_use): New rule.
944 2010-02-10 Jim Meyering <meyering@redhat.com>
946 maint.mk: prohibit inclusion of "ignore-value.h" without_use
947 * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
949 2010-02-09 Eric Blake <ebb9@byu.net>
950 and Bruno Haible <bruno@clisp.org>
952 obstack-printf-posix: ensure declaration
953 * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
954 extracted from gl_FUNC_OBSTACK_PRINTF.
955 (gl_FUNC_OBSTACK_PRINTF): Invoke it.
956 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
958 * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
959 if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
962 2010-02-08 Bruno Haible <bruno@clisp.org>
964 gnulib-tool: Fix typo in 2010-02-07 commit.
965 * gnulib-tool (func_get_dependencies): Fix typo in last commit.
966 Reported by Eric Blake.
968 2010-02-07 Bruno Haible <bruno@clisp.org>
970 gnulib-tool: Fix up caching patches.
971 * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
972 option --no-cache. Use associative arrays when supported by the shell.
973 (sed_comments): New variable.
974 (modcache): Renamed from do_cache.
975 (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
976 abbreviate unnecessarily.
977 (have_associative): New variable.
978 (func_cache_var): Define correctly for bash 1.x. Define in an optimized
979 way also for ksh and zsh.
980 (func_init_sed_convert_to_cache_statements): New function, extracted
981 from func_cache_lookup_module. Add support for associative arrays.
982 Don't set the c_MODULE_cached variable here. Ignore all lines before
983 the first field header. Remove only the final newline, not all trailing
984 newlines. Support empty fields correctly. Limit the use of 'eval' to
986 (func_get_description, func_get_status, func_get_notice,
987 func_get_applicability, func_get_filelist, func_get_dependencies,
988 func_get_autoconf_early_snippet, func_get_autoconf_snippet,
989 func_get_automake_snippet, func_get_include_directive,
990 func_get_link_directive, func_get_license, func_get_maintainer):
991 Update documentation. List the unoptimized code first. Add support for
992 associative arrays. Limit the use of 'eval' to assignments.
993 (func_get_applicability): Undo stylistic pessimisations.
994 (func_get_automake_snippet, func_get_include_directive): Reduce code
996 (func_modules_transitive_closure, func_modules_add_dummy,
997 func_modules_notice, func_modules_to_filelist, func_add_file,
998 func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
999 func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
1000 func_create_testdir, func_create_megatestdir): Update documentation.
1002 2010-01-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1004 * gnulib-tool (func_cache_lookup_module): Store the module name
1005 belonging to the cache variable; error out if two different
1006 module names map to the same cache variable name.
1008 2010-01-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1010 gnulib-tool: Make caching optional.
1011 * gnulib-tool: Accept option --no-cache, turning off $do_cache.
1012 Update matching short versions of --no-changelog.
1013 (func_usage): Update.
1014 (sed_extract_cache_prog): Renamed from ...
1015 (sed_extract_prog): ... this; revert to old extraction script.
1016 (func_get_description, func_get_status)
1017 (func_get_notice, func_get_applicability, func_get_filelist)
1018 (func_get_dependencies, func_get_autoconf_early_snippet)
1019 (func_get_autoconf_snippet, func_get_automake_snippet)
1020 (func_get_include_directive, func_get_link_directive)
1021 (func_get_license, func_get_maintainer): If $do_cache is false,
1022 use old, non-caching extraction scripts.
1023 Suggestion by Bruno Haible.
1025 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1027 gnulib-tool: cache module metainformation.
1028 * gnulib-tool (sed_extract_prog): Match newline before each
1029 header, and rewrite header to a shell variable suffix.
1030 (func_cache_var, func_cache_lookup_module): New functions,
1031 to turn a module name into a cache variable prefix, and to
1032 look up and cache module metainformation.
1033 (func_get_description, func_get_status)
1034 (func_get_notice, func_get_applicability, func_get_filelist)
1035 (func_get_dependencies, func_get_autoconf_early_snippet)
1036 (func_get_autoconf_snippet, func_get_automake_snippet)
1037 (func_get_include_directive, func_get_link_directive)
1038 (func_get_license, func_get_maintainer): Use
1039 func_cache_lookup_module.
1041 2010-02-07 Bruno Haible <bruno@clisp.org>
1043 fnctl: Fix missing dependency.
1044 * modules/fcntl (Depends-on): Add getdtablesize.
1045 Reported by John W. Eaton <jwe@gnu.org>.
1047 2010-02-05 Sergey Poznyakoff <gray@gnu.org.ua>
1049 Argp: fix recognition of short alias options.
1051 * lib/argp-parse.c (convert_options): Fix improper use of
1052 `|' between character values.
1053 * tests/test-argp.c (group1_option): New alias option
1055 (group1_parser): Special handling for 'r'.
1056 (test15): New test case.
1057 (test_fun): Add test15.
1058 * tests/test-argp-2.sh: Update expected --help and --usage
1061 2010-02-05 Sergey Poznyakoff <gray@gnu.org.ua>
1063 * tests/test-argp.c: Fix indentation.
1065 2010-02-04 Eric Blake <ebb9@byu.net>
1067 gettimeofday: expose type of second argument
1068 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
1069 of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
1070 * tests/test-gettimeofday.c: Use it to silence warning.
1071 * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
1074 2010-02-03 Jim Meyering <meyering@redhat.com>
1076 regcomp.c: avoid the sole warning from gcc's -Wtype-limits
1077 * lib/regcomp.c (TYPE_SIGNED): Define.
1078 (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
1080 regcomp.c: avoid a new -Wshadow warning
1081 * lib/regcomp.c (create_initial_state): Do not shadow local "err".
1083 2010-02-01 Jim Meyering <meyering@redhat.com>
1085 removing useless parentheses in cpp #define directives
1086 For motivation, see commit c0221df4, "define STREQ(a,b)
1087 consistently, removing useless parentheses"
1088 * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
1089 * lib/mountlist.c (MNT_IGNORE): Likewise.
1090 * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
1092 2010-02-01 Eric Blake <ebb9@byu.net>
1094 sys_time: use link-warning
1095 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
1096 (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
1097 (gl_SYS_TIME_MODULE_INDICATOR): New macro.
1098 * modules/sys_time (Depends-on): Add warn-on-use.
1099 (Makefile.am): Always build replacement.
1100 (configure.ac): Update substitutions.
1101 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
1102 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
1103 bother with SYS_TIME_H.
1104 * modules/gettimeofday (configure.ac): Declare indicator.
1105 * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
1108 closein-tests: silence compiler warning
1109 * tests/test-closein.c (main): Ignore fread result.
1110 * modules/closein-tests (Depends-on): Add ignore-value.
1112 tests: silence warning about system return
1113 * tests/test-areadlink-with-size.c (main): Ignore system result.
1114 * tests/test-areadlink.c (main): Likewise.
1115 * tests/test-areadlinkat-with-size.c (main): Likewise.
1116 * tests/test-areadlinkat.c (main): Likewise.
1117 * tests/test-canonicalize-lgpl.c (main): Likewise.
1118 * tests/test-canonicalize.c (main): Likewise.
1119 * tests/test-chown.c (main): Likewise.
1120 * tests/test-fchownat.c (main): Likewise.
1121 * tests/test-fdutimensat.c (main): Likewise.
1122 * tests/test-fstatat.c (main): Likewise.
1123 * tests/test-futimens.c (main): Likewise.
1124 * tests/test-lchown.c (main): Likewise.
1125 * tests/test-link.c (main): Likewise.
1126 * tests/test-linkat.c (main): Likewise.
1127 * tests/test-lstat.c (main): Likewise.
1128 * tests/test-mkdir.c (main): Likewise.
1129 * tests/test-mkdirat.c (main): Likewise.
1130 * tests/test-mkfifo.c (main): Likewise.
1131 * tests/test-mkfifoat.c (main): Likewise.
1132 * tests/test-mknod.c (main): Likewise.
1133 * tests/test-readlink.c (main): Likewise.
1134 * tests/test-remove.c (main): Likewise.
1135 * tests/test-rename.c (main): Likewise.
1136 * tests/test-renameat.c (main): Likewise.
1137 * tests/test-rmdir.c (main): Likewise.
1138 * tests/test-symlink.c (main): Likewise.
1139 * tests/test-symlinkat.c (main): Likewise.
1140 * tests/test-unlink.c (main): Likewise.
1141 * tests/test-unlinkat.c (main): Likewise.
1142 * tests/test-utimens.c (main): Likewise.
1143 * tests/test-utimensat.c (main): Likewise.
1144 * modules/areadlink-tests (Depends-on): Add ignore-value.
1145 * modules/areadlink-with-size-tests (Depends-on): Likewise.
1146 * modules/areadlinkat-tests (Depends-on): Likewise.
1147 * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
1148 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
1149 * modules/canonicalize-tests (Depends-on): Likewise.
1150 * modules/chown-tests (Depends-on): Likewise.
1151 * modules/fdutimensat-tests (Depends-on): Likewise.
1152 * modules/futimens-tests (Depends-on): Likewise.
1153 * modules/lchown-tests (Depends-on): Likewise.
1154 * modules/link-tests (Depends-on): Likewise.
1155 * modules/linkat-tests (Depends-on): Likewise.
1156 * modules/lstat-tests (Depends-on): Likewise.
1157 * modules/mkdir-tests (Depends-on): Likewise.
1158 * modules/mkfifo-tests (Depends-on): Likewise.
1159 * modules/mkfifoat-tests (Depends-on): Likewise.
1160 * modules/mknod-tests (Depends-on): Likewise.
1161 * modules/openat-tests (Depends-on): Likewise.
1162 * modules/readlink-tests (Depends-on): Likewise.
1163 * modules/remove-tests (Depends-on): Likewise.
1164 * modules/rename-tests (Depends-on): Likewise.
1165 * modules/renameat-tests (Depends-on): Likewise.
1166 * modules/rmdir-tests (Depends-on): Likewise.
1167 * modules/symlink-tests (Depends-on): Likewise.
1168 * modules/symlinkat-tests (Depends-on): Likewise.
1169 * modules/unlink-tests (Depends-on): Likewise.
1170 * modules/utimens-tests (Depends-on): Likewise.
1171 * modules/utimensat-tests (Depends-on): Likewise.
1173 2010-01-31 Bruno Haible <bruno@clisp.org>
1175 Perform the same test for many <math.h> functions.
1176 * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
1177 gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
1178 * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
1180 * modules/acos (configure.ac): Likewise.
1181 * modules/asin (configure.ac): Likewise.
1182 * modules/atan (configure.ac): Likewise.
1183 * modules/atan2 (configure.ac): Likewise.
1184 * modules/cbrt (configure.ac): Likewise.
1185 * modules/copysign (configure.ac): Likewise.
1186 * modules/cos (configure.ac): Likewise.
1187 * modules/cosh (configure.ac): Likewise.
1188 * modules/erf (configure.ac): Likewise.
1189 * modules/erfc (configure.ac): Likewise.
1190 * modules/exp (configure.ac): Likewise.
1191 * modules/fmod (configure.ac): Likewise.
1192 * modules/hypot (configure.ac): Likewise.
1193 * modules/j0 (configure.ac): Likewise.
1194 * modules/j1 (configure.ac): Likewise.
1195 * modules/jn (configure.ac): Likewise.
1196 * modules/lgamma (configure.ac): Likewise.
1197 * modules/log (configure.ac): Likewise.
1198 * modules/log10 (configure.ac): Likewise.
1199 * modules/log1p (configure.ac): Likewise.
1200 * modules/pow (configure.ac): Likewise.
1201 * modules/remainder (configure.ac): Likewise.
1202 * modules/sin (configure.ac): Likewise.
1203 * modules/sinh (configure.ac): Likewise.
1204 * modules/tan (configure.ac): Likewise.
1205 * modules/tanh (configure.ac): Likewise.
1206 * modules/y0 (configure.ac): Likewise.
1207 * modules/y1 (configure.ac): Likewise.
1208 * modules/yn (configure.ac): Likewise.
1209 Suggested by Paolo Bonzini.
1211 2010-01-31 Bruno Haible <bruno@clisp.org>
1213 * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
1215 2010-01-31 Bruno Haible <bruno@clisp.org>
1217 Work around getdelim() bug on FreeBSD 8.0.
1218 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
1219 initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
1221 * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
1223 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
1224 * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
1225 * tests/test-getdelim.c (main): Also test result for a NULL buffer and
1227 * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
1229 2010-01-31 Bruno Haible <bruno@clisp.org>
1231 Work around getline() bug on FreeBSD 8.0.
1232 * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
1233 and a non-zero size.
1234 * tests/test-getline.c (main): Likewise.
1235 * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
1236 Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
1238 2010-01-28 Eric Blake <ebb9@byu.net>
1240 regex: fix build failure
1241 * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
1244 2010-01-28 Jim Meyering <meyering@redhat.com>
1246 regex: do not ignore memory allocation failure
1247 * lib/regex_internal.c (create_cd_newstate): Detect
1248 re_node_set_init_copy failure. Extracted from glibc commit
1249 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1251 regex: sync more white-space changes from libc
1252 * lib/regex_internal.c: White-space only changes.
1253 * lib/regexec.c: Likewise.
1255 regex: add many uses of __attribute_warn_unused_result__
1256 * lib/regex_internal.c: Use __attribute_warn_unused_result__.
1257 * lib/regexec.c: Likewise.
1258 Extracted from a messy glibc commit.
1260 regcomp.c: spelling and merge-artifact from glibc
1261 * lib/regcomp.c: Merge remainder of glibc's
1262 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1264 regcomp.c: sync white-space changes from glibc
1265 * lib/regcomp.c: Merge to accommodate white space
1266 changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1268 regcomp.c: do not ignore internal return values
1269 * lib/regcomp.c: Do not ignore internal return values.
1270 This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
1271 but without its white-space changes and spelling fixes.
1273 regex_internal.h: define __attribute_warn_unused_result__
1274 * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
1276 maint: add a syntax-check rule to check for vulnerable Makefile.in
1277 * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
1279 2010-01-27 Jim Meyering <meyering@redhat.com>
1281 ncftpput-ftp: clean up spaces
1282 * build-aux/ncftpput-ftp: Make Copyright line consistent.
1283 Remove trailing blanks.
1285 2010-01-27 Simon Josefsson <simon@josefsson.org>
1287 * build-aux/git-version-gen: Fix copyright statement.
1288 * build-aux/gnupload: Likewise.
1289 * tests/test-arcfour.c: Likewise.
1290 * tests/test-arctwo.c: Likewise.
1291 * tests/test-count-one-bits.c: Likewise.
1292 * tests/test-crc.c: Likewise.
1293 * tests/test-des.c: Likewise.
1294 * tests/test-gc-arcfour.c: Likewise.
1295 * tests/test-gc-arctwo.c: Likewise.
1296 * tests/test-gc-des.c: Likewise.
1297 * tests/test-gc-hmac-md5.c: Likewise.
1298 * tests/test-gc-hmac-sha1.c: Likewise.
1299 * tests/test-gc-md2.c: Likewise.
1300 * tests/test-gc-md4.c: Likewise.
1301 * tests/test-gc-md5.c: Likewise.
1302 * tests/test-gc-pbkdf2-sha1.c: Likewise.
1303 * tests/test-gc-rijndael.c: Likewise.
1304 * tests/test-gc-sha1.c: Likewise.
1305 * tests/test-gc.c: Likewise.
1306 * tests/test-gethostname.c: Likewise.
1307 * tests/test-gettimeofday.c: Likewise.
1308 * tests/test-hash.c: Likewise.
1309 * tests/test-hmac-md5.c: Likewise.
1310 * tests/test-hmac-sha1.c: Likewise.
1311 * tests/test-md2.c: Likewise.
1312 * tests/test-md4.c: Likewise.
1313 * tests/test-md5.c: Likewise.
1314 * tests/test-memchr.c: Likewise.
1315 * tests/test-memchr2.c: Likewise.
1316 * tests/test-memcmp.c: Likewise.
1317 * tests/test-memmem.c: Likewise.
1318 * tests/test-memrchr.c: Likewise.
1319 * tests/test-rawmemchr.c: Likewise.
1320 * tests/test-read-file.c: Likewise.
1321 * tests/test-rijndael.c: Likewise.
1322 * tests/test-sockets.c: Likewise.
1323 * tests/test-strchrnul.c: Likewise.
1324 * tests/test-strstr.c: Likewise.
1325 * tests/test-strtod.c: Likewise.
1326 * build-aux/ncftpput-ftp: Likewise.
1328 2010-01-26 Eric Blake <ebb9@byu.net>
1330 ignore-value: update recommended header name
1331 * modules/ignore-value (Include): Only use <> for headers that
1334 2010-01-26 Jim Meyering <meyering@redhat.com>
1336 test-userspec.c: avoid compiler warnings
1337 * tests/test-userspec.c (main): Avoid shadowing ("uid"),
1338 and "initialization discards qualifiers..." warnings.
1339 Put the first "uid" in its own scope, and make char* members "const".
1341 2010-01-25 Bruno Haible <bruno@clisp.org>
1343 gnulib-tool: Make warning diagnostics consistent.
1344 * gnulib-tool (func_warning): New function.
1345 Use it everywhere where gnulib-tool produces output to stderr and it is
1348 2010-01-25 Bruno Haible <bruno@clisp.org>
1350 Fix test dependencies.
1351 * modules/xstrtol-tests (Depends-on): Add inttypes.
1352 * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
1354 2010-01-25 Pádraig Brady <P@draigBrady.com>
1356 syntax-check: detect incorrect boolean macro values in config.h
1357 * modules/maintainer-makefile (configure.ac): Parameterize the location
1358 of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
1359 The logic is from Eric Blake and the location indicated by Jim Meyering.
1360 Note the more natural CONFIG_HEADER name is prohibited by automake
1361 for backwards compatibility reasons.
1362 * top/maint.mk (sc_Wundef_boolean): New rule.
1364 2010-01-25 Jim Meyering <meyering@redhat.com>
1366 bootstrap: detect MacOS 10.6's shasum, too
1367 * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
1368 Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
1370 2010-01-23 Jim Meyering <meyering@redhat.com>
1372 xstrtoll: new module
1373 * modules/xstrtoll: New file.
1374 * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
1375 * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
1376 * lib/xstrtoll.c, lib/xstrtoull.c: New files.
1377 ./configure fails if you use this module and lack "long long".
1378 * modules/xstrtoll-tests: New module.
1379 * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
1380 * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
1381 new init.sh-based test framework.
1383 2010-01-24 Bruno Haible <bruno@clisp.org>
1385 Tests for module 'yn'.
1386 * modules/yn-tests: New file.
1387 * tests/test-yn.c: New file.
1389 Tests for module 'y1'.
1390 * modules/y1-tests: New file.
1391 * tests/test-y1.c: New file.
1393 Tests for module 'y0'.
1394 * modules/y0-tests: New file.
1395 * tests/test-y0.c: New file.
1397 Tests for module 'tanh'.
1398 * modules/tanh-tests: New file.
1399 * tests/test-tanh.c: New file.
1401 Tests for module 'tan'.
1402 * modules/tan-tests: New file.
1403 * tests/test-tan.c: New file.
1405 Tests for module 'sqrt'.
1406 * modules/sqrt-tests: New file.
1407 * tests/test-sqrt.c: New file.
1409 Tests for module 'sinh'.
1410 * modules/sinh-tests: New file.
1411 * tests/test-sinh.c: New file.
1413 Tests for module 'sin'.
1414 * modules/sin-tests: New file.
1415 * tests/test-sin.c: New file.
1417 Tests for module 'rint'.
1418 * modules/rint-tests: New file.
1419 * tests/test-rint.c: New file.
1421 Tests for module 'remainder'.
1422 * modules/remainder-tests: New file.
1423 * tests/test-remainder.c: New file.
1425 Tests for module 'pow'.
1426 * modules/pow-tests: New file.
1427 * tests/test-pow.c: New file.
1429 Tests for module 'nextafter'.
1430 * modules/nextafter-tests: New file.
1431 * tests/test-nextafter.c: New file.
1433 Tests for module 'modf'.
1434 * modules/modf-tests: New file.
1435 * tests/test-modf.c: New file.
1437 Tests for module 'logb'.
1438 * modules/logb-tests: New file.
1439 * tests/test-logb.c: New file.
1441 Tests for module 'log1p'.
1442 * modules/log1p-tests: New file.
1443 * tests/test-log1p.c: New file.
1445 Tests for module 'log10'.
1446 * modules/log10-tests: New file.
1447 * tests/test-log10.c: New file.
1449 Tests for module 'log'.
1450 * modules/log-tests: New file.
1451 * tests/test-log.c: New file.
1453 Tests for module 'lgamma'.
1454 * modules/lgamma-tests: New file.
1455 * tests/test-lgamma.c: New file.
1457 Tests for module 'ldexp'.
1458 * modules/ldexp-tests: New file.
1459 * tests/test-ldexp.c: New file.
1461 Tests for module 'jn'.
1462 * modules/jn-tests: New file.
1463 * tests/test-jn.c: New file.
1465 Tests for module 'j1'.
1466 * modules/j1-tests: New file.
1467 * tests/test-j1.c: New file.
1469 Tests for module 'j0'.
1470 * modules/j0-tests: New file.
1471 * tests/test-j0.c: New file.
1473 Tests for module 'hypot'.
1474 * modules/hypot-tests: New file.
1475 * tests/test-hypot.c: New file.
1477 Tests for module 'fmod'.
1478 * modules/fmod-tests: New file.
1479 * tests/test-fmod.c: New file.
1481 Tests for module 'fabs'.
1482 * modules/fabs-tests: New file.
1483 * tests/test-fabs.c: New file.
1485 Tests for module 'exp'.
1486 * modules/exp-tests: New file.
1487 * tests/test-exp.c: New file.
1489 Tests for module 'erfc'.
1490 * modules/erfc-tests: New file.
1491 * tests/test-erfc.c: New file.
1493 Tests for module 'erf'.
1494 * modules/erf-tests: New file.
1495 * tests/test-erf.c: New file.
1497 Tests for module 'cosh'.
1498 * modules/cosh-tests: New file.
1499 * tests/test-cosh.c: New file.
1501 Tests for module 'cos'.
1502 * modules/cos-tests: New file.
1503 * tests/test-cos.c: New file.
1505 Tests for module 'copysign'.
1506 * modules/copysign-tests: New file.
1507 * tests/test-copysign.c: New file.
1509 Tests for module 'cbrt'.
1510 * modules/cbrt-tests: New file.
1511 * tests/test-cbrt.c: New file.
1513 Tests for module 'atan2'.
1514 * modules/atan2-tests: New file.
1515 * tests/test-atan2.c: New file.
1517 Tests for module 'atan'.
1518 * modules/atan-tests: New file.
1519 * tests/test-atan.c: New file.
1521 Tests for module 'asin'.
1522 * modules/asin-tests: New file.
1523 * tests/test-asin.c: New file.
1525 Tests for module 'acos'.
1526 * modules/acos-tests: New file.
1527 * tests/test-acos.c: New file.
1529 2010-01-24 Bruno Haible <bruno@clisp.org>
1531 Fix tests for common <math.h> functions.
1532 * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
1533 code snippet that references the function pointer, rather than merely
1534 calling the function. Substitute the FUNC_LIBM variable.
1535 * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
1536 * modules/acos (configure.ac): Likewise.
1537 * modules/asin (configure.ac): Likewise.
1538 * modules/atan (configure.ac): Likewise.
1539 * modules/atan2 (configure.ac): Likewise.
1540 * modules/cbrt (configure.ac): Likewise.
1541 * modules/copysign (configure.ac): Likewise.
1542 * modules/cos (configure.ac): Likewise.
1543 * modules/cosh (configure.ac): Likewise.
1544 * modules/erf (configure.ac): Likewise.
1545 * modules/erfc (configure.ac): Likewise.
1546 * modules/exp (configure.ac): Likewise.
1547 * modules/fabs (configure.ac): Likewise.
1548 * modules/fmod (configure.ac): Likewise.
1549 * modules/hypot (configure.ac): Likewise.
1550 * modules/j0 (configure.ac): Likewise.
1551 * modules/j1 (configure.ac): Likewise.
1552 * modules/jn (configure.ac): Likewise.
1553 * modules/ldexp (configure.ac): Likewise.
1554 * modules/lgamma (configure.ac): Likewise.
1555 * modules/log (configure.ac): Likewise.
1556 * modules/log10 (configure.ac): Likewise.
1557 * modules/log1p (configure.ac): Likewise.
1558 * modules/logb (configure.ac): Likewise.
1559 * modules/modf (configure.ac): Likewise.
1560 * modules/nextafter (configure.ac): Likewise.
1561 * modules/pow (configure.ac): Likewise.
1562 * modules/remainder (configure.ac): Likewise.
1563 * modules/rint (configure.ac): Likewise.
1564 * modules/sin (configure.ac): Likewise.
1565 * modules/sinh (configure.ac): Likewise.
1566 * modules/tan (configure.ac): Likewise.
1567 * modules/tanh (configure.ac): Likewise.
1568 * modules/y0 (configure.ac): Likewise.
1569 * modules/y1 (configure.ac): Likewise.
1570 * modules/yn (configure.ac): Likewise.
1572 2010-01-24 Bruno Haible <bruno@clisp.org>
1574 Tests: Defeat inlining of math functions by GCC >= 4.3.0.
1575 * tests/test-acosl.c (x): New variable.
1576 (main): Store argument in x and fetch it from x.
1577 * tests/test-asinl.c (x): New variable.
1578 (main): Store argument in x and fetch it from x.
1579 * tests/test-atanl.c (x): New variable.
1580 (main): Store argument in x and fetch it from x.
1581 * tests/test-cosl.c (x): New variable.
1582 (main): Store argument in x and fetch it from x.
1583 * tests/test-expl.c (x): New variable.
1584 (main): Store argument in x and fetch it from x.
1585 * tests/test-logl.c (x): New variable.
1586 (main): Store argument in x and fetch it from x.
1587 * tests/test-sinl.c (x): New variable.
1588 (main): Store argument in x and fetch it from x.
1589 * tests/test-sqrtl.c (x): New variable.
1590 (main): Store argument in x and fetch it from x.
1591 * tests/test-tanl.c (x): New variable.
1592 (main): Store argument in x and fetch it from x.
1594 2010-01-24 Bruno Haible <bruno@clisp.org>
1596 Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
1597 * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
1598 assignments to the initial TESTS_ENVIRONMENT.
1599 * doc/gnulib.texi (Unit test modules): Document it.
1600 * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
1602 * modules/btowc-tests (Makefile.am): Likewise.
1603 * modules/c-stack-tests (Makefile.am): Likewise.
1604 * modules/c-strcase-tests (Makefile.am): Likewise.
1605 * modules/copy-file-tests (Makefile.am): Likewise.
1606 * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
1607 * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
1608 * modules/mbrtowc-tests (Makefile.am): Likewise.
1609 * modules/mbscasecmp-tests (Makefile.am): Likewise.
1610 * modules/mbscasestr-tests (Makefile.am): Likewise.
1611 * modules/mbschr-tests (Makefile.am): Likewise.
1612 * modules/mbscspn-tests (Makefile.am): Likewise.
1613 * modules/mbsinit-tests (Makefile.am): Likewise.
1614 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
1615 * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
1616 * modules/mbspbrk-tests (Makefile.am): Likewise.
1617 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
1618 * modules/mbsrchr-tests (Makefile.am): Likewise.
1619 * modules/mbsrtowcs-tests (Makefile.am): Likewise.
1620 * modules/mbsspn-tests (Makefile.am): Likewise.
1621 * modules/mbsstr-tests (Makefile.am): Likewise.
1622 * modules/nl_langinfo-tests (Makefile.am): Likewise.
1623 * modules/unicase/locale-language-tests (Makefile.am): Likewise.
1624 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
1625 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
1626 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
1627 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
1628 * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
1629 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
1630 * modules/wcrtomb-tests (Makefile.am): Likewise.
1631 * modules/wcsnrtombs-tests (Makefile.am): Likewise.
1632 * modules/wcsrtombs-tests (Makefile.am): Likewise.
1633 * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
1634 assignments from TESTS_ENVIRONMENT.
1635 * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
1637 * modules/argp-version-etc-tests (Makefile.am): Likewise.
1638 * modules/atexit-tests (Makefile.am): Likewise.
1639 * modules/binary-io-tests (Makefile.am): Likewise.
1640 * modules/closein-tests (Makefile.am): Likewise.
1641 * modules/dprintf-posix-tests (Makefile.am): Likewise.
1642 * modules/exclude-tests (Makefile.am): Likewise.
1643 * modules/fflush-tests (Makefile.am): Likewise.
1644 * modules/fpending-tests (Makefile.am): Likewise.
1645 * modules/fprintf-posix-tests (Makefile.am): Likewise.
1646 * modules/freadahead-tests (Makefile.am): Likewise.
1647 * modules/freadptr-tests (Makefile.am): Likewise.
1648 * modules/freadseek-tests (Makefile.am): Likewise.
1649 * modules/fseek-tests (Makefile.am): Likewise.
1650 * modules/fseeko-tests (Makefile.am): Likewise.
1651 * modules/ftell-tests (Makefile.am): Likewise.
1652 * modules/ftello-tests (Makefile.am): Likewise.
1653 * modules/idpriv-drop-tests (Makefile.am): Likewise.
1654 * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
1655 * modules/lseek-tests (Makefile.am): Likewise.
1656 * modules/parse-duration-tests (Makefile.am): Likewise.
1657 * modules/perror-tests (Makefile.am): Likewise.
1658 * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
1659 * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
1660 * modules/pipe-tests (Makefile.am): Likewise.
1661 * modules/pread-tests (Makefile.am): Likewise.
1662 * modules/printf-posix-tests (Makefile.am): Likewise.
1663 * modules/select-tests (Makefile.am): Likewise.
1664 * modules/sigpipe-tests (Makefile.am): Likewise.
1665 * modules/tsearch-tests (Makefile.am): Likewise.
1666 * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
1667 * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
1668 * modules/uniname/uniname-tests (Makefile.am): Likewise.
1669 * modules/uniwidth/width-tests (Makefile.am): Likewise.
1670 * modules/vdprintf-posix-tests (Makefile.am): Likewise.
1671 * modules/version-etc-tests (Makefile.am): Likewise.
1672 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
1673 * modules/vprintf-posix-tests (Makefile.am): Likewise.
1674 * modules/xalloc-die-tests (Makefile.am): Likewise.
1675 * modules/xprintf-posix-tests (Makefile.am): Likewise.
1676 * modules/xstrtoimax-tests (Makefile.am): Likewise.
1677 * modules/xstrtol-tests (Makefile.am): Likewise.
1678 * modules/xstrtoumax-tests (Makefile.am): Likewise.
1679 * modules/yesno-tests (Makefile.am): Likewise.
1680 Suggested by Jim Meyering.
1682 2010-01-24 Bruno Haible <bruno@clisp.org>
1685 * doc/gnulib.texi (Writing modules): New chapter.
1686 (Miscellaneous Notes): Move sections "Comments" and "Header files" to
1689 2010-01-24 Jim Meyering <meyering@redhat.com>
1691 maint.mk: do not prepend "./" after filtering
1692 * top/maint.mk (_prepend_srcdir_prefix): New variable
1693 (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
1694 "./" when $(srcdir) is ".".
1696 define STREQ(a,b) consistently, removing useless parentheses
1697 #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
1698 since the only risk is that "a" or "b" contains an unparenthesized
1699 comma, but if either did that, STREQ would have 3 or more arguments.
1700 Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
1701 * lib/fts.c (STREQ): Remove unnecessary parentheses.
1702 * lib/hash-triple.c (STREQ): Likewise.
1703 * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
1704 * lib/getugroups.c (STREQ): Likewise.
1706 2010-01-23 Jim Meyering <meyering@redhat.com>
1708 maint.mk: fix syntax-check in a non-srcdir build directory
1709 * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
1710 introduced in my 2010-01-21 commit, a6da6c45. Reported by Eric Blake.
1712 2010-01-22 Jim Meyering <meyering@redhat.com>
1714 userspec: add unit tests
1715 * tests/test-userspec.c: New file.
1716 * modules/userspec-tests: Likewise.
1718 2010-01-21 Jim Meyering <meyering@redhat.com>
1720 maint.mk: handle source file names containing "." robustly
1721 * top/maint.mk (_dot_escaped_srcdir): Define.
1722 (VC_LIST): Use it in LHS of sed substitution.
1724 2010-01-21 Jiri Denemark <jdenemar@redhat.com>
1726 maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
1727 * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
1728 $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
1729 from a non-srcdir build.
1731 2010-01-20 Eric Blake <ebb9@byu.net>
1733 warn-on-use: use instead of link-warning
1734 * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
1735 * modules/unistd (Depends-on, Makefile.am): Likewise.
1736 * modules/arpa_inet (Depends-on): Replace link-warning with
1738 (Makefile.am): Update rules accordingly.
1739 * modules/ctype (Depends-on, Makefile.am): Likewise.
1740 * modules/dirent (Depends-on, Makefile.am): Likewise.
1741 * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
1742 * modules/inttypes (Depends-on, Makefile.am): Likewise.
1743 * modules/langinfo (Depends-on, Makefile.am): Likewise.
1744 * modules/locale (Depends-on, Makefile.am): Likewise.
1745 * modules/math (Depends-on, Makefile.am): Likewise.
1746 * modules/search (Depends-on, Makefile.am): Likewise.
1747 * modules/signal (Depends-on, Makefile.am): Likewise.
1748 * modules/spawn (Depends-on, Makefile.am): Likewise.
1749 * modules/stdlib (Depends-on, Makefile.am): Likewise.
1750 * modules/string (Depends-on, Makefile.am): Likewise.
1751 * modules/strings (Depends-on, Makefile.am): Likewise.
1752 * modules/sys_file (Depends-on, Makefile.am): Likewise.
1753 * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
1754 * modules/sys_select (Depends-on, Makefile.am): Likewise.
1755 * modules/sys_socket (Depends-on, Makefile.am): Likewise.
1756 * modules/sys_stat (Depends-on, Makefile.am): Likewise.
1757 * modules/sys_times (Depends-on, Makefile.am): Likewise.
1758 * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
1759 * modules/wchar (Depends-on, Makefile.am): Likewise.
1760 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
1762 * m4/ctype.m4 (gl_CTYPE_H): Likewise.
1763 * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
1764 * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
1765 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
1766 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
1767 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
1768 * m4/math_h.m4 (gl_MATH_H): Likewise.
1769 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
1770 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
1771 * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1772 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
1773 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
1774 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
1775 * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
1776 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
1777 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
1778 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1779 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
1780 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
1781 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1782 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1783 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1784 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
1785 * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
1787 * lib/ctype.in.h: Likewise.
1788 * lib/dirent.in.h: Likewise.
1789 * lib/fcntl.in.h: Likewise.
1790 * lib/inttypes.in.h: Likewise.
1791 * lib/langinfo.in.h: Likewise.
1792 * lib/locale.in.h: Likewise.
1793 * lib/math.in.h: Likewise.
1794 * lib/search.in.h: Likewise.
1795 * lib/signal.in.h: Likewise.
1796 * lib/spawn.in.h: Likewise.
1797 * lib/stdio.in.h: Likewise.
1798 * lib/stdlib.in.h: Likewise.
1799 * lib/string.in.h: Likewise.
1800 * lib/strings.in.h: Likewise.
1801 * lib/sys_file.in.h: Likewise.
1802 * lib/sys_ioctl.in.h: Likewise.
1803 * lib/sys_select.in.h: Likewise.
1804 * lib/sys_socket.in.h: Likewise.
1805 * lib/sys_stat.in.h: Likewise.
1806 * lib/sys_times.in.h: Likewise.
1807 * lib/sys_utsname.in.h: Likewise.
1808 * lib/unistd.in.h: Likewise.
1809 * lib/wchar.in.h: Likewise.
1811 2010-01-20 Bruno Haible <bruno@clisp.org>
1813 Avoid duplicate -lm.
1814 * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
1815 * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
1816 * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
1817 * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
1818 * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
1819 * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
1820 * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
1821 * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
1822 * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
1823 * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
1824 * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
1825 * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
1826 Reported by Paolo Bonzini.
1828 2010-01-19 Bruno Haible <bruno@clisp.org>
1830 langinfo, nl_langinfo: Relicense under LGPLv2+.
1831 * modules/langinfo (License): Change to LGPLv2+.
1832 * modules/nl_langinfo (License): Likewise.
1833 Patch by David Lutterkort <lutter@redhat.com>.
1835 2010-01-19 Bruno Haible <bruno@clisp.org>
1837 Avoid compilation error with cc on OSF/1 5.1.
1838 * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
1839 statement, not before.
1840 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1842 2010-01-18 Bruno Haible <bruno@clisp.org>
1844 Avoid a link error due to the __printf__ symbol.
1845 * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
1847 (__format__, __printf__): Remove definitions.
1848 * lib/argp-fmtstream.h: Likewise.
1849 * lib/argp.h: Likewise.
1850 * lib/error.h: Likewise.
1851 * lib/vasnprintf.h: Likewise.
1852 * lib/xprintf.h: Likewise.
1853 * lib/xvasprintf.h: Likewise.
1854 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1856 2010-01-18 Bruno Haible <bruno@clisp.org>
1858 Tests for module 'tanl'.
1859 * modules/tanl-tests: New file.
1860 * tests/test-tanl.c: New file.
1862 Tests for module 'sqrtl'.
1863 * modules/sqrtl-tests: New file.
1864 * tests/test-sqrtl.c: New file.
1866 Tests for module 'sinl'.
1867 * modules/sinl-tests: New file.
1868 * tests/test-sinl.c: New file.
1870 Tests for module 'logl'.
1871 * modules/logl-tests: New file.
1872 * tests/test-logl.c: New file.
1874 Tests for module 'expl'.
1875 * modules/expl-tests: New file.
1876 * tests/test-expl.c: New file.
1878 Tests for module 'cosl'.
1879 * modules/cosl-tests: New file.
1880 * tests/test-cosl.c: New file.
1882 Tests for module 'atanl'.
1883 * modules/atanl-tests: New file.
1884 * tests/test-atanl.c: New file.
1886 Tests for module 'asinl'.
1887 * modules/asinl-tests: New file.
1888 * tests/test-asinl.c: New file.
1890 Tests for module 'acosl'.
1891 * modules/acosl-tests: New file.
1892 * tests/test-acosl.c: New file.
1894 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
1895 * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
1896 tanl): Use the standard gnulib idiom.
1897 * lib/cosl.c: Don't include trigl.c and sincosl.c.
1898 * lib/sinl.c: Likewise.
1899 * lib/tanl.c: Don't include trigl.c.
1900 (kernel_tanl): Make static.
1901 * lib/sincosl.c: Include trigl.h first.
1902 * lib/trigl.c: Likewise.
1903 * m4/acosl.m4: New file.
1904 * m4/asinl.m4: New file.
1905 * m4/atanl.m4: New file.
1906 * m4/cosl.m4: New file.
1907 * m4/expl.m4: New file.
1908 * m4/logl.m4: New file.
1909 * m4/sinl.m4: New file.
1910 * m4/sqrtl.m4: New file.
1911 * m4/tanl.m4: New file.
1912 * m4/mathl.m4: Remove file.
1913 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
1914 variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
1915 Don't initialize GNULIB_MATHL.
1916 * modules/acosl: New file.
1917 * modules/asinl: New file.
1918 * modules/atanl: New file.
1919 * modules/cosl: New file.
1920 * modules/expl: New file.
1921 * modules/logl: New file.
1922 * modules/sinl: New file.
1923 * modules/sqrtl: New file.
1924 * modules/tanl: New file.
1925 * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
1926 for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
1927 substitute GNULIB_MATHL.
1928 * modules/mathl: Rewritten.
1929 * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
1930 * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
1931 * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
1932 * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
1933 * doc/posix-functions/expl.texi: Mention the 'expl' module.
1934 * doc/posix-functions/logl.texi: Mention the 'logl' module.
1935 * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
1936 * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
1937 * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
1939 2010-01-18 Bruno Haible <bruno@clisp.org>
1941 sqrt: Make gl_FUNC_SQRT requirable.
1942 * m4/sqrt.m4: New file.
1943 * modules/sqrt (Files): Add it.
1944 (configure.ac): Invoke gl_FUNC_SQRT.
1946 2010-01-18 Bruno Haible <bruno@clisp.org>
1948 New modules for common <math.h> functions.
1949 * m4/mathfunc.m4: New file.
1950 * modules/acos: New file.
1951 * modules/asin: New file.
1952 * modules/atan: New file.
1953 * modules/atan2: New file.
1954 * modules/cbrt: New file.
1955 * modules/copysign: New file.
1956 * modules/cos: New file.
1957 * modules/cosh: New file.
1958 * modules/erf: New file.
1959 * modules/erfc: New file.
1960 * modules/exp: New file.
1961 * modules/fabs: New file.
1962 * modules/fmod: New file.
1963 * modules/hypot: New file.
1964 * modules/j0: New file.
1965 * modules/j1: New file.
1966 * modules/jn: New file.
1967 * modules/ldexp: New file.
1968 * modules/lgamma: New file.
1969 * modules/log: New file.
1970 * modules/log10: New file.
1971 * modules/log1p: New file.
1972 * modules/logb: New file.
1973 * modules/modf: New file.
1974 * modules/nextafter: New file.
1975 * modules/pow: New file.
1976 * modules/remainder: New file.
1977 * modules/rint: New file.
1978 * modules/sin: New file.
1979 * modules/sinh: New file.
1980 * modules/sqrt: New file.
1981 * modules/tan: New file.
1982 * modules/tanh: New file.
1983 * modules/y0: New file.
1984 * modules/y1: New file.
1985 * modules/yn: New file.
1986 * doc/posix-functions/acos.texi: Mention the 'acos' module.
1987 * doc/posix-functions/asin.texi: Mention the 'asin' module.
1988 * doc/posix-functions/atan.texi: Mention the 'atan' module.
1989 * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
1990 * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
1991 * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
1992 * doc/posix-functions/cos.texi: Mention the 'cos' module.
1993 * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
1994 * doc/posix-functions/erf.texi: Mention the 'erf' module.
1995 * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
1996 * doc/posix-functions/exp.texi: Mention the 'exp' module.
1997 * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
1998 * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
1999 * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
2000 * doc/posix-functions/j0.texi: Mention the 'j0' module.
2001 * doc/posix-functions/j1.texi: Mention the 'j1' module.
2002 * doc/posix-functions/jn.texi: Mention the 'jn' module.
2003 * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
2004 * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
2005 * doc/posix-functions/log.texi: Mention the 'log' module.
2006 * doc/posix-functions/log10.texi: Mention the 'log10' module.
2007 * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
2008 * doc/posix-functions/logb.texi: Mention the 'logb' module.
2009 * doc/posix-functions/modf.texi: Mention the 'modf' module.
2010 * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
2011 * doc/posix-functions/pow.texi: Mention the 'pow' module.
2012 * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
2013 * doc/posix-functions/rint.texi: Mention the 'rint' module.
2014 * doc/posix-functions/sin.texi: Mention the 'sin' module.
2015 * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
2016 * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
2017 * doc/posix-functions/tan.texi: Mention the 'tan' module.
2018 * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
2019 * doc/posix-functions/y0.texi: Mention the 'y0' module.
2020 * doc/posix-functions/y1.texi: Mention the 'y1' module.
2021 * doc/posix-functions/yn.texi: Mention the 'yn' module.
2023 2010-01-18 Jim Meyering <meyering@redhat.com>
2025 ignore-value: relax license to LGPLv2+
2026 * modules/ignore-value (License): Relax to LGPLv2+.
2028 getdate: don't leak when TZ contains two or more '"'s
2029 * lib/getdate.y (get_date): Don't leak a copy of TZ for each
2030 double quote in TZ after the first one.
2032 readtokens: do not leak internal token_lengths buffer
2033 * lib/readtokens.c (readtokens): Free the local, lengths,
2034 when the supplied "token_lengths" parameter is NULL.
2036 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2038 Fix a couple of missing LIBTHREAD link failures on AIX.
2039 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
2041 * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
2043 Link test-poll against INET_PTON_LIB.
2044 * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
2045 for inet_pton on Solaris 10.
2047 2010-01-17 Bruno Haible <bruno@clisp.org>
2049 unistdio/*-sprintf: Fix typo in module description.
2050 * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
2051 * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
2052 * modules/unistdio/u16-sprintf (Depends-on): Likewise.
2053 * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
2054 * modules/unistdio/u32-sprintf (Depends-on): Likewise.
2055 * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
2056 * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
2057 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2059 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2061 gnulib-tool: fix filelist for AIX, HP-UX ksh.
2062 * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
2063 variables in shell case patterns, for AIX and HP-UX ksh.
2065 Split large sed scripts, for HP-UX sed.
2066 * modules/stdio: Split sed scripts around 50 sed commands,
2067 to avoid HP-UX limit of 99 commands, in the near future.
2068 * modules/string: Likewise.
2069 * modules/unistd: Likewise.
2071 gnulib-tool: avoid writing in the current directory.
2072 * gnulib-tool (func_emit_lib_Makefile_am)
2073 (func_emit_tests_Makefile_am): Put temporary files in $tmp,
2074 not in the current directory, so concurrent gnulib-tool
2075 instances do not interfere.
2077 2010-01-16 Jim Meyering <meyering@redhat.com>
2079 doc: update users.txt
2080 * users.txt: Add grep.
2081 (diffutils, gzip): Update URLs.
2083 2010-01-12 Bruno Haible <bruno@clisp.org>
2085 posix_spawn: Avoid test failure on Cygwin.
2086 * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
2088 Reported by Simon Josefsson.
2090 2010-01-12 Bruno Haible <bruno@clisp.org>
2092 * tests/test-cond.c (main): When skipping the test, show the reason.
2094 2010-01-12 Simon Josefsson <simon@josefsson.org>
2096 * lib/striconv.c (str_cd_iconv): Avoid if before free.
2098 2010-01-12 Simon Josefsson <simon@josefsson.org>
2100 * top/maint.mk (VC_LIST_EXCEPT): Filter list through
2101 VC_LIST_ALWAYS_EXCLUDE_REGEX.
2103 2010-01-12 Eric Blake <ebb9@byu.net>
2105 build: guarantee AS_VAR_IF
2106 * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
2107 (gl_AS_VAR_IF): Move...
2108 * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
2109 Reported by Simon Josefsson.
2111 2010-01-12 Simon Josefsson <simon@josefsson.org>
2113 * lib/stdio.in.h: Fix typo.
2115 2010-01-12 Simon Josefsson <simon@josefsson.org>
2117 * m4/gc.m4: Check if linking to libgcrypt also needs linking to
2120 2010-01-12 Simon Josefsson <simon@josefsson.org>
2122 * tests/test-xalloc-die.sh: Use $EXEEXT.
2124 2010-01-12 Simon Josefsson <simon@josefsson.org>
2125 Bruno Haible <bruno@clisp.org>
2127 getlogin, getlogin_r: Avoid test failure.
2128 * tests/test-getlogin.c: Include <stdio.h>.
2129 (main): Skip the test when the function fails because stdin is not a
2131 * tests/test-getlogin_r.c: Include <stdio.h>.
2132 (main): Skip the test when the function fails because stdin is not a
2135 2010-01-11 Eric Blake <ebb9@byu.net>
2137 tests: avoid more large file warnings
2138 * tests/test-fflush.c: Avoid warning about ftell use.
2139 * tests/test-fseek.c: Avoid warning about fseek use.
2141 2010-01-10 Bruno Haible <bruno@clisp.org>
2143 nproc: Work better on Linux when /proc and /sys are not mounted.
2144 * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
2145 as lower bound when, on glibc/Linux systems,
2146 sysconf (_SC_NPROCESSORS_CONF) returns 1.
2147 Suggested by Pádraig Brady <P@draigbrady.com>.
2148 Reported by Dmitry V. Levin <ldv@altlinux.org>.
2151 * lib/nproc.c (num_processors_via_affinity_mask): New function,
2152 extracted from num_processors.
2153 (num_processors): Call it.
2155 2010-01-11 Jim Meyering <meyering@redhat.com>
2157 utimecmp: avoid new warning from upcoming gcc-4.5.0
2158 * lib/utimecmp.c (BILLION): Define using #define rather than an
2159 anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
2161 2010-01-11 Eric Blake <ebb9@byu.net>
2163 math: add portability warnings for classification macros
2164 * modules/math (Depends-on): Add warn-on-use.
2165 (Makefile.am): Provide new substitutions.
2166 * m4/math_h.m4 (gl_MATH_H): Require inline.
2167 * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
2168 (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
2169 (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
2172 unistd: warn on use of environ without module
2173 * modules/unistd (Depends-on): Add warn-on-use.
2174 (Makefile.am): Provide new substitutions.
2175 * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
2176 * lib/unistd.in.h (environ): Wrap with a warning helper function.
2178 stdio: warn on suspicious uses
2179 * modules/stdio (Depends-on): Add warn-on-use.
2180 (Makefile.am): Provide new substitutions.
2181 * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
2183 * lib/stdio.in.h (gets): Always warn on use.
2184 (fseek, ftell): Adjust when warnings are issued, and honor
2185 _GL_NO_LARGE_FILES as a way to silence the warning.
2186 * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
2187 any warning about large file offsets.
2188 * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
2189 * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
2190 * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
2191 * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
2192 * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
2193 * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
2194 * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
2195 * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
2197 warn-on-use: new module
2198 * modules/warn-on-use: New file.
2199 * build-aux/warn-on-use.h: Likewise.
2200 * m4/warn-on-use.m4: Likewise.
2201 * MODULES.html.sh (Support for building): Mention it.
2203 2010-01-10 Bruno Haible <bruno@clisp.org>
2205 Tests for module 'unistr/u32-strdup'.
2206 * modules/unistr/u32-strdup-tests: New file.
2207 * tests/unistr/test-u32-strdup.c: New file.
2209 Tests for module 'unistr/u16-strdup'.
2210 * modules/unistr/u16-strdup-tests: New file.
2211 * tests/unistr/test-u16-strdup.c: New file.
2213 Tests for module 'unistr/u8-strdup'.
2214 * modules/unistr/u8-strdup-tests: New file.
2215 * tests/unistr/test-u8-strdup.c: New file.
2216 * tests/unistr/test-strdup.h: New file.
2218 Tests for module 'unistr/u32-strncmp'.
2219 * modules/unistr/u32-strncmp-tests: New file.
2220 * tests/unistr/test-u32-strncmp.c: New file.
2222 Tests for module 'unistr/u16-strncmp'.
2223 * modules/unistr/u16-strncmp-tests: New file.
2224 * tests/unistr/test-u16-strncmp.c: New file.
2226 Tests for module 'unistr/u8-strncmp'.
2227 * modules/unistr/u8-strncmp-tests: New file.
2228 * tests/unistr/test-u8-strncmp.c: New file.
2229 * tests/unistr/test-strncmp.h: New file.
2231 Tests for module 'unistr/u32-strcoll'.
2232 * modules/unistr/u32-strcoll-tests: New file.
2233 * tests/unistr/test-u32-strcoll.c: New file.
2235 Tests for module 'unistr/u16-strcoll'.
2236 * modules/unistr/u16-strcoll-tests: New file.
2237 * tests/unistr/test-u16-strcoll.c: New file.
2239 Tests for module 'unistr/u8-strcoll'.
2240 * modules/unistr/u8-strcoll-tests: New file.
2241 * tests/unistr/test-u8-strcoll.c: New file.
2243 Tests for module 'unistr/u32-strcmp'.
2244 * modules/unistr/u32-strcmp-tests: New file.
2245 * tests/unistr/test-u32-strcmp.c: New file.
2246 * tests/unistr/test-u32-strcmp.h: New file.
2248 Tests for module 'unistr/u16-strcmp'.
2249 * modules/unistr/u16-strcmp-tests: New file.
2250 * tests/unistr/test-u16-strcmp.c: New file.
2251 * tests/unistr/test-u16-strcmp.h: New file.
2253 Tests for module 'unistr/u8-strcmp'.
2254 * modules/unistr/u8-strcmp-tests: New file.
2255 * tests/unistr/test-u8-strcmp.c: New file.
2256 * tests/unistr/test-u8-strcmp.h: New file.
2257 * tests/unistr/test-strcmp.h: New file.
2259 Tests for module 'unistr/u32-strncat'.
2260 * modules/unistr/u32-strncat-tests: New file.
2261 * tests/unistr/test-u32-strncat.c: New file.
2263 Tests for module 'unistr/u16-strncat'.
2264 * modules/unistr/u16-strncat-tests: New file.
2265 * tests/unistr/test-u16-strncat.c: New file.
2267 Tests for module 'unistr/u8-strncat'.
2268 * modules/unistr/u8-strncat-tests: New file.
2269 * tests/unistr/test-u8-strncat.c: New file.
2270 * tests/unistr/test-strncat.h: New file.
2272 Tests for module 'unistr/u32-strcat'.
2273 * modules/unistr/u32-strcat-tests: New file.
2274 * tests/unistr/test-u32-strcat.c: New file.
2276 Tests for module 'unistr/u16-strcat'.
2277 * modules/unistr/u16-strcat-tests: New file.
2278 * tests/unistr/test-u16-strcat.c: New file.
2280 Tests for module 'unistr/u8-strcat'.
2281 * modules/unistr/u8-strcat-tests: New file.
2282 * tests/unistr/test-u8-strcat.c: New file.
2283 * tests/unistr/test-strcat.h: New file.
2285 Tests for module 'unistr/u32-stpncpy'.
2286 * modules/unistr/u32-stpncpy-tests: New file.
2287 * tests/unistr/test-u32-stpncpy.c: New file.
2289 Tests for module 'unistr/u16-stpncpy'.
2290 * modules/unistr/u16-stpncpy-tests: New file.
2291 * tests/unistr/test-u16-stpncpy.c: New file.
2293 Tests for module 'unistr/u8-stpncpy'.
2294 * modules/unistr/u8-stpncpy-tests: New file.
2295 * tests/unistr/test-u8-stpncpy.c: New file.
2296 * tests/unistr/test-stpncpy.h: New file.
2298 Tests for module 'unistr/u32-strncpy'.
2299 * modules/unistr/u32-strncpy-tests: New file.
2300 * tests/unistr/test-u32-strncpy.c: New file.
2302 Tests for module 'unistr/u16-strncpy'.
2303 * modules/unistr/u16-strncpy-tests: New file.
2304 * tests/unistr/test-u16-strncpy.c: New file.
2306 Tests for module 'unistr/u8-strncpy'.
2307 * modules/unistr/u8-strncpy-tests: New file.
2308 * tests/unistr/test-u8-strncpy.c: New file.
2309 * tests/unistr/test-strncpy.h: New file.
2311 Tests for module 'unistr/u32-stpcpy'.
2312 * modules/unistr/u32-stpcpy-tests: New file.
2313 * tests/unistr/test-u32-stpcpy.c: New file.
2315 Tests for module 'unistr/u16-stpcpy'.
2316 * modules/unistr/u16-stpcpy-tests: New file.
2317 * tests/unistr/test-u16-stpcpy.c: New file.
2319 Tests for module 'unistr/u8-stpcpy'.
2320 * modules/unistr/u8-stpcpy-tests: New file.
2321 * tests/unistr/test-u8-stpcpy.c: New file.
2322 * tests/unistr/test-stpcpy.h: New file.
2324 Tests for module 'unistr/u32-strcpy'.
2325 * modules/unistr/u32-strcpy-tests: New file.
2326 * tests/unistr/test-u32-strcpy.c: New file.
2328 Tests for module 'unistr/u16-strcpy'.
2329 * modules/unistr/u16-strcpy-tests: New file.
2330 * tests/unistr/test-u16-strcpy.c: New file.
2332 Tests for module 'unistr/u8-strcpy'.
2333 * modules/unistr/u8-strcpy-tests: New file.
2334 * tests/unistr/test-u8-strcpy.c: New file.
2335 * tests/unistr/test-strcpy.h: New file.
2337 Tests for module 'unistr/u32-strnlen'.
2338 * modules/unistr/u32-strnlen-tests: New file.
2339 * tests/unistr/test-u32-strnlen.c: New file.
2341 Tests for module 'unistr/u16-strnlen'.
2342 * modules/unistr/u16-strnlen-tests: New file.
2343 * tests/unistr/test-u16-strnlen.c: New file.
2345 Tests for module 'unistr/u8-strnlen'.
2346 * modules/unistr/u8-strnlen-tests: New file.
2347 * tests/unistr/test-u8-strnlen.c: New file.
2348 * tests/unistr/test-strnlen.h: New file.
2350 Tests for module 'unistr/u32-strlen'.
2351 * modules/unistr/u32-strlen-tests: New file.
2352 * tests/unistr/test-u32-strlen.c: New file.
2354 Tests for module 'unistr/u16-strlen'.
2355 * modules/unistr/u16-strlen-tests: New file.
2356 * tests/unistr/test-u16-strlen.c: New file.
2358 Tests for module 'unistr/u8-strlen'.
2359 * modules/unistr/u8-strlen-tests: New file.
2360 * tests/unistr/test-u8-strlen.c: New file.
2362 Tests for module 'unistr/u32-prev'.
2363 * modules/unistr/u32-prev-tests: New file.
2364 * tests/unistr/test-u32-prev.c: New file.
2366 Tests for module 'unistr/u16-prev'.
2367 * modules/unistr/u16-prev-tests: New file.
2368 * tests/unistr/test-u16-prev.c: New file.
2370 Tests for module 'unistr/u8-prev'.
2371 * modules/unistr/u8-prev-tests: New file.
2372 * tests/unistr/test-u8-prev.c: New file.
2374 Tests for module 'unistr/u32-next'.
2375 * modules/unistr/u32-next-tests: New file.
2376 * tests/unistr/test-u32-next.c: New file.
2378 Tests for module 'unistr/u16-next'.
2379 * modules/unistr/u16-next-tests: New file.
2380 * tests/unistr/test-u16-next.c: New file.
2382 Tests for module 'unistr/u8-next'.
2383 * modules/unistr/u8-next-tests: New file.
2384 * tests/unistr/test-u8-next.c: New file.
2386 Tests for module 'unistr/u32-strmbtouc'.
2387 * modules/unistr/u32-strmbtouc-tests: New file.
2388 * tests/unistr/test-u32-strmbtouc.c: New file.
2390 Tests for module 'unistr/u16-strmbtouc'.
2391 * modules/unistr/u16-strmbtouc-tests: New file.
2392 * tests/unistr/test-u16-strmbtouc.c: New file.
2394 Tests for module 'unistr/u8-strmbtouc'.
2395 * modules/unistr/u8-strmbtouc-tests: New file.
2396 * tests/unistr/test-u8-strmbtouc.c: New file.
2398 Tests for module 'unistr/u32-strmblen'.
2399 * modules/unistr/u32-strmblen-tests: New file.
2400 * tests/unistr/test-u32-strmblen.c: New file.
2402 Tests for module 'unistr/u16-strmblen'.
2403 * modules/unistr/u16-strmblen-tests: New file.
2404 * tests/unistr/test-u16-strmblen.c: New file.
2406 Tests for module 'unistr/u8-strmblen'.
2407 * modules/unistr/u8-strmblen-tests: New file.
2408 * tests/unistr/test-u8-strmblen.c: New file.
2410 Tests for module 'unistr/u32-cpy-alloc'.
2411 * modules/unistr/u32-cpy-alloc-tests: New file.
2412 * tests/unistr/test-u32-cpy-alloc.c: New file.
2414 Tests for module 'unistr/u16-cpy-alloc'.
2415 * modules/unistr/u16-cpy-alloc-tests: New file.
2416 * tests/unistr/test-u16-cpy-alloc.c: New file.
2418 Tests for module 'unistr/u8-cpy-alloc'.
2419 * modules/unistr/u8-cpy-alloc-tests: New file.
2420 * tests/unistr/test-u8-cpy-alloc.c: New file.
2421 * tests/unistr/test-cpy-alloc.h: New file.
2423 Tests for module 'unistr/u32-mbsnlen'.
2424 * modules/unistr/u32-mbsnlen-tests: New file.
2425 * tests/unistr/test-u32-mbsnlen.c: New file.
2427 Tests for module 'unistr/u16-mbsnlen'.
2428 * modules/unistr/u16-mbsnlen-tests: New file.
2429 * tests/unistr/test-u16-mbsnlen.c: New file.
2431 Tests for module 'unistr/u8-mbsnlen'.
2432 * modules/unistr/u8-mbsnlen-tests: New file.
2433 * tests/unistr/test-u8-mbsnlen.c: New file.
2435 Tests for module 'unistr/u32-chr'.
2436 * modules/unistr/u32-chr-tests: New file.
2437 * tests/unistr/test-u32-chr.c: New file.
2439 Tests for module 'unistr/u16-chr'.
2440 * modules/unistr/u16-chr-tests: New file.
2441 * tests/unistr/test-u16-chr.c: New file.
2443 Tests for module 'unistr/u8-chr'.
2444 * modules/unistr/u8-chr-tests: New file.
2445 * tests/unistr/test-u8-chr.c: New file.
2446 * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
2448 Tests for module 'unistr/u32-cmp2'.
2449 * modules/unistr/u32-cmp2-tests: New file.
2450 * tests/unistr/test-u32-cmp2.c: New file.
2452 Tests for module 'unistr/u16-cmp2'.
2453 * modules/unistr/u16-cmp2-tests: New file.
2454 * tests/unistr/test-u16-cmp2.c: New file.
2456 Tests for module 'unistr/u8-cmp2'.
2457 * modules/unistr/u8-cmp2-tests: New file.
2458 * tests/unistr/test-u8-cmp2.c: New file.
2459 * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
2461 Tests for module 'unistr/u32-cmp'.
2462 * modules/unistr/u32-cmp-tests: New file.
2463 * tests/unistr/test-u32-cmp.c: New file.
2465 Tests for module 'unistr/u16-cmp'.
2466 * modules/unistr/u16-cmp-tests: New file.
2467 * tests/unistr/test-u16-cmp.c: New file.
2469 Tests for module 'unistr/u8-cmp'.
2470 * modules/unistr/u8-cmp-tests: New file.
2471 * tests/unistr/test-u8-cmp.c: New file.
2472 * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
2474 Tests for module 'unistr/u32-set'.
2475 * modules/unistr/u32-set-tests: New file.
2476 * tests/unistr/test-u32-set.c: New file.
2478 Tests for module 'unistr/u16-set'.
2479 * modules/unistr/u16-set-tests: New file.
2480 * tests/unistr/test-u16-set.c: New file.
2482 Tests for module 'unistr/u8-set'.
2483 * modules/unistr/u8-set-tests: New file.
2484 * tests/unistr/test-u8-set.c: New file.
2485 * tests/unistr/test-set.h: New file.
2487 Tests for module 'unistr/u32-move'.
2488 * modules/unistr/u32-move-tests: New file.
2489 * tests/unistr/test-u32-move.c: New file.
2491 Tests for module 'unistr/u16-move'.
2492 * modules/unistr/u16-move-tests: New file.
2493 * tests/unistr/test-u16-move.c: New file.
2495 Tests for module 'unistr/u8-move'.
2496 * modules/unistr/u8-move-tests: New file.
2497 * tests/unistr/test-u8-move.c: New file.
2498 * tests/unistr/test-move.h: New file.
2500 Tests for module 'unistr/u32-cpy'.
2501 * modules/unistr/u32-cpy-tests: New file.
2502 * tests/unistr/test-u32-cpy.c: New file.
2504 Tests for module 'unistr/u16-cpy'.
2505 * modules/unistr/u16-cpy-tests: New file.
2506 * tests/unistr/test-u16-cpy.c: New file.
2508 Tests for module 'unistr/u8-cpy'.
2509 * modules/unistr/u8-cpy-tests: New file.
2510 * tests/unistr/test-u8-cpy.c: New file.
2511 * tests/unistr/test-cpy.h: New file.
2513 2010-01-09 Bruno Haible <bruno@clisp.org>
2515 Tests for module 'unistr/u32-uctomb'.
2516 * modules/unistr/u32-uctomb-tests: New file.
2517 * tests/unistr/test-u32-uctomb.c: New file.
2519 Tests for module 'unistr/u16-uctomb'.
2520 * modules/unistr/u16-uctomb-tests: New file.
2521 * tests/unistr/test-u16-uctomb.c: New file.
2523 Tests for module 'unistr/u8-uctomb'.
2524 * modules/unistr/u8-uctomb-tests: New file.
2525 * tests/unistr/test-u8-uctomb.c: New file.
2527 Tests for module 'unistr/u32-mbtoucr'.
2528 * modules/unistr/u32-mbtoucr-tests: New file.
2529 * tests/unistr/test-u32-mbtoucr.c: New file.
2531 Tests for module 'unistr/u16-mbtoucr'.
2532 * modules/unistr/u16-mbtoucr-tests: New file.
2533 * tests/unistr/test-u16-mbtoucr.c: New file.
2535 Tests for module 'unistr/u8-mbtoucr'.
2536 * modules/unistr/u8-mbtoucr-tests: New file.
2537 * tests/unistr/test-u8-mbtoucr.c: New file.
2539 Tests for module 'unistr/u32-mbtouc'.
2540 * modules/unistr/u32-mbtouc-tests: New file.
2541 * tests/unistr/test-u32-mbtouc.c: New file.
2543 Tests for module 'unistr/u16-mbtouc'.
2544 * modules/unistr/u16-mbtouc-tests: New file.
2545 * tests/unistr/test-u16-mbtouc.c: New file.
2547 Tests for module 'unistr/u8-mbtouc'.
2548 * modules/unistr/u8-mbtouc-tests: New file.
2549 * tests/unistr/test-u8-mbtouc.c: New file.
2551 Tests for module 'unistr/u32-mbtouc-unsafe'.
2552 * modules/unistr/u32-mbtouc-unsafe-tests: New file.
2553 * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
2554 * tests/unistr/test-u32-mbtouc.h: New file.
2556 Tests for module 'unistr/u16-mbtouc-unsafe'.
2557 * modules/unistr/u16-mbtouc-unsafe-tests: New file.
2558 * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
2559 * tests/unistr/test-u16-mbtouc.h: New file.
2561 Tests for module 'unistr/u8-mbtouc-unsafe'.
2562 * modules/unistr/u8-mbtouc-unsafe-tests: New file.
2563 * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
2564 * tests/unistr/test-u8-mbtouc.h: New file.
2566 Tests for module 'unistr/u32-mblen'.
2567 * modules/unistr/u32-mblen-tests: New file.
2568 * tests/unistr/test-u32-mblen.c: New file.
2570 Tests for module 'unistr/u16-mblen'.
2571 * modules/unistr/u16-mblen-tests: New file.
2572 * tests/unistr/test-u16-mblen.c: New file.
2574 Tests for module 'unistr/u8-mblen'.
2575 * modules/unistr/u8-mblen-tests: New file.
2576 * tests/unistr/test-u8-mblen.c: New file.
2578 Tests for module 'unistr/u32-to-u16'.
2579 * modules/unistr/u32-to-u16-tests: New file.
2580 * tests/unistr/test-u32-to-u16.c: New file.
2582 Tests for module 'unistr/u32-to-u8'.
2583 * modules/unistr/u32-to-u8-tests: New file.
2584 * tests/unistr/test-u32-to-u8.c: New file.
2586 Tests for module 'unistr/u16-to-u32'.
2587 * modules/unistr/u16-to-u32-tests: New file.
2588 * tests/unistr/test-u16-to-u32.c: New file.
2590 Tests for module 'unistr/u16-to-u8'.
2591 * modules/unistr/u16-to-u8-tests: New file.
2592 * tests/unistr/test-u16-to-u8.c: New file.
2594 Tests for module 'unistr/u8-to-u32'.
2595 * modules/unistr/u8-to-u32-tests: New file.
2596 * tests/unistr/test-u8-to-u32.c: New file.
2598 Tests for module 'unistr/u8-to-u16'.
2599 * modules/unistr/u8-to-u16-tests: New file.
2600 * tests/unistr/test-u8-to-u16.c: New file.
2602 Tests for module 'unistr/u32-check'.
2603 * modules/unistr/u32-check-tests: New file.
2604 * tests/unistr/test-u32-check.c: New file.
2606 Tests for module 'unistr/u16-check'.
2607 * modules/unistr/u16-check-tests: New file.
2608 * tests/unistr/test-u16-check.c: New file.
2610 Tests for module 'unistr/u8-check'.
2611 * modules/unistr/u8-check-tests: New file.
2612 * tests/unistr/test-u8-check.c: New file.
2614 * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
2615 (category_equals): New function.
2616 (main): Add more tests.
2617 * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
2619 * tests/unictype/test-bidi_byname.c (main): Add more tests.
2621 2010-01-10 Bruno Haible <bruno@clisp.org>
2623 unistr/u*-strcoll: Try harder to distinguish different strings.
2624 * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
2625 compare s1 and s2 to see if they are different.
2627 2010-01-10 Bruno Haible <bruno@clisp.org>
2629 unistr/u*-stpncpy: Fix the return value.
2630 * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
2631 description of the return value consistent with stpncpy in glibc.
2632 * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
2633 written non-NUL unit.
2635 2010-01-10 Bruno Haible <bruno@clisp.org>
2637 unistr/u*-next: Add missing dependencies.
2638 * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
2639 * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
2640 * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
2642 2010-01-10 Bruno Haible <bruno@clisp.org>
2644 unistr/u8-mbsnlen: Fix return value for incomplete character.
2645 * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
2647 * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
2648 Remove unistr/u8-mblen.
2649 * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
2651 * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
2652 Remove unistr/u16-mblen.
2654 2010-01-10 Bruno Haible <bruno@clisp.org>
2656 wchar: Fix compilation error when <wchar.h> is used from coreutils.
2657 * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
2658 Reported by Brian Gough <bjg@gnu.org> and
2659 Chris Clayton <chris2553@googlemail.com> via
2660 Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
2662 2010-01-09 Bruno Haible <bruno@clisp.org>
2664 unistr/u16-to-u32: Reject invalid input.
2665 * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
2667 * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
2668 Remove unistr/u16-mbtouc.
2670 unistr/u16-to-u8: Reject invalid input.
2671 * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
2673 * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
2674 Remove unistr/u16-mbtouc.
2676 unistr/u8-to-u32: Reject invalid input.
2677 * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
2679 * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
2680 Remove unistr/u8-mbtouc.
2682 unistr/u8-to-u16: Reject invalid input.
2683 * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
2685 * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
2686 Remove unistr/u8-mbtouc.
2688 2010-01-09 Bruno Haible <bruno@clisp.org>
2690 Tests for module 'getlogin'.
2691 * modules/getlogin-tests: New file.
2692 * tests/test-getlogin.c: New file.
2694 New module 'getlogin'.
2695 * lib/unistd.in.h (getlogin): New declaration.
2696 * lib/getlogin.c: New file.
2697 * m4/getlogin.m4: New file.
2698 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
2700 * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
2702 * modules/getlogin: New file.
2703 * doc/posix-functions/getlogin.texi: Mention the new module.
2704 Reported by John W. Eaton <jwe@gnu.org>.
2706 2010-01-09 Bruno Haible <bruno@clisp.org>
2708 getlogin_r: Support for native Windows.
2709 * lib/getlogin_r.c: Include <windows.h>
2710 (getlogin_r): Implement for native Windows.
2711 * tests/test-getlogin_r.c (main): Also test with a huge buffer.
2712 Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
2713 via John W. Eaton <jwe@gnu.org>.
2715 2010-01-09 Bruno Haible <bruno@clisp.org>
2717 getlogin_r: Small fixes.
2718 * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
2720 * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
2721 before testing whether getlogin_r is declared. No need to set
2722 HAVE_DECL_GETLOGIN_R to 1.
2723 (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
2725 2010-01-09 Bruno Haible <bruno@clisp.org>
2727 * lib/unistd.in.h (getlogin_r): Add comment.
2729 2010-01-09 Bruno Haible <bruno@clisp.org>
2731 Tests for module 'getlogin_r'.
2732 * modules/getlogin_r-tests: New file.
2733 * tests/test-getlogin_r.c: New file.
2735 2010-01-09 Jim Meyering <meyering@redhat.com>
2737 maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
2738 * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
2739 also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
2741 2010-01-08 Simon Josefsson <simon@josefsson.org>
2743 * lib/dup2.c (rpl_dup2): Improve comment.
2745 2010-01-08 Eric Blake <ebb9@byu.net>
2747 maint.mk: allow packages to add makefile @@ exceptions
2748 * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
2749 (sc_makefile_check): Rename...
2750 (sc_makefile_at_at_check): ...to this, and use hook.
2752 dup2: work around mingw bug
2753 * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
2754 Reported by Simon Josefsson.
2756 2010-01-07 John W. Eaton <jwe@octave.org> (tiny change)
2758 glob: Fix C++ compilation.
2759 * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
2762 2010-01-07 Bruno Haible <bruno@clisp.org>
2764 Fix indentation of wctype.in.h, broken since 2007-01-06.
2765 * lib/wctype.in.h: Fix indentation of preprocessor directives.
2767 2010-01-07 Bruno Haible <bruno@clisp.org>
2769 mbslen: Avoid collision with system function.
2770 * lib/string.in.h [MirBSD]: Include <wchar.h>.
2771 (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
2772 * m4/mbslen.m4: New file.
2773 * modules/mbslen (Files): Add it.
2774 (configure.ac): Invoke gl_MBSLEN.
2775 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
2776 * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
2777 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
2778 via Ian Beckwith <ianb@erislabs.net>.
2780 2010-01-07 Bruno Haible <bruno@clisp.org>
2782 dirent: Document the last fix.
2783 * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
2785 2010-01-07 Bruno Haible <bruno@clisp.org>
2787 stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
2788 * lib/stdio.in.h: Include <sys/types.h> unconditionally.
2789 * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
2790 va_list are defined.
2791 * doc/posix-headers/stdio.texi: Document the bug of missing types.
2792 Reported by Eric Blake.
2794 2010-01-07 Bruno Haible <bruno@clisp.org>
2796 xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
2797 * modules/xlist (Depends-on): Add 'list',
2798 * modules/xoset (Depends-on): Add 'oset'.
2799 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2801 2010-01-07 Bruno Haible <bruno@clisp.org>
2803 * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
2804 * doc/posix-functions/strncasecmp.texi: Likewise.
2806 2010-01-07 Bruno Haible <bruno@clisp.org>
2808 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
2810 2010-01-07 John W. Eaton <jwe@octave.org>
2812 wctype: allow C++ use
2813 * lib/wctype.in.h: Add extern "C" block for C++.
2815 2010-01-06 Eric Blake <ebb9@byu.net>
2817 maint.mk: detect incorrect GFDL usage
2818 * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
2820 2010-01-06 Jim Meyering <meyering@redhat.com>
2821 and Eric Blake <ebb9@byu.net>
2823 maint.mk: ignore multi-line copyright in NEWS
2824 * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
2826 2010-01-06 Eric Blake <ebb9@byu.net>
2828 select: add missing dependency
2829 * modules/select-tests (Depends-on): Move sockets dependency...
2830 * modules/select (Depends-on): ...here.
2831 Reported by Ian Beckwith.
2833 doc: regenerate INSTALL
2834 * doc/INSTALL: Reflect recent autoconf update.
2835 * doc/INSTALL.ISO: Likewise.
2836 * doc/INSTALL.UTF-8: Likewise.
2838 pread: fix compilation on glibc
2839 * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
2840 Reported by Ralf Wildenhues.
2842 dirent: fix test failure
2843 * lib/dirent.in.h (includes): Guarantee ino_t.
2844 Reported by Ralf Wildenhues.
2846 2010-01-06 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
2848 linkat, renameat: avoid bad free
2849 * lib/at-func2.c (at_func2): Fix typo.
2850 Reported via Ian Beckwith, from http://bugs.debian.org/561117.
2852 2010-01-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2854 cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
2855 * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
2856 to avoid failure of symlink test later.
2858 2010-01-06 Eric Blake <ebb9@byu.net>
2860 stdio, unistd: guarantee ssize_t
2861 * lib/unistd.in.h (includes): Ensure that types required by POSIX
2862 2008 are exposed when needed.
2863 * lib/stdio.in.h (includes): Likewise.
2864 Reported by Ralf Wildenhues.
2866 2010-01-06 Paolo Bonzini <bonzini@gnu.org>
2868 nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
2869 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
2870 AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
2872 2010-01-06 Jim Meyering <meyering@redhat.com>
2874 readtokens: this module *does* require xalloc.h
2875 It uses only functions that were omitted by the old syntax-check rule.
2876 * lib/readtokens.c: Include "xalloc.h" once again.
2877 * modules/readtokens (Depends-on): Add xalloc.
2878 This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
2880 2010-01-05 Eric Blake <ebb9@byu.net>
2882 maint: support 'make announcement' from a VPATH build
2883 * top/maint.mk (announcement): Look for correct NEWS file.
2885 2010-01-05 Aurelien Jarno <aurelien@aurel32.net> (tiny change)
2887 utimens (fdutimens): ignore a negative FD, per contract
2888 * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
2889 when we have a valid file descriptor. Otherwise, using a brand
2890 new glibc (with just-patched futimens that now fails with EBADF)
2891 would cause this function to fail with ENOSYS.
2892 Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
2893 See also http://bugzilla.redhat.com/552320.
2895 2010-01-05 Eric Blake <ebb9@byu.net>
2897 strcase: document what it provides
2898 * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
2900 * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
2901 Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
2903 2010-01-05 Jim Meyering <meyering@redhat.com>
2905 maint: remove useless inclusions of "xalloc.h"
2906 * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
2907 * lib/readtokens.c: Likewise.
2908 * lib/same.c: Likewise.
2909 * modules/getloadavg (Depends-on): Remove xalloc.
2910 * modules/readtokens: Likewise.
2911 * modules/same: Likewise.
2913 maint.mk: include 4 more function names in alloca.h-checking regexp
2914 * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
2915 regexp. Before, we would give a false-positive (saying alloca.h
2916 is included unnecessarily) when the only uses involved omitted symbols.
2918 xalloc.h: use consistent formatting
2919 * lib/xalloc.h: Move declarations to start in the first column.
2921 2010-01-05 Eric Blake <ebb9@byu.net>
2924 * lib/mkdir.c (includes): Drop unused header.
2925 Reported by John W. Eaton.
2927 2010-01-04 Jim Meyering <meyering@redhat.com>
2929 nl_langinfo: avoid configure-time syntax error
2930 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
2931 for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
2932 the empty string. Don't let that provoke a shell syntax error.
2934 regcomp, regexec, fnmatch: avoid array bounds read error
2935 * lib/regcomp.c (build_equiv_class): From glibc:
2936 Use only the low 24 bits of a findidx return value as an index
2937 into the weights array. Patch by Ulrich Drepper:
2938 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
2939 * lib/regexec.c (check_node_accept_bytes): Likewise.
2940 * lib/fnmatch_loop.c (FCT): Likewise.
2942 regcomp: skip collseq lookup when there are no rules
2943 * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
2944 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
2946 regcomp: recognize ill-formed { } expressions
2947 * lib/regcomp.c (parse_dup_op): From glibc:
2948 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
2950 regcomp: fix typo in comment
2951 * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
2952 s/satisfy/satisfies/.
2954 regcomp: sync from glibc: remove dead store
2955 * lib/regcomp.c (duplicate_node_closure): Remove useless
2956 search_duplicated_node call and dead store.
2958 regcomp: sync from glibc; always use nl_langinfo
2959 * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
2960 now that gnulib provides it. Recognize UTF8 as well as UTF-8.
2961 * modules/regex (Depends-on): Add nl_langinfo.
2963 2010-01-04 Eric Blake <ebb9@byu.net>
2965 fdopendir: fix configure test
2966 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
2968 2010-01-01 Bruno Haible <bruno@clisp.org>
2970 wchar: Remove unused configure check.
2971 * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
2973 2010-01-01 Eric Blake <ebb9@byu.net>
2975 headers: make check of system header explicit
2976 * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
2977 gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
2979 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2980 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2981 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
2982 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
2984 * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
2986 Suggested by Bruno Haible.
2988 2010-01-01 Jim Meyering <meyering@redhat.com>
2990 ChangeLog: tweak to eliminate unnecessary copyright line
2991 * ChangeLog: Remove a copyright line that was mistakenly updated
2992 by today's update-copyright run. Reported by Eric Blake.
2994 test-update-copyright: don't let envvar setting cause test failure
2995 * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
2997 2010-01-01 Bruno Haible <bruno@clisp.org>
2999 localename: Avoid gcc warning.
3000 * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
3001 function if it is not used.
3003 2010-01-01 Jim Meyering <meyering@redhat.com>
3005 update nearly all FSF copyright year lists to include 2010
3006 Use the same procedure as for 2009, outlined in
3007 http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
3009 version-etc: set COPYRIGHT_YEAR to 2010
3010 * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
3012 2009-12-31 Eric Blake <ebb9@byu.net>
3014 doc: correct availability of cygwin 1.5.x getopt
3015 * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
3017 * doc/posix-functions/opterr.texi (opterr): Likewise.
3018 * doc/posix-functions/optind.texi (optind): Likewise.
3019 * doc/posix-functions/optopt.texi (optopt): Likewise.
3020 * doc/posix-functions/tzname.texi (tzname): Likewise.
3022 openat: update maintainer
3023 * modules/openat (Maintainer): Add myself.
3025 utimens: avoid shadowing warning
3026 * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
3027 buffers into one, to avoid shadowing, as well as avoiding a
3029 Reported by Jim Meyering.
3031 test-dup2: avoid compiler warning
3032 * tests/test-dup2.c (is_inheritable): Only define if used.
3034 2010-01-01 Bruno Haible <bruno@clisp.org>
3036 vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
3037 * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
3038 defined, use wctomb instead of wcrtomb.
3040 2010-01-01 Bruno Haible <bruno@clisp.org>
3042 iconv: Reject native Solaris iconv.
3043 * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
3044 * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
3046 2009-12-31 Bruno Haible <bruno@clisp.org>
3048 * tests/test-signal.c (main): Remove test of 'SIG'.
3050 2009-12-31 Bruno Haible <bruno@clisp.org>
3052 spawn: Fix incomplete fix.
3053 * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3054 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3055 warnings for GNULIB_POSIXCHECK again.
3056 Reported by Eric Blake.
3058 2009-12-31 Bruno Haible <bruno@clisp.org>
3060 Avoid namespace pollution on glibc systems.
3061 * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
3062 * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
3063 * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
3066 2009-12-31 Bruno Haible <bruno@clisp.org>
3068 * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
3069 (gl_REPLACE_WCHAR_H): Turn into a no-op.
3070 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
3071 * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
3072 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
3073 * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
3074 * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
3076 2009-12-31 Bruno Haible <bruno@clisp.org>
3078 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
3079 gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
3082 2009-12-31 Bruno Haible <bruno@clisp.org>
3084 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
3087 2009-12-31 Bruno Haible <bruno@clisp.org>
3089 spawn: Fix misapplied patch.
3090 * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3091 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3092 warnings for GNULIB_POSIXCHECK.
3094 2009-12-31 Bruno Haible <bruno@clisp.org>
3096 times: Update after sys_times changed.
3097 * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
3098 * modules/times (Files): Add it.
3099 (configure.ac): Invoke gl_FUNC_TIMES.
3101 2009-12-31 Bruno Haible <bruno@clisp.org>
3103 Use AC_C_INLINE where necessary.
3104 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
3105 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3106 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
3107 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
3108 * m4/mbfile.m4 (gl_MBFILE): Likewise.
3109 * m4/mbiter.m4 (gl_MBITER): Likewise.
3110 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3111 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3112 * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
3113 * modules/u64 (configure.ac): Likewise.
3115 2009-12-31 Bruno Haible <bruno@clisp.org>
3117 Use AC_C_INLINE instead of module 'inline' where possible.
3118 * modules/inline (Description): Clarify purpose.
3119 * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
3120 * modules/count-one-bits (Depends-on): Remove inline.
3121 * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
3122 * modules/openat (Depends-on): Remove inline.
3123 * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
3124 instead of depending on module 'inline'.
3125 * modules/filevercmp (Depends-on, configure.ac): Likewise.
3126 * modules/unicase/cased (Depends-on, configure.ac): Likewise.
3127 * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
3128 * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
3129 * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
3130 * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
3131 * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
3132 * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
3133 * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
3134 * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
3135 * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
3136 * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
3137 * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
3138 * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
3139 * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
3140 * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
3141 * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
3142 * modules/unictype/property-alphabetic (Depends-on, configure.ac):
3144 * modules/unictype/property-ascii-hex-digit (Depends-on,
3145 configure.ac): Likewise.
3146 * modules/unictype/property-bidi-arabic-digit (Depends-on,
3147 configure.ac): Likewise.
3148 * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
3149 configure.ac): Likewise.
3150 * modules/unictype/property-bidi-block-separator (Depends-on,
3151 configure.ac): Likewise.
3152 * modules/unictype/property-bidi-boundary-neutral (Depends-on,
3153 configure.ac): Likewise.
3154 * modules/unictype/property-bidi-common-separator (Depends-on,
3155 configure.ac): Likewise.
3156 * modules/unictype/property-bidi-control (Depends-on, configure.ac):
3158 * modules/unictype/property-bidi-embedding-or-override (Depends-on,
3159 configure.ac): Likewise.
3160 * modules/unictype/property-bidi-eur-num-separator (Depends-on,
3161 configure.ac): Likewise.
3162 * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
3163 configure.ac): Likewise.
3164 * modules/unictype/property-bidi-european-digit (Depends-on,
3165 configure.ac): Likewise.
3166 * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
3167 configure.ac): Likewise.
3168 * modules/unictype/property-bidi-left-to-right (Depends-on,
3169 configure.ac): Likewise.
3170 * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
3171 configure.ac): Likewise.
3172 * modules/unictype/property-bidi-other-neutral (Depends-on,
3173 configure.ac): Likewise.
3174 * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
3176 * modules/unictype/property-bidi-segment-separator (Depends-on,
3177 configure.ac): Likewise.
3178 * modules/unictype/property-bidi-whitespace (Depends-on,
3179 configure.ac): Likewise.
3180 * modules/unictype/property-combining (Depends-on, configure.ac):
3182 * modules/unictype/property-composite (Depends-on, configure.ac):
3184 * modules/unictype/property-currency-symbol (Depends-on,
3185 configure.ac): Likewise.
3186 * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
3187 * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
3189 * modules/unictype/property-default-ignorable-code-point (Depends-on,
3190 configure.ac): Likewise.
3191 * modules/unictype/property-deprecated (Depends-on, configure.ac):
3193 * modules/unictype/property-diacritic (Depends-on, configure.ac):
3195 * modules/unictype/property-extender (Depends-on, configure.ac):
3197 * modules/unictype/property-format-control (Depends-on, configure.ac):
3199 * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
3201 * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
3203 * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
3205 * modules/unictype/property-hex-digit (Depends-on, configure.ac):
3207 * modules/unictype/property-hyphen (Depends-on, configure.ac):
3209 * modules/unictype/property-id-continue (Depends-on, configure.ac):
3211 * modules/unictype/property-id-start (Depends-on, configure.ac):
3213 * modules/unictype/property-ideographic (Depends-on, configure.ac):
3215 * modules/unictype/property-ids-binary-operator (Depends-on,
3216 configure.ac): Likewise.
3217 * modules/unictype/property-ids-trinary-operator (Depends-on,
3218 configure.ac): Likewise.
3219 * modules/unictype/property-ignorable-control (Depends-on,
3220 configure.ac): Likewise.
3221 * modules/unictype/property-iso-control (Depends-on, configure.ac):
3223 * modules/unictype/property-join-control (Depends-on, configure.ac):
3225 * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
3227 * modules/unictype/property-line-separator (Depends-on, configure.ac):
3229 * modules/unictype/property-logical-order-exception (Depends-on,
3230 configure.ac): Likewise.
3231 * modules/unictype/property-lowercase (Depends-on, configure.ac):
3233 * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
3234 * modules/unictype/property-non-break (Depends-on, configure.ac):
3236 * modules/unictype/property-not-a-character (Depends-on, configure.ac):
3238 * modules/unictype/property-numeric (Depends-on, configure.ac):
3240 * modules/unictype/property-other-alphabetic (Depends-on,
3241 configure.ac): Likewise.
3242 * modules/unictype/property-other-default-ignorable-code-point
3243 (Depends-on, configure.ac): Likewise.
3244 * modules/unictype/property-other-grapheme-extend (Depends-on,
3245 configure.ac): Likewise.
3246 * modules/unictype/property-other-id-continue (Depends-on,
3247 configure.ac): Likewise.
3248 * modules/unictype/property-other-id-start (Depends-on, configure.ac):
3250 * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
3252 * modules/unictype/property-other-math (Depends-on, configure.ac):
3254 * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
3256 * modules/unictype/property-paired-punctuation (Depends-on,
3257 configure.ac): Likewise.
3258 * modules/unictype/property-paragraph-separator (Depends-on,
3259 configure.ac): Likewise.
3260 * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
3262 * modules/unictype/property-pattern-white-space (Depends-on,
3263 configure.ac): Likewise.
3264 * modules/unictype/property-private-use (Depends-on, configure.ac):
3266 * modules/unictype/property-punctuation (Depends-on, configure.ac):
3268 * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
3270 * modules/unictype/property-radical (Depends-on, configure.ac):
3272 * modules/unictype/property-sentence-terminal (Depends-on,
3273 configure.ac): Likewise.
3274 * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
3276 * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
3277 * modules/unictype/property-terminal-punctuation (Depends-on,
3278 configure.ac): Likewise.
3279 * modules/unictype/property-titlecase (Depends-on, configure.ac):
3281 * modules/unictype/property-unassigned-code-value (Depends-on,
3282 configure.ac): Likewise.
3283 * modules/unictype/property-unified-ideograph (Depends-on,
3284 configure.ac): Likewise.
3285 * modules/unictype/property-uppercase (Depends-on, configure.ac):
3287 * modules/unictype/property-variation-selector (Depends-on,
3288 configure.ac): Likewise.
3289 * modules/unictype/property-white-space (Depends-on, configure.ac):
3291 * modules/unictype/property-xid-continue (Depends-on, configure.ac):
3293 * modules/unictype/property-xid-start (Depends-on, configure.ac):
3295 * modules/unictype/property-zero-width (Depends-on, configure.ac):
3297 * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
3298 * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
3301 2009-12-31 Bruno Haible <bruno@clisp.org>
3303 Remove unnecessary AC_C_INLINE invocation.
3304 * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
3307 2009-12-31 Jim Meyering <meyering@redhat.com>
3309 maint.mk: don't require explicit gpg_key_ID in cfg.mk
3310 * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
3311 With this change, we can all remove the gpg_key_ID = ... definition
3312 from our respective cfg.mk files.
3314 maint.mk: create announcement template in ~/, not in /tmp
3315 * top/maint.mk (emit_upload_commands): Adjust.
3316 (release-prep): Emit into ~/announce-..., not /tmp/announce-...
3317 Remove temporary file, .ci-msg.
3319 2009-12-31 Eric Blake <ebb9@byu.net>
3321 link-warning: always build headers with link warnings
3322 * modules/arpa_inet (Makefile.am): Always build replacement
3324 * modules/ctype (Makefile.am): Likewise.
3325 * modules/dirent (Makefile.am): Likewise.
3326 * modules/inttypes (Makefile.am): Likewise.
3327 * modules/langinfo (Makefile.am): Likewise.
3328 * modules/locale (Makefile.am): Likewise.
3329 * modules/spawn (Makefile.am): Likewise.
3330 * modules/sys_file (Makefile.am): Likewise.
3331 * modules/sys_ioctl (Makefile.am): Likewise.
3332 * modules/sys_select (Makefile.am): Likewise.
3333 * modules/sys_socket (Makefile.am): Likewise.
3334 * modules/sys_times (Makefile.am): Likewise.
3335 * modules/sys_utsname (Makefile.am): Likewise.
3336 * modules/sys_wait (Makefile.am): Likewise.
3337 * modules/wchar (Makefile.am): Likewise.
3338 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
3339 (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
3340 * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
3341 * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
3342 * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
3344 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3345 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
3346 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
3348 * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
3350 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
3351 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
3352 (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
3353 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3354 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3355 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
3356 (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
3357 * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
3358 (gl_WCHAR_H_DEFAULTS): Likewise.
3360 2009-12-31 Eric Blake <ebb9@byu.net>
3362 signal, spawn: use link warnings
3363 * lib/signal.in.h (sigset_t): Make unconditional.
3364 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
3365 (sigpending, sigprocmask, sigaction): Add link warnings.
3366 * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
3367 (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
3368 (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
3369 (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
3370 (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
3371 (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
3372 (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
3373 (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
3374 (posix_spawn_file_actions_destroy)
3375 (posix_spawn_file_actions_addopen)
3376 (posix_spawn_file_actions_addclose)
3377 (posix_spawwn_file_actions_adddup2): Likewise.
3378 * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
3379 * tests/test-signal.c (main): Enhance test.
3381 spawn: improve wrapper support
3382 * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
3383 (gl_SPAWN_H_DEFAULTS): New defaults.
3384 * modules/spawn (Makefile.am): Substitute them.
3385 * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
3386 Only declare if missing or broken.
3388 sys_times, sys_utsname: use include_next
3389 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
3391 (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
3392 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
3393 (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
3394 * modules/sys_times (Depends-on): Add include_next.
3395 (Makefile.am): Substitute additional values.
3396 * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
3397 * lib/sys_times.in.h (includes): Include native header, if
3399 * lib/sys_utsname.in.h (includes): Likewise.
3400 * tests/test-sys_times.c (main): Enhance test.
3402 fdutimensat: revert prior patch
3403 * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
3405 Reported by Bruno Haible.
3407 2009-12-30 Eric Blake <ebb9@byu.net>
3409 sys_wait: drop link-warning dependency
3410 * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
3411 link-warning efforts.
3412 * lib/sys_wait.in.h: Likewise.
3414 fdutimensat: remove bogus dependency
3415 * modules/fdutimensat (Depends-on): Drop inline.
3418 * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
3420 2009-12-30 Bruno Haible <bruno@clisp.org>
3422 Fix compilation error with Solaris cc.
3423 * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
3424 * lib/unicase/u16-is-invariant.c: Likewise.
3425 * lib/unicase/u32-is-invariant.c: Likewise.
3426 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
3428 2009-12-30 Bruno Haible <bruno@clisp.org>
3431 * tests/test-localename.c (test_locale_name_thread): Skip unavailable
3433 Reported by Simon Josefsson <simon@josefsson.org>.
3435 2009-12-30 Bruno Haible <bruno@clisp.org>
3437 Fix compilation error on most platforms.
3438 * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
3439 Reported by Simon Josefsson <simon@josefsson.org>
3440 and Nelson H. F. Beebe <beebe@math.utah.edu>.
3442 2009-12-30 Eric Blake <ebb9@byu.net>
3444 futimens, utimensat: work around ntfs-3g bug
3445 * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
3446 a ctime bug is present, and expand workaround to cover ntfs-3g.
3447 * lib/utimens.c (fdutimens, lutimens): Likewise.
3448 (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
3449 (validate_timespec): Adjust return value.
3450 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
3451 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3452 Reported by ctrn3e8 <ctrn3e8@gmail.com>.
3454 2009-12-29 Eric Blake <ebb9@byu.net>
3456 link-warning: make usage consistent
3457 * modules/ctype (Depends-on): Add link-warning.
3458 (Makefile.am): Update rules accordingly.
3459 * modules/langinfo (Depends-on, Makefile.am): Likewise.
3460 * modules/locale (Depends-on, Makefile.am): Likewise.
3461 * modules/sys_file (Makefile.am): Likewise.
3462 * modules/getopt-posix (Makefile.am): Delete unused link warning
3464 * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
3465 * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
3466 * lib/locale.in.h (GL_LINK_WARNING): Likewise.
3467 * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
3469 stdio: remove unused variables
3470 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
3471 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
3472 * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3474 tests: test more substitute headers
3475 * modules/ctype-tests: New file.
3476 * modules/dirent-tests: Likewise.
3477 * modules/spawn-tests: Likewise.
3478 * modules/sys_file-tests: Likewise.
3479 * modules/sys_ioctl-tests: Likewise.
3480 * modules/sys_wait-tests: Likewise.
3481 * tests/test-ctype.c: Likewise.
3482 * tests/test-dirent.c: Likewise.
3483 * tests/test-spawn.c: Likewise.
3484 * tests/test-sys_file.c: Likewise.
3485 * tests/test-sys_ioctl.c: Likewise.
3486 * tests/test-sys_wait.c: Likewise.
3487 * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
3488 * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
3489 whether or not flock is in use.
3491 tests: remove License section from module
3492 * modules/arpa_inet-tests: Remove unneeded section.
3493 * modules/byteswap-tests: Likewise.
3494 * modules/ceilf-tests: Likewise.
3495 * modules/ceill-tests: Likewise.
3496 * modules/crypto/des-tests: Likewise.
3497 * modules/crypto/gc-arcfour-tests: Likewise.
3498 * modules/crypto/gc-arctwo-tests: Likewise.
3499 * modules/crypto/gc-des-tests: Likewise.
3500 * modules/crypto/gc-hmac-md5-tests: Likewise.
3501 * modules/crypto/gc-hmac-sha1-tests: Likewise.
3502 * modules/crypto/gc-md2-tests: Likewise.
3503 * modules/crypto/gc-md4-tests: Likewise.
3504 * modules/crypto/gc-md5-tests: Likewise.
3505 * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
3506 * modules/crypto/gc-rijndael-tests: Likewise.
3507 * modules/crypto/gc-sha1-tests: Likewise.
3508 * modules/crypto/gc-tests: Likewise.
3509 * modules/crypto/md2-tests: Likewise.
3510 * modules/crypto/md4-tests: Likewise.
3511 * modules/fcntl-h-tests: Likewise.
3512 * modules/floorf-tests: Likewise.
3513 * modules/floorl-tests: Likewise.
3514 * modules/frexp-nolibm-tests: Likewise.
3515 * modules/frexp-tests: Likewise.
3516 * modules/frexpl-nolibm-tests: Likewise.
3517 * modules/frexpl-tests: Likewise.
3518 * modules/getaddrinfo-tests: Likewise.
3519 * modules/inttypes-tests: Likewise.
3520 * modules/isfinite-tests: Likewise.
3521 * modules/isinf-tests: Likewise.
3522 * modules/ldexpl-tests: Likewise.
3523 * modules/locale-tests: Likewise.
3524 * modules/math-tests: Likewise.
3525 * modules/netdb-tests: Likewise.
3526 * modules/netinet_in-tests: Likewise.
3527 * modules/printf-frexp-tests: Likewise.
3528 * modules/printf-frexpl-tests: Likewise.
3529 * modules/priv-set-tests: Likewise.
3530 * modules/random_r-tests: Likewise.
3531 * modules/round-tests: Likewise.
3532 * modules/roundf-tests: Likewise.
3533 * modules/roundl-tests: Likewise.
3534 * modules/search-tests: Likewise.
3535 * modules/select-tests: Likewise.
3536 * modules/signal-tests: Likewise.
3537 * modules/stdbool-tests: Likewise.
3538 * modules/stddef-tests: Likewise.
3539 * modules/stdint-tests: Likewise.
3540 * modules/stdio-tests: Likewise.
3541 * modules/stdlib-tests: Likewise.
3542 * modules/string-tests: Likewise.
3543 * modules/strings-tests: Likewise.
3544 * modules/sys_select-tests: Likewise.
3545 * modules/sys_socket-tests: Likewise.
3546 * modules/sys_stat-tests: Likewise.
3547 * modules/sys_time-tests: Likewise.
3548 * modules/sys_utsname-tests: Likewise.
3549 * modules/sysexits-tests: Likewise.
3550 * modules/time-tests: Likewise.
3551 * modules/trunc-tests: Likewise.
3552 * modules/truncf-tests: Likewise.
3553 * modules/truncl-tests: Likewise.
3554 * modules/tsearch-tests: Likewise.
3555 * modules/unistd-tests: Likewise.
3556 * modules/wchar-tests: Likewise.
3557 * modules/wctype-tests: Likewise.
3559 tests: fix license on several tests
3560 * tests/test-des.c: Update to GPLv3+.
3561 * tests/test-flock.c: Likewise.
3562 * tests/test-fsync.c: Likewise.
3563 * tests/test-futimens.h: Likewise.
3564 * tests/test-gc-arcfour.c: Likewise.
3565 * tests/test-gc-arctwo.c: Likewise.
3566 * tests/test-gc-des.c: Likewise.
3567 * tests/test-gc-hmac-md5.c: Likewise.
3568 * tests/test-gc-hmac-sha1.c: Likewise.
3569 * tests/test-gc-md2.c: Likewise.
3570 * tests/test-gc-md4.c: Likewise.
3571 * tests/test-gc-md5.c: Likewise.
3572 * tests/test-gc-pbkdf2-sha1.c: Likewise.
3573 * tests/test-gc-rijndael.c: Likewise.
3574 * tests/test-gc-sha1.c: Likewise.
3575 * tests/test-gc.c: Likewise.
3576 * tests/test-getcwd.c: Likewise.
3577 * tests/test-link.c: Likewise.
3578 * tests/test-link.h: Likewise.
3579 * tests/test-lutimens.h: Likewise.
3580 * tests/test-md2.c: Likewise.
3581 * tests/test-md4.c: Likewise.
3582 * tests/test-mkdir.h: Likewise.
3583 * tests/test-rename.c: Likewise.
3584 * tests/test-rename.h: Likewise.
3585 * tests/test-safe-alloc.c: Likewise.
3586 * tests/test-utimens-common.h: Likewise.
3587 * tests/test-utimens.h: Likewise.
3589 maint: sync license texts
3590 * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
3591 * doc/gpl-3.0.texi: Revert copyright year update.
3592 * doc/lgpl-3.0.texi: Likewise.
3594 2009-12-29 Jim Meyering <meyering@redhat.com>
3596 update nearly all FSF copyright year lists to include 2009
3597 The files named by the following are exempted:
3598 grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
3599 test -f "$dst" && { echo "$dst"; continue; }
3600 test -d "$dst" || continue
3601 echo "$dst"/$(basename "$src")
3603 git ls-files tests/unictype >> exempt
3604 In the remaining files, convert to all-interval notation if
3605 - there is already at least one year interval like 2000-2003
3606 - the file is maintained by me
3607 - the file is in lib/uni*/, where that style already prevails
3608 Otherwise, use update-copyright's default.
3610 2009-12-29 Simon Josefsson <simon@josefsson.org>
3611 and Eric Blake <ebb9@byu.net>
3613 tests: don't require debug system() to pass
3614 * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
3615 * tests/test-rmdir.h (test_rmdir_func): Likewise.
3616 * tests/test-unlink.h (test_unlink_func): Likewise.
3617 * tests/test-fstatat.c (main): ...into callers.
3618 * tests/test-lstat.c (main): Likewise.
3619 * tests/test-rmdir.c (main): Likewise.
3620 * tests/test-unlink.c (main): Likewise.
3621 * tests/test-unlinkat.c (main): Likewise.
3622 * tests/test-areadlink-with-size.c (main): Don't require a
3623 debug-only system call to pass, aiding cross-testing to mingw.
3624 * tests/test-areadlink.c (main): Likewise.
3625 * tests/test-areadlinkat-with-size.c (main): Likewise.
3626 * tests/test-areadlinkat.c (main): Likewise.
3627 * tests/test-canonicalize-lgpl.c (main): Likewise.
3628 * tests/test-canonicalize.c (main): Likewise.
3629 * tests/test-chown.c (main): Likewise.
3630 * tests/test-fchownat.c (main): Likewise.
3631 * tests/test-lchown.c (main): Likewise.
3632 * tests/test-fdutimensat.c (main): Likewise.
3633 * tests/test-futimens.c (main): Likewise.
3634 * tests/test-link.c (main): Likewise.
3635 * tests/test-linkat.c (main): Likewise.
3636 * tests/test-mkdir.c (main): Likewise.
3637 * tests/test-mkdirat.c (main): Likewise.
3638 * tests/test-mkfifo.c (main): Likewise.
3639 * tests/test-mkfifoat.c (main): Likewise.
3640 * tests/test-mknod.c (main): Likewise.
3641 * tests/test-readlink.c (main): Likewise.
3642 * tests/test-remove.c (main): Likewise.
3643 * tests/test-rename.c (main): Likewise.
3644 * tests/test-renameat.c (main): Likewise.
3645 * tests/test-symlink.c (main): Likewise.
3646 * tests/test-symlinkat.c (main): Likewise.
3647 * tests/test-utimens.c (main): Likewise.
3648 * tests/test-utimensat.c (main): Likewise.
3650 2009-12-29 Simon Josefsson <simon@josefsson.org>
3652 * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
3653 on $(UNUSED_PARAMETER_H) to avoid build failure.
3655 2009-12-28 Jim Meyering <meyering@redhat.com>
3657 update-copyright: you may specify a max. line length other than 72
3658 * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
3660 maint: use consistent FSF copyright line syntax
3661 * lib/posixtm.c: Add missing comma in FSF copyright line.
3662 * lib/posixtm.h: Likewise.
3663 * lib/getugroups.c: Add missing ", Inc.".
3665 pmccabe2html: emit consistent FSF copyright; remove trailing blanks
3666 * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
3667 FSF copyright line. Remove trailing blanks.
3669 2009-12-28 Eric Blake <ebb9@byu.net>
3671 test-dup2: reduce dependencies
3672 * modules/cloexec (Configure.ac): Set witness.
3673 * modules/dup2-tests (Depends-on): Drop cloexec.
3674 * tests/test-dup2.c (main): Skip portion of test if cloexec module
3676 Suggested by Bruno Haible.
3678 2009-12-26 Bruno Haible <bruno@clisp.org>
3680 Remove an unneeded dependency.
3681 * modules/fseterr (Depends-on): Remove dup2.
3683 2009-12-26 Eric Blake <ebb9@byu.net>
3685 tests: use macros.h in more places
3686 * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
3687 (ASSERT_STREAM): Provide default of stderr.
3688 * tests/test-dirent-safer.c: Include macros.h, using alternate
3689 stream for assertions.
3690 * tests/test-dup-safer.c: Likewise.
3691 * tests/test-freopen-safer.c: Likewise.
3692 * tests/test-getopt.c: Likewise.
3693 * tests/test-openat-safer.c: Likewise.
3694 * tests/test-pipe.c: Likewise.
3695 * tests/test-popen-safer.c: Likewise.
3696 * modules/dirent-safer-tests (Files): Include macros.h.
3697 * modules/unistd-safer-tests (Files): Likewise.
3698 * modules/freopen-safer-tests (Files): Likewise.
3699 * modules/getopt-posix-tests (Files): Likewise.
3700 * modules/openat-safer-tests (Files): Likewise.
3701 * modules/pipe-tests (Files): Likewise.
3703 2009-12-26 Bruno Haible <bruno@clisp.org>
3705 javacomp: Portability fix.
3706 * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
3707 that it also works on Solaris.
3709 2009-12-26 Bruno Haible <bruno@clisp.org>
3711 localename: Fix storage allocation of gl_locale_name_thread's result.
3712 * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
3713 HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
3714 all platforms that have 'uselocale'.
3715 (gl_locale_name_thread_unsafe): New function, extracted from
3716 gl_locale_name_thread.
3717 (gl_locale_name_thread): Call struniq on all platforms that have
3719 * tests/test-localename.c (test_locale_name_thread): Check that the
3720 resulting strings are permanently allocated.
3721 * modules/localename-tests (Depends-on): Add strdup.
3723 2009-12-26 Bruno Haible <bruno@clisp.org>
3725 * tests/test-localename.c (categories): Fill in the strings.
3727 2009-12-26 Jim Meyering <meyering@redhat.com>
3729 isdir: complete the removal of m4/isdir.m4
3730 * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
3732 isdir: clean up, since at least grep still uses it
3733 * lib/isdir.c: Include "isdir.h".
3734 (S_ISDIR): Remove now-unneeded definition.
3735 * modules/isdir (Files): Add lib/isdir.h.
3736 * lib/isdir.h: New file, with declaration.
3737 * m4/isdir.m4: Remove file -- unneeded.
3739 2009-12-25 Bruno Haible <bruno@clisp.org>
3741 selinux-h: Make generated .h files standalone.
3742 * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
3743 definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
3744 * lib/se-selinux.in.h: Likewise.
3745 * modules/selinux-h (Depends-on): Add unused-parameter.
3746 (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
3747 selinux/selinux.h and selinux/context.h.
3748 Suggested by Eric Blake.
3750 2009-12-25 Bruno Haible <bruno@clisp.org>
3752 Move gl_FCNTL_O_FLAGS to a separate .m4 file.
3753 * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
3754 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
3755 * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
3756 * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
3758 2009-12-24 Bruno Haible <bruno@clisp.org>
3760 openat: Fix warning.
3761 * lib/openat-proc.c: Include <unistd.h>.
3763 2009-12-24 Bruno Haible <bruno@clisp.org>
3765 New module 'unused-parameter'.
3766 * build-aux/unused-parameter.h: New file, extracted from earlier
3768 * modules/unused-parameter: New file.
3769 * lib/unistr.h: Include unused-parameter.h.
3770 (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
3772 * modules/unistr/base (Depends-on): Add unused-parameter.
3774 2009-12-24 Bruno Haible <bruno@clisp.org>
3776 Add missing dependencies to 'extensions' module.
3777 * m4/extensions.m4: Add comment.
3778 * modules/accept4 (Depends-on): Add extensions.
3779 * modules/dup3 (Depends-on): Likewise.
3780 * modules/fcntl (Depends-on): Likewise.
3781 * modules/futimens (Depends-on): Likewise.
3782 * modules/mknod (Depends-on): Likewise.
3783 * modules/pipe2 (Depends-on): Likewise.
3784 * modules/stat-time (Depends-on): Likewise.
3785 * modules/strcasestr-simple (Depends-on): Likewise.
3786 * modules/strsignal (Depends-on): Likewise.
3787 * modules/utimensat (Depends-on): Likewise.
3788 * modules/localcharset (Depends-on): Likewise. Needed because of
3790 * modules/wcrtomb (Depends-on): Likewise. Needed because of
3792 * modules/wcsnrtombs (Depends-on): Likewise.
3793 * modules/wcsrtombs (Depends-on): Likewise.
3795 2009-12-24 Bruno Haible <bruno@clisp.org>
3797 binary-io: Avoid gcc warning due to SET_BINARY.
3798 * lib/binary-io.h (SET_BINARY): Cast the result to void.
3799 Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
3801 2009-12-24 Bruno Haible <bruno@clisp.org>
3803 Avoid future namespace pollution on glibc systems.
3804 * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
3805 * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
3806 * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
3809 2009-12-24 Bruno Haible <bruno@clisp.org>
3811 Refactor common macros used in tests.
3812 * tests/macros.h: New file.
3813 * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
3814 and/or <stdlib.h>, if appropriate.
3815 (ASSERT, SIZEOF): Remove macros.
3816 * tests/test-areadlink-with-size.c: Likewise.
3817 * tests/test-areadlinkat.c: Likewise.
3818 * tests/test-areadlinkat-with-size.c: Likewise.
3819 * tests/test-argmatch.c: Likewise.
3820 * tests/test-argv-iter.c: Likewise.
3821 * tests/test-array-mergesort.c: Likewise.
3822 * tests/test-array_list.c: Likewise.
3823 * tests/test-array_oset.c: Likewise.
3824 * tests/test-avltree_list.c: Likewise.
3825 * tests/test-avltree_oset.c: Likewise.
3826 * tests/test-avltreehash_list.c: Likewise.
3827 * tests/test-base64.c: Likewise.
3828 * tests/test-binary-io.c: Likewise.
3829 * tests/test-bitrotate.c: Likewise.
3830 * tests/test-btowc.c: Likewise.
3831 * tests/test-byteswap.c: Likewise.
3832 * tests/test-c-ctype.c: Likewise.
3833 * tests/test-c-stack.c: Likewise.
3834 * tests/test-c-strcasecmp.c: Likewise.
3835 * tests/test-c-strcasestr.c: Likewise.
3836 * tests/test-c-strncasecmp.c: Likewise.
3837 * tests/test-c-strstr.c: Likewise.
3838 * tests/test-canonicalize-lgpl.c: Likewise.
3839 * tests/test-canonicalize.c: Likewise.
3840 * tests/test-carray_list.c: Likewise.
3841 * tests/test-ceilf1.c: Likewise.
3842 * tests/test-ceilf2.c: Likewise.
3843 * tests/test-ceill.c: Likewise.
3844 * tests/test-chown.c: Likewise.
3845 * tests/test-cloexec.c: Likewise.
3846 * tests/test-copy-acl.c: Likewise.
3847 * tests/test-copy-file.c: Likewise.
3848 * tests/test-count-one-bits.c: Likewise.
3849 * tests/test-dprintf-posix.c: Likewise.
3850 * tests/test-dup2.c: Likewise.
3851 * tests/test-dup3.c: Likewise.
3852 * tests/test-duplocale.c: Likewise.
3853 * tests/test-fbufmode.c: Likewise.
3854 * tests/test-fchdir.c: Likewise.
3855 * tests/test-fchownat.c: Likewise.
3856 * tests/test-fcntl-safer.c: Likewise.
3857 * tests/test-fcntl.c: Likewise.
3858 * tests/test-fdopendir.c: Likewise.
3859 * tests/test-fdutimensat.c: Likewise.
3860 * tests/test-fflush2.c: Likewise.
3861 * tests/test-file-has-acl.c: Likewise.
3862 * tests/test-filevercmp.c: Likewise.
3863 * tests/test-flock.c: Likewise.
3864 * tests/test-floorf1.c: Likewise.
3865 * tests/test-floorf2.c: Likewise.
3866 * tests/test-floorl.c: Likewise.
3867 * tests/test-fnmatch.c: Likewise.
3868 * tests/test-fopen.h: Likewise.
3869 * tests/test-fpending.c: Likewise.
3870 * tests/test-fprintf-posix.c: Likewise.
3871 * tests/test-fpurge.c: Likewise.
3872 * tests/test-freadable.c: Likewise.
3873 * tests/test-freadahead.c: Likewise.
3874 * tests/test-freading.c: Likewise.
3875 * tests/test-freadptr.c: Likewise.
3876 * tests/test-freadptr2.c: Likewise.
3877 * tests/test-freadseek.c: Likewise.
3878 * tests/test-freopen.c: Likewise.
3879 * tests/test-frexp.c: Likewise.
3880 * tests/test-frexpl.c: Likewise.
3881 * tests/test-fseek.c: Likewise.
3882 * tests/test-fseeko.c: Likewise.
3883 * tests/test-fstatat.c: Likewise.
3884 * tests/test-fstrcmp.c: Likewise.
3885 * tests/test-fsync.c: Likewise.
3886 * tests/test-ftell.c: Likewise.
3887 * tests/test-ftello.c: Likewise.
3888 * tests/test-func.c: Likewise.
3889 * tests/test-futimens.c: Likewise.
3890 * tests/test-fwritable.c: Likewise.
3891 * tests/test-fwriting.c: Likewise.
3892 * tests/test-getcwd.c: Likewise.
3893 * tests/test-getdate.c: Likewise.
3894 * tests/test-getdelim.c: Likewise.
3895 * tests/test-getdtablesize.c: Likewise.
3896 * tests/test-getgroups.c: Likewise.
3897 * tests/test-getline.c: Likewise.
3898 * tests/test-getndelim2.c: Likewise.
3899 * tests/test-glob.c: Likewise.
3900 * tests/test-hash.c: Likewise.
3901 * tests/test-i-ring.c: Likewise.
3902 * tests/test-iconv-utf.c: Likewise.
3903 * tests/test-iconv.c: Likewise.
3904 * tests/test-idpriv-drop.c: Likewise.
3905 * tests/test-idpriv-droptemp.c: Likewise.
3906 * tests/test-inet_ntop.c: Likewise.
3907 * tests/test-inet_pton.c: Likewise.
3908 * tests/test-isblank.c: Likewise.
3909 * tests/test-isfinite.c: Likewise.
3910 * tests/test-isinf.c: Likewise.
3911 * tests/test-isnan.c: Likewise.
3912 * tests/test-isnand.h: Likewise.
3913 * tests/test-isnanf.h: Likewise.
3914 * tests/test-isnanl.h: Likewise.
3915 * tests/test-lchown.c: Likewise.
3916 * tests/test-ldexpl.c: Likewise.
3917 * tests/test-link.c: Likewise.
3918 * tests/test-linkat.c: Likewise.
3919 * tests/test-linked_list.c: Likewise.
3920 * tests/test-linkedhash_list.c: Likewise.
3921 * tests/test-localename.c: Likewise.
3922 * tests/test-lseek.c: Likewise.
3923 * tests/test-lstat.c: Likewise.
3924 * tests/test-mbmemcasecmp.c: Likewise.
3925 * tests/test-mbmemcasecoll.c: Likewise.
3926 * tests/test-mbrtowc.c: Likewise.
3927 * tests/test-mbscasecmp.c: Likewise.
3928 * tests/test-mbscasestr1.c: Likewise.
3929 * tests/test-mbscasestr2.c: Likewise.
3930 * tests/test-mbscasestr3.c: Likewise.
3931 * tests/test-mbscasestr4.c: Likewise.
3932 * tests/test-mbschr.c: Likewise.
3933 * tests/test-mbscspn.c: Likewise.
3934 * tests/test-mbsinit.c: Likewise.
3935 * tests/test-mbsncasecmp.c: Likewise.
3936 * tests/test-mbsnrtowcs.c: Likewise.
3937 * tests/test-mbspbrk.c: Likewise.
3938 * tests/test-mbspcasecmp.c: Likewise.
3939 * tests/test-mbsrchr.c: Likewise.
3940 * tests/test-mbsrtowcs.c: Likewise.
3941 * tests/test-mbsspn.c: Likewise.
3942 * tests/test-mbsstr1.c: Likewise.
3943 * tests/test-mbsstr2.c: Likewise.
3944 * tests/test-mbsstr3.c: Likewise.
3945 * tests/test-memchr.c: Likewise.
3946 * tests/test-memchr2.c: Likewise.
3947 * tests/test-memcmp.c: Likewise.
3948 * tests/test-memmem.c: Likewise.
3949 * tests/test-memrchr.c: Likewise.
3950 * tests/test-mkdir.c: Likewise.
3951 * tests/test-mkdirat.c: Likewise.
3952 * tests/test-mkfifo.c: Likewise.
3953 * tests/test-mkfifoat.c: Likewise.
3954 * tests/test-mknod.c: Likewise.
3955 * tests/test-nanosleep.c: Likewise.
3956 * tests/test-nl_langinfo.c: Likewise.
3957 * tests/test-obstack-printf.c: Likewise.
3958 * tests/test-open.c: Likewise.
3959 * tests/test-openat.c: Likewise.
3960 * tests/test-pipe-filter-gi1.c: Likewise.
3961 * tests/test-pipe-filter-gi2-main.c: Likewise.
3962 * tests/test-pipe-filter-ii1.c: Likewise.
3963 * tests/test-pipe-filter-ii2-main.c: Likewise.
3964 * tests/test-pipe2.c: Likewise.
3965 * tests/test-popen.h: Likewise.
3966 * tests/test-posixtm.c: Likewise.
3967 * tests/test-pread.c: Likewise.
3968 * tests/test-printf-frexp.c: Likewise.
3969 * tests/test-printf-frexpl.c: Likewise.
3970 * tests/test-printf-posix.c: Likewise.
3971 * tests/test-priv-set.c: Likewise.
3972 * tests/test-quotearg.c: Likewise.
3973 * tests/test-random_r.c: Likewise.
3974 * tests/test-rawmemchr.c: Likewise.
3975 * tests/test-rbtree_list.c: Likewise.
3976 * tests/test-rbtree_oset.c: Likewise.
3977 * tests/test-rbtreehash_list.c: Likewise.
3978 * tests/test-readlink.c: Likewise.
3979 * tests/test-remove.c: Likewise.
3980 * tests/test-rename.c: Likewise.
3981 * tests/test-renameat.c: Likewise.
3982 * tests/test-rmdir.c: Likewise.
3983 * tests/test-round1.c: Likewise.
3984 * tests/test-roundf1.c: Likewise.
3985 * tests/test-roundl.c: Likewise.
3986 * tests/test-safe-alloc.c: Likewise.
3987 * tests/test-sameacls.c: Likewise.
3988 * tests/test-set-mode-acl.c: Likewise.
3989 * tests/test-setenv.c: Likewise.
3990 * tests/test-sigaction.c: Likewise.
3991 * tests/test-signbit.c: Likewise.
3992 * tests/test-sleep.c: Likewise.
3993 * tests/test-snprintf-posix.c: Likewise.
3994 * tests/test-snprintf.c: Likewise.
3995 * tests/test-sprintf-posix.c: Likewise.
3996 * tests/test-stat-time.c: Likewise.
3997 * tests/test-stat.c: Likewise.
3998 * tests/test-strcasestr.c: Likewise.
3999 * tests/test-strchrnul.c: Likewise.
4000 * tests/test-strerror.c: Likewise.
4001 * tests/test-striconv.c: Likewise.
4002 * tests/test-striconveh.c: Likewise.
4003 * tests/test-striconveha.c: Likewise.
4004 * tests/test-strsignal.c: Likewise.
4005 * tests/test-strstr.c: Likewise.
4006 * tests/test-strtod.c: Likewise.
4007 * tests/test-strverscmp.c: Likewise.
4008 * tests/test-symlink.c: Likewise.
4009 * tests/test-symlinkat.c: Likewise.
4010 * tests/test-trunc1.c: Likewise.
4011 * tests/test-trunc2.c: Likewise.
4012 * tests/test-truncf1.c: Likewise.
4013 * tests/test-truncf2.c: Likewise.
4014 * tests/test-truncl.c: Likewise.
4015 * tests/test-uname.c: Likewise.
4016 * tests/test-unlink.c: Likewise.
4017 * tests/test-unlinkat.c: Likewise.
4018 * tests/test-unsetenv.c: Likewise.
4019 * tests/test-usleep.c: Likewise.
4020 * tests/test-utimens.c: Likewise.
4021 * tests/test-utimensat.c: Likewise.
4022 * tests/test-vasnprintf-posix.c: Likewise.
4023 * tests/test-vasnprintf-posix2.c: Likewise.
4024 * tests/test-vasnprintf.c: Likewise.
4025 * tests/test-vasprintf-posix.c: Likewise.
4026 * tests/test-vasprintf.c: Likewise.
4027 * tests/test-vdprintf-posix.c: Likewise.
4028 * tests/test-vfprintf-posix.c: Likewise.
4029 * tests/test-vprintf-posix.c: Likewise.
4030 * tests/test-vsnprintf-posix.c: Likewise.
4031 * tests/test-vsnprintf.c: Likewise.
4032 * tests/test-vsprintf-posix.c: Likewise.
4033 * tests/test-wcrtomb.c: Likewise.
4034 * tests/test-wcsnrtombs.c: Likewise.
4035 * tests/test-wcsrtombs.c: Likewise.
4036 * tests/test-wctype.c: Likewise.
4037 * tests/test-wcwidth.c: Likewise.
4038 * tests/test-xfprintf-posix.c: Likewise.
4039 * tests/test-xmemdup0.c: Likewise.
4040 * tests/test-xprintf-posix.c: Likewise.
4041 * tests/test-xvasprintf.c: Likewise.
4042 * tests/unicase/test-locale-language.c: Likewise.
4043 * tests/unicase/test-mapping-part1.h: Likewise.
4044 * tests/unicase/test-predicate-part1.h: Likewise.
4045 * tests/unicase/test-u8-casecmp.c: Likewise.
4046 * tests/unicase/test-u8-casecoll.c: Likewise.
4047 * tests/unicase/test-u8-casefold.c: Likewise.
4048 * tests/unicase/test-u8-is-cased.c: Likewise.
4049 * tests/unicase/test-u8-is-casefolded.c: Likewise.
4050 * tests/unicase/test-u8-is-lowercase.c: Likewise.
4051 * tests/unicase/test-u8-is-titlecase.c: Likewise.
4052 * tests/unicase/test-u8-is-uppercase.c: Likewise.
4053 * tests/unicase/test-u8-tolower.c: Likewise.
4054 * tests/unicase/test-u8-totitle.c: Likewise.
4055 * tests/unicase/test-u8-toupper.c: Likewise.
4056 * tests/unicase/test-u16-casecmp.c: Likewise.
4057 * tests/unicase/test-u16-casecoll.c: Likewise.
4058 * tests/unicase/test-u16-casefold.c: Likewise.
4059 * tests/unicase/test-u16-is-cased.c: Likewise.
4060 * tests/unicase/test-u16-is-casefolded.c: Likewise.
4061 * tests/unicase/test-u16-is-lowercase.c: Likewise.
4062 * tests/unicase/test-u16-is-titlecase.c: Likewise.
4063 * tests/unicase/test-u16-is-uppercase.c: Likewise.
4064 * tests/unicase/test-u16-tolower.c: Likewise.
4065 * tests/unicase/test-u16-totitle.c: Likewise.
4066 * tests/unicase/test-u16-toupper.c: Likewise.
4067 * tests/unicase/test-u32-casecmp.c: Likewise.
4068 * tests/unicase/test-u32-casecoll.c: Likewise.
4069 * tests/unicase/test-u32-casefold.c: Likewise.
4070 * tests/unicase/test-u32-is-cased.c: Likewise.
4071 * tests/unicase/test-u32-is-casefolded.c: Likewise.
4072 * tests/unicase/test-u32-is-lowercase.c: Likewise.
4073 * tests/unicase/test-u32-is-titlecase.c: Likewise.
4074 * tests/unicase/test-u32-is-uppercase.c: Likewise.
4075 * tests/unicase/test-u32-tolower.c: Likewise.
4076 * tests/unicase/test-u32-totitle.c: Likewise.
4077 * tests/unicase/test-u32-toupper.c: Likewise.
4078 * tests/unicase/test-ulc-casecmp.c: Likewise.
4079 * tests/unicase/test-ulc-casecoll.c: Likewise.
4080 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
4081 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
4082 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
4083 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
4084 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
4085 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
4086 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
4087 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
4088 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
4089 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
4090 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
4091 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
4092 * tests/unictype/test-bidi_byname.c: Likewise.
4093 * tests/unictype/test-bidi_name.c: Likewise.
4094 * tests/unictype/test-bidi_of.c: Likewise.
4095 * tests/unictype/test-bidi_test.c: Likewise.
4096 * tests/unictype/test-block_list.c: Likewise.
4097 * tests/unictype/test-block_of.c: Likewise.
4098 * tests/unictype/test-block_test.c: Likewise.
4099 * tests/unictype/test-categ_and.c: Likewise.
4100 * tests/unictype/test-categ_and_not.c: Likewise.
4101 * tests/unictype/test-categ_byname.c: Likewise.
4102 * tests/unictype/test-categ_name.c: Likewise.
4103 * tests/unictype/test-categ_none.c: Likewise.
4104 * tests/unictype/test-categ_of.c: Likewise.
4105 * tests/unictype/test-categ_or.c: Likewise.
4106 * tests/unictype/test-categ_test_withtable.c: Likewise.
4107 * tests/unictype/test-combining.c: Likewise.
4108 * tests/unictype/test-decdigit.c: Likewise.
4109 * tests/unictype/test-digit.c: Likewise.
4110 * tests/unictype/test-mirror.c: Likewise.
4111 * tests/unictype/test-numeric.c: Likewise.
4112 * tests/unictype/test-pr_byname.c: Likewise.
4113 * tests/unictype/test-pr_test.c: Likewise.
4114 * tests/unictype/test-predicate-part1.h: Likewise.
4115 * tests/unictype/test-scripts.c: Likewise.
4116 * tests/unictype/test-sy_c_ident.c: Likewise.
4117 * tests/unictype/test-sy_java_ident.c: Likewise.
4118 * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
4119 * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
4120 * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
4121 * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
4122 * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
4123 * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
4124 * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
4125 * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
4126 * tests/uninorm/test-canonical-decomposition.c: Likewise.
4127 * tests/uninorm/test-compat-decomposition.c: Likewise.
4128 * tests/uninorm/test-composition.c: Likewise.
4129 * tests/uninorm/test-decomposing-form.c: Likewise.
4130 * tests/uninorm/test-decomposition.c: Likewise.
4131 * tests/uninorm/test-u8-nfc.c: Likewise.
4132 * tests/uninorm/test-u8-nfd.c: Likewise.
4133 * tests/uninorm/test-u8-nfkc.c: Likewise.
4134 * tests/uninorm/test-u8-nfkd.c: Likewise.
4135 * tests/uninorm/test-u8-normcmp.c: Likewise.
4136 * tests/uninorm/test-u8-normcoll.c: Likewise.
4137 * tests/uninorm/test-u16-nfc.c: Likewise.
4138 * tests/uninorm/test-u16-nfd.c: Likewise.
4139 * tests/uninorm/test-u16-nfkc.c: Likewise.
4140 * tests/uninorm/test-u16-nfkd.c: Likewise.
4141 * tests/uninorm/test-u16-normcmp.c: Likewise.
4142 * tests/uninorm/test-u16-normcoll.c: Likewise.
4143 * tests/uninorm/test-u32-nfc.c: Likewise.
4144 * tests/uninorm/test-u32-nfd.c: Likewise.
4145 * tests/uninorm/test-u32-nfkc.c: Likewise.
4146 * tests/uninorm/test-u32-nfkd.c: Likewise.
4147 * tests/uninorm/test-u32-normalize-big.c: Likewise.
4148 * tests/uninorm/test-u32-normcmp.c: Likewise.
4149 * tests/uninorm/test-u32-normcoll.c: Likewise.
4150 * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
4151 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
4152 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
4153 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
4154 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
4155 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
4156 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
4157 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
4158 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
4159 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
4160 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
4161 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
4162 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
4163 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
4164 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
4165 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
4166 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
4167 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
4168 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
4169 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
4170 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
4171 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
4172 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
4173 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
4174 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
4175 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
4176 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
4177 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
4178 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
4179 * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
4180 * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
4181 * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
4182 * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
4183 * tests/uniwidth/test-u8-strwidth.c: Likewise.
4184 * tests/uniwidth/test-u8-width.c: Likewise.
4185 * tests/uniwidth/test-u16-strwidth.c: Likewise.
4186 * tests/uniwidth/test-u16-width.c: Likewise.
4187 * tests/uniwidth/test-u32-strwidth.c: Likewise.
4188 * tests/uniwidth/test-u32-width.c: Likewise.
4189 * tests/uniwidth/test-uc_width.c: Likewise.
4190 * tests/uniwidth/test-uc_width2.c: Likewise.
4191 * modules/acl-tests (Files): Add tests/macros.h.
4192 * modules/areadlink-tests (Files): Likewise.
4193 * modules/areadlink-with-size-tests (Files): Likewise.
4194 * modules/areadlinkat-tests (Files): Likewise.
4195 * modules/areadlinkat-with-size-tests (Files): Likewise.
4196 * modules/argmatch-tests (Files): Likewise.
4197 * modules/argv-iter-tests (Files): Likewise.
4198 * modules/array-list-tests (Files): Likewise.
4199 * modules/array-mergesort-tests (Files): Likewise.
4200 * modules/array-oset-tests (Files): Likewise.
4201 * modules/avltree-list-tests (Files): Likewise.
4202 * modules/avltree-oset-tests (Files): Likewise.
4203 * modules/avltreehash-list-tests (Files): Likewise.
4204 * modules/base64-tests (Files): Likewise.
4205 * modules/binary-io-tests (Files): Likewise.
4206 * modules/bitrotate-tests (Files): Likewise.
4207 * modules/btowc-tests (Files): Likewise.
4208 * modules/byteswap-tests (Files): Likewise.
4209 * modules/c-ctype-tests (Files): Likewise.
4210 * modules/c-stack-tests (Files): Likewise.
4211 * modules/c-strcase-tests (Files): Likewise.
4212 * modules/c-strcasestr-tests (Files): Likewise.
4213 * modules/c-strstr-tests (Files): Likewise.
4214 * modules/canonicalize-lgpl-tests (Files): Likewise.
4215 * modules/canonicalize-tests (Files): Likewise.
4216 * modules/carray-list-tests (Files): Likewise.
4217 * modules/ceilf-tests (Files): Likewise.
4218 * modules/ceill-tests (Files): Likewise.
4219 * modules/chown-tests (Files): Likewise.
4220 * modules/cloexec-tests (Files): Likewise.
4221 * modules/copy-file-tests (Files): Likewise.
4222 * modules/count-one-bits-tests (Files): Likewise.
4223 * modules/dprintf-posix-tests (Files): Likewise.
4224 * modules/dup2-tests (Files): Likewise.
4225 * modules/dup3-tests (Files): Likewise.
4226 * modules/duplocale-tests (Files): Likewise.
4227 * modules/fbufmode-tests (Files): Likewise.
4228 * modules/fchdir-tests (Files): Likewise.
4229 * modules/fcntl-safer-tests (Files): Likewise.
4230 * modules/fcntl-tests (Files): Likewise.
4231 * modules/fdopendir-tests (Files): Likewise.
4232 * modules/fdutimensat-tests (Files): Likewise.
4233 * modules/fflush-tests (Files): Likewise.
4234 * modules/filevercmp-tests (Files): Likewise.
4235 * modules/flock-tests (Files): Likewise.
4236 * modules/floorf-tests (Files): Likewise.
4237 * modules/floorl-tests (Files): Likewise.
4238 * modules/fnmatch-tests (Files): Likewise.
4239 * modules/fopen-safer-tests (Files): Likewise.
4240 * modules/fopen-tests (Files): Likewise.
4241 * modules/fpending-tests (Files): Likewise.
4242 * modules/fprintf-posix-tests (Files): Likewise.
4243 * modules/fpurge-tests (Files): Likewise.
4244 * modules/freadable-tests (Files): Likewise.
4245 * modules/freadahead-tests (Files): Likewise.
4246 * modules/freading-tests (Files): Likewise.
4247 * modules/freadptr-tests (Files): Likewise.
4248 * modules/freadseek-tests (Files): Likewise.
4249 * modules/freopen-tests (Files): Likewise.
4250 * modules/frexp-nolibm-tests (Files): Likewise.
4251 * modules/frexp-tests (Files): Likewise.
4252 * modules/frexpl-nolibm-tests (Files): Likewise.
4253 * modules/frexpl-tests (Files): Likewise.
4254 * modules/fseek-tests (Files): Likewise.
4255 * modules/fseeko-tests (Files): Likewise.
4256 * modules/fstrcmp-tests (Files): Likewise.
4257 * modules/fsync-tests (Files): Likewise.
4258 * modules/ftell-tests (Files): Likewise.
4259 * modules/ftello-tests (Files): Likewise.
4260 * modules/func-tests (Files): Likewise.
4261 * modules/futimens-tests (Files): Likewise.
4262 * modules/fwritable-tests (Files): Likewise.
4263 * modules/fwriting-tests (Files): Likewise.
4264 * modules/getcwd-tests (Files): Likewise.
4265 * modules/getdate-tests (Files): Likewise.
4266 * modules/getdelim-tests (Files): Likewise.
4267 * modules/getdtablesize-tests (Files): Likewise.
4268 * modules/getgroups-tests (Files): Likewise.
4269 * modules/getline-tests (Files): Likewise.
4270 * modules/getndelim2-tests (Files): Likewise.
4271 * modules/glob-tests (Files): Likewise.
4272 * modules/hash-tests (Files): Likewise.
4273 * modules/i-ring-tests (Files): Likewise.
4274 * modules/iconv-tests (Files): Likewise.
4275 * modules/iconv_open-utf-tests (Files): Likewise.
4276 * modules/idpriv-drop-tests (Files): Likewise.
4277 * modules/idpriv-droptemp-tests (Files): Likewise.
4278 * modules/inet_ntop-tests (Files): Likewise.
4279 * modules/inet_pton-tests (Files): Likewise.
4280 * modules/isblank-tests (Files): Likewise.
4281 * modules/isfinite-tests (Files): Likewise.
4282 * modules/isinf-tests (Files): Likewise.
4283 * modules/isnan-tests (Files): Likewise.
4284 * modules/isnand-nolibm-tests (Files): Likewise.
4285 * modules/isnand-tests (Files): Likewise.
4286 * modules/isnanf-nolibm-tests (Files): Likewise.
4287 * modules/isnanf-tests (Files): Likewise.
4288 * modules/isnanl-nolibm-tests (Files): Likewise.
4289 * modules/isnanl-tests (Files): Likewise.
4290 * modules/lchown-tests (Files): Likewise.
4291 * modules/ldexpl-tests (Files): Likewise.
4292 * modules/link-tests (Files): Likewise.
4293 * modules/linkat-tests (Files): Likewise.
4294 * modules/linked-list-tests (Files): Likewise.
4295 * modules/linkedhash-list-tests (Files): Likewise.
4296 * modules/localename-tests (Files): Likewise.
4297 * modules/lseek-tests (Files): Likewise.
4298 * modules/lstat-tests (Files): Likewise.
4299 * modules/mbmemcasecmp-tests (Files): Likewise.
4300 * modules/mbmemcasecoll-tests (Files): Likewise.
4301 * modules/mbrtowc-tests (Files): Likewise.
4302 * modules/mbscasecmp-tests (Files): Likewise.
4303 * modules/mbscasestr-tests (Files): Likewise.
4304 * modules/mbschr-tests (Files): Likewise.
4305 * modules/mbscspn-tests (Files): Likewise.
4306 * modules/mbsinit-tests (Files): Likewise.
4307 * modules/mbsncasecmp-tests (Files): Likewise.
4308 * modules/mbsnrtowcs-tests (Files): Likewise.
4309 * modules/mbspbrk-tests (Files): Likewise.
4310 * modules/mbspcasecmp-tests (Files): Likewise.
4311 * modules/mbsrchr-tests (Files): Likewise.
4312 * modules/mbsrtowcs-tests (Files): Likewise.
4313 * modules/mbsspn-tests (Files): Likewise.
4314 * modules/mbsstr-tests (Files): Likewise.
4315 * modules/memchr-tests (Files): Likewise.
4316 * modules/memchr2-tests (Files): Likewise.
4317 * modules/memcmp-tests (Files): Likewise.
4318 * modules/memmem-tests (Files): Likewise.
4319 * modules/memrchr-tests (Files): Likewise.
4320 * modules/mkdir-tests (Files): Likewise.
4321 * modules/mkfifo-tests (Files): Likewise.
4322 * modules/mkfifoat-tests (Files): Likewise.
4323 * modules/mknod-tests (Files): Likewise.
4324 * modules/nanosleep-tests (Files): Likewise.
4325 * modules/nl_langinfo-tests (Files): Likewise.
4326 * modules/obstack-printf-tests (Files): Likewise.
4327 * modules/open-tests (Files): Likewise.
4328 * modules/openat-tests (Files): Likewise.
4329 * modules/pipe-filter-gi-tests (Files): Likewise.
4330 * modules/pipe-filter-ii-tests (Files): Likewise.
4331 * modules/pipe2-tests (Files): Likewise.
4332 * modules/popen-safer-tests (Files): Likewise.
4333 * modules/popen-tests (Files): Likewise.
4334 * modules/posixtm-tests (Files): Likewise.
4335 * modules/pread-tests (Files): Likewise.
4336 * modules/printf-frexp-tests (Files): Likewise.
4337 * modules/printf-frexpl-tests (Files): Likewise.
4338 * modules/printf-posix-tests (Files): Likewise.
4339 * modules/priv-set-tests (Files): Likewise.
4340 * modules/quotearg-tests (Files): Likewise.
4341 * modules/random_r-tests (Files): Likewise.
4342 * modules/rawmemchr-tests (Files): Likewise.
4343 * modules/rbtree-list-tests (Files): Likewise.
4344 * modules/rbtree-oset-tests (Files): Likewise.
4345 * modules/rbtreehash-list-tests (Files): Likewise.
4346 * modules/readlink-tests (Files): Likewise.
4347 * modules/remove-tests (Files): Likewise.
4348 * modules/rename-tests (Files): Likewise.
4349 * modules/renameat-tests (Files): Likewise.
4350 * modules/rmdir-tests (Files): Likewise.
4351 * modules/round-tests (Files): Likewise.
4352 * modules/roundf-tests (Files): Likewise.
4353 * modules/roundl-tests (Files): Likewise.
4354 * modules/safe-alloc-tests (Files): Likewise.
4355 * modules/setenv-tests (Files): Likewise.
4356 * modules/sigaction-tests (Files): Likewise.
4357 * modules/signbit-tests (Files): Likewise.
4358 * modules/sleep-tests (Files): Likewise.
4359 * modules/snprintf-posix-tests (Files): Likewise.
4360 * modules/snprintf-tests (Files): Likewise.
4361 * modules/sprintf-posix-tests (Files): Likewise.
4362 * modules/stat-tests (Files): Likewise.
4363 * modules/stat-time-tests (Files): Likewise.
4364 * modules/strcasestr-tests (Files): Likewise.
4365 * modules/strchrnul-tests (Files): Likewise.
4366 * modules/strerror-tests (Files): Likewise.
4367 * modules/striconv-tests (Files): Likewise.
4368 * modules/striconveh-tests (Files): Likewise.
4369 * modules/striconveha-tests (Files): Likewise.
4370 * modules/strsignal-tests (Files): Likewise.
4371 * modules/strstr-tests (Files): Likewise.
4372 * modules/strtod-tests (Files): Likewise.
4373 * modules/strverscmp-tests (Files): Likewise.
4374 * modules/symlink-tests (Files): Likewise.
4375 * modules/symlinkat-tests (Files): Likewise.
4376 * modules/trunc-tests (Files): Likewise.
4377 * modules/truncf-tests (Files): Likewise.
4378 * modules/truncl-tests (Files): Likewise.
4379 * modules/uname-tests (Files): Likewise.
4380 * modules/unicase/cased-tests (Files): Likewise.
4381 * modules/unicase/ignorable-tests (Files): Likewise.
4382 * modules/unicase/locale-language-tests (Files): Likewise.
4383 * modules/unicase/tolower-tests (Files): Likewise.
4384 * modules/unicase/totitle-tests (Files): Likewise.
4385 * modules/unicase/toupper-tests (Files): Likewise.
4386 * modules/unicase/u8-casecmp-tests (Files): Likewise.
4387 * modules/unicase/u8-casecoll-tests (Files): Likewise.
4388 * modules/unicase/u8-casefold-tests (Files): Likewise.
4389 * modules/unicase/u8-is-cased-tests (Files): Likewise.
4390 * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
4391 * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
4392 * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
4393 * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
4394 * modules/unicase/u8-tolower-tests (Files): Likewise.
4395 * modules/unicase/u8-totitle-tests (Files): Likewise.
4396 * modules/unicase/u8-toupper-tests (Files): Likewise.
4397 * modules/unicase/u16-casecmp-tests (Files): Likewise.
4398 * modules/unicase/u16-casecoll-tests (Files): Likewise.
4399 * modules/unicase/u16-casefold-tests (Files): Likewise.
4400 * modules/unicase/u16-is-cased-tests (Files): Likewise.
4401 * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
4402 * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
4403 * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
4404 * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
4405 * modules/unicase/u16-tolower-tests (Files): Likewise.
4406 * modules/unicase/u16-totitle-tests (Files): Likewise.
4407 * modules/unicase/u16-toupper-tests (Files): Likewise.
4408 * modules/unicase/u32-casecmp-tests (Files): Likewise.
4409 * modules/unicase/u32-casecoll-tests (Files): Likewise.
4410 * modules/unicase/u32-casefold-tests (Files): Likewise.
4411 * modules/unicase/u32-is-cased-tests (Files): Likewise.
4412 * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
4413 * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
4414 * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
4415 * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
4416 * modules/unicase/u32-tolower-tests (Files): Likewise.
4417 * modules/unicase/u32-totitle-tests (Files): Likewise.
4418 * modules/unicase/u32-toupper-tests (Files): Likewise.
4419 * modules/unicase/ulc-casecmp-tests (Files): Likewise.
4420 * modules/unicase/ulc-casecoll-tests (Files): Likewise.
4421 * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
4422 * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
4423 * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
4424 * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
4425 * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
4426 * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
4427 * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
4428 * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
4429 * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
4430 * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
4431 * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
4432 * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
4433 * modules/unictype/bidicategory-byname-tests (Files): Likewise.
4434 * modules/unictype/bidicategory-name-tests (Files): Likewise.
4435 * modules/unictype/bidicategory-of-tests (Files): Likewise.
4436 * modules/unictype/bidicategory-test-tests (Files): Likewise.
4437 * modules/unictype/block-list-tests (Files): Likewise.
4438 * modules/unictype/block-of-tests (Files): Likewise.
4439 * modules/unictype/block-test-tests (Files): Likewise.
4440 * modules/unictype/category-C-tests (Files): Likewise.
4441 * modules/unictype/category-Cc-tests (Files): Likewise.
4442 * modules/unictype/category-Cf-tests (Files): Likewise.
4443 * modules/unictype/category-Cn-tests (Files): Likewise.
4444 * modules/unictype/category-Co-tests (Files): Likewise.
4445 * modules/unictype/category-Cs-tests (Files): Likewise.
4446 * modules/unictype/category-L-tests (Files): Likewise.
4447 * modules/unictype/category-Ll-tests (Files): Likewise.
4448 * modules/unictype/category-Lm-tests (Files): Likewise.
4449 * modules/unictype/category-Lo-tests (Files): Likewise.
4450 * modules/unictype/category-Lt-tests (Files): Likewise.
4451 * modules/unictype/category-Lu-tests (Files): Likewise.
4452 * modules/unictype/category-M-tests (Files): Likewise.
4453 * modules/unictype/category-Mc-tests (Files): Likewise.
4454 * modules/unictype/category-Me-tests (Files): Likewise.
4455 * modules/unictype/category-Mn-tests (Files): Likewise.
4456 * modules/unictype/category-N-tests (Files): Likewise.
4457 * modules/unictype/category-Nd-tests (Files): Likewise.
4458 * modules/unictype/category-Nl-tests (Files): Likewise.
4459 * modules/unictype/category-No-tests (Files): Likewise.
4460 * modules/unictype/category-P-tests (Files): Likewise.
4461 * modules/unictype/category-Pc-tests (Files): Likewise.
4462 * modules/unictype/category-Pd-tests (Files): Likewise.
4463 * modules/unictype/category-Pe-tests (Files): Likewise.
4464 * modules/unictype/category-Pf-tests (Files): Likewise.
4465 * modules/unictype/category-Pi-tests (Files): Likewise.
4466 * modules/unictype/category-Po-tests (Files): Likewise.
4467 * modules/unictype/category-Ps-tests (Files): Likewise.
4468 * modules/unictype/category-S-tests (Files): Likewise.
4469 * modules/unictype/category-Sc-tests (Files): Likewise.
4470 * modules/unictype/category-Sk-tests (Files): Likewise.
4471 * modules/unictype/category-Sm-tests (Files): Likewise.
4472 * modules/unictype/category-So-tests (Files): Likewise.
4473 * modules/unictype/category-Z-tests (Files): Likewise.
4474 * modules/unictype/category-Zl-tests (Files): Likewise.
4475 * modules/unictype/category-Zp-tests (Files): Likewise.
4476 * modules/unictype/category-Zs-tests (Files): Likewise.
4477 * modules/unictype/category-and-not-tests (Files): Likewise.
4478 * modules/unictype/category-and-tests (Files): Likewise.
4479 * modules/unictype/category-byname-tests (Files): Likewise.
4480 * modules/unictype/category-name-tests (Files): Likewise.
4481 * modules/unictype/category-none-tests (Files): Likewise.
4482 * modules/unictype/category-of-tests (Files): Likewise.
4483 * modules/unictype/category-or-tests (Files): Likewise.
4484 * modules/unictype/category-test-withtable-tests (Files): Likewise.
4485 * modules/unictype/combining-class-tests (Files): Likewise.
4486 * modules/unictype/ctype-alnum-tests (Files): Likewise.
4487 * modules/unictype/ctype-alpha-tests (Files): Likewise.
4488 * modules/unictype/ctype-blank-tests (Files): Likewise.
4489 * modules/unictype/ctype-cntrl-tests (Files): Likewise.
4490 * modules/unictype/ctype-digit-tests (Files): Likewise.
4491 * modules/unictype/ctype-graph-tests (Files): Likewise.
4492 * modules/unictype/ctype-lower-tests (Files): Likewise.
4493 * modules/unictype/ctype-print-tests (Files): Likewise.
4494 * modules/unictype/ctype-punct-tests (Files): Likewise.
4495 * modules/unictype/ctype-space-tests (Files): Likewise.
4496 * modules/unictype/ctype-upper-tests (Files): Likewise.
4497 * modules/unictype/ctype-xdigit-tests (Files): Likewise.
4498 * modules/unictype/decimal-digit-tests (Files): Likewise.
4499 * modules/unictype/digit-tests (Files): Likewise.
4500 * modules/unictype/mirror-tests (Files): Likewise.
4501 * modules/unictype/numeric-tests (Files): Likewise.
4502 * modules/unictype/property-alphabetic-tests (Files): Likewise.
4503 * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
4504 * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
4505 * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
4507 * modules/unictype/property-bidi-block-separator-tests (Files):
4509 * modules/unictype/property-bidi-boundary-neutral-tests (Files):
4511 * modules/unictype/property-bidi-common-separator-tests (Files):
4513 * modules/unictype/property-bidi-control-tests (Files): Likewise.
4514 * modules/unictype/property-bidi-embedding-or-override-tests (Files):
4516 * modules/unictype/property-bidi-eur-num-separator-tests (Files):
4518 * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
4520 * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
4521 * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
4523 * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
4524 * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
4526 * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
4527 * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
4528 * modules/unictype/property-bidi-segment-separator-tests (Files):
4530 * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
4531 * modules/unictype/property-byname-tests (Files): Likewise.
4532 * modules/unictype/property-combining-tests (Files): Likewise.
4533 * modules/unictype/property-composite-tests (Files): Likewise.
4534 * modules/unictype/property-currency-symbol-tests (Files): Likewise.
4535 * modules/unictype/property-dash-tests (Files): Likewise.
4536 * modules/unictype/property-decimal-digit-tests (Files): Likewise.
4537 * modules/unictype/property-default-ignorable-code-point-tests (Files):
4539 * modules/unictype/property-deprecated-tests (Files): Likewise.
4540 * modules/unictype/property-diacritic-tests (Files): Likewise.
4541 * modules/unictype/property-extender-tests (Files): Likewise.
4542 * modules/unictype/property-format-control-tests (Files): Likewise.
4543 * modules/unictype/property-grapheme-base-tests (Files): Likewise.
4544 * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
4545 * modules/unictype/property-grapheme-link-tests (Files): Likewise.
4546 * modules/unictype/property-hex-digit-tests (Files): Likewise.
4547 * modules/unictype/property-hyphen-tests (Files): Likewise.
4548 * modules/unictype/property-id-continue-tests (Files): Likewise.
4549 * modules/unictype/property-id-start-tests (Files): Likewise.
4550 * modules/unictype/property-ideographic-tests (Files): Likewise.
4551 * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
4552 * modules/unictype/property-ids-trinary-operator-tests (Files):
4554 * modules/unictype/property-ignorable-control-tests (Files): Likewise.
4555 * modules/unictype/property-iso-control-tests (Files): Likewise.
4556 * modules/unictype/property-join-control-tests (Files): Likewise.
4557 * modules/unictype/property-left-of-pair-tests (Files): Likewise.
4558 * modules/unictype/property-line-separator-tests (Files): Likewise.
4559 * modules/unictype/property-logical-order-exception-tests (Files):
4561 * modules/unictype/property-lowercase-tests (Files): Likewise.
4562 * modules/unictype/property-math-tests (Files): Likewise.
4563 * modules/unictype/property-non-break-tests (Files): Likewise.
4564 * modules/unictype/property-not-a-character-tests (Files): Likewise.
4565 * modules/unictype/property-numeric-tests (Files): Likewise.
4566 * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
4567 * modules/unictype/property-other-default-ignorable-code-point-tests
4569 * modules/unictype/property-other-grapheme-extend-tests (Files):
4571 * modules/unictype/property-other-id-continue-tests (Files): Likewise.
4572 * modules/unictype/property-other-id-start-tests (Files): Likewise.
4573 * modules/unictype/property-other-lowercase-tests (Files): Likewise.
4574 * modules/unictype/property-other-math-tests (Files): Likewise.
4575 * modules/unictype/property-other-uppercase-tests (Files): Likewise.
4576 * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
4577 * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
4578 * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
4579 * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
4580 * modules/unictype/property-private-use-tests (Files): Likewise.
4581 * modules/unictype/property-punctuation-tests (Files): Likewise.
4582 * modules/unictype/property-quotation-mark-tests (Files): Likewise.
4583 * modules/unictype/property-radical-tests (Files): Likewise.
4584 * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
4585 * modules/unictype/property-soft-dotted-tests (Files): Likewise.
4586 * modules/unictype/property-space-tests (Files): Likewise.
4587 * modules/unictype/property-terminal-punctuation-tests (Files):
4589 * modules/unictype/property-test-tests (Files): Likewise.
4590 * modules/unictype/property-titlecase-tests (Files): Likewise.
4591 * modules/unictype/property-unassigned-code-value-tests (Files):
4593 * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
4594 * modules/unictype/property-uppercase-tests (Files): Likewise.
4595 * modules/unictype/property-variation-selector-tests (Files): Likewise.
4596 * modules/unictype/property-white-space-tests (Files): Likewise.
4597 * modules/unictype/property-xid-continue-tests (Files): Likewise.
4598 * modules/unictype/property-xid-start-tests (Files): Likewise.
4599 * modules/unictype/property-zero-width-tests (Files): Likewise.
4600 * modules/unictype/scripts-tests (Files): Likewise.
4601 * modules/unictype/syntax-c-ident-tests (Files): Likewise.
4602 * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
4603 * modules/unictype/syntax-java-ident-tests (Files): Likewise.
4604 * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
4605 * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
4606 * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
4607 * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
4608 * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
4609 * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
4610 * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
4611 * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
4612 * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
4613 * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
4614 * modules/uninorm/compat-decomposition-tests (Files): Likewise.
4615 * modules/uninorm/composition-tests (Files): Likewise.
4616 * modules/uninorm/decomposing-form-tests (Files): Likewise.
4617 * modules/uninorm/decomposition-tests (Files): Likewise.
4618 * modules/uninorm/filter-tests (Files): Likewise.
4619 * modules/uninorm/nfc-tests (Files): Likewise.
4620 * modules/uninorm/nfd-tests (Files): Likewise.
4621 * modules/uninorm/nfkc-tests (Files): Likewise.
4622 * modules/uninorm/nfkd-tests (Files): Likewise.
4623 * modules/uninorm/u8-normcmp-tests (Files): Likewise.
4624 * modules/uninorm/u8-normcoll-tests (Files): Likewise.
4625 * modules/uninorm/u16-normcmp-tests (Files): Likewise.
4626 * modules/uninorm/u16-normcoll-tests (Files): Likewise.
4627 * modules/uninorm/u32-normcmp-tests (Files): Likewise.
4628 * modules/uninorm/u32-normcoll-tests (Files): Likewise.
4629 * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
4630 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
4631 * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
4632 * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
4633 * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
4634 * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
4635 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
4636 * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
4637 * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
4638 * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
4639 * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
4640 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
4641 * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
4642 * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
4643 * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
4644 * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
4645 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
4646 * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
4647 * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
4648 * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
4649 * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
4650 * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
4651 * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
4652 * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
4653 * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
4654 * modules/uniwidth/u8-width-tests (Files): Likewise.
4655 * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
4656 * modules/uniwidth/u16-width-tests (Files): Likewise.
4657 * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
4658 * modules/uniwidth/u32-width-tests (Files): Likewise.
4659 * modules/uniwidth/width-tests (Files): Likewise.
4660 * modules/unlink-tests (Files): Likewise.
4661 * modules/unsetenv-tests (Files): Likewise.
4662 * modules/usleep-tests (Files): Likewise.
4663 * modules/utimens-tests (Files): Likewise.
4664 * modules/utimensat-tests (Files): Likewise.
4665 * modules/vasnprintf-posix-tests (Files): Likewise.
4666 * modules/vasnprintf-tests (Files): Likewise.
4667 * modules/vasprintf-posix-tests (Files): Likewise.
4668 * modules/vasprintf-tests (Files): Likewise.
4669 * modules/vdprintf-posix-tests (Files): Likewise.
4670 * modules/vfprintf-posix-tests (Files): Likewise.
4671 * modules/vprintf-posix-tests (Files): Likewise.
4672 * modules/vsnprintf-posix-tests (Files): Likewise.
4673 * modules/vsnprintf-tests (Files): Likewise.
4674 * modules/vsprintf-posix-tests (Files): Likewise.
4675 * modules/wcrtomb-tests (Files): Likewise.
4676 * modules/wcsnrtombs-tests (Files): Likewise.
4677 * modules/wcsrtombs-tests (Files): Likewise.
4678 * modules/wctype-tests (Files): Likewise.
4679 * modules/wcwidth-tests (Files): Likewise.
4680 * modules/xmemdup0-tests (Files): Likewise.
4681 * modules/xprintf-posix-tests (Files): Likewise.
4682 * modules/xvasprintf-tests (Files): Likewise.
4684 2009-12-24 Eric Blake <ebb9@byu.net>
4686 test-nanosleep: fix typo
4687 * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
4689 Reported by Bruno Haible.
4691 2009-12-24 Bruno Haible <bruno@clisp.org>
4693 Reduce namespace pollution on glibc systems.
4694 * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
4695 * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
4697 * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
4698 <getopt.h> on glibc systems.
4699 * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
4701 * lib/fcntl.c: Include <unistd.h> here instead.
4703 2009-12-24 Bruno Haible <bruno@clisp.org>
4705 * lib/stdlib.in.h (includes): Fix typo in today's commit.
4707 2009-12-24 Eric Blake <ebb9@byu.net>
4709 tests: add signature checks
4710 * tests/signature.h (SIGNATURE_CHECK): New file.
4711 * modules/atexit-tests (Files): Use it.
4712 * modules/btowc-tests (Files): Likewise.
4713 * modules/canonicalize-lgpl-tests (Files): Likewise.
4714 * modules/ceilf-tests (Files): Likewise.
4715 * modules/ceill-tests (Files): Likewise.
4716 * modules/chown-tests (Files): Likewise.
4717 * modules/dprintf-posix-tests (Files): Likewise.
4718 * modules/dup2-tests (Files): Likewise.
4719 * modules/dup3-tests (Files): Likewise.
4720 * modules/duplocale-tests (Files): Likewise.
4721 * modules/fchdir-tests (Files): Likewise.
4722 * modules/fcntl-tests (Files): Likewise.
4723 * modules/fdopendir-tests (Files): Likewise.
4724 * modules/fflush-tests (Files): Likewise.
4725 * modules/flock-tests (Files): Likewise.
4726 * modules/floorf-tests (Files): Likewise.
4727 * modules/floorl-tests (Files): Likewise.
4728 * modules/fnmatch-tests (Files): Likewise.
4729 * modules/fopen-tests (Files): Likewise.
4730 * modules/fprintf-posix-tests (Files): Likewise.
4731 * modules/freopen-tests (Files): Likewise.
4732 * modules/frexp-nolibm-tests (Files): Likewise.
4733 * modules/frexp-tests (Files): Likewise.
4734 * modules/frexpl-nolibm-tests (Files): Likewise.
4735 * modules/frexpl-tests (Files): Likewise.
4736 * modules/fseek-tests (Files): Likewise.
4737 * modules/fseeko-tests (Files): Likewise.
4738 * modules/fsync-tests (Files): Likewise.
4739 * modules/ftell-tests (Files): Likewise.
4740 * modules/ftello-tests (Files): Likewise.
4741 * modules/futimens-tests (Files): Likewise.
4742 * modules/getaddrinfo-tests (Files): Likewise.
4743 * modules/getcwd-tests (Files): Likewise.
4744 * modules/getdelim-tests (Files): Likewise.
4745 * modules/getdtablesize-tests (Files): Likewise.
4746 * modules/getgroups-tests (Files): Likewise.
4747 * modules/gethostname-tests (Files): Likewise.
4748 * modules/getline-tests (Files): Likewise.
4749 * modules/getopt-posix-tests (Files): Likewise.
4750 * modules/gettimeofday-tests (Files): Likewise.
4751 * modules/glob-tests (Files): Likewise.
4752 * modules/iconv-tests (Files): Likewise.
4753 * modules/inet_ntop-tests (Files): Likewise.
4754 * modules/inet_pton-tests (Files): Likewise.
4755 * modules/isblank-tests (Files): Likewise.
4756 * modules/lchown-tests (Files): Likewise.
4757 * modules/ldexpl-tests (Files): Likewise.
4758 * modules/link-tests (Files): Likewise.
4759 * modules/linkat-tests (Files): Likewise.
4760 * modules/lseek-tests (Files): Likewise.
4761 * modules/lstat-tests (Files): Likewise.
4762 * modules/mbrtowc-tests (Files): Likewise.
4763 * modules/mbsinit-tests (Files): Likewise.
4764 * modules/mbsnrtowcs-tests (Files): Likewise.
4765 * modules/mbsrtowcs-tests (Files): Likewise.
4766 * modules/memchr-tests (Files): Likewise.
4767 * modules/memcmp-tests (Files): Likewise.
4768 * modules/memmem-tests (Files): Likewise.
4769 * modules/memrchr-tests (Files): Likewise.
4770 * modules/mkdir-tests (Files): Likewise.
4771 * modules/mkfifo-tests (Files): Likewise.
4772 * modules/mkfifoat-tests (Files): Likewise.
4773 * modules/mknod-tests (Files): Likewise.
4774 * modules/nanosleep-tests (Files): Likewise.
4775 * modules/nl_langinfo-tests (Files): Likewise.
4776 * modules/obstack-printf-tests (Files): Likewise.
4777 * modules/open-tests (Files): Likewise.
4778 * modules/openat-tests (Files): Likewise.
4779 * modules/perror-tests (Files): Likewise.
4780 * modules/pipe2-tests (Files): Likewise.
4781 * modules/poll-tests (Files): Likewise.
4782 * modules/popen-tests (Files): Likewise.
4783 * modules/posix_spawn-tests (Files): Likewise.
4784 * modules/posix_spawnp-tests (Files): Likewise.
4785 * modules/pread-tests (Files): Likewise.
4786 * modules/printf-posix-tests (Files): Likewise.
4787 * modules/pty-tests (Files): Likewise.
4788 * modules/random_r-tests (Files): Likewise.
4789 * modules/rawmemchr-tests (Files): Likewise.
4790 * modules/readlink-tests (Files): Likewise.
4791 * modules/remove-tests (Files): Likewise.
4792 * modules/rename-tests (Files): Likewise.
4793 * modules/renameat-tests (Files): Likewise.
4794 * modules/rmdir-tests (Files): Likewise.
4795 * modules/round-tests (Files): Likewise.
4796 * modules/roundf-tests (Files): Likewise.
4797 * modules/roundl-tests (Files): Likewise.
4798 * modules/select-tests (Files): Likewise.
4799 * modules/setenv-tests (Files): Likewise.
4800 * modules/sigaction-tests (Files): Likewise.
4801 * modules/sleep-tests (Files): Likewise.
4802 * modules/snprintf-posix-tests (Files): Likewise.
4803 * modules/snprintf-tests (Files): Likewise.
4804 * modules/sprintf-posix-tests (Files): Likewise.
4805 * modules/stat-tests (Files): Likewise.
4806 * modules/strcasestr-tests (Files): Likewise.
4807 * modules/strchrnul-tests (Files): Likewise.
4808 * modules/strerror-tests (Files): Likewise.
4809 * modules/strsignal-tests (Files): Likewise.
4810 * modules/strstr-tests (Files): Likewise.
4811 * modules/strtod-tests (Files): Likewise.
4812 * modules/strverscmp-tests (Files): Likewise.
4813 * modules/symlink-tests (Files): Likewise.
4814 * modules/symlinkat-tests (Files): Likewise.
4815 * modules/times-tests (Files): Likewise.
4816 * modules/trunc-tests (Files): Likewise.
4817 * modules/truncf-tests (Files): Likewise.
4818 * modules/truncl-tests (Files): Likewise.
4819 * modules/tsearch-tests (Files): Likewise.
4820 * modules/uname-tests (Files): Likewise.
4821 * modules/unlink-tests (Files): Likewise.
4822 * modules/unsetenv-tests (Files): Likewise.
4823 * modules/usleep-tests (Files): Likewise.
4824 * modules/utimensat-tests (Files): Likewise.
4825 * modules/vasprintf-tests (Files): Likewise.
4826 * modules/vdprintf-posix-tests (Files): Likewise.
4827 * modules/vfprintf-posix-tests (Files): Likewise.
4828 * modules/vprintf-posix-tests (Files): Likewise.
4829 * modules/vsnprintf-posix-tests (Files): Likewise.
4830 * modules/vsnprintf-tests (Files): Likewise.
4831 * modules/vsprintf-posix-tests (Files): Likewise.
4832 * modules/wcrtomb-tests (Files): Likewise.
4833 * modules/wcsnrtombs-tests (Files): Likewise.
4834 * modules/wcsrtombs-tests (Files): Likewise.
4835 * modules/wcwidth-tests (Files): Likewise.
4836 * tests/test-isfinite.c (isfinite): Ensure macro declaration.
4837 * tests/test-isinf.c (isinf): Likewise.
4838 * tests/test-isnan.c (isnan): Likewise.
4839 * tests/test-signbit.c (signbit): Likewise.
4840 * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
4841 declaration, either as macro or with correct signature.
4842 (select): Ensure function under test is declared with correct
4843 signature in correct header.
4844 * tests/test-atexit.c (atexit): Likewise.
4845 * tests/test-btowc.c (btowc): Likewise.
4846 * tests/test-canonicalize-lgpl.c (realpath)
4847 (canonicalize_file_name): Likewise.
4848 * tests/test-ceilf1.c (ceilf): Likewise.
4849 * tests/test-ceill.c (ceill): Likewise.
4850 * tests/test-chown.c (chown): Likewise.
4851 * tests/test-dprintf-posix.c (dprintf): Likewise.
4852 * tests/test-dup2.c (dup2): Likewise.
4853 * tests/test-dup3.c (dup3): Likewise.
4854 * tests/test-duplocale.c (duplocale): Likewise.
4855 * tests/test-fchdir.c (fchdir): Likewise.
4856 * tests/test-fchownat.c (fchownat): Likewise.
4857 * tests/test-fcntl.c (fcntl): Likewise.
4858 * tests/test-fdopendir.c (fdopendir): Likewise.
4859 * tests/test-fflush.c (fflush): Likewise.
4860 * tests/test-flock.c (flock): Likewise.
4861 * tests/test-floorf1.c (floorf): Likewise.
4862 * tests/test-floorl.c (floorl): Likewise.
4863 * tests/test-fnmatch.c (fnmatch): Likewise.
4864 * tests/test-fopen.c (fopen): Likewise.
4865 * tests/test-fprintf-posix.c (fprintf): Likewise.
4866 * tests/test-freopen.c (freopen): Likewise.
4867 * tests/test-frexp.c (frexp): Likewise.
4868 * tests/test-frexpl.c (frexpl): Likewise.
4869 * tests/test-fseek.c (fseek): Likewise.
4870 * tests/test-fseeko.c (fseeko): Likewise.
4871 * tests/test-fstatat.c (fstatat): Likewise.
4872 * tests/test-fsync.c (fsync): Likewise.
4873 * tests/test-ftell.c (ftell): Likewise.
4874 * tests/test-ftello.c (ftello): Likewise.
4875 * tests/test-futimens.c (futimens): Likewise.
4876 * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
4877 (gai_strerror): Likewise.
4878 * tests/test-getcwd.c (getcwd): Likewise.
4879 * tests/test-getdelim.c (getdelim): Likewise.
4880 * tests/test-getdtablesize.c (getdtablesize): Likewise.
4881 * tests/test-getgroups.c (getgroups): Likewise.
4882 * tests/test-gethostname.c (gethostname): Likewise.
4883 * tests/test-getline.c (getline): Likewise.
4884 * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
4886 * tests/test-gettimeofday.c (gettimeofday): Likewise.
4887 * tests/test-glob.c (glob, globfree): Likewise.
4888 * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
4889 * tests/test-inet_ntop.c (inet_ntop): Likewise.
4890 * tests/test-inet_pton.c (inet_pton): Likewise.
4891 * tests/test-isblank.c (isblank): Likewise.
4892 * tests/test-lchown.c (lchown): Likewise.
4893 * tests/test-ldexpl.c (ldexpl): Likewise.
4894 * tests/test-link.c (link): Likewise.
4895 * tests/test-linkat.c (linkat): Likewise.
4896 * tests/test-lseek.c (lseek): Likewise.
4897 * tests/test-lstat.c (lstat): Likewise.
4898 * tests/test-mbrtowc.c (mbrtowc): Likewise.
4899 * tests/test-mbsinit.c (mbsinit): Likewise.
4900 * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
4901 * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
4902 * tests/test-memchr.c (memchr): Likewise.
4903 * tests/test-memcmp.c (memcmp): Likewise.
4904 * tests/test-memmem.c (memmem): Likewise.
4905 * tests/test-memrchr.c (memrchr): Likewise.
4906 * tests/test-mkdir.c (mkdir): Likewise.
4907 * tests/test-mkdirat.c (mkdirat): Likewise.
4908 * tests/test-mkfifo.c (mkfifo): Likewise.
4909 * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
4910 * tests/test-mknod.c (mknod): Likewise.
4911 * tests/test-nanosleep.c (nanosleep): Likewise.
4912 * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
4913 * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
4915 * tests/test-open.c (open): Likewise.
4916 * tests/test-openat.c (openat): Likewise.
4917 * tests/test-perror.c (perror): Likewise.
4918 * tests/test-pipe2.c (pipe2): Likewise.
4919 * tests/test-poll.c (poll): Likewise.
4920 * tests/test-popen.c (popen, pclose): Likewise.
4921 * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
4922 (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
4923 (posix_spawnattr_setflags, posix_spawn_file_actions_init)
4924 (posix_spawn_file_actions_destroy)
4925 (posix_spawn_file_actions_addclose)
4926 (posix_spawn_file_actions_addopen)
4927 (posix_spawn_file_actions_adddup2): Likewise.
4928 * tests/test-posix_spawn3.c (posix_spawn): Likewise.
4929 * tests/test-pread.c (pread): Likewise.
4930 * tests/test-printf-posix.c (printf): Likewise.
4931 * tests/test-pty.c (openpty, forkpty): Likewise.
4932 * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
4933 (random_r): Likewise.
4934 * tests/test-rawmemchr.c (rawmemchr): Likewise.
4935 * tests/test-readlink.c (readlink): Likewise.
4936 * tests/test-remove.c (remove): Likewise.
4937 * tests/test-rename.c (rename): Likewise.
4938 * tests/test-renameat.c (renameat): Likewise.
4939 * tests/test-rmdir.c (rmdir): Likewise.
4940 * tests/test-round1.c (round): Likewise.
4941 * tests/test-roundf1.c (roundf): Likewise.
4942 * tests/test-roundl.c (roundl): Likewise.
4943 * tests/test-setenv.c (setenv): Likewise.
4944 * tests/test-sigaction.c (sigaction): Likewise.
4945 * tests/test-sleep.c (sleep): Likewise.
4946 * tests/test-snprintf.c (snprintf): Likewise.
4947 * tests/test-sprintf-posix.c (sprintf): Likewise.
4948 * tests/test-stat.c (stat): Likewise.
4949 * tests/test-stpncpy.c (stpncpy): Likewise.
4950 * tests/test-strcasestr.c (strcasestr): Likewise.
4951 * tests/test-strchrnul.c (strchrnul): Likewise.
4952 * tests/test-strerror.c (strerror): Likewise.
4953 * tests/test-strsignal.c (strsignal): Likewise.
4954 * tests/test-strstr.c (strstr): Likewise.
4955 * tests/test-strtod.c (strtod): Likewise.
4956 * tests/test-strverscmp.c (strverscmp): Likewise.
4957 * tests/test-symlink.c (symlink): Likewise.
4958 * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
4959 * tests/test-times.c (times): Likewise.
4960 * tests/test-trunc1.c (trunc): Likewise.
4961 * tests/test-truncf1.c (truncf): Likewise.
4962 * tests/test-truncl.c (truncl): Likewise.
4963 * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
4965 * tests/test-uname.c (uname): Likewise.
4966 * tests/test-unlink.c (unlink): Likewise.
4967 * tests/test-unlinkat.c (unlinkat): Likewise.
4968 * tests/test-unsetenv.c (unsetenv): Likewise.
4969 * tests/test-usleep.c (usleep): Likewise.
4970 * tests/test-utimensat.c (utimensat): Likewise.
4971 * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
4972 * tests/test-vdprintf-posix.c (vdprintf): Likewise.
4973 * tests/test-vfprintf-posix.c (vfprintf): Likewise.
4974 * tests/test-vprintf-posix.c (vprintf): Likewise.
4975 * tests/test-vsnprintf.c (vsnprintf): Likewise.
4976 * tests/test-vsprintf-posix.c (vsprintf): Likewise.
4977 * tests/test-wcrtomb.c (wcrtomb): Likewise.
4978 * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
4979 * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
4980 * tests/test-wcwidth.c (wcwidth): Likewise.
4982 build: pull in conditional headers during GNULIB_POSIXCHECK
4983 * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
4984 definitions from any conditionally-included headers.
4985 * lib/stdlib.in.h (includes): Likewise.
4986 * lib/unistd.in.h (includes): Likewise.
4988 2009-12-24 Bruno Haible <bruno@clisp.org>
4990 * tests/test-argv-iter.c: Include header file being tested immediately
4992 * tests/test-base64.c: Likewise.
4993 * tests/test-flock.c: Likewise.
4994 * tests/test-fsync.c: Likewise.
4995 * tests/test-getdate.c: Likewise.
4996 * tests/test-getndelim2.c: Likewise.
4997 * tests/test-isfinite.c: Likewise.
4998 * tests/test-isinf.c: Likewise.
4999 * tests/test-strerror.c: Likewise.
5000 * tests/test-strsignal.c: Likewise.
5002 2009-12-23 Eric Blake <ebb9@byu.net>
5004 unistd: work around cygwin bug
5005 * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
5006 * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
5007 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
5009 2009-12-23 Bruno Haible <bruno@clisp.org>
5011 localename: More tests.
5012 * tests/test-localename.c (SIZEOF): New macro.
5013 (categories): New variable.
5014 (test_locale_name, test_locale_name_posix, test_locale_name_environ,
5015 test_locale_name_default): Add test w.r.t. thread locale.
5016 (test_locale_name_thread): New function.
5019 localename: Make aware of thread locale.
5020 * lib/localename.h (gl_locale_name_thread): New declaration.
5021 (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
5022 behaviour with respect to thread locale.
5023 * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
5024 <langinfo.h>, glthread/lock.h.
5025 (SIZE_BITS): New macro.
5026 (string_hash): New function.
5027 (struct hash_node): New type.
5028 (HASH_TABLE_SIZE): New macro.
5029 (struniq_hash_table, struniq_lock): New variables.
5030 (struniq): New function.
5031 (gl_locale_name_thread): New function.
5032 (gl_locale_name): Invoke it.
5033 * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
5034 * modules/localename (Depends-on): Add lock.
5035 Reported by Mike Gran <spk121@yahoo.com>.
5037 2009-12-23 Eric Blake <ebb9@byu.net>
5040 * modules/va-args: New file.
5041 * m4/va-args.m4 (gl_VA_ARGS): Likewise.
5042 * MODULES.html.sh (Core language properties): Mention it.
5044 gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
5045 * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
5046 named alias for __attribute__((__unused__)).
5047 * lib/chown.c: Update client.
5048 * lib/fchmodat.c: Likewise.
5049 * lib/fts.c: Likewise.
5050 * lib/getdate.y: Likewise.
5051 * lib/getgroups.c: Likewise.
5052 * lib/getopt.c: Likewise.
5053 * lib/getugroups.c: Likewise.
5054 * lib/mkdir.c: Likewise.
5055 * lib/mkfifo.c: Likewise.
5056 * lib/mkfifoat.c: Likewise.
5057 * lib/mknod.c: Likewise.
5058 * lib/mknodat.c: Likewise.
5059 * lib/readlink.c: Likewise.
5060 * lib/se-context.in.h: Likewise.
5061 * lib/se-selinux.in.h: Likewise.
5062 * lib/sockets.c: Likewise.
5063 * lib/symlink.c: Likewise.
5064 * lib/symlinkat.c: Likewise.
5065 * lib/unicodeio.c: Likewise.
5066 * lib/unistr.h: Likewise.
5067 * tests/test-areadlink.c: Likewise.
5068 * tests/test-areadlinkat.c: Likewise.
5069 * tests/test-filenamecat.c: Likewise.
5070 * tests/test-fseeko.c: Likewise.
5071 * tests/test-ftello.c: Likewise.
5072 * tests/test-getdate.c: Likewise.
5073 * tests/test-getgroups.c: Likewise.
5074 * tests/test-gethostname.c: Likewise.
5075 * tests/test-quotearg.c: Likewise.
5076 * tests/test-version-etc.c: Likewise.
5077 * tests/test-xalloc-die.c: Likewise.
5078 * tests/test-xfprintf-posix.c: Likewise.
5079 * tests/test-xprintf-posix.c: Likewise.
5080 * tests/test-xvasprintf.c: Likewise.
5082 tests: avoid compiler warnings
5083 * tests/test-fcntl.c (main): Delete unused parameters.
5084 * tests/test-freopen-safer.c (main): Likewise.
5085 * tests/test-xalloc-die.c (main): Mark unused parameters.
5086 * tests/test-fseeko.c (main): Likewise.
5087 * tests/test-ftello.c (main): Likewise.
5088 * tests/test-nanosleep.c (main): Avoid declaration warning.
5089 * tests/test-sleep.c (main): Likewise.
5090 * tests/test-unsetenv.c (main): Silence warning about string
5092 * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
5094 2009-12-23 Bruno Haible <bruno@clisp.org>
5096 * tests/test-localename.c (test_locale_name): New function, extracted
5097 from main. Also test mixed situations.
5098 (test_locale_name_posix, test_locale_name_environ,
5099 test_locale_name_default): New functions.
5100 (main): Invoke them all.
5101 * modules/localename-tests (configure.ac): Test for newlocale.
5103 2009-12-23 Bruno Haible <bruno@clisp.org>
5105 unistd: Ensure getcwd gets declared before being overridden.
5106 * lib/unistd.in.h: Conditionally include <io.h>.
5108 2009-12-22 Bruno Haible <bruno@clisp.org>
5110 wchar: Diagnose broken combination of glibc and gcc versions and flags.
5111 * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
5112 (gl_WCHAR_H): Invoke it.
5113 * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
5114 * doc/posix-headers/wchar.texi: Mention the interoperability problem.
5115 Reported by Karl Berry <karl@freefriends.org>.
5117 2009-12-22 Eric Blake <ebb9@byu.net>
5119 math, unistd: avoid redundant includes
5120 * lib/math.in.h (isnan): No need to re-include <math.h>.
5121 * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
5123 getsubopt: work around cygwin bug
5124 * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
5125 avoid conflicting with system getsubopt.
5126 * doc/posix-functions/getsubopt.texi (getsubopt): Document the
5129 getopt: synchronize from glibc
5130 * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
5131 parameter order. Adjust all callers.
5132 (_getopt_internal_r, main): Adjust quoting in error messages.
5133 Drop considerations for outdated POSIX 1003.2 error message.
5134 * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
5136 * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
5138 test-getopt: test stderr behavior
5139 * modules/getopt-posix-tests (Depends-on): Add dup2.
5140 * tests/test-getopt.c (ASSERT): Avoid stderr.
5141 (main): Move stderr to a temporary file.
5142 * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
5143 Instead, add parameter to inform caller if output occurred.
5144 (test_getopt): Adjust all existing tests to expect silence, and
5145 add new tests of leading ":".
5146 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5147 glibc shortcomings with leading "-:" or "+:" in optstring.
5148 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5150 * doc/posix-functions/getopt.texi (getopt): Likewise.
5152 test-getopt: enhance test
5153 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
5155 * tests/test-getopt.c (OPTIND_MIN): Move...
5156 * tests/test-getopt.h (OPTIND_MIN): ...here.
5157 * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
5158 Require that optind=0 works, since modern BSD supports it in
5159 addition to optreset, and since coreutils expects it.
5160 (test_getopt_long_only): New test.
5161 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5162 glibc shortcomings with 'W;', and enforcement of optind=0.
5163 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5166 2009-12-21 Bruno Haible <bruno@clisp.org>
5168 localename: Improvements for MacOS X and Cygwin.
5169 * lib/localename.h (gl_locale_name_environ): New declaration.
5170 * lib/localename.c (gl_locale_name_environ): New function, extracted from
5171 gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
5172 (gl_locale_name_posix): Invoke it.
5173 (gl_locale_name_default): Add comments. Use Windows native API also on
5176 2009-12-21 Bruno Haible <bruno@clisp.org>
5178 Update list of Win32 locale ids.
5179 * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
5180 (LANG_SAMI): Renamed from LANG_SAAMI.
5181 (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
5182 LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
5183 LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
5184 LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
5185 (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
5186 SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
5187 SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
5188 SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
5189 SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
5190 SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
5191 SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
5192 SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
5193 SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
5194 SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
5195 SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
5196 SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
5197 SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
5198 SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
5199 SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
5200 SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
5201 SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
5202 SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
5203 SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
5204 SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
5205 SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
5206 SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
5207 SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
5208 SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
5209 SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
5210 SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
5211 SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
5212 SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
5213 SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
5214 SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
5215 SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
5216 SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
5217 SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
5218 SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
5219 SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
5220 SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
5221 SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
5222 SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
5223 SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
5224 SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
5225 SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
5226 SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
5227 SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
5228 SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
5229 SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
5230 SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
5231 SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
5232 SUBLANG_ZULU_SOUTH_AFRICA): New macros.
5233 (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
5234 locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
5235 Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
5236 Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
5237 Add more languages and countries for Sami, Sorbian. Add more countries
5238 for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
5239 for Pashto. Change country for Syriac, Tswana.
5241 2009-12-21 Eric Blake <ebb9@byu.net>
5243 test-utimens: avoid spurious failure
5244 * tests/test-chown.h (nap): Factor...
5245 * tests/nap.h: ...into new file.
5246 * tests/test-lchown.h (nap): Avoid duplication.
5247 * tests/test-utimens-common.h (nap): Use shared implementation,
5248 necessary on file systems with 1-second resolution.
5249 * modules/chown-tests (Files): Include new file.
5250 * modules/fdutimensat-tests (Files): Likewise.
5251 * modules/futimens-tests (Files): Likewise.
5252 * modules/lchown-tests (Files): Likewise.
5253 * modules/openat-tests (Files): Likewise.
5254 * modules/utimens-tests (Files): Likewise.
5255 * modules/utimensat-tests (Files): Likewise.
5257 2009-12-19 Eric Blake <ebb9@byu.net>
5259 futimens, utimensat: work around Linux bug
5260 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
5261 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5262 * lib/utimensat.c (rpl_utimensat): Work around it.
5263 * lib/futimens.c (rpl_futimens): Adjust comment.
5265 utimens: work around Linux ctime bug
5266 * lib/utimens.c (detect_ctime_bug): New helper function.
5267 (update_timespec): Differentiate between workaround needed for
5268 this bug vs. what is needed for systems that lack utimensat.
5269 (fdutimens, lutimens): Work around bug.
5271 utimens: check for ctime update
5272 * tests/test-utimens-common.h (check_ctime): Define.
5273 * tests/test-utimens.h (test_utimens): Expose the Linux bug.
5274 * tests/test-futimens.h (test_futimens): Likewise.
5275 * tests/test-lutimens.h (test_lutimens): Likewise.
5276 * doc/posix-functions/futimens.texi (futimens): Document the bug.
5277 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5279 2009-12-19 Bruno Haible <bruno@clisp.org>
5281 dprintf-posix: Check against memory leak fixed on 2009-12-15.
5282 * tests/test-dprintf-posix2.sh: New file.
5283 * tests/test-dprintf-posix2.c: New file.
5284 * modules/dprintf-posix-tests (Files): Add them.
5285 (configure.ac): Check for getrlimit and setrlimit.
5286 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
5288 2009-12-19 Bruno Haible <bruno@clisp.org>
5290 fprintf-posix: Check against memory leak fixed on 2009-12-15.
5291 * tests/test-fprintf-posix3.sh: New file.
5292 * tests/test-fprintf-posix3.c: New file.
5293 * modules/fprintf-posix-tests (Files): Add them.
5294 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
5296 2009-12-19 Eric Blake <ebb9@byu.net>
5298 dirfd: fix prototype
5299 * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
5300 * lib/dirfd.c (dirfd): Likewise.
5302 canonicalize: reduce memory usage
5303 * lib/canonicalize.c (canonicalize_filename_mode): Trim the
5305 Reported by Solar Designer <solar@openwall.com>.
5307 2009-12-19 Bruno Haible <bruno@clisp.org>
5309 New module attribute 'Applicability'.
5310 * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
5311 * gnulib-tool: New option --extract-applicability.
5312 (func_usage): Document it.
5313 (sed_extract_prog): Recognize it.
5314 (func_get_applicability): New function.
5315 (func_import): Generalize handling of 'link-warning' module.
5316 * modules/link-warning (Applicability): New section.
5317 * modules/arg-nonnull (Applicability): New section.
5318 Repoted by Simon Josefsson <simon@josefsson.org>.
5320 2009-12-19 Bruno Haible <bruno@clisp.org>
5323 * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
5324 * lib/fseeko.c (rpl_fseeko): Likewise.
5326 2009-12-16 José E. Marchesi <jemarch@gnu.org> (tiny change)
5328 * lib/gl_list.h: Fix typo in comment.
5330 2009-12-16 Eric Blake <ebb9@byu.net>
5332 fcntl: use to simplify other modules
5333 * modules/cloexec (Depends-on): Add fcntl.
5334 * modules/fchdir (Depends-on): Likewise.
5335 * modules/fd-safer-flag (Depends-on): Likewise.
5336 * modules/unistd-safer (Depends-on): Likewise.
5337 * modules/dup3 (configure.ac): Set module indicator.
5338 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
5340 * lib/fchdir.c (_gl_register_dup): Fix comment.
5341 * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
5342 * lib/dup-safer.c (dup_safer): Likewise.
5343 * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
5344 * lib/dup3.c (dup3): Likewise.
5345 * tests/test-fchdir.c (main): Enhance test.
5346 Fixes a dup_cloexec bug reported by Ondřej Vašík.
5348 fcntl: port portions of fcntl to mingw
5349 * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
5350 * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
5351 replacement for mingw.
5352 * modules/fcntl (Description): Update.
5353 (Depends-on): Add dup2.
5354 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
5355 * modules/fcntl-h (Makefile.am): Substitute it.
5356 * lib/fcntl.in.h (fcntl): Update declaration.
5357 (F_DUPFD, F_GETFD): New macros, when needed.
5358 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
5359 * doc/posix-functions/fcntl.texi (fcntl): Likewise.
5360 * tests/test-fcntl.c (check_flags, main): Enhance test for items
5363 fcntl: work around cygwin bug in F_DUPFD
5364 * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
5365 (gl_FUNC_FCNTL): Use it. Test for F_DUPFD bug.
5366 * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
5367 <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
5368 * doc/posix-functions/fcntl.texi (fcntl): Document it.
5370 fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
5371 * modules/fcntl (Files): List new files.
5372 (configure.ac): Run a test.
5373 * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
5374 * lib/fcntl.c (rpl_fcntl): Likewise.
5375 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
5376 (gl_FCNTL_H): Always replace fcntl.h.
5377 * modules/fcntl-h (Makefile.am): Substitute witnesses.
5378 * lib/fcntl.in.h (fcntl): Declare replacement.
5379 (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
5380 needed, plus a witness.
5381 * doc/posix-functions/fcntl.texi (fcntl): Document this.
5382 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
5383 * tests/test-fcntl.c: New file.
5384 * modules/fcntl-tests: Likewise.
5386 binary-io: avoid potential compilation warning
5387 * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
5390 fflush: avoid compilation error on NetBSD
5391 * lib/fflush.c (update_fpos_cache): Use a union to safely convert
5392 between off_t and fpos_t, since the latter is sometimes a struct.
5393 * lib/fseeko.c (rpl_fseeko): Likewise.
5394 Reported by Alexander Nasonov <alnsn@yandex.ru>.
5396 2009-12-15 Eric Blake <ebb9@byu.net>
5398 fcntl-h, stdio, sys_ioctl: fix declarations
5399 * lib/stdio.in.h (dprintf): Use of link warning on a variadic
5400 function must not take arguments.
5401 * lib/sys_ioctl.in.h (ioctl): Likewise.
5402 * lib/fcntl.in.h (openat): Likewise. Declare extern.
5403 (open): Add a link warning.
5405 2009-12-15 Jim Meyering <meyering@redhat.com>
5407 areadlink, areadlink-with-size: relax license to LGPLv2+
5408 * modules/areadlink (License): Relax to LGPLv2+.
5409 * modules/areadlink-with-size (License): Likewise.
5411 2009-12-15 Joel E. Denny <jdenny@clemson.edu>
5412 Bruno Haible <bruno@clisp.org>
5414 *printf: Fix memory leak.
5415 * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
5416 * lib/vfprintf.c (vfprintf): Likewise.
5417 * lib/dprintf.c (dprintf): Likewise.
5418 * lib/vdprintf.c (vdprintf): Likewise.
5420 2009-12-14 Eric Blake <ebb9@byu.net>
5422 accept4: adjust module dependencies
5423 * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
5425 utimens: one more try at avoiding compiler warning
5426 * lib/utimens.c (lutimens): Lower scope of result.
5428 2009-12-13 Bruno Haible <bruno@clisp.org>
5430 Move the malloc checking from module 'list' to new module 'xlist'.
5431 * modules/xlist: New file.
5432 * lib/gl_xlist.h: New file.
5433 * lib/gl_xlist.c: New file.
5434 * lib/gl_list.h (gl_list_create_empty, gl_list_create,
5435 gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
5436 gl_list_add_last, gl_list_add_before, gl_list_add_after,
5437 gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
5438 (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
5439 gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
5440 gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
5441 gl_sortedlist_nx_add): New declarations.
5442 (struct gl_list_implementation): Rename and change methods accordingly.
5443 (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
5444 (gl_list_nx_create): Renamed from gl_list_create.
5445 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
5446 (gl_list_nx_set_at): Renamed from gl_list_set_at.
5447 (gl_list_nx_add_first): Renamed from gl_list_add_first.
5448 (gl_list_nx_add_last): Renamed from gl_list_add_last.
5449 (gl_list_nx_add_before): Renamed from gl_list_add_before.
5450 (gl_list_nx_add_after): Renamed from gl_list_add_after.
5451 (gl_list_nx_add_at): Renamed from gl_list_add_at.
5452 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
5453 * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
5454 gl_list_create_empty.
5455 (gl_list_nx_create): Renamed from gl_list_create.
5456 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
5457 (gl_list_nx_set_at): Renamed from gl_list_set_at.
5458 (gl_list_nx_add_first): Renamed from gl_list_add_first.
5459 (gl_list_nx_add_last): Renamed from gl_list_add_last.
5460 (gl_list_nx_add_before): Renamed from gl_list_add_before.
5461 (gl_list_nx_add_after): Renamed from gl_list_add_after.
5462 (gl_list_nx_add_at): Renamed from gl_list_add_at.
5463 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
5464 * lib/gl_array_list.c: Don't include xalloc.h.
5465 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
5466 NULL upon out-of-memory.
5467 (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
5469 (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
5470 Change return type to 'int'.
5471 (gl_array_nx_set_at): Renamed from gl_array_set_at.
5472 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
5473 (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
5475 (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
5477 (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
5479 (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
5481 (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
5483 (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
5485 (gl_array_list_implementation): Update.
5486 * lib/gl_carray_list.c: Don't include xalloc.h.
5487 (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
5488 Return NULL upon out-of-memory.
5489 (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
5491 (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
5492 Change return type to 'int'.
5493 (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
5494 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
5495 (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
5497 (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
5499 (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
5501 (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
5502 (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
5503 (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
5505 (gl_carray_list_implementation): Update.
5506 * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
5507 * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
5508 gl_linked_create_empty. Return NULL upon out-of-memory.
5509 (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
5511 (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
5512 Change return type to 'int'. Return -1 upon out-of-memory.
5513 (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
5515 (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
5517 (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
5519 (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
5520 NULL upon out-of-memory.
5521 (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
5523 (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
5525 (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
5527 * lib/gl_linked_list.c: Don't include xalloc.h.
5528 (gl_linked_list_implementation): Update.
5529 * lib/gl_linkedhash_list.c: Don't include xalloc.h.
5530 (add_to_bucket): Change return type to 'int'.
5531 (gl_linkedhash_list_implementation): Update.
5532 * lib/gl_anytree_list1.h (free_subtree): New function.
5533 * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
5534 gl_tree_create_empty. Return NULL upon out-of-memory.
5535 (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
5536 Change return type to 'int'. Return -1 upon out-of-memory.
5537 (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
5539 (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
5540 (gl_tree_remove_node): New function, moved here from
5541 lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
5542 (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
5544 * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
5545 malloc, not xmalloc. Return NULL upon out-of-memory.
5546 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
5548 (gl_tree_remove_node_from_tree): New function, extracted from
5549 gl_tree_remove_node.
5550 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
5552 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
5554 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
5556 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
5558 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
5559 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
5560 not xmalloc. Return NULL upon out-of-memory.
5561 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
5563 (gl_tree_remove_node_from_tree): New function, extracted from
5564 gl_tree_remove_node.
5565 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
5567 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
5569 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
5571 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
5573 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
5574 * lib/gl_avltree_list.c: Don't include xalloc.h. Include
5575 gl_anytree_list1.h before gl_anyavltree_list2.h.
5576 (gl_avltree_list_implementation): Update.
5577 * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
5578 gl_anytree_list1.h before gl_anyavltree_list2.h.
5579 (gl_rbtree_list_implementation): Update.
5580 * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
5581 Change return type to 'int'. Return -1 upon out-of-memory. Use
5583 * lib/gl_avltreehash_list.c: Don't include xalloc.h.
5584 (gl_avltreehash_list_implementation): Update.
5585 * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
5586 (gl_rbtreehash_list_implementation): Update.
5587 * modules/array-list (Depends-on): Remove xalloc.
5588 * modules/carray-list (Depends-on): Likewise.
5589 * modules/linked-list (Depends-on): Likewise.
5590 * modules/linkedhash-list (Depends-on): Likewise.
5591 * modules/avltree-list (Depends-on): Likewise.
5592 * modules/rbtree-list (Depends-on): Likewise.
5593 * modules/avltreehash-list (Depends-on): Likewise.
5594 * modules/rbtreehash-list (Depends-on): Likewise.
5596 * modules/xsublist: New file.
5597 * lib/gl_xsublist.h: New file.
5598 * lib/gl_xsublist.c: New file.
5599 * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
5600 (gl_sublist_nx_create): New declaration.
5601 * lib/gl_sublist.c: Don't include xalloc.h.
5602 (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
5603 (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
5604 (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
5605 Change return type to 'int'. Return -1 upon out-of-memory.
5606 (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
5608 (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
5609 NULL upon out-of-memory.
5610 (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
5612 (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
5613 NULL upon out-of-memory.
5614 (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
5615 NULL upon out-of-memory.
5616 (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
5618 (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
5619 (gl_sublist_list_implementation): Update.
5620 (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
5622 * modules/sublist (Depends-on): Remove xalloc.
5624 * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
5625 * tests/test-carray_list.c: Likewise.
5626 * tests/test-linked_list.c: Likewise.
5627 * tests/test-linkedhash_list.c: Likewise.
5628 * tests/test-avltree_list.c: Likewise.
5629 * tests/test-rbtree_list.c: Likewise.
5630 * tests/test-avltreehash_list.c: Likewise.
5631 * tests/test-rbtreehash_list.c: Likewise.
5632 * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
5633 * modules/carray-list-tests (Makefile.am): Likewise.
5634 * modules/linked-list-tests (Makefile.am): Likewise.
5635 * modules/linkedhash-list-tests (Makefile.am): Likewise.
5636 * modules/avltree-list-tests (Makefile.am): Likewise.
5637 * modules/rbtree-list-tests (Makefile.am): Likewise.
5638 * modules/avltreehash-list-tests (Makefile.am): Likewise.
5639 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
5641 * NEWS: Mention the changes.
5643 * lib/clean-temp.c: Include gl_xlist.h.
5644 * modules/clean-temp (Depends-on): Add xlist.
5646 * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
5647 * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
5649 * tests/test-array_oset.c: Include gl_xlist.h.
5650 * modules/array-oset-tests (Depends-on): Add xlist.
5652 Reported by José E. Marchesi <jemarch@gnu.org>.
5654 2009-12-13 Bruno Haible <bruno@clisp.org>
5656 Move the malloc checking from module 'oset' to new module 'xoset'.
5657 * modules/xoset: New file.
5658 * lib/gl_xoset.h: New file.
5659 * lib/gl_xoset.c: New file.
5660 * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
5662 (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
5663 (struct gl_oset_implementation): Rename and change methods accordingly.
5664 (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
5665 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
5666 'int'. Mark as __warn_unused_result__.
5667 * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
5668 gl_oset_create_empty.
5669 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
5671 * lib/gl_array_oset.c: Don't include xalloc.h.
5672 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
5673 malloc, not xmalloc.
5674 (grow): Change return type to 'int'. Don't call xalloc_die.
5675 (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
5677 (gl_array_nx_add): Renamed from gl_array_add. Change return type to
5679 (gl_array_oset_implementation): Update.
5680 * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
5681 gl_tree_create_empty.
5682 (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
5684 * lib/gl_avltree_oset.c: Don't include xalloc.h.
5685 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
5687 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
5689 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
5691 (gl_avltree_oset_implementation): Update.
5692 * lib/gl_rbtree_oset.c: Don't include xalloc.h.
5693 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
5695 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
5697 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
5699 (gl_rbtree_oset_implementation): Update.
5700 * modules/array-oset (Depends-on): Remove xalloc.
5701 * modules/avltree-oset (Depends-on): Likewise.
5702 * modules/rbtree-oset (Depends-on): Likewise.
5703 * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
5704 * tests/test-avltree_oset.c: Likewise.
5705 * tests/test-rbtree_oset.c: Likewise.
5706 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
5707 * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
5708 * modules/rbtree-oset-tests (Makefile.am): Likewise.
5709 * NEWS: Mention the change.
5711 2009-12-05 Alfred M. Szmidt <ams@gnu.org>
5713 maint.mk: allow a project to override release-prep commands
5714 * top/maint.mk (alpha, beta, stable): Move release-preparatory
5715 commands into a new rule.
5716 (release-prep): New rule.
5717 (release-prep-hook): New overridable variable.
5719 2009-12-13 Bruno Haible <bruno@clisp.org>
5721 * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
5723 2009-12-13 Jim Meyering <meyering@redhat.com>
5725 maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
5726 * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
5728 2009-12-12 Bruno Haible <bruno@clisp.org>
5731 * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
5733 2009-12-12 Karl Berry <karl@gnu.org>
5735 * config/srclist.txt (strtoll.c): tab changes, no more sync.
5737 2009-12-12 Bruno Haible <bruno@clisp.org>
5739 * m4/po.m4: Undo incorrect untabification.
5741 2009-12-12 Bruno Haible <bruno@clisp.org>
5743 c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
5744 * modules/c-strtod (Depends-on): Add locale.
5745 * modules/c-strtold (Depends-on): Likewise.
5747 2009-12-12 Bruno Haible <bruno@clisp.org>
5749 * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
5751 2009-12-11 Eric Blake <ebb9@byu.net>
5753 setenv: relax requirement in light of POSIX ruling
5754 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
5756 * tests/test-setenv.c (main): Relax test.
5757 * tests/test-unsetenv.c (main): Likewise.
5758 * doc/posix-functions/setenv.texi (setenv): Document this.
5759 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
5761 2009-12-11 Bruno Haible <bruno@clisp.org>
5763 New module 'fd-safer-flag'.
5764 * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
5765 * lib/dup-safer.c (dup_safer_flag): Remove function.
5766 * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
5767 * lib/fd-safer.c (fd_safer_flag): Remove function.
5768 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
5769 * modules/cloexec (configure.ac): Drop indicator macro.
5770 * modules/fd-safer-flag: New file.
5771 * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
5772 * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
5773 * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
5775 2009-12-11 Bruno Haible <bruno@clisp.org>
5777 Tests for module 'nl_langinfo'.
5778 * modules/nl_langinfo-tests: New file.
5779 * tests/test-nl_langinfo.sh: New file.
5780 * tests/test-nl_langinfo.c: New file.
5782 New module 'nl_langinfo'.
5783 * lib/nl_langinfo.c: New file.
5784 * m4/nl_langinfo.m4: New file.
5785 * modules/nl_langinfo: New file.
5786 * doc/posix-functions/nl_langinfo.texi: Mention the new module.
5788 2009-12-11 Bruno Haible <bruno@clisp.org>
5790 Tests for module 'langinfo'.
5791 * modules/langinfo-tests: New file.
5792 * tests/test-langinfo.c: New file.
5794 New module 'langinfo'.
5795 * lib/langinfo.in.h: New file.
5796 * m4/langinfo_h.m4: New file.
5797 * modules/langinfo: New file.
5798 * doc/posix-headers/langinfo.texi: Mention the new module.
5800 2009-12-11 Bruno Haible <bruno@clisp.org>
5802 * lib/config.charset: Untabify.
5804 2009-12-11 Bruno Haible <bruno@clisp.org>
5806 * modules/unistd-safer (configure.ac): Drop indicator macro.
5808 2009-12-11 Bruno Haible <bruno@clisp.org>
5810 Move pipe2-safer code to its own file.
5811 * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
5812 * lib/pipe-safer.c (pipe2_safer): Remove function.
5813 * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
5814 (Makefile.am): Add it to lib_SOURCES.
5816 2009-12-10 Bruno Haible <bruno@clisp.org>
5818 * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
5820 2009-12-10 Bruno Haible <bruno@clisp.org>
5822 Declare which arguments expect non-NULL values, for GCC and clang.
5823 * build-aux/arg-nonnull.h: New file.
5824 * modules/arg-nonnull: New file.
5825 * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
5826 (inet_ntop, inet_pton): Use it.
5827 * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
5828 (closedir, dirfd, opendir, scandir, alphasort): Use it.
5829 * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
5830 (open, openat): Use it.
5831 * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
5833 * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
5834 (getopt, getopt_long, getopt_long_only): Use it.
5835 * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
5836 * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
5838 * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
5839 (iconv_open): Use it.
5840 * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
5841 (strtoimax, strtoumax): Use it.
5842 * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
5843 (duplocale): Use it.
5844 * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
5845 (frexp, frexpl): Use it.
5846 * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
5847 (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
5848 * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
5849 (tsearch, tfind, tdelete, twalk): Use it.
5850 * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
5851 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
5852 sigpending): Use it.
5853 * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
5854 (posix_spawn, posix_spawnp, posix_spawnattr_init,
5855 posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
5856 posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
5857 posix_spawnattr_setsigmask, posix_spawnattr_getflags,
5858 posix_spawnattr_setflags, posix_spawnattr_getpgroup,
5859 posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
5860 posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
5861 posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
5862 posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
5863 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
5865 * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
5866 (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
5867 rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
5868 obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
5869 rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
5870 vfprintf, vprintf, vsnprintf, vsprintf): Use it.
5871 * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
5872 (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
5873 mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
5874 setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
5875 strtoull, unsetenv): Use it.
5876 * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
5877 (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
5878 strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
5879 strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
5880 mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
5881 mbsspn, mbssep, mbstok_r, strverscmp): Use it.
5882 * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
5883 (strcasecmp, strncasecmp): Use it.
5884 * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
5885 (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
5886 rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
5887 rpl_setsockopt): Use it.
5888 * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
5889 (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
5890 mkfifoat, mknod, mknodat, stat, utimensat): Use it.
5891 * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
5892 (gettimeofday): Use it.
5893 * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
5895 * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
5897 * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
5898 (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
5899 * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
5900 (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
5901 getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
5902 pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
5903 unlinkat, write): Use it.
5904 * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
5905 (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
5906 * lib/argv-iter.h: Include arg-nonnull.h.
5907 (_ATTRIBUTE_NONNULL_): Remove macro.
5908 (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
5909 argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
5910 * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
5912 * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
5913 * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
5914 * lib/glob.c (_GL_ARG_NONNULL): Likewise.
5915 * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
5916 * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
5917 * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
5918 * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
5919 * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
5920 * modules/arpa_inet (Depends-on): Add arg-nonnull.
5921 (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
5922 * modules/dirent (Depends-on): Add arg-nonnull.
5923 (Makefile.am): Insert arg-nonnull.h into dirent.h.
5924 * modules/fcntl-h (Depends-on): Add arg-nonnull.
5925 (Makefile.am): Insert arg-nonnull.h into fcntl.h.
5926 * modules/fnmatch (Depends-on): Add arg-nonnull.
5927 (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
5928 * modules/getopt-posix (Depends-on): Add arg-nonnull.
5929 (Makefile.am): Insert arg-nonnull.h into getopt.h.
5930 * modules/glob (Depends-on): Add arg-nonnull.
5931 (Makefile.am): Insert arg-nonnull.h into glob.h.
5932 * modules/iconv_open (Depends-on): Add arg-nonnull.
5933 (Makefile.am): Insert arg-nonnull.h into iconv.h.
5934 * modules/inttypes (Depends-on): Add arg-nonnull.
5935 (Makefile.am): Insert arg-nonnull.h into inttypes.h.
5936 * modules/locale (Depends-on): Add arg-nonnull.
5937 (Makefile.am): Insert arg-nonnull.h into locale.h.
5938 * modules/math (Depends-on): Add arg-nonnull.
5939 (Makefile.am): Insert arg-nonnull.h into math.h.
5940 * modules/netdb (Depends-on): Add arg-nonnull.
5941 (Makefile.am): Insert arg-nonnull.h into netdb.h.
5942 * modules/search (Depends-on): Add arg-nonnull.
5943 (Makefile.am): Insert arg-nonnull.h into search.h.
5944 * modules/signal (Depends-on): Add arg-nonnull.
5945 (Makefile.am): Insert arg-nonnull.h into signal.h.
5946 * modules/spawn (Depends-on): Add arg-nonnull.
5947 (Makefile.am): Insert arg-nonnull.h into spawn.h.
5948 * modules/stdio (Depends-on): Add arg-nonnull.
5949 (Makefile.am): Insert arg-nonnull.h into stdio.h.
5950 * modules/stdlib (Depends-on): Add arg-nonnull.
5951 (Makefile.am): Insert arg-nonnull.h into stdlib.h.
5952 * modules/string (Depends-on): Add arg-nonnull.
5953 (Makefile.am): Insert arg-nonnull.h into string.h.
5954 * modules/strings (Depends-on): Add arg-nonnull.
5955 (Makefile.am): Insert arg-nonnull.h into strings.h.
5956 * modules/sys_socket (Depends-on): Add arg-nonnull.
5957 (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
5958 * modules/sys_stat (Depends-on): Add arg-nonnull.
5959 (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
5960 * modules/sys_time (Depends-on): Add arg-nonnull.
5961 (Makefile.am): Insert arg-nonnull.h into sys/time.h.
5962 * modules/sys_times (Depends-on): Add arg-nonnull.
5963 (Makefile.am): Insert arg-nonnull.h into sys/times.h.
5964 * modules/sys_utsname (Depends-on): Add arg-nonnull.
5965 (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
5966 * modules/time (Depends-on): Add arg-nonnull.
5967 (Makefile.am): Insert arg-nonnull.h into time.h.
5968 * modules/unistd (Depends-on): Add arg-nonnull.
5969 (Makefile.am): Insert arg-nonnull.h into unistd.h.
5970 * modules/wchar (Depends-on): Add arg-nonnull.
5971 (Makefile.am): Insert arg-nonnull.h into wchar.h.
5972 * modules/argv-iter (Depends-on): Add arg-nonnull.
5973 * tests/test-canonicalize.c (null_ptr): New function.
5975 * tests/test-canonicalize-lgpl.c (null_ptr): New function.
5977 * tests/test-memmem.c (null_ptr): New function.
5979 Reported by Jim Meyering.
5981 2009-12-10 Bruno Haible <bruno@clisp.org>
5983 Use spaces for indentation, not tabs.
5984 * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
5985 * m4/*.m4: Untabify.
5986 * build-aux/*.h: Untabify.
5987 * tests/**/*.[hc]: Untabify.
5988 * README: New section "Indent with spaces, not TABs", based on
5989 coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
5990 * NEWS: Mention the change.
5992 2009-12-10 Bruno Haible <bruno@clisp.org>
5994 pty test: Fix link error.
5995 * modules/pty-tests (Makefile.am): Add the default LDADD value to
5998 2009-12-07 Simon Josefsson <simon@josefsson.org>
6000 * modules/pty: New file.
6001 * modules/pty-tests: New file.
6002 * m4/pty.m4: New file.
6003 * tests/test-pty.c: New file.
6004 * doc/glibc-headers/pty.texi: Modified.
6005 * doc/glibc-functions/forkpty.texi: Modified.
6006 * doc/glibc-functions/openpty.texi: Modified.
6008 2009-12-10 Bruno Haible <bruno@clisp.org>
6010 Avoid syntax error in C++ mode.
6011 * lib/stdio.in.h (rename): Don't use parameter name 'new'.
6013 2009-12-10 Bruno Haible <bruno@clisp.org>
6015 Use sed with option -e.
6016 * gnulib-tool (func_version, func_emit_copyright_notice,
6017 func_emit_initmacro_end, func_import, func_create_testdir): Pass
6019 * modules/link-warning (Makefile.am): Likewise.
6021 2009-12-10 Jim Meyering <meyering@redhat.com>
6023 mgetgroups: do not write bytes beyond end of malloc'd buffer
6024 * lib/mgetgroups.c: Fix an off-by-one error. When we have no
6025 username, we call getgroups with a one-element-shorter buffer,
6026 but still told it the length was original, max_n_groups.
6028 2009-12-09 Eric Blake <ebb9@byu.net>
6030 cloexec: relax license
6031 * modules/cloexec (Maintainer): Add myself.
6032 (License): Use LGPL, not GPL.
6034 link-warning: optimize generation
6035 * modules/link-warning (Makefile.am): Reduce process usage.
6037 2009-12-09 Bruno Haible <bruno@clisp.org>
6039 * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
6040 workaround was added on 2009-11-17.
6042 2009-12-09 Jim Meyering <meyering@redhat.com>
6043 Bruno Haible <bruno@clisp.org>
6045 link-warning: Allow extra lines at the top of build-aux/link-warning.h.
6046 * modules/link-warning (Makefile.am): Make the comment-removing sed
6047 command more robust in the face of bootstrap-prepended comment lines.
6049 2009-12-09 Bruno Haible <bruno@clisp.org>
6051 * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
6054 2009-12-09 Simon Josefsson <simon@josefsson.org>
6055 Bruno Haible <bruno@clisp.org>
6057 * build-aux/link-warning.h: Add copyright notice.
6058 * modules/link-warning (Makefile.am): Generate link-warning.h from
6059 build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
6060 * NEWS: Mention change in link-warning module.
6061 * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
6062 * modules/dirent (Makefile.am): Add dependency to dirent.h.
6063 * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
6064 * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
6065 * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
6066 * modules/math (Makefile.am): Add dependency to math.h.
6067 * modules/search (Makefile.am): Add dependency to search.h.
6068 * modules/signal (Makefile.am): Add dependency to signal.h.
6069 * modules/spawn (Makefile.am): Add dependency to spawn.h.
6070 * modules/stdio (Makefile.am): Add dependency to stdio.h.
6071 * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
6072 * modules/string (Makefile.am): Add dependency to string.h.
6073 * modules/strings (Makefile.am): Add dependency to strings.h.
6074 * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
6075 * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
6076 * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
6077 * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
6078 * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
6079 * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
6080 * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
6081 * modules/unistd (Makefile.am): Add dependency to unistd.h.
6082 * modules/wchar (Makefile.am): Add dependency to wchar.h.
6084 2009-12-09 Bruno Haible <bruno@clisp.org>
6086 fchdir: Optimize away rpl_fstat when possible.
6087 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
6088 REPLACE_OPEN_DIRECTORY.
6089 * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
6091 2009-12-09 Bruno Haible <bruno@clisp.org>
6093 * lib/fchdir.c: Update comment.
6095 2009-12-09 Bruno Haible <bruno@clisp.org>
6097 * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
6099 2009-12-08 Eric Blake <ebb9@byu.net>
6101 fchdir: avoid memory leak on re-registration.
6102 * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
6104 2009-12-08 Jim Meyering <meyering@redhat.com>
6106 init.sh: avoid Solaris 10 /bin/sh portability problem
6107 Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
6109 $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
6110 $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
6112 tests/init.sh relied on that, accepting a --set-path=DIR argument,
6113 and two tests used that idiom.
6114 * tests/init.sh: Update suggested usage comments.
6115 (path_prepend_): New function, to be used in place
6116 of the --src-path=DIR option.
6117 (setup_): Move PATH-prepending code into path_prepend_.
6118 * tests/test-pread.sh: Adapt to new usage.
6119 * tests/test-xalloc-die.sh: Likewise.
6121 2009-12-08 Simon Josefsson <simon@josefsson.org>
6123 * doc/gnulib.texi (Glibc pty.h): Add.
6124 * doc/glibc-functions/forkpty.texi: Add.
6125 * doc/glibc-functions/openpty.texi: Add.
6126 Suggested by Bruno Haible.
6128 2009-12-08 Eric Blake <ebb9@byu.net>
6130 fchdir: fix logic bugs
6131 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
6132 * tests/test-fchdir.c (main): Enhance test.
6133 * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
6136 dup2: fix logic bugs
6137 * lib/dup2.c (dup2): Fix logic bugs. Use HAVE_DUP2 rather than
6138 REPLACE_DUP2 to decide when rpl_dup2 is needed.
6139 * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
6141 (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
6143 2009-12-07 Eric Blake <ebb9@byu.net>
6145 unlink: fix m4 detection
6146 * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
6148 unistd-safer: add unit test
6149 * modules/unistd-safer-tests: New file.
6150 * tests/test-dup-safer.c: Likewise.
6151 * tests/test-cloexec.c (setmode): Avoid compiler warning.
6152 * tests/test-dup2.c (setmode): Likewise.
6153 * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
6155 cloexec: preserve text vs. binary across dup_cloexec
6156 * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
6158 * modules/dup2-tests (Depends-on): Add binary-io.
6159 * modules/cloexec-tests (Depends-on): Likewise.
6160 * tests/test-dup2.c (setmode, is_mode): New helpers.
6161 (main): Add tests that translation mode is preserved.
6162 * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
6163 Reported by Bruno Haible.
6165 mgetgroups: reduce duplicate listings
6166 * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
6168 * tests/test-chown.h (test_chown): Simplify client.
6169 * tests/test-lchown.h (test_lchown): Likewise.
6171 2009-12-06 Bruno Haible <bruno@clisp.org>
6173 * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
6176 2009-12-06 Bruno Haible <bruno@clisp.org>
6178 * lib/progname.c: Include stdio.h, stdlib.h.
6179 (set_program_name): Reject a NULL argument.
6181 2009-12-05 Eric Blake <ebb9@byu.net>
6183 pipe2-safer: new module
6184 * modules/pipe2-safer: New file.
6185 * lib/unistd-safer.h (pipe2_safer): New prototype.
6186 * lib/unistd--.h (pipe2): New wrapper.
6187 * lib/pipe-safer.c (pipe2_safer): New function.
6188 * modules/pipe (Depends-on): Add pipe2-safer.
6189 * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
6191 stdlib-safer: preserve cloexec flag for mkostemp[s]
6192 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
6195 unistd-safer: allow preservation of cloexec status via flag
6196 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
6198 * lib/dup-safer.c (dup_safer_flag): New function.
6199 * lib/fd-safer.c (fd_safer_flag): Likewise.
6200 * modules/cloexec (configure.ac): Set witness.
6202 test-dup2: enhance test
6203 * modules/dup2-tests (Depends-on): Add cloexec.
6204 * tests/test-dup2.c (main): Enhance test.
6206 cloexec: add dup_cloexec
6207 * lib/cloexec.h (dup_cloexec): New prototype. Add copyright
6208 header and comments.
6209 * lib/cloexec.c (set_cloexec_flag): Add comments.
6210 (dup_cloexec): New function, with mingw implementation borrowed
6212 * lib/w32spawn.h (dup_noinherit): ...here.
6213 * modules/execute (Depends-on): Add cloexec.
6214 * modules/pipe (Depends-on): Likewise.
6215 * modules/cloexec (Depends-on): Add dup2.
6216 * modules/cloexec-tests (Files): New file.
6217 * tests/test-cloexec.c: Likewise.
6219 test-xalloc-die: fix test for mingw
6220 * modules/xalloc-die-tests (Files): Add tests/init.sh.
6221 * tests/test-xalloc-die.sh: Rewrite to use init.sh. Strip
6222 directory and .exe suffix off argv[0] output.
6224 test-fseeko: fix test for mingw
6225 * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
6226 than undefining fseek, so test will pass on mingw.
6228 2009-12-05 Bruno Haible <bruno@clisp.org>
6230 * lib/progname.h (set_program_name): Clarify specification.
6231 * lib/progname.c (set_program_name): Likewise.
6232 Reported by Jim Meyering.
6234 2009-12-05 Jim Meyering <meyering@redhat.com>
6236 maint.mk: backslash-escape parens in default regexp
6237 * top/maint.mk (news-check-regexp): Now that we're using grep -E,
6238 backslash-escape the literal parentheses.
6240 maint.mk: news-date-check: use grep -E
6241 * top/maint.mk (today): Define a Make variable, not a...
6242 (news-date-check): ...shell variable.
6243 (news-date-regexp): Use the Make variable.
6244 Use grep's -E option. Change the failing diagnostic to mention
6245 the variable, $(news-date-regexp).
6247 2009-12-04 Alfred M. Szmidt <ams@gnu.org>
6249 maintainer-makefile: allow customization of NEWS entry format
6250 * top/maint.mk (news-date-regexp): New overridable variable.
6251 (news-date-check): Use it.
6253 2009-12-04 Eric Blake <ebb9@byu.net>
6255 mgetgroups: add xgetgroups, and avoid ENOSYS failures
6256 * lib/mgetgroups.h (xgetgroups): New prototype.
6257 * lib/mgetgroups.c (xgetgroups): New wrapper.
6258 (mgetgroups): Handle ENOSYS.
6259 * modules/mgetgroups (Depends-on): Add realloc.
6260 Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
6262 mgetgroups: avoid argument promotion issues with -1
6263 * lib/mgetgroups.c (mgetgroups): A cast is required when checking
6265 * tests/test-chown.h (getegid, test_chown): Likewise.
6266 * tests/test-lchown.h (getegid, test_lchown): Likewise.
6268 2009-12-03 Paolo Bonzini <bonzini@gnu.org>
6270 exclude: Fix header file problems.
6271 * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
6273 2009-12-01 Jim Meyering <meyering@redhat.com>
6275 fts: fts_open: do not let an empty string cause immediate failure
6276 This is required in support of GNU rm, for which the command
6277 "rm A '' B" must process and remove both A and B, in spite of
6278 the empty string argument.
6279 * lib/fts.c (fts_open): Do not let the presence of an empty string
6280 cause fts_open to fail immediately. Most fts-using tools must be
6281 able to process all arguments, in order, and can be expected to
6282 diagnose such arguments themselves.
6284 2009-11-30 Eric Blake <ebb9@byu.net>
6286 utimens: fix compilation error
6287 * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
6288 Declare variable at right scope.
6290 2009-11-29 Jim Meyering <meyering@redhat.com>
6292 bootstrap: handle perl-5.11's changed --version output
6293 * build-aux/bootstrap (get_version): Handle perl separately,
6294 since perl-5.11's --version output is different.
6296 2009-11-28 Jim Meyering <meyering@redhat.com>
6298 userspec: depend on the inttostr module, too
6299 * modules/userspec (Depends-on): Add inttostr.
6301 userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
6302 * lib/userspec.c (parse_with_separator): Do not accept a user ID
6303 number of MAXUID when it evaluates to (uid_t) -1.
6304 Likewise for group ID. Reported by Matt McCutchen in
6305 <http://savannah.gnu.org/bugs/?28113>
6307 userspec: reformat to use spaces, not TABs
6308 * lib/userspec.c: Expand TABs to spaces.
6309 Add Emacs' "indent-tabs-mode: nil" hint.
6311 2009-11-27 Eric Blake <ebb9@byu.net>
6313 getopt-gnu: flush out another BSD bug
6314 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
6315 * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
6317 * tests/test-getopt.h (test_getopt): End lists with NULL.
6318 * tests/test-getopt_long.h (test_getopt_long): Likewise.
6319 (test_getopt_long_posix): Enhance test.
6320 * modules/getopt-posix-tests (Depends-on): Add stdbool.
6321 * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
6323 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6326 2009-11-27 Simon Josefsson <simon@josefsson.org>
6328 * modules/idpriv-droptemp-tests (Notice): Fix text.
6330 2009-11-27 Jim Meyering <meyering@redhat.com>
6332 test-xalloc-die: avoid spurious failure due to libtool argv difference
6333 In a libtool-enabled project, this test would fail due to a difference
6334 in the emitted program name, e.g.,
6335 -test-xalloc-die: memory exhausted
6336 +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
6337 Use program to avoid that.
6338 * modules/xalloc-die-tests (Depends-on): Add progname.
6339 * tests/test-xalloc-die.c: Include progname.h".
6340 (program_name): Remove decl.
6341 (main): Call set_program_name.
6342 * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
6344 2009-11-26 Richard Jones <rjones@redhat.com>
6346 w32sock: leave win32 error in place.
6347 * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
6349 2009-11-26 Eric Blake <ebb9@byu.net>
6351 init.sh: suggest to use skip_ and fail_ functions in comments
6352 * tests/init.sh: Add a sentence.
6354 2009-11-25 Bruno Haible <bruno@clisp.org>
6356 init.sh: add documentation in comments
6357 * tests/init.sh: Add some developer and user documentation.
6359 2009-11-26 Jim Meyering <meyering@redhat.com>
6361 init.sh: accommodate even those who specify bogus srcdir manually
6362 * tests/init.sh: Normally, srcdir is guaranteed by automake and
6363 configure-time tests to be sanitized, so that there is no need to
6364 use "$srcdir" in Makefile rules and shell scripts. Using $srcdir
6365 (with no double quotes) suffices. However, since tests may be
6366 invoked manually, and since you may explicitly set srcdir to the
6367 name of a directory containing spaces, do quote its uses here.
6368 * tests/test-pread.sh: Likewise.
6369 Suggested by Bruno Haible.
6371 test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
6372 * tests/test-pread.sh: Write no data into the pipe, because
6373 test-pread actually reads none. This avoids a diagnostic,
6374 "bash: echo: write error: Broken pipe", that arises in the unusual
6375 event something is ignoring SIGPIPE, and might be interpreted
6376 as some sort of failure. Reported by Bruno Haible.
6378 2009-11-25 Jim Meyering <meyering@redhat.com>
6380 test-pread: cover failure with ESPIPE and EINVAL
6381 * tests/test-pread.c (main): Test for failure, too.
6382 * tests/test-pread.sh: Invoke with stdin on a pipe.
6383 Suggested by Eric Blake.
6385 pread: improvement and fix
6386 * modules/pread (Depends-on): Depend on lseek, for portability to
6387 e.g., mingw. Suggested by Eric Blake.
6388 * lib/pread.c (__libc_read): Define. Reported by Richard W.M. Jones.
6390 unistd.in.h: correct declaration of pread
6391 * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
6392 Reported by Richard W.M. Jones.
6394 test-pread.sh: distribute the test script
6395 * modules/pread-tests (Files): Include test-pread.sh.
6397 test-pread.sh: clean up
6398 * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
6399 * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
6400 That is unnecessary, since it's always ".".
6401 Suggestion from Eric Blake.
6403 test-pread.sh: make executable
6404 * tests/test-pread.sh: Set executable bit.
6405 Reported by Eric Blake.
6407 correct typo in test-pread.sh
6408 * tests/test-pread.sh: Add #! line.
6411 * tests/test-pread.c: New file.
6412 * tests/test-pread.sh: Likewise.
6413 * modules/pread-tests: Likewise.
6416 * modules/pread: New file.
6417 * lib/unistd.in.h (pread): Define/declare.
6418 * lib/pread.c (pread): New file.
6419 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
6420 * modules/unistd (Makefile.am): Substitute witnesses.
6421 * doc/posix-functions/pread.texi (pread): Update.
6422 * MODULES.html.sh: Add pread.
6424 2009-11-25 Jim Meyering <meyering@redhat.com>
6426 tests/init.sh: new file to be used via most *.sh tests
6427 * tests/init.sh: New file.
6429 2009-11-25 Eric Blake <ebb9@byu.net>
6431 utimens: work around older Linux failure with symlinks
6432 * lib/utimens.c (lutimensat_works_really): New variable.
6433 (fdutimens, lutimens): Use it to manage kernels that support
6434 nanosecond times on files, but not on symlinks.
6435 Reported by Ondřej Vašík.
6437 utimes: fix configure grammar
6438 * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
6440 2009-11-25 Paolo Bonzini <bonzini@gnu.org>
6442 regex: Fix fastmap for multibyte character ranges.
6443 * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
6444 characters when a multibyte character range is included.
6446 2009-11-22 Andy Wingo <wingo@pobox.com>
6448 version-etc: work also with AM_INIT_AUTOMAKE's no-define option
6449 * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
6451 2009-11-24 Bruno Haible <bruno@clisp.org>
6453 doc: Most *_l functions exist in MacOS X 10.5.
6454 * doc/posix-functions/duplocale.texi: Update platforms list.
6455 * doc/posix-functions/freelocale.texi: Likewise.
6456 * doc/posix-functions/newlocale.texi: Likewise.
6457 * doc/posix-functions/uselocale.texi: Likewise.
6458 * doc/posix-functions/isalnum_l.texi: Likewise.
6459 * doc/posix-functions/isalpha_l.texi: Likewise.
6460 * doc/posix-functions/isblank_l.texi: Likewise.
6461 * doc/posix-functions/iscntrl_l.texi: Likewise.
6462 * doc/posix-functions/isdigit_l.texi: Likewise.
6463 * doc/posix-functions/isgraph_l.texi: Likewise.
6464 * doc/posix-functions/islower_l.texi: Likewise.
6465 * doc/posix-functions/isprint_l.texi: Likewise.
6466 * doc/posix-functions/ispunct_l.texi: Likewise.
6467 * doc/posix-functions/isspace_l.texi: Likewise.
6468 * doc/posix-functions/isupper_l.texi: Likewise.
6469 * doc/posix-functions/iswalnum_l.texi: Likewise.
6470 * doc/posix-functions/iswalpha_l.texi: Likewise.
6471 * doc/posix-functions/iswblank_l.texi: Likewise.
6472 * doc/posix-functions/iswcntrl_l.texi: Likewise.
6473 * doc/posix-functions/iswctype_l.texi: Likewise.
6474 * doc/posix-functions/iswdigit_l.texi: Likewise.
6475 * doc/posix-functions/iswgraph_l.texi: Likewise.
6476 * doc/posix-functions/iswlower_l.texi: Likewise.
6477 * doc/posix-functions/iswprint_l.texi: Likewise.
6478 * doc/posix-functions/iswpunct_l.texi: Likewise.
6479 * doc/posix-functions/iswspace_l.texi: Likewise.
6480 * doc/posix-functions/iswupper_l.texi: Likewise.
6481 * doc/posix-functions/iswxdigit_l.texi: Likewise.
6482 * doc/posix-functions/isxdigit_l.texi: Likewise.
6483 * doc/posix-functions/nl_langinfo_l.texi: Likewise.
6484 * doc/posix-functions/strcasecmp_l.texi: Likewise.
6485 * doc/posix-functions/strcoll_l.texi: Likewise.
6486 * doc/posix-functions/strfmon_l.texi: Likewise.
6487 * doc/posix-functions/strftime_l.texi: Likewise.
6488 * doc/posix-functions/strncasecmp_l.texi: Likewise.
6489 * doc/posix-functions/strxfrm_l.texi: Likewise.
6490 * doc/posix-functions/tolower_l.texi: Likewise.
6491 * doc/posix-functions/toupper_l.texi: Likewise.
6492 * doc/posix-functions/towctrans_l.texi: Likewise.
6493 * doc/posix-functions/towlower_l.texi: Likewise.
6494 * doc/posix-functions/towupper_l.texi: Likewise.
6495 * doc/posix-functions/wcscoll_l.texi: Likewise.
6496 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
6497 * doc/posix-functions/wctrans_l.texi: Likewise.
6498 * doc/posix-functions/wctype_l.texi: Likewise.
6499 * doc/glibc-functions/strptime_l.texi: Likewise.
6500 * doc/glibc-functions/strtod_l.texi: Likewise.
6501 * doc/glibc-functions/strtof_l.texi: Likewise.
6502 * doc/glibc-functions/strtol_l.texi: Likewise.
6503 * doc/glibc-functions/strtold_l.texi: Likewise.
6504 * doc/glibc-functions/strtoll_l.texi: Likewise.
6505 * doc/glibc-functions/strtoul_l.texi: Likewise.
6506 * doc/glibc-functions/strtoull_l.texi: Likewise.
6507 * doc/glibc-functions/wcsftime_l.texi: Likewise.
6508 * doc/glibc-functions/wcstod_l.texi: Likewise.
6509 * doc/glibc-functions/wcstof_l.texi: Likewise.
6510 * doc/glibc-functions/wcstol_l.texi: Likewise.
6511 * doc/glibc-functions/wcstold_l.texi: Likewise.
6512 * doc/glibc-functions/wcstoll_l.texi: Likewise.
6513 * doc/glibc-functions/wcstoul_l.texi: Likewise.
6514 * doc/glibc-functions/wcstoull_l.texi: Likewise.
6516 2009-11-24 Bruno Haible <bruno@clisp.org>
6518 duplocale: Fix logic bug.
6519 * lib/duplocale.c: Don't include <langinfo.h>.
6520 (_NL_LOCALE_NAME): Remove macro.
6521 (rpl_duplocale): Use setlocale instead of nl_langinfo.
6522 * tests/test-duplocale.c (main): Also test duplocale after uselocale.
6524 2009-11-23 Jim Meyering <meyering@redhat.com>
6526 test-update-copyright: don't hard-code /usr/bin/perl
6527 * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
6528 perl to print the current year. Gilles Espinasse reported that
6529 the replaced use of perl was hard-coded as /usr/bin/perl.
6531 2009-11-23 Bruno Haible <bruno@clisp.org>
6533 duplocale: Add support for glibc 2.3.x.
6534 * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
6536 2009-11-22 Bruno Haible <bruno@clisp.org>
6538 vasnprintf: Tiny optimization.
6539 * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
6542 2009-11-22 Bruno Haible <bruno@clisp.org>
6544 Tests for module 'duplocale'.
6545 * modules/duplocale-tests: New file.
6546 * tests/test-duplocale.c: New file.
6548 New module 'duplocale'.
6549 * m4/duplocale.m4: New file.
6550 * lib/locale.in.h (duplocale): New declaration.
6551 * lib/duplocale.c: New file.
6552 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
6553 gl_LOCALE_H_DEFAULTS): New macros.
6554 (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
6555 gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
6556 * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
6558 * modules/duplocale: New file.
6559 * doc/posix-functions/duplocale.texi: Mention the glibc bug.
6561 2009-11-22 Bruno Haible <bruno@clisp.org>
6563 * modules/locale-tests (configure.ac): Test for newlocale function.
6564 * tests/test-locale.c: When the system has extended locale functions,
6565 verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
6567 locale: Make locale_t available when possible.
6568 * lib/locale.in.h: Include <xlocale.h> when it exists.
6569 * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
6570 replace <locale.h> if it does not define locale_t but <xlocale.h> does.
6571 * modules/locale (Depends-on): Add extensions.
6572 (Makefile.am): Also substitute HAVE_XLOCALE_H.
6573 * doc/posix-headers/locale.texi: Document the problem with locale_t.
6575 2009-11-22 Bruno Haible <bruno@clisp.org>
6578 * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
6580 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
6581 * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6582 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
6584 2009-11-22 Bruno Haible <bruno@clisp.org>
6586 error: account for the possibility of freopen (stdout).
6587 * lib/error.c: Include <unistd.h>.
6588 (flush_stdout): New function, extracted from error and error_at_line.
6589 Determine stdout's fd dynamically.
6590 (error, error_at_line): Invoke flush_stdout.
6591 * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
6592 * modules/error (Depends-on): Add unistd.
6594 2009-11-22 Bruno Haible <bruno@clisp.org>
6596 diffseq: Add comment.
6597 * lib/diffseq.h (IF_LINT): Add comment about pitfall.
6599 2009-11-22 Jim Meyering <meyering@redhat.com>
6601 c-stack: avoid defining an unused static function
6602 * lib/c-stack.c (find_stack_direction): Do not define this function
6603 when it will not be used.
6605 diffseq: avoid spurious gcc warnings
6606 * lib/diffseq.h (IF_LINT2): Define.
6607 (compareseq): Use it to initialize two members of "part".
6608 This avoids two used-uninitialized warnings.
6610 2009-11-21 Jim Meyering <meyering@redhat.com>
6612 c-stack: avoid "ignoring return value of `write'" warning
6613 * lib/c-stack.c: Include "ignore-value.h".
6614 (die): Explicitly ignore each write return value.
6615 * modules/c-stack (Depends-on): Add ignore-value.
6617 2009-11-21 Bruno Haible <bruno@clisp.org>
6619 diffseq: reduce scope of variable 'best'.
6620 * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
6621 variable, earlier used for two different purposes.
6623 2009-11-21 Jim Meyering <meyering@redhat.com>
6625 diffseq: remove useless assignment to "best"
6626 * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
6627 assignment. At that point "best" is already guaranteed to be zero.
6629 2009-11-20 Eric Blake <ebb9@byu.net>
6631 build: mention ftp redirector in release announcements
6632 * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
6633 values that used to come from cfg.mk; mention FTP redirect URL.
6634 * build-aux/announce-gen: Mention the mirror list.
6635 Suggested by Karl Berry.
6637 nanosleep: improve port to mingw
6638 * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
6639 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
6640 LIB_NANOSLEEP, but only when needed.
6641 * modules/select (Link): Document LIBSOCKET.
6642 * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
6645 nanosleep: work around cygwin bug
6646 * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
6647 Fix logic bug when nanosleep fails. Work around cygwin 1.5.x
6649 (getnow): Delete, not needed.
6650 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
6652 * modules/nanosleep (Depends-on): Add intprops and verify. Drop
6653 clock-time, gettime.
6654 * doc/posix-functions/nanosleep.texi (nanosleep): Document the
6656 * modules/nanosleep-tests: New test.
6657 * tests/test-nanosleep.c: New file.
6659 sleep: work around cygwin bug
6660 * lib/sleep.c (rpl_sleep): Work around the bug.
6661 * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
6662 (gl_PREREQ_SLEEP): Delete unused macro.
6663 * modules/sleep (Depends-on): Add verify.
6664 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
6665 * modules/unistd (Makefile.am): Substitute witness.
6666 * lib/unistd.in.h (sleep): Update prototype.
6667 * doc/posix-functions/sleep.texi (sleep): Document the bug.
6668 * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
6669 * modules/sleep-tests (Depends-on): Check for alarm.
6671 2009-11-20 Jim Meyering <meyering@redhat.com>
6673 maint.mk: improve sc_prohibit_magic_number_exit
6674 * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
6675 so it does not match uses like System.exit(1).
6676 Add comments showing how to correct all offenders.
6678 2009-11-19 Eric Blake <ebb9@byu.net>
6680 xalloc-die-tests: add missing library
6681 * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
6683 test-xvasprintf: silence compiler warnings
6684 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
6685 empty string from gcc.
6687 2009-11-19 Jim Meyering <meyering@redhat.com>
6689 xfreopen: new module, from coreutils
6690 * modules/xfreopen: New module.
6691 * lib/xfreopen.c: New file.
6692 * lib/xfreopen.h: New file.
6693 * MODULES.html.sh (File stream based Input/Output"): Add it.
6695 2009-11-19 Eric Blake <ebb9@byu.net>
6697 manywarnings: depend on warnings
6698 * modules/manywarnings (Depends-on): Add warnings.
6700 build: avoid compiler warnings
6701 * lib/select.c (rpl_select): Delete unused variable.
6702 * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
6704 2009-11-18 Eric Blake <ebb9@byu.net>
6706 tests: avoid false negative with --with-packager
6707 * tests/test-version-etc.sh: Discard packager information.
6708 * tests/test-argp-version-etc-1.sh: Likewise.
6709 Reported by Mike Frysinger.
6711 utimens: fix regression on Solaris
6712 * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
6713 * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
6714 can only change fd timestamps via futimesat. Instead, use an
6715 additional witness macro to avoid BSD bug.
6716 Reported by Jim Meyering.
6718 2009-11-17 Eric Blake <ebb9@byu.net>
6720 usleep: use it to simplify tests
6721 * modules/stat-time-tests (Depends-on): Add usleep.
6722 (configure.ac): Drop usleep check.
6723 * modules/chown-tests (Depends-on, configure.ac): Likewise.
6724 * modules/lchown-tests (Depends-on, configure.ac): Likewise.
6725 * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
6726 * modules/futimens-tests (Depends-on, configure.ac): Likewise.
6727 * modules/openat-tests (Depends-on, configure.ac): Likewise.
6728 * modules/utimens-tests (Depends-on, configure.ac): Likewise.
6729 * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
6730 * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
6732 * tests/test-chown.h (nap): Rely on nicer usleep semantics.
6733 * tests/test-lchown.h (nap): Likewise.
6734 * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
6735 * tests/test-stat-time.c (nap): Likewise.
6736 * tests/test-utimens-common.h (nap): Update comments.
6739 * modules/usleep: New file.
6740 * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
6741 * lib/usleep.c (usleep): Likewise.
6742 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
6743 * modules/unistd (Makefile.am): Substitute witnesses.
6744 * lib/unistd.in.h (usleep): Add declaration.
6745 * doc/pastposix-functions/usleep.texi (usleep): Document this.
6746 * MODULES.html.sh (Date and time): Likewise.
6747 * modules/usleep-tests (Depends-on): New test.
6748 * tests/test-usleep.c: New file.
6750 chown: work around OpenBSD bug
6751 * lib/chown.c (rpl_chown): Work around the bug.
6752 * lib/lchown.c (rpl_lchown): Attempt to do likewise.
6753 * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
6754 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
6755 * modules/chown (Depends-on): Add stdbool.
6756 * modules/lchown (Depends-on): Likewise.
6757 * doc/posix-functions/chown.texi (chown): Document the bug.
6758 * doc/posix-functions/lchown.texi (lchown): Likewise.
6759 * tests/test-lchown.h (test_chown): Relax test.
6761 mkstemp: avoid conflict with C++ keyword template
6762 * lib/mkdtemp.c (mkdtemp): Change spelling of template.
6763 * lib/mkostemp.c (mkostemp): Likewise.
6764 * lib/mkostemps.c (mkostemps): Likewise.
6765 * lib/mkstemp.c (mkstemp): Likewise.
6766 * lib/mkstemps.c (mkstemps): Likewise.
6768 xalloc-die-tests: optimize
6769 * tests/test-xalloc-die.sh: Reduce number of processes.
6771 2009-11-17 Simon Josefsson <simon@josefsson.org>
6773 * gnulib-tool: Support LGPLv3+ licenses in module files. Tiny
6774 patch from ludo@gnu.org (Ludovic Courtès).
6776 2009-11-17 Jim Meyering <meyering@redhat.com>
6778 version-etc: use proper license string
6779 * modules/version-etc (License): Use LGPL, not LGPLv3+.
6780 * modules/version-etc-fsf: Likewise.
6782 2009-11-17 Simon Josefsson <simon@josefsson.org>
6784 * tests/test-xalloc-die.sh: Add license. Check that nothing is
6785 printed to stdout. Deal with EOL differences.
6787 2009-11-17 Eric Blake <ebb9@byu.net>
6789 unsetenv: work around Solaris bug
6790 * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
6791 * lib/unsetenv.c (rpl_unsetenv): Work around it.
6792 Reported by Jim Meyering.
6794 vasnprintf: avoid compiler warnings
6795 * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
6797 * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
6799 2009-11-17 Simon Josefsson <simon@josefsson.org>
6801 * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
6802 settings since xalloc-die is no longer the self test,
6805 2009-11-17 Jim Meyering <meyering@redhat.com>
6807 test-xalloc-die.sh: make the code agree with the commit log
6808 * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
6809 at the end, just in case you happen to have a test-xalloc-die
6810 program in some other PATH directory.
6812 test-xalloc-die.sh: fix a portability bug
6813 * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
6814 Instead, set PATH to start with "." and invoke via "test-xalloc-die".
6815 Otherwise, argv[0] (as often seen in diagnostics) would be too
6816 system-dependent, sometimes with, and sometimes without the leading "./".
6818 version-etc-fsf: relax license to LGPLv3+
6819 * modules/version-etc-fsf (License): Relax license.
6821 2009-11-16 Eric Blake <ebb9@byu.net>
6823 xalloc-die-tests: avoid printing null pointer
6824 * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
6826 * tests/test-xalloc-die.c (program_name): Declare.
6827 * tests/test-xalloc-die.sh (tmpfiles): New file.
6829 setenv, unsetenv: work around various bugs
6830 * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
6831 (setenv) [HAVE_SETENV]: Work around bugs.
6832 * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
6833 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
6835 (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
6836 * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
6837 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
6838 * modules/stdlib (Makefile.am): Update substitutions.
6839 * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
6840 * doc/posix-functions/setenv.texi (setenv): Document the bugs.
6841 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
6842 * modules/setenv-tests: New test.
6843 * modules/unsetenv-tests: Likewise.
6844 * tests/test-setenv.c: New file.
6845 * tests/test-unsetenv.c: Likewise.
6847 2009-11-16 Jim Meyering <meyering@redhat.com>
6849 version-etc: relax license to LGPLv3+
6850 * modules/version-etc (License): Relax license.
6852 better AC_REQUIRE expanded-before-required-warning avoidance
6853 * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
6854 with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
6855 Suggested by Eric Blake. This change also reverts commit 1b712ba8,
6856 which is no longer needed.
6858 2009-11-16 Eric Blake <ebb9@byu.net>
6860 test-freading: clean up temporary file
6861 * tests/test-freading.c (main): Remove file on success, and use
6862 ASSERT more liberally.
6863 Reported by Jim Meyering.
6865 2009-11-16 Jim Meyering <meyering@redhat.com>
6867 avoid new AC_REQUIRE expanded-before-required warnings
6868 * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
6870 * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
6871 * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
6873 2009-11-15 Simon Josefsson <simon@josefsson.org>
6875 * tests/test-xalloc-die.c: New file.
6876 * modules/xalloc-die-tests: New file.
6877 * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
6878 XFAIL_TESTS so it can be appended by modules.
6880 2009-11-15 Simon Josefsson <simon@josefsson.org>
6882 * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898. Reported
6883 by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
6885 2009-11-14 Eric Blake <ebb9@byu.net>
6887 fnmatch: avoid compiler warning
6888 * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
6889 to silence compiler warning about mismatch signedness in ?:.
6890 Reported by Robert Millan.
6892 intprops: add double-inclusion guard
6893 * lib/intprops.h: Allow idempotent includes.
6894 Suggested by Bruce Korb.
6896 openat: detect Solaris fchownat bug
6897 * lib/fchownat.c (rpl_fchownat): Work around Solaris bug. Avoid
6898 penalizing glibc chownat when only lchownat is broken.
6899 * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
6900 trailing slash bugs.
6901 * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
6902 * modules/openat-tests (Files): Include more files.
6903 (Depends-on): Add mgetgroups, sleep, stat-time.
6904 (configure.ac): Add additional checks.
6905 (Makefile.am): Build new test.
6906 * tests/test-fchownat.c: New file.
6908 lchown: detect Solaris and FreeBSD bug
6909 * lib/lchown.c (rpl_lchown): Work around bug.
6910 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
6911 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6912 * modules/unistd (Makefile.am): Populate it.
6913 * lib/unistd.in.h (lchown): Update declaration.
6914 * doc/posix-functions/lchown.texi (lchown): Document the bug.
6915 * modules/lchown-tests: New file.
6916 * tests/test-lchown.h (test_lchown): Likewise.
6917 * tests/test-lchown.c (main): Likewise.
6919 chown: detect Solaris and FreeBSD bug
6920 * lib/chown.c (rpl_chown): Work around bug.
6921 * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
6922 (gl_PREREQ_CHOWN): Delete.
6923 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6924 * modules/unistd (Makefile.am): Populate it.
6925 * lib/unistd.in.h (chown): Update declaration.
6926 * lib/lchown.c (chown): Update client.
6927 * modules/lchown (Depends-on): Add lstat.
6928 * doc/posix-functions/chown.texi (chown): Document the bug.
6929 * doc/posix-functions/getgroups.texi (getgroups): Document
6931 * modules/chown-tests: New file.
6932 * tests/test-chown.h (test_chown): Likewise.
6933 * tests/test-chown.c (main): Likewise.
6935 2009-11-14 Robert Millan <rmh.grub@aybabtu.com> (tiny change)
6937 gnulib-tool: correctly detect absence of m4 directories
6938 * gnulib-tool: Avoid extra newline on data passed to wc -l.
6940 2009-11-14 Jim Meyering <meyering@redhat.com>
6942 maint.mk: Prohibit inclusion of "xalloc.h" without use.
6943 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
6945 2009-11-14 John W. Eaton <jwe@gnu.org>
6947 strftime.h: wrap funtion declaration in extern "C" block
6948 * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
6950 2009-11-13 Eric Blake <ebb9@byu.net>
6952 getgroups: avoid compiler warning
6953 * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
6955 getgroups: work around FreeBSD bug
6956 * lib/getgroups.c (rpl_getgroups): Work around the bug.
6957 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
6958 * doc/posix-functions/getgroups.texi (getgroups): Document it.
6959 * tests/test-getgroups.c (main): Fix buffer overrun.
6961 getgroups: avoid compilation failure
6962 * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
6963 * modules/getgroups (Depends-on): Add stdint.
6965 2009-11-13 Jim Meyering <meyering@redhat.com>
6967 test-getgroups: avoid compilation failure
6968 * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
6970 2009-11-13 Eric Blake <ebb9@byu.net>
6972 mgetgroups: new module, taken from coreutils
6973 * modules/mgetgroups: New file.
6974 * lib/mgetgroups.h: Likewise.
6975 * lib/mgetgroups.c (mgetgroups): Likewise.
6976 * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
6977 * MODULES.html.sh (Users and groups): Mention it.
6979 getgroups: don't expose GETGROUPS_T to user
6980 * lib/getgroups.c (rpl_getgroups): Change signature. Copy array
6981 an element at a time if GETGROUPS_T is wrong size.
6982 * lib/getugroups.h (getugroups): Change signature.
6983 * lib/unistd.in.h (getgroups): Likewise.
6984 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
6985 signature needs fixing.
6986 * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
6988 * modules/group-member (Depends-on): Add getgroups.
6989 * lib/group-member.c (group_info, get_group_info): Use gid_t.
6990 (group_member): Rely on getgroups replacement.
6991 * lib/getugroups.c (getugroups): Use gid_t.
6992 * tests/test-getgroups.c (main): Likewise.
6993 * NEWS: Mention the signature change.
6994 * doc/posix-functions/getgroups.texi (getgroups): Mention the
6995 problem with signature.
6996 * doc/glibc-functions/setgroups.texi (setgroups): Mention that
6997 GETGROUPS_T is still useful for setgroups.
6999 getgroups, getugroups: provide stubs for mingw
7000 * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
7001 * lib/getugroups.c (getugroups): Likewise.
7002 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
7003 function. Modernize replacement scheme.
7004 (gl_PREREQ_GETGROUPS): Delete.
7005 * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
7006 * modules/getgroups (configure.ac): Declare witness.
7007 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7008 * modules/unistd (Depends-on): Substitute witness.
7009 * lib/unistd.in.h (getgroups): Declare replacement.
7011 getgroups: avoid calling exit
7012 * modules/getgroups (Depends-on): Add malloc-posix and unistd,
7014 * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
7016 * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
7017 exiting, in the rare case of malloc failure.
7019 getgroups: fix logic error
7020 * lib/getgroups.c (rpl_getgroups): Don't fail if current process
7021 has more than 20 groups.
7022 * modules/getgroups-tests: New test.
7023 * tests/test-getgroups.c: New file.
7025 2009-11-13 Simon Josefsson <simon@josefsson.org>
7027 * tests/test-base64.c: Improve.
7029 2009-11-13 Simon Josefsson <simon@josefsson.org>
7031 * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
7032 Blake <ebb9@byu.net>.
7034 2009-11-13 Simon Josefsson <simon@josefsson.org>
7036 * tests/test-xvasprintf.c: Add %s%s related checks.
7038 2009-11-12 Eric Blake <ebb9@byu.net>
7040 version-etc: match standards.texi style
7041 * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
7042 and use <> only for URLs.
7044 2009-11-10 Kamil Dudka <kdudka@redhat.com>
7046 fts: do not fail on a submount during traversal
7047 * lib/fts.c (fts_build): Read the stat info again after opening
7048 a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
7049 Original report at http://bugzilla.redhat.com/501848.
7051 2009-11-12 Jim Meyering <meyering@redhat.com>
7053 bootstrap: sync from coreutils
7054 * build-aux/bootstrap (bootstrap_epilogue): New function.
7055 Use git_modules_config in one more place. This make bootstrap's
7056 --gnulib-srcdir option more useful for testing.
7058 bootstrap: generalize autoheader check
7059 * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
7062 2009-11-11 Eric Blake <ebb9@byu.net>
7064 mkfifoat: use new modules for Solaris and BSD bugs
7065 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
7066 * lib/mkfifoat.c (mknodat): Split...
7067 * lib/mknodat.c (mknodat): ...into new file.
7068 * modules/mkfifoat (Files): Ship new file.
7069 (Depends-on): Add mkfifo, mknod.
7070 * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
7071 (Depends-on): Add symlink.
7072 * tests/test-mkfifoat.c (main): Enhance test. Drop portions now
7073 redundant with test_mkfifo.h.
7074 (do_mkfifoat, do_mknodat): New helpers.
7077 * modules/mknod: New file.
7078 * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
7079 * lib/mknod.c (mknod): Likewise.
7080 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7082 * modules/sys_stat (Makefile.am): Substitute them.
7083 * lib/sys_stat.in.h (mknod): Declare replacement.
7084 * MODULES.html.sh (Support for systems lacking POSIX:2008):
7086 * doc/posix-functions/mknod.texi (mknod): Likewise.
7087 * modules/mknod-tests: New test.
7088 * tests/test-mknod.c: Likewise.
7091 * modules/mkfifo: New file.
7092 * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7093 * lib/mkfifo.c (mkfifo): Likewise.
7094 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7096 * modules/sys_stat (Makefile.am): Substitute them.
7097 * lib/sys_stat.in.h (mkfifo): Declare replacement.
7098 * MODULES.html.sh (Support for systems lacking POSIX:2008):
7100 * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
7101 * modules/mkfifo-tests: New test.
7102 * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
7103 from test-mkfifoat.c.
7104 * tests/test-mkfifo.c: New file.
7106 readlink: detect FreeBSD bug
7107 * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
7109 * doc/posix-functions/readlink.texi (readlink): Document the bug.
7110 * tests/test-readlink.h (test_readlink): Enhance test.
7112 symlink: detect FreeBSD bug
7113 * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
7115 * doc/posix-functions/symlink.texi (symlink): Document the bug.
7116 * tests/test-symlink.h (test_symlink): Enhance test.
7118 2009-11-10 Eric Blake <ebb9@byu.net>
7120 link: detect FreeBSD bug
7121 * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
7123 * doc/posix-functions/link.texi (link): Document the bug.
7124 * tests/test-link.h (test_link): Enhance test.
7125 * tests/test-linkat.c (main): Update caller.
7127 unlink, remove: detect FreeBSD bug
7128 * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
7130 * doc/posix-functions/unlink.texi (unlink): Document the bug.
7131 * doc/posix-functions/remove.texi (remove): Likewise.
7132 * tests/test-unlink.h (test_unlink): Enhance test.
7133 * tests/test-remove.c (main): Likewise.
7135 2009-11-09 Eric Blake <ebb9@byu.net>
7137 rename: detect FreeBSD bug
7138 * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
7140 * modules/renameat-tests (Depends-on): Add filenamecat.
7141 * tests/test-rename.h (test_rename): Allow one more errno.
7142 * tests/test-renameat.c (main): Likewise.
7143 * doc/posix-functions/rename.texi (rename): Document the bug.
7145 open: detect FreeBSD bug
7146 * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
7148 * doc/posix-functions/open.texi (open): Document the bug.
7149 * doc/posix-functions/utimes.texi (utimes): Likewise.
7150 * tests/test-open.h (test_open): Add parameters, and test symlink
7152 * tests/test-open.c (main): Adjust caller.
7153 * tests/test-fcntl-safer.c (main): Likewise.
7154 * modules/open-tests (Depends-on): Add stdbool, symlink.
7155 * modules/fcntl-safer-tests (Depends-on): Likewise.
7156 * tests/test-openat.c (main): Add test-open tests.
7158 stat: detect FreeBSD bug
7159 * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
7161 * doc/posix-functions/stat.texi (stat): Document the bug.
7162 * tests/test-stat.h (test_stat_func): Add argument.
7163 * tests/test-stat.c (main): Adjust caller.
7164 * tests/test-fstatat.c (main): Likewise.
7165 * modules/stat-tests (Depends-on): Add stdbool, symlink.
7166 Reported by Jim Meyering.
7168 2009-11-09 James Youngman <jay@gnu.org>
7170 strftime.c: include ignore-value.h only when FPRINTFTIME is defined
7171 * lib/strftime.c: Correct placement of #include "ignore-value.h".
7173 2009-11-08 Jim Meyering <meyering@redhat.com>
7175 utimens: remove invalid futimesat call
7176 * lib/utimens.c (fdutimens): Remove invalid futimesat call.
7177 It used the file descriptor of the target file as the DIR_FD
7178 parameter and NULL as the file name. That caused failure with
7179 errno == EFAULT on FreeBSD-8.0-rc2
7181 2009-11-07 Eric Blake <ebb9@byu.net>
7183 fflush, freadseek: use fseeko, not fseek
7184 * lib/fflush.c (clear_ungetc_buffer_preserving_position)
7185 (clear_ungetc_buffer): Avoid potential problems on large files.
7186 * lib/freadseek.c (freadseek): Likewise.
7187 * modules/freadseek (Depends-on): Add fseeko.
7188 * modules/fseek (configure.ac): Set a witness.
7189 * tests/test-fflush.c (main): Use fseeko.
7190 * tests/test-fpurge.c (fseek): Disable link warning.
7191 * tests/test-freadable.c (fseek): Likewise.
7192 * tests/test-freading.c (fseek): Likewise.
7193 * tests/test-fseeko.c (fseek): Likewise.
7194 * tests/test-ftell.c (fseek): Likewise.
7195 * tests/test-ftello.c (fseek): Likewise.
7196 * tests/test-fwritable.c (fseek): Likewise.
7197 * tests/test-fwriting.c (fseek): Likewise.
7199 2009-11-06 Simon Josefsson <simon@josefsson.org>
7201 * modules/memchr (Depends-on): Drop getpagesize dependency.
7203 2009-11-06 Simon Josefsson <simon@josefsson.org>
7205 * build-aux/pmccabe2html: Disable execute bit. Suggested by
7206 Reported by Ludovic Courtès.
7207 * build-aux/pmccabe2html: Improve example usage.
7208 * build-aux/pmccabe2html: Drop #! header. Doc fix.
7210 2009-11-06 Jim Meyering <meyering@redhat.com>
7212 do-release-commit-and-tag: New module.
7213 Automate the release-commit and tag process.
7214 * build-aux/do-release-commit-and-tag: New script, from coreutils.
7215 * modules/do-release-commit-and-tag: New file.
7216 * MODULES.html.sh (Support for maintaining and releasing): Add it.
7218 2009-11-06 Simon Josefsson <simon@josefsson.org>
7220 * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
7221 because test-select.c uses inet_pton.
7223 2009-11-06 Simon Josefsson <simon@josefsson.org>
7225 * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
7226 GETADDRINFO_LIB. Bump serial number.
7227 * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
7228 Suggested by Eric Blake <ebb9@byu.net>.
7230 2009-11-05 Eric Blake <ebb9@byu.net>
7232 strtod: detect darwin bug
7233 * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
7234 Reported by Leo Davis.
7236 freopen-safer: new module
7237 * modules/freopen-safer: New module.
7238 * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
7239 * lib/freopen-safer.c (freopen_safer): New file.
7240 * lib/stdio-safer.h (freopen_safer): New declaration.
7241 * lib/stdio--.h (freopen): New override.
7242 * MODULES.html.sh (File stream based Input/Output): Mention it.
7243 * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
7244 freopen-safer module.
7245 * doc/posix-functions/stderr.texi (stderr): Likewise.
7246 * doc/posix-functions/stdin.texi (stdin): Likewise.
7247 * doc/posix-functions/stdout.texi (stdout): Likewise.
7248 * modules/freopen-safer-tests: New test.
7249 * tests/test-reopen-safer.c: New file.
7251 2009-11-05 Jim Meyering <meyering@redhat.com>
7253 maint.mk: Prohibit inclusion of "close-stream.h" without use.
7254 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
7256 2009-11-05 Simon Josefsson <simon@josefsson.org>
7258 * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
7260 2009-11-05 Simon Josefsson <simon@josefsson.org>
7262 * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
7264 2009-11-05 Simon Josefsson <simon@josefsson.org>
7267 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
7268 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7270 2009-11-05 Simon Josefsson <simon@josefsson.org>
7272 * tests/test-func.c: Also test value of __func__.
7274 2009-11-05 Simon Josefsson <simon@josefsson.org>
7276 * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
7277 may be an 8-bit type. Reported by Bruno Haible <bruno@clisp.org>.
7279 2009-11-05 Bruno Haible <bruno@clisp.org>
7282 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
7283 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7284 Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
7286 2009-11-05 Bruno Haible <bruno@clisp.org>
7288 Tests for module 'inet_pton'.
7289 * modules/inet_pton-tests: New file.
7290 * tests/test-inet_pton.c: New file.
7292 2009-11-05 Bruno Haible <bruno@clisp.org>
7294 Tests for module 'inet_ntop'.
7295 * modules/inet_ntop-tests: New file.
7296 * tests/test-inet_ntop.c: New file.
7298 2009-11-04 Eric Blake <ebb9@byu.net>
7300 stdlib-safer: wrap all mkstemp variants
7301 * modules/mkostemp (configure.ac): Set witness.
7302 * modules/mkostemps (configure.ac): Likewise.
7303 * modules/mkstemps (configure.ac): Likewise.
7304 * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
7305 (mkstemps_safer): Wrap more functions.
7306 * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
7308 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
7309 (mkstemps_safer): Implement the wrappers.
7311 mkstemps, mkostemps: new modules
7312 * modules/mkostemps: New module.
7313 * modules/mkstemps: Likewise.
7314 * lib/mkostemps.c (mkostemps): New file.
7315 * lib/mkstemps.c (mkstemps): Likewise.
7316 * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
7317 * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
7318 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
7319 * modules/stdlib (Makefile.am): Substitute them.
7320 * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
7321 * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
7322 * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
7323 * doc/gnulib.texi (Glibc stdlib.h): Include them.
7324 * MODULES.html.sh (File system functions): Mention them.
7326 tempname: resync from glibc
7327 * lib/tempname.c (__gen_tempname): Add suffixlen argument. Use
7328 same values for __GT_FILE as glibc. Abort even when assertions
7330 * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
7331 match its value otherwise. Allow idempotent inclusion.
7332 * lib/mkdtemp.c (mkdtemp): Adjust caller.
7333 * lib/mkostemp.c (mkostemp): Likewise.
7334 * lib/mkstemp.c (mkstemp): Likewise.
7335 * lib/tmpfile.c (tmpfile): Likewise.
7336 * NEWS: Document this.
7338 utimens: fix use of futimens on older Linux
7339 * lib/utimens.c (fdutimens): Use updated, rather than original,
7340 timespec to avoid bug in older Linux kernel.
7341 Reported by Simon Josefsson.
7343 2009-11-04 Bruno Haible <bruno@clisp.org>
7345 Make num_processors more flexible and consistent.
7346 * lib/nproc.h (enum nproc_query): New type.
7347 (num_processors): Add a 'query' argument.
7348 * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
7349 (num_processors): Add a 'query' argument. Test the value of the
7350 OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
7351 mingw, count the number of CPUs available for the current process.
7352 * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
7353 Check for sched_getaffinity and sched_getaffinity_np.
7354 * modules/nproc (Depends-on): Add c-ctype, extensions.
7355 * NEWS: Mention the change.
7357 2009-11-03 Bruno Haible <bruno@clisp.org>
7359 * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
7361 2009-11-03 Jim Meyering <meyering@redhat.com>
7363 test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
7364 * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
7367 2009-11-02 Eric Blake <ebb9@byu.net>
7369 mktime, timegm: share common declaration
7370 * lib/mktime-internal.h: New file.
7371 * lib/mktime.c: Use it rather than open-coding a declaration.
7372 * lib/timegm.c: Likewise.
7373 * modules/mktime (Files): Ship it.
7374 * modules/timegm (Files): Likewise.
7375 Suggested by Bruno Haible.
7377 test-update-copyright: update test to match script changes
7378 * tests/test-update-copyright.sh: Avoid hard-coding perl
7379 location. Don't update *.bak created by earlier runs.
7381 2009-11-02 Paul Eggert <eggert@cs.ucla.edu>
7382 Simon Josefsson <simon@josefsson.org>
7383 Bruno Haible <bruno@clisp.org>
7385 Fix link error on Solaris 8.
7386 * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
7387 also in libnsl. Define also INET_PTON_LIB.
7388 * modules/inet_pton (Link): New section.
7390 2009-11-02 Simon Josefsson <simon@josefsson.org>
7391 Bruno Haible <bruno@clisp.org>
7393 * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
7394 * modules/inet_ntop (Link): New section.
7395 Reported by Boyan Kasarov <bkasarov@gmail.com>.
7397 2009-11-02 Eric Blake <ebb9@byu.net>
7399 maint: avoid compiler warnings in m4 macros
7400 * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
7401 * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
7403 2009-11-02 Simon Josefsson <simon@josefsson.org>
7405 * m4/pmccabe2html.m4: Remove file.
7406 * modules/pmccabe2html: Drop pmccabe2html.m4. Don't call m4
7407 function. Change maintainer.
7408 * build-aux/pmccabe2html: Use /bin/sh with magic instead of
7409 hard-coding path to awk. Tiny patch from ludo@gnu.org (Ludovic
7412 2009-10-31 Eric Blake <ebb9@byu.net>
7414 fseeko: fix m4 regression
7415 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro. Fixes
7416 regression from 2009-10-27.
7417 Reported by Ralf Wildenhues.
7419 2009-10-31 Jim Meyering <meyering@redhat.com>
7421 inttostr: aesthetics and improved (compile-time) safety
7422 Define inttype_is_signed rather than inttype_is_unsigned,
7423 since the sole use is via "#if inttype_is_signed".
7424 * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
7425 inttype_is_unsigned.
7426 * lib/offtostr.c (inttype_is_signed): Likewise.
7427 * lib/uinttostr.c (inttype_is_signed): Likewise.
7428 * lib/umaxtostr.c (inttype_is_signed): Likewise.
7429 * lib/inttostr.c (inttostr): Use verify to cross-check the
7430 inttype_is_signed value and the signedness of the actual type.
7431 * modules/inttostr (Depends-on): Add verify.
7433 2009-10-30 Eric Blake <ebb9@byu.net>
7435 build: avoid compiler warnings
7436 * lib/fchmodat.c (lchmod): Mark unused variables.
7437 * lib/getopt.c (_getopt_initialize): Likewise.
7438 * lib/mktime.c (__mktime_internal): Provide prototype.
7439 * lib/inttostr.c (inttostr): Avoid compiler warning even with
7440 older gcc that do not understand #pragma GCC diagnostic.
7441 * lib/uinttostr.c (inttype_is_unsigned): Define.
7442 * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
7444 2009-10-30 Michael Haubenwallner <michael.haubenwallner@salomon.at>
7446 stat: fix compilation on AIX
7447 * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
7448 only see struct stat64.
7450 2009-10-30 Eric Blake <ebb9@byu.net>
7452 exclude: make more robust
7453 * lib/exclude.c (excluded_file_name): Abort on unexpected value,
7454 rather than masking a coding bug.
7455 Suggested by Bruno Haible.
7457 2009-10-30 Jim Meyering <meyering@redhat.com>
7459 perl scripts: remove #!/usr/bin/perl in favor of more portable...
7460 Rather than putting #!/usr/bin/perl on the first line,
7461 start with a variant of what's recommended by "man perlrun" that
7462 invokes the first "perl" program from your shell's search path.
7463 * build-aux/gitlog-to-changelog: Replace #!... as above.
7464 Add a "Local Variables" perl mode setting.
7465 Prompted by a patch from Ludovic Courtès.
7466 Improved by Eric Blake.
7467 * build-aux/useless-if-before-free: Likewise.
7468 * build-aux/announce-gen: Likewise.
7469 * build-aux/update-copyright: Likewise.
7471 2009-10-29 Eric Blake <ebb9@byu.net>
7473 filenamecat-lgpl: adjust clients
7474 * modules/linkat (Depends-on): Use filenamecat-lgpl, not
7476 * modules/renameat (Depends-on): Likewise.
7478 filenamecat: split into filenamecat-lgpl
7479 * modules/filenamecat-lgpl: New module.
7480 * modules/filenamecat (Files): Move library-safe files into
7482 (Depends-on): Add filenamecat-lgpl.
7483 (configure.ac): Declare witness.
7484 * lib/filenamecat.h (file_name_concat): Only declare when using
7486 * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
7488 * lib/filenamecat-lgpl.c: ...into new file.
7489 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
7490 (gl_FILE_NAME_CONCAT): Use it.
7491 * MODULES.html.sh (File system functions): Mention new module.
7493 argp: avoid memory leak
7494 * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
7495 * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
7496 base_name, since the latter malloc()s and can call exit().
7497 Leak introduced 2006-07-03.
7499 dirname-lgpl: adjust clients that don't need full dirname
7500 * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
7501 * modules/filenamecat (Depends-on): Likewise.
7502 * modules/linkat (Depends-on): Likewise.
7503 * modules/mkancesdirs (Depends-on): Likewise.
7504 * modules/mkdir (Depends-on): Likewise.
7505 * modules/openat (Depends-on): Likewise.
7506 * modules/savewd (Depends-on): Likewise.
7507 * modules/rename (Depends-on): Likewise.
7508 (License): Relax license.
7509 * modules/mkdir-tests (Depends-on): Drop progname.
7510 (Makefile.am): Delete unneeded LDADD.
7511 * modules/rename-tests (Depends-on, Makefile.am): Likewise.
7513 dirname: split into dirname-lgpl
7514 * modules/dirname-lgpl: New module.
7515 * modules/dirname (Files): Move library-safe files into
7517 (Depends-on): Add dirname-lgpl.
7518 (configure.ac): Declare witness.
7519 * modules/double-slash-root (License): Relax license.
7520 * lib/dirname.h (base_name, dir_name): Only declare when using GPL
7522 * lib/dirname.c (dir_len, mdir_name): Move...
7523 * lib/dirname-lgpl.c: ...into new file.
7524 * lib/basename.c (last_component, base_len): Move...
7525 * lib/basename-lgpl.c: ...into new file.
7526 * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
7527 (gl_DIRNAME): Use it.
7528 * MODULES.html.sh (Enhancements for POSIX:2008 functions):
7530 * modules/dirname-tests (Depends-on): Add progname.
7531 * tests/test-dirname.c (program_name): Delete.
7533 mkdir: make safe for libraries
7534 * modules/mkdir (Depends-on): Drop xalloc.
7535 * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
7538 tests: avoid some compiler warnings
7539 * tests/test-getaddrinfo.c (simple): Mark static, and allow string
7541 * tests/test-memchr.c (main): Avoid type mismatch.
7542 * tests/test-arpa_inet.c (main): Avoid unused parameters.
7543 * tests/test-base64.c (main): Likewise.
7544 * tests/test-getdelim.c (main): Likewise.
7545 * tests/test-gethostname.c (main): Likewise.
7546 * tests/test-getline.c (main): Likewise.
7547 * tests/test-netinet_in.c (main): Likewise.
7548 * tests/test-select.c (open_server_socket, main): Likewise.
7549 * tests/test-select-stdin.c (main): Likewise.
7550 * tests/test-sockets.c (main): Likewise.
7551 * tests/test-strsignal.c (main): Likewise.
7552 * tests/test-sys_select.c (main): Likewise.
7553 * tests/test-sys_socket.c (main): Likewise.
7554 * tests/test-u64.c (main): Likewise.
7555 * tests/test-xfprintf-posix.c (main): Likewise.
7556 * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
7558 sockets: avoid compiler warning
7559 * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
7561 maint: detect usage(1) and other suspicious exits
7562 * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
7564 2009-10-29 Jim Meyering <meyering@redhat.com>
7566 timespec: long-to-int truncation could make timespec_cmp malfunction
7567 * lib/timespec.h (timespec_cmp): Do not interpret a difference of
7568 a multiple of 2^32 nanoseconds as no difference.
7570 2009-10-28 Jim Meyering <meyering@redhat.com>
7572 fprintftime: wrap macro code argument in "do {...} while(0)"
7573 * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
7574 cpy macro must be a statement that can be followed by a semicolon.
7575 Now that the else clause contains a comment and is hence longer
7576 than one line, I require curly braces. That in turn requires
7577 that we wrap this code block in the standard do...while(0).
7579 fprintftime: remove stray semicolon from previous change
7580 * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
7582 fprintftime: avoid a warning about ignored fwrite return value
7583 * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
7584 (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
7586 * modules/fprintftime (Depends-on): Add ignore-value.
7588 exclude: avoid an unwarranted warning
7589 * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
7591 2009-10-27 Eric Blake <ebb9@byu.net>
7593 fseek: avoid compilation failure when fflush is replaced
7594 * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
7595 * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
7597 * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
7598 module is not in use; since REPLACE_FSEEK worked otherwise.
7599 (GNULIB_FTELLO): Likewise for ftell.
7600 Reported by Ian Beckwith and others.
7602 2009-10-27 Bruno Haible <bruno@clisp.org>
7604 * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
7605 Reported by Jim Meyering.
7607 2009-10-27 Jim Meyering <jim@meyering.net>
7608 Bruno Haible <bruno@clisp.org>
7610 Avoid warning despite dropping the return value of fwrite.
7611 * lib/unicodeio.c: Include ignore-value.h.
7612 (fwrite_success_callback): Explicitly ignore fwrite's return value.
7613 * modules/unicodeio (Depends-on): Add ignore-value.
7615 2009-10-26 Eric Blake <ebb9@byu.net>
7617 areadlinkat: fix fallback path
7618 * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
7621 2009-10-22 Pádraig Brady <P@draigBrady.com>
7623 Use a better IO block size for modern systems
7624 * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
7625 * lib/md2.c: Likewise.
7626 * lib/md4.c: Likewise.
7627 * lib/md5.c: Likewise.
7628 * lib/sha1.c: Likewise.
7629 * lib/sha256.c: Likewise.
7630 * lib/sha512.c: Likewise.
7632 2009-10-22 Eric Blake <ebb9@byu.net>
7634 tests: avoid several compiler warnings
7635 * tests/test-getcwd.c (main): Avoid buffer underflow.
7636 * tests/test-getdate.c (main): String literals are not safe with
7637 putenv, so use setenv. Declare unused argument.
7638 * modules/getdate-tests (Depends-on): Add setenv.
7639 * tests/test-argv-iter.c (main): Declare unused argument. Avoid
7640 problems with string literals in char *.
7641 * tests/test-hash.c (main): Avoid shadowing declaration.
7642 (insert_new): Treat string literals as char const *.
7643 * tests/test-getopt.h (test_getopt): Likewise.
7644 (getopt_loop): Alter types to minimize casting elsewhere.
7645 * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
7646 (test_getopt_long_posix): Likewise.
7647 (do_getopt_long): Add wrapper to minimize casting.
7648 * tests/test-atexit.c (clear_temp_file): Use void.
7649 * tests/test-areadlink-with-size.c (main): Declare unused
7651 * tests/test-areadlink.c (main): Likewise.
7652 * tests/test-areadlinkat-with-size.c (main): Likewise.
7653 * tests/test-areadlinkat.c (main): Likewise.
7654 * tests/test-canonicalize-lgpl.c (main): Likewise.
7655 * tests/test-canonicalize.c (main): Likewise.
7656 * tests/test-dirent-safer.c (main): Likewise.
7657 * tests/test-dirname.c (main): Likewise.
7658 * tests/test-dup2.c (main): Likewise.
7659 * tests/test-fchdir.c (main): Likewise.
7660 * tests/test-fcntl-h.c (main): Likewise.
7661 * tests/test-fcntl-safer.c (main): Likewise.
7662 * tests/test-fdopendir.c (main): Likewise.
7663 * tests/test-fdutimensat.c (main): Likewise.
7664 * tests/test-fflush.c (main): Likewise.
7665 * tests/test-filenamecat.c (main): Likewise.
7666 * tests/test-filevercmp.c (main): Likewise.
7667 * tests/test-fopen-safer.c (main): Likewise.
7668 * tests/test-fopen.c (main): Likewise.
7669 * tests/test-fpending.c (main): Likewise.
7670 * tests/test-fpurge.c (main): Likewise.
7671 * tests/test-freading.c (main): Likewise.
7672 * tests/test-fstatat.c (main): Likewise.
7673 * tests/test-fsync.c (main): Likewise.
7674 * tests/test-futimens.c (main): Likewise.
7675 * tests/test-getndelim2.c (main): Likewise.
7676 * tests/test-gettimeofday.c (main): Likewise.
7677 * tests/test-getopt.c (main): Likewise.
7678 * tests/test-i-ring.c (main): Likewise.
7679 * tests/test-inttypes.c (main): Likewise.
7680 * tests/test-link.c (main): Likewise.
7681 * tests/test-lstat.c (main): Likewise.
7682 * tests/test-math.c (main): Likewise.
7683 * tests/test-md5.c (main): Likewise.
7684 * tests/test-memchr2.c (main): Likewise.
7685 * tests/test-memrchr.c (main): Likewise.
7686 * tests/test-mkdir.c (main): Likewise.
7687 * tests/test-mkdirat.c (main): Likewise.
7688 * tests/test-mkfifoat.c (main): Likewise.
7689 * tests/test-open.c (main): Likewise.
7690 * tests/test-openat-safer.c (main): Likewise.
7691 * tests/test-openat.c (main): Likewise.
7692 * tests/test-quotearg.c (main): Likewise.
7693 * tests/test-rawmemchr.c (main): Likewise.
7694 * tests/test-readlink.c (main): Likewise.
7695 * tests/test-remove.c (main): Likewise.
7696 * tests/test-rename.c (main): Likewise.
7697 * tests/test-renameat.c (main): Likewise.
7698 * tests/test-rmdir.c (main): Likewise.
7699 * tests/test-sha1.c (main): Likewise.
7700 * tests/test-signal.c (main): Likewise.
7701 * tests/test-sigaction.c (main): Likewise.
7702 * tests/test-stat.c (main): Likewise.
7703 * tests/test-stat-time.c (main): Likewise.
7704 * tests/test-stddef.c (main): Likewise.
7705 * tests/test-stdint.c (main): Likewise.
7706 * tests/test-stdio.c (main): Likewise.
7707 * tests/test-stdlib.c (main): Likewise.
7708 * tests/test-strchrnul.c (main): Likewise.
7709 * tests/test-strerror.c (main): Likewise.
7710 * tests/test-string.c (main): Likewise.
7711 * tests/test-strtod.c (main): Likewise.
7712 * tests/test-strverscmp.c (main): Likewise.
7713 * tests/test-symlink.c (main): Likewise.
7714 * tests/test-symlinkat.c (main): Likewise.
7715 * tests/test-sys_stat.c (main): Likewise.
7716 * tests/test-sys_time.c (main): Likewise.
7717 * tests/test-time.c (main): Likewise.
7718 * tests/test-unistd.c (main): Likewise.
7719 * tests/test-unlink.c (main): Likewise.
7720 * tests/test-unlinkat.c (main): Likewise.
7721 * tests/test-utimens.c (main): Likewise.
7722 * tests/test-utimensat.c (main): Likewise.
7723 * tests/test-version-etc.c (main): Likewise.
7724 * tests/test-wchar.c (main): Likewise.
7725 * tests/test-wctype.c (main): Likewise.
7726 * tests/test-xprintf-posix.c (main): Likewise.
7727 * tests/test-posixtm.c (main): Likewise.
7728 (STREQ): Delete unused macro.
7729 * tests/test-linkat.c (main): Declare unused arguments. Avoid
7731 * tests/test-memchr.c (main): Likewise.
7733 2009-10-21 Eric Blake <ebb9@byu.net>
7735 areadlinkat: avoid failure on older glibc
7736 * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
7737 rather than mis-comparing 0 against FUNC_RESULT of char*.
7739 2009-10-21 Bruno Haible <bruno@clisp.org>
7741 * modules/stpncpy (License): Relicense under LGPLv2+.
7742 Reported by David Lutterkort <lutter@redhat.com>.
7744 2009-10-20 Eric Blake <ebb9@byu.net>
7746 utimensat: work around Solaris 9 bug
7747 * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
7748 has trailing slash bugs.
7749 * tests/test-lutimens.h (test_lutimens): Enhance test.
7750 * tests/test-utimens.h (test_utimens): Likewise.
7751 * doc/posix-functions/utime.texi (utime): Enhance documentation.
7752 * doc/posix-functions/utimes.texi (utimes): Likewise.
7753 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7754 * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
7755 * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
7756 * doc/posix-functions/futimens.texi (futimens): Likewise.
7758 fdutimensat: new module
7759 * modules/fdutimensat: New file.
7760 * lib/fdutimensat.c (fdutimensat): Likewise.
7761 * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
7762 * MODULES.html.sh (File system functions): Mention module.
7763 * modules/fdutimensat-tests: New test.
7764 * tests/test-fdutimensat.c: Likewise.
7766 doc: regenerate INSTALL
7767 * doc/INSTALL: Reflect recent autoconf update.
7768 * doc/INSTALL.ISO: Likewise.
7769 * doc/INSTALL.UTF-8: Likewise.
7771 2009-10-20 Pádraig Brady <P@draigBrady.com>
7773 acl: warn if ACL support is not detected
7774 * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
7776 2009-10-19 Giuseppe Scrivano <gscrivano@gnu.org>
7778 * lib/nproc.h: Add extern "C" block for C++.
7780 2009-10-18 Reuben Thomas <rrt@sc3d.org>
7781 Bruno Haible <bruno@clisp.org>
7783 * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
7784 * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
7785 * doc/posix-functions/isalpha.texi: Likewise.
7786 * doc/posix-functions/isblank.texi: Likewise.
7787 * doc/posix-functions/iscntrl.texi: Likewise.
7788 * doc/posix-functions/isdigit.texi: Likewise.
7789 * doc/posix-functions/isgraph.texi: Likewise.
7790 * doc/posix-functions/islower.texi: Likewise.
7791 * doc/posix-functions/isprint.texi: Likewise.
7792 * doc/posix-functions/ispunct.texi: Likewise.
7793 * doc/posix-functions/isspace.texi: Likewise.
7794 * doc/posix-functions/isupper.texi: Likewise.
7795 * doc/posix-functions/isxdigit.texi: Likewise.
7797 2009-10-18 Bruno Haible <bruno@clisp.org>
7799 Tests for module 'isblank'.
7800 * modules/isblank-tests: New file.
7801 * tests/test-isblank.c: New file.
7803 New module 'isblank'.
7804 * lib/isblank.c: New file.
7805 * m4/isblank.m4: New file.
7806 * modules/isblank: New file.
7807 * doc/posix-functions/isblank.texi: Mention the new module.
7809 2009-10-18 Bruno Haible <bruno@clisp.org>
7812 * lib/ctype.in.h: New file.
7813 * m4/ctype.m4: New file.
7814 * modules/ctype: New file.
7815 * doc/posix-headers/ctype.texi: Mention the new module.
7817 2009-10-18 Jim Meyering <meyering@redhat.com>
7819 m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
7820 Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
7821 right after its initialization, rather than farther down.
7822 Keeping these in close proximity makes it easier to ensure
7823 that each such variable is initialized. E.g.,
7826 AC_SUBST([LIB_CLOCK_GETTIME])
7828 This change also increments these serial numbers.
7829 * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
7830 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
7831 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7833 2009-10-18 Bruno Haible <bruno@clisp.org>
7835 Don't let environment variables perturb build.
7836 * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
7837 (gl_PREREQ_GETHRXTIME): ... not here.
7839 2009-10-18 Bruno Haible <bruno@clisp.org>
7841 Avoid symlink attack in localcharset module.
7842 * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
7843 (O_NOFOLLOW): Define fallback.
7844 (get_charset_aliases): Don't open the file if it is a symbolic link.
7845 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
7847 (gl_FCNTL_H): Require it.
7848 * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
7849 * modules/localcharset (Files): Add m4/fcntl_h.m4.
7850 Reported by Fergal Glynn <fglynn@veracode.com>.
7852 2009-10-18 Bruno Haible <bruno@clisp.org>
7854 Implement nproc for mingw.
7855 * lib/nproc.c: Include <windows.h>
7856 (num_processors): On native Windows platforms, try GetSystemInfo.
7858 2009-10-18 Bruno Haible <bruno@clisp.org>
7860 Implement nproc for IRIX.
7861 * lib/nproc.c: Include <sys/sysmp.h>.
7862 (num_processors): On IRIX systems, try sysmp.
7863 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
7865 2009-10-18 Bruno Haible <bruno@clisp.org>
7867 Implement nproc for HP-UX.
7868 * lib/nproc.c: Include <sys/pstat.h>
7869 (num_processors): On HP-UX systems, try pstat_getdynamic.
7870 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
7873 2009-10-18 Giuseppe Scrivano <gscrivano@gnu.org>
7874 Bruno Haible <bruno@clisp.org>
7876 Implement nproc for NetBSD, OpenBSD.
7877 * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
7878 (ARRAY_SIZE): New macro.
7879 (num_processors): On BSD systems, try sysctl of HW_NCPU.
7880 * m4/nproc.m4: New file.
7881 * modules/nproc (Files): Add m4/nproc.m4.
7882 (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
7883 (Makefile.am): Instead, augment lib_SOURCES.
7885 2009-10-18 Bruno Haible <bruno@clisp.org>
7887 Fix recognition of sys/sysctl.h on OpenBSD 4.0.
7888 * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
7891 2009-10-16 Eric Blake <ebb9@byu.net>
7893 utimensat: new module
7894 * modules/utimensat: New file.
7895 * lib/utimensat.c (utimensat): Likewise.
7896 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7897 * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
7898 so we can work around Linux bugs.
7899 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7900 * modules/sys_stat (Makefile.am): Substitute them.
7901 * lib/sys_stat.in.h (utimensat): Declare it.
7902 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7903 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7904 * modules/utimensat-tests: New test.
7905 * tests/test-utimensat.c: Likewise.
7907 utimens: let lutimens work on non-symlinks
7908 * lib/utimens.c (lutimens): Fall back to utimens rather than
7909 failing with ENOSYS, when file is not a symlink.
7910 (utimens): Reduce redirection.
7911 * tests/test-lutimens.h (test_lutimens): Update test to cover
7913 * tests/test-utimens.h (test_utimens): Update test to cover
7915 * tests/test-utimens.c (main): Update caller.
7917 utimens: cache whether utimensat syscall works
7918 * lib/utimens.c (utimensat_works_really): New cache variable.
7919 (fdutimens, lutimens): Use it to avoid failing syscall.
7921 test-stat-time, test-utimens: improve portability
7922 * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
7923 ext4 on alpha, and for cygwin.
7924 * tests/test-utimens-common.h: New file.
7925 (nap): Factor delays into single function.
7926 * tests/test-lutimens.h (test_lutimens): Use new header.
7927 * tests/test-futimens.h (test_futimens): Likewise.
7928 * tests/test-utimens.h (test_utimens): Likewise. Also, force NFS
7929 timestamps to occur from same machine, as was done previously for
7931 * modules/utimens-tests (Files): Ship new file.
7932 * modules/futimens-tests (Files): Likewise.
7933 Reported in part by Jim Meyering.
7935 sys_stat: sort replacement declarations
7936 * lib/sys_stat.in.h: Sort declarations.
7937 * lib/futimens.c (futimens): Fix typo.
7939 2009-10-15 Jim Meyering <meyering@redhat.com>
7941 don't let environment settings perturb build
7942 Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
7943 could cause a configure-time and/or build-time malfunction.
7944 Typically, a configure-time function-in-library test is performed
7949 prefix_saved_LIBS=$LIBS
7950 AC_SEARCH_LIBS([FUNC], [LIB_NAME],
7951 [test "$ac_cv_search_FUNC" = "none required" ||
7952 LIB_VAR=$ac_cv_search_FUNC])
7953 LIBS=$prefix_saved_LIBS
7955 However, in each of the files affected by this change, the LIB_VAR=
7956 initialization was omitted. Thus, when set in the environment, its
7957 value would propagate into generated Makefiles when FUNC is not found
7959 * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
7960 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
7961 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7963 2009-10-14 Eric Blake <ebb9@byu.net>
7965 fchdir: avoid infinite recursion in mingw
7966 * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
7969 test-stat-time: port to mingw
7970 * tests/test-stat-time.c (force_unlink): Return a value.
7971 (test_ctime) [W32]: Fix compilation error.
7972 (nap): Don't call usleep with too large an argument. Use
7974 * doc/pastposix-functions/usleep.texi (usleep): Document the
7977 2009-10-13 Jim Meyering <meyering@redhat.com>
7979 use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
7980 * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
7981 * modules/pipe-filter-ii: Likewise.
7982 * modules/sys_socket-tests: Likewise.
7983 * modules/tsearch-tests: Likewise.
7984 * Makefile (sc_prefer_ac_check_funcs_once): New rule.
7985 (check): Depend on it.
7987 2009-10-12 Eric Blake <ebb9@byu.net>
7989 utimens-tests: port to NFS file systems
7990 * tests/test-utimens.h (test_utimens): Refactor utimecmp
7991 comparisons to avoid spurious failures from timestamp drift
7992 between NFS machines.
7994 2009-10-12 Eric Blake <ebb9@byu.net>
7996 stat-time-tests: minor cleanups
7997 * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
7998 * tests/test-stat-time.c (nap): Separate assignment from call.
7999 Suggested by Paolo Bonzini and Bruno Haible.
8001 sys_stat: guarantee struct timespec
8002 * lib/sys_stat.in.h (includes): Always include <time.h>
8003 * modules/sys_stat (Depends-on): Add time.
8004 * tests/test-sys_stat.c: Guarantee struct timespec, as well as
8005 mode_t permission values.
8006 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
8007 get at subsecond timestamps.
8009 2009-10-10 Eric Blake <ebb9@byu.net>
8011 futimens: new module
8012 * modules/futimens: New file.
8013 * lib/futimens.c (futimens): Likewise.
8014 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
8015 * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
8016 we can work around Linux bugs.
8017 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8018 * modules/sys_stat (Makefile.am): Substitute them.
8019 * lib/sys_stat.in.h (futimens): Declare it.
8020 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8021 * doc/posix-functions/futimens.texi (futimens): Likewise.
8022 * modules/futimens-tests: New test.
8023 * tests/test-futimens.c: Likewise.
8025 utimens: introduce fdutimens
8026 * lib/utimens.h (fdutimens): New prototype.
8027 * lib/utimens.c (gl_futimens): Move guts...
8028 (fdutimens): ...to new interface.
8029 * tests/test-utimens.c (do_fdutimens): Use it.
8031 utimens: add UTIME_NOW and UTIME_OMIT support
8032 * lib/utimens.c (validate_timespec, update_timespec): New helper
8034 (gl_futimens, lutimens): Use them.
8035 * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
8037 (Link): Mention resulting library dependency.
8038 * modules/utimecmp (Link): Likewise.
8039 * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
8040 (Makefile.am): Pick up library dependency.
8041 * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
8043 * tests/test-sys_stat.c: Test the definitions.
8044 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
8045 * NEWS: Document library dependency.
8047 utimecmp: support symlink timestamps
8048 * lib/utimecmp.c (utimecmp): Use new interface. Skip effort of
8049 hashing when possible. Use pathconf when available.
8050 (SYSCALL_RESOLUTION): Recognize tighter resolution.
8051 * modules/utimecmp (Depends-on): Add lstat.
8053 utimens: add lutimens interface
8054 * lib/utimens.c (lutimens): New function.
8055 * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
8056 * lib/utimens.h (lutimens): Declare new interface.
8057 * tests/test-utimens.c (main): Enhance test.
8058 * tests/test-lutimens.h (test_lutimens): New file.
8059 * modules/utimens-tests (Files): Distribute it.
8060 (Depends-on): Add symlink.
8061 (configure.ac): Check for usleep.
8063 utimens: validate futimens usage
8064 * lib/utimens.c (gl_futimens): Require valid fd up front, using
8065 fewer syscalls on failure later on. Avoid compiler warning on
8067 * modules/utimens (Depends-on): Add dup2.
8070 * modules/utimens-tests: New test.
8071 * tests/test-utimens.h: New file.
8072 * tests/test-futimens.h: Likewise.
8073 * tests/test-utimens.c: Likewise.
8075 doc: mention timestamp portability issues
8076 * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
8078 * doc/posix-functions/utime.texi (utime): Likewise.
8079 * doc/posix-functions/utimes.texi (utimes): Likewise.
8080 * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
8082 * doc/posix-functions/futimens.texi (futimens): Mention utimens
8084 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8085 Mention weakness with symlink timestamps.
8086 * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
8087 to utimensat/futimens instead.
8088 * doc/gnulib.texi (Glibc sys/time.h): Include new file.
8090 test-dup2: enhance test
8091 * tests/test-dup2.c (main): Also check AT_FDCWD.
8093 test-stat-time: avoid more spurious failures
8094 * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
8095 xfs; and avoid race if the two timestamps cross quantization edge.
8097 relocatable: prefer 'file system' over 'filesystem'
8098 * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
8099 (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
8100 * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
8101 * doc/relocatable.texi (Enabling Relocatability): Likewise.
8102 * lib/relocatable.c (compute_curr_prefix): Likewise.
8104 2009-10-10 Jim Meyering <meyering@redhat.com>
8106 stat-time-tests: check for the usleep function
8107 * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
8109 2009-10-10 Bruno Haible <bruno@clisp.org>
8111 * modules/xnanosleep: Put the Link section after the Include section.
8113 2009-10-09 Eric Blake <ebb9@byu.net>
8115 dup2: work around FreeBSD 6.1 bug
8116 * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
8117 * doc/posix-functions/dup2.texi (dup2): Document it.
8118 Reported by Nelson H. F. Beebe and Jim Meyering.
8120 test-stat-time: port to buggy NFS clients
8121 * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
8122 (test_ctime): Also skip test if mtime and ctime are skewed.
8124 maint: prefer 'file system' over 'filesystem'
8125 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
8126 * doc/posix-functions/lstat.texi (lstat): Likewise.
8127 * lib/file-has-acl.c (file_has_acl): Likewise.
8128 * lib/fwriteerror.c [TEST]: Likewise.
8129 * tests/test-areadlink.h (test_areadlink): Likewise.
8130 * tests/test-areadlinkat-with-size.c (main): Likewise.
8131 * tests/test-areadlinkat.c (main): Likewise.
8132 * tests/test-canonicalize-lgpl.c (main): Likewise.
8133 * tests/test-canonicalize.c (main): Likewise.
8134 * tests/test-fstatat.c (main): Likewise.
8135 * tests/test-linkat.c (main): Likewise.
8136 * tests/test-lstat.h (test_lstat_func): Likewise.
8137 * tests/test-mkdir.h (test_mkdir): Likewise.
8138 * tests/test-readlink.h (test_readlink): Likewise.
8139 * tests/test-remove.c (main): Likewise.
8140 * tests/test-rename.h (test_rename): Likewise.
8141 * tests/test-renameat.c (main): Likewise.
8142 * tests/test-rmdir.h (test_rmdir_func): Likewise.
8143 * tests/test-symlink.h (test_symlink): Likewise.
8144 * tests/test-symlinkat.c (main): Likewise.
8145 * tests/test-unlink.h (test_unlink_func): Likewise.
8146 * tests/test-unlinkat.c (main): Likewise.
8148 maint: make realtime library usage explicit
8149 * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
8150 * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
8151 * modules/settime (Link): Likewise.
8152 * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
8154 test-stat-time: speed up execution
8155 * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
8157 (nap): New helper function.
8158 (prepare_test): Use it to reduce sleep time.
8159 (test_mtime, test_ctime, test_birthtime): Allow for subsecond
8161 * modules/stat-time-tests (configure.ac): Check for usleep.
8163 2009-10-09 Jim Meyering <meyering@redhat.com>
8165 selinux-h: always use getfilecon wrappers
8166 * lib/getfilecon.c: New file.
8167 * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
8168 [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
8169 [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
8170 (fgetfilecon): Provide a stub.
8171 * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
8172 AC_SUBST SELINUX_SELINUX_H, since now we're generating that
8173 file unconditionally.
8174 When <selinux/selinux.h> is found, arrange to use wrappers.
8175 * modules/selinux-h (Files): Add getfilecon.c.
8176 (Makefile.am): Substitute include-next-related bits
8177 into the now-always-generated selinux/selinux.h file.
8178 * doc/glibc-functions/lgetfilecon.texi: New file.
8179 * doc/glibc-functions/fgetfilecon.texi: New file.
8180 * doc/glibc-functions/getfilecon.texi: New file.
8181 * doc/glibc-functions/getfilecon-desc.texi: New file.
8182 * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
8183 which to pull in the new files.
8184 * MODULES.html.sh (Misc): Add selinux-h.
8186 2009-10-08 Jim Meyering <meyering@redhat.com>
8188 unistd: fix comment typo
8189 * lib/unistd.in.h (euidaccess): Fix a comment typo.
8191 2009-10-08 Eric Blake <ebb9@byu.net>
8193 areadlink: use SIZE_MAX consistently
8194 * modules/areadlink (Depends-on): Add stdint.
8195 * modules/areadlink-with-size (Depends-on): Likewise.
8196 * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
8197 gives NULL; drop sys/types, since unistd gives size_t; and add
8198 stdint for SIZE_MAX.
8199 (SIZE_MAX): Rely on headers.
8200 * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
8202 * lib/areadlink.c (includes): Drop sys/types, and add stdint.
8203 (SIZE_MAX): Likewise.
8204 (INITIAL_BUF_SIZE): Turn into enum.
8205 * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
8207 2009-10-08 Jim Meyering <meyering@redhat.com>
8209 areadlinkat: avoid compilation failure
8210 * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
8211 Fix typo in comment.
8213 2009-10-07 Eric Blake <ebb9@byu.net>
8215 areadlinkat-with-size: new module
8216 * modules/areadlinkat-with-size: New module.
8217 * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
8218 * lib/areadlink.h (areadlinkat): Declare it.
8219 * MODULES.html.sh (File system functions): Mention it.
8220 * modules/areadlinkat-with-size-tests: New test.
8221 * tests/test-areadlinkat-with-size.c: New file.
8223 xreadlinkat: new module
8224 * modules/xreadlinkat: New module.
8225 * lib/xreadlinkat.c (xreadlinkat): New file.
8226 * lib/xreadlink.h (xreadlinkat): Declare it.
8227 * MODULES.html.sh (File system functions): Mention it.
8229 areadlinkat: new module
8230 * lib/at-func.c (FUNC_FAIL): New define.
8231 (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
8232 * modules/areadlinkat: New module.
8233 * lib/linkat.c (areadlinkat): Move...
8234 * lib/areadlinkat.c (areadlinkat): ...to new file.
8235 * lib/areadlink.h (areadlinkat): Declare it.
8236 * modules/linkat (Depends-on): Add areadlinkat.
8237 * MODULES.html.sh (File system functions): Mention it.
8238 * modules/areadlinkat-tests: New test.
8239 * tests/test-areadlinkat.c: New file.
8241 areadlink, areadlink-with-size: add tests
8242 * modules/areadlink-tests: New test.
8243 * modules/areadlink-with-size-tests: Likewise.
8244 * tests/test-areadlink.h: New file.
8245 * tests/test-areadlink.c: Likewise.
8246 * tests/test-areadlink-with-size.c: Likewise.
8248 maint: minor cleanups
8249 * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
8250 _UNUSED_PARAMETER_ instead.
8251 * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
8252 * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
8253 * modules/linkat-tests (Files): Distribute test-link.h.
8255 openat, utimens: whitespace cleanup
8256 * lib/openat.c: Prefer space throughout, rather than mix of 8
8258 * lib/at-func.c: Likewise.
8259 * lib/utimens.c: Likewise.
8261 openat: avoid using wrong fd
8262 * lib/openat.c (openat_permissive): Reject user's fd if saving the
8263 working directory chooses same fd.
8264 * lib/at-func.c (AT_FUNC_NAME): Likewise.
8266 mkdir, mkdirat: fix cygwin 1.5.x bug
8267 * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
8268 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
8269 * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
8271 (gl_PREREQ_MKDIR): Delete unused macro.
8272 * modules/mkdir (Files): Track file rename.
8273 (configure.ac): Update macro name.
8274 * modules/openat (Depends-on): Add mkdir.
8275 * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
8277 mkdir, mkdirat: add tests
8278 * modules/mkdir-tests: New test.
8279 * tests/test-mkdir.h: New file.
8280 * tests/test-mkdir.c: Likewise.
8281 * tests/test-mkdirat.c: Likewise.
8282 * modules/openat-tests (Files): Add new files.
8283 (Makefile.am): Run new test.
8285 2009-10-06 Eric Blake <ebb9@byu.net>
8287 doc: tweak *at function documentation
8288 * doc/posix-functions/faccessat.texi (faccessat): Mention
8289 known issue with replacement.
8290 * doc/posix-functions/fchdir.texi (fchdir): Likewise.
8291 * doc/posix-functions/linkat.texi (linkat): Likewise.
8292 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
8293 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
8294 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8295 * doc/posix-functions/renameat.texi (renameat): Likewise.
8296 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
8298 openat: fix GNU/Hurd bug in unlinkat
8299 * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
8301 * doc/posix-functions/unlink.texi (unlink): Document this.
8302 * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
8304 fdopendir: fix GNU/Hurd bug
8305 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
8306 allowing non-directory fds.
8307 * lib/fdopendir.c (rpl_fdopendir): Work around it.
8308 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
8309 * modules/dirent (Makefile.am): Substitute it.
8310 * lib/dirent.in.h (fdopendir): Declare replacement.
8311 * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
8312 * tests/test-fdopendir.c (main): Test something other than
8313 /dev/null, since on Hurd that behaves like a directory.
8315 test-symlink: port to GNU/Hurd
8316 * tests/test-symlink.h (test_symlink): Relax expected errno.
8318 doc: tweak more cygwin information
8319 * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
8320 now compatible with glibc.
8321 * doc/posix-functions/getopt.texi (getopt): Likewise.
8323 getopt-gnu: add another test
8324 * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
8325 guarantee behavior relied on by m4.
8326 * tests/test-getopt.c (main): Use it.
8327 * modules/getopt-posix-tests (Depends-on): Add setenv.
8328 See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
8330 getopt: fix compilation on darwin
8331 * lib/getopt.in.h (includes): Leave breadcrumbs during system
8333 * lib/unistd.in.h (getopt): Use them to avoid recursive include.
8334 Reported by Ludovic Courtès.
8336 2009-10-06 Bruno Haible <bruno@clisp.org>
8338 * modules/size_max (Description): Discourage its use.
8339 Reported by Simon Josefsson.
8341 2009-10-06 Jim Meyering <meyering@redhat.com>
8343 linkat: avoid compilation failure
8344 * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
8346 2009-10-05 Eric Blake <ebb9@byu.net>
8348 linkat: support Linux 2.6.17
8349 * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
8350 linkat on Linux, but allow cache variable override.
8351 * lib/linkat.c (rpl_linkat): Define override.
8352 * modules/linkat (Depends-on): Add symlinkat.
8353 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
8354 * modules/unistd (Makefile.am): Substitute it.
8355 * lib/unistd.in.h (linkat): Declare replacement.
8356 Reported by Pádraig Brady.
8358 quotearg: port test to systems with C.UTF-8 locale
8359 * tests/test-quotearg.c (struct result_strings): Add another
8360 member, differentiating between C.ASCII and C.UTF-8 handling.
8361 (compare_strings): Add parameter.
8362 (main): Adjust all callers.
8364 getopt: avoid clash with FreeBSD _getopt_internal
8365 * lib/getopt.in.h (_getopt_internal): Override the name.
8366 * lib/getopt_int.h (includes): Pick up any overrides.
8367 Reported by Reuben Thomas.
8369 hash: allow C89 compilation
8370 * lib/hash.c (check_tuning): Move declaration before statement.
8371 Reported by Reuben Thomas.
8373 2009-10-05 Karl Berry <karl@gnu.org>
8375 * doc/gnulib.texi: @include execvpe.texi, missing for several days.
8377 2009-10-04 Paolo Bonzini <bonzini@gnu.org>
8378 Bruno Haible <bruno@clisp.org>
8380 * lib/uname.c (uname): Use a table-driven algorithm to compute
8381 Windows NT versions.
8383 2009-10-04 Bruno Haible <bruno@clisp.org>
8385 * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
8386 program_invocation_short_name.
8387 * modules/progname (configure.ac): Test for presence of
8388 program_invocation_short_name.
8389 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
8391 2009-10-04 Bruno Haible <bruno@clisp.org>
8393 * lib/progname.c (set_program_name): Fix comment.
8394 Reported by Jim Meyering.
8396 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
8397 Bruno Haible <bruno@clisp.org>
8399 * lib/uname.c: Include <string.h>.
8400 (uname): Do only one call to GetVersionEx in the common case.
8402 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
8403 Bruno Haible <bruno@clisp.org>
8405 * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
8406 PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
8407 (uname): Add support for Windows CE and various non-x86 CPU types.
8409 2009-10-03 Bruno Haible <bruno@clisp.org>
8411 * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
8412 invocation to tests/configure.ac.
8413 Reported by Ian Beckwith <ianb@erislabs.net>.
8415 2009-10-02 Eric Blake <ebb9@byu.net>
8417 fchdir: avoid compiler warning
8418 * lib/fchdir.c (canonicalize_file_name)
8419 [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
8421 test-open: support mingw errno values
8422 * tests/test-open.h (test_open): Relax test.
8423 * tests/test-fopen.h (test_fopen): Likewise.
8424 * tests/test-openat-safer.c (main): Likewise.
8426 open: fix opening directory on mingw
8427 * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
8429 test-open: on GNU/Hurd, /dev/null is a directory
8430 * tests/test-fopen.h (main): Rename...
8431 (test_fopen): ...to this. Use a guaranteed non-directory when
8432 confirming open behavior on trailing slash.
8433 * tests/test-openat-safer.c (main): Likewise.
8434 * tests/test-open.h (main): Likewise....
8435 (test_open): ...to this.
8436 * tests/test-fopen.c (main): Adjust caller.
8437 * tests/test-fopen-safer.c (main): Likewise.
8438 * tests/test-open.c (main): Likewise.
8439 * tests/test-fcntl-safer.c (main): Likewise.
8440 Reported by Samuel Thibault.
8442 rename, fchdir: don't ignore chdir failure
8443 * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
8444 * lib/rename.c (rpl_rename) [W32]: Likewise.
8445 (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
8446 an empty destination directory if source cannot be renamed,
8447 although there is still possibility for failure.
8448 * doc/posix-functions/rename.texi (rename): Document the race.
8449 Reported by Jim Meyering.
8451 maint: cleanup whitespace in recent commits
8452 * lib/rename.c (rpl_rename): Remove tabs.
8453 * tests/test-link.h (test_link): Likewise.
8454 * lib/fchdir.c (get_name): Likewise.
8455 Reported by Jim Meyering.
8457 2009-10-02 Ben Pfaff <blp@gnu.org>
8459 relocatable-prog-wrapper: Add missing dependency on
8461 * modules/relocatable-prog-wrapper: Add dependency.
8462 Reported by Ian Beckwith <ianb@erislabs.net>.
8464 2009-10-02 Eric Blake <ebb9@byu.net>
8466 renameat: fix Solaris bugs
8467 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
8469 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
8470 * modules/stdio (Makefile.am): Substitute it.
8471 * lib/stdio.in.h (renameat): Declare replacement.
8472 * lib/renameat.c (rpl_renameat): Implement fix.
8474 renameat: new module
8475 * modules/renameat: New file.
8476 * lib/renameat.c (renameat): Likewise.
8477 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
8478 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
8479 * modules/stdio (Makefile.am): Substitute them.
8480 * lib/stdio.in.h (renameat): Declare it.
8481 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8482 * doc/posix-functions/renameat.texi (renameat): Likewise.
8483 * modules/renameat-tests: New test.
8484 * tests/test-renameat.c: Likewise.
8486 rename: fix mingw bugs
8487 * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
8488 directory overwrite bugs.
8490 rename: fix another cygwin 1.5 bug
8491 * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
8493 * lib/rename.c (rpl_rename): Don't penalize NetBSD with
8494 unnecessary cygwin workarounds. Also work around bug with moving
8495 full directory onto an empty one.
8496 * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
8498 rename-dest-slash: merge into rename module
8499 * modules/rename-dest-slash (Status): Mark obsolete.
8500 (Depends-on): Add rename.
8501 (Files): Let rename do it all.
8502 * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
8503 subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
8504 * m4/rename-dest-slash.m4: ...so this file can be deleted.
8505 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
8506 * lib/rename.c (rpl_rename): Update comments.
8508 rename: fix cygwin 1.5.x bugs
8509 * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
8510 * lib/rename.c (rpl_rename): Work around them.
8511 * modules/rename (Depends-on): Add same-inode.
8513 rename: fix Solaris 10 bug
8514 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
8515 * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
8518 rename: fix Solaris 9 bug
8519 * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
8520 on non-directory. Avoid calling exit.
8521 * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
8523 * modules/rename-tests (Depends-on): Drop lstat.
8524 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
8525 (gl_PREREQ_RENAME): Delete unused macro.
8527 rename-dest-slash: fix NetBSD bug
8528 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
8530 * modules/rename-dest-slash (Depends-on): Add same-inode.
8532 rename-tests: new test, exposes several platform bugs
8533 * modules/rename-tests: New file.
8534 * tests/test-rename.h: Likewise.
8535 * tests/test-rename.c: Likewise.
8536 * doc/posix-functions/rename.texi (rename): Improve documentation,
8537 including bugs that will eventually be fixed in gnulib.
8539 2009-10-02 Paolo Bonzini <bonzini@gnu.org>
8541 * lib/uname.c: Include <stdlib.h>
8542 (uname): Assume version info is available.
8544 2009-10-02 Jim Meyering <meyering@redhat.com>
8546 gnu-web-doc-update: correct --help output
8547 * build-aux/gnu-web-doc-update: Make --help output relevant.
8549 gnu-web-doc-update: add standard options
8550 * build-aux/gnu-web-doc-update: Add --help, --version, etc.
8552 gnu-web-doc-update: New module.
8553 Use this script to automatically update the on-line web documentation
8554 for your GNU project at http://www.gnu.org/software/$pkg/manual/
8555 * modules/gnu-web-doc-update: New file, from coreutils.
8556 * build-aux/gnu-web-doc-update: New script.
8558 2009-10-01 Paolo Bonzini <bonzini@gnu.org>
8560 link: LoadLibrary is not needed.
8561 * lib/link.c: Use GetModuleHandle.
8563 2009-10-01 Eric Blake <ebb9@byu.net>
8565 getopt: bump serial number
8566 * m4/getopt.m4: Increment serial number, to account for 2009-09-24
8569 tests: tighten link, rmdir, and remove tests
8570 * tests/test-link.h (includes): No need to use <config.h> here.
8571 Clean up if directory hard link was created, otherwise test for
8573 * tests/test-linkat.c (main): Simplify.
8574 * tests/test-remove.c (main): Enhance test for trailing '.'.
8575 * tests/test-rmdir.h (test_rmdir_func): Likewise.
8577 2009-10-01 Jim Meyering <meyering@redhat.com>
8579 maint.mk: requiring "make major" was annoying, for a "minor" release.
8580 What is intended is "stable", to contrast with alpha and beta,
8581 so require "make stable", not "make major".
8582 * build-aux/announce-gen (%valid_release_types): s/major/stable/.
8583 (get_tool_versions): Likewise.
8584 * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
8586 2009-09-30 Ben Pfaff <blp@gnu.org>
8588 Fix broken build of replacement for Windows tmpfile().
8589 * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
8590 flags argument added along with the 'mkostemp' module.
8592 2009-09-28 Bruno Haible <bruno@clisp.org>
8594 Avoid identifier clash with POSIX function 'remove' defined as a macro.
8595 * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
8597 (gl_list_remove): Update.
8598 * lib/gl_list.c (gl_list_remove): Update.
8599 * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
8601 (gl_oset_remove): Update.
8602 * lib/gl_list.c (gl_oset_remove): Update.
8603 Reported by Eric Blake.
8605 2009-09-28 Eric Blake <ebb9@byu.net>
8607 doc: mention yet more cygwin 1.7 status
8608 * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
8610 * doc/glibc-functions/execvpe.texi (execvpe): New file.
8611 * doc/gnulib.texi (Glibc unistd.h): Mention it.
8613 argp: fix test failure
8614 * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
8615 that are not upper-case. Pass correct range to tolower.
8617 2009-09-27 Jim Meyering <meyering@redhat.com>
8619 test-yesno: work around sparc-dash here-document infelicity
8620 Without this change, the literal \177 byte in a here document
8621 would make dash 0.5.5.1-3 access uninitialized memory.
8622 * tests/test-yesno.sh: Don't put the \177 byte in the here document.
8623 Instead, use a marker, "@", and filter through tr to create the desired
8624 contents. Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
8626 2009-09-27 Bruno Haible <bruno@clisp.org>
8628 Disable untested support for new flavours of ACLs on AIX.
8629 * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
8631 * lib/set-mode-acl.c (qset_acl): Likewise.
8633 2008-12-07 Bruno Haible <bruno@clisp.org>
8635 Add support for new flavours of ACLs on AIX. (Untested.)
8636 * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
8637 (file_has_acl): Add support for newer AIX.
8638 * lib/set-mode-acl.c (qset_acl): Likewise.
8639 * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
8640 Rainer Tammer <tammer@tammer.net>.
8642 2009-09-26 Eric Blake <ebb9@byu.net>
8644 argp: fix compilation of getopt
8645 * lib/getopt.in.h (includes): Use different guard than glibc.
8646 Reported by Sergey Poznyakoff.
8648 doc: mention more cygwin 1.7 status
8649 * doc/posix-functions/access.texi (access): Mention cygwin 1.5
8651 * doc/posix-functions/execl.texi (execl): Likewise.
8652 * doc/posix-functions/execle.texi (execle): Likewise.
8653 * doc/posix-functions/execlp.texi (execlp): Likewise.
8654 * doc/posix-functions/execv.texi (execv): Likewise.
8655 * doc/posix-functions/execve.texi (execve): Likewise.
8656 * doc/posix-functions/execvp.texi (execvp): Likewise.
8657 * doc/glibc-functions/canonicalize_file_name.texi
8658 (canonicalize_file_name): Cygwin 1.7 now provides this.
8659 * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
8660 * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
8661 on AT_SYMLINK_NOFOLLOW.
8663 2009-09-24 Eric Blake <ebb9@byu.net>
8665 test-linkat: make test more robust
8666 * tests/test-linkat.c (main): Avoid collision with EEXIST.
8668 getopt: fix inclusion guards for cygwin
8669 * modules/getopt-posix (Depends-on): Add include-next.
8670 (Makefile.am): Substitute more items in replacement header.
8671 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
8673 * lib/getopt.in.h (includes): Use split inclusion guard, and
8674 prefer <getopt.h> over include <unistd.h> when one is present.
8675 (option): Also override name of 'struct option'.
8677 same-inode: revert prior change; it is not yet ready
8678 * NEWS: Undo mention of this change.
8679 * lib/same-inode.h (same-inode.h): Undo tri-state change.
8680 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
8681 * lib/cycle-check.c (cycle_check): Likewise.
8682 * lib/same.c (same_name): Likewise.
8683 * lib/at-func2.c (at_func2): Likewise.
8685 2009-09-23 Eric Blake <ebb9@byu.net>
8688 * modules/linkat: New file.
8689 * lib/at-func2.c (at_func2): Likewise.
8690 * lib/linkat.c (linkat): Likewise.
8691 * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
8692 * lib/openat-priv.h (at_func2): Add declaration.
8693 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8694 * modules/unistd (Makefile.am): Substitute them.
8695 * lib/unistd.in.h (linkat): Declare it.
8696 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8697 * doc/posix-functions/linkat.texi (linkat): Likewise.
8698 * doc/posix-functions/link.texi (link): Tweak wording.
8699 * tests/test-link.c (main): Move guts...
8700 * tests/test-link.h (test_link): ...into new file.
8701 * modules/linkat-tests: New test.
8702 * tests/test-linkat.c: Likewise.
8703 * modules/link-tests (Files): Ship new file.
8704 (Depends-on): Add stdbool.
8706 dirname: add library-safe mdir_name
8707 * lib/dirname.h (mdir_name): New prototype.
8708 * lib/dirname.c (dir_name): Move guts...
8709 (mdir_name): ...to new function that avoids xalloc_die.
8711 fchdir: another mingw fix
8712 * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
8713 * lib/fchdir.c (get_name): New helper method; skips canonicalize
8714 on mingw (where it has not yet been ported), and make it optional
8716 (_gl_register_fd): Use it.
8718 same-inode: make SAME_INODE tri-state, to port to mingw
8719 * NEWS: Mention this change.
8720 * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
8721 st_ino always being 0.
8722 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
8723 * lib/cycle-check.c (cycle_check): Likewise.
8724 * lib/same.c (same_name): Likewise.
8726 lstat: avoid mingw compilation error
8727 * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
8728 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
8730 * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
8732 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
8733 the checks for lstat.
8734 (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
8736 link: fix test failure on Solaris 9
8737 * lib/link.c (rpl_link): Don't assume link will catch bogus
8738 trailing slash on source.
8740 test-symlinkat: enhance test
8741 * tests/test-readlink.c (main): Move guts...
8742 * tests/test-readlink.h (test_readlink): ...into new file.
8743 * tests/test-symlink.c (main): Move guts...
8744 * tests/test-symlink.h (test_symlink): ...into new file.
8745 * tests/test-symlinkat.c (main): Use new files for further
8747 (do_symlink, do_readlink): New helper functions.
8748 * modules/symlink-tests (Files): Ship new file.
8749 (Depends-on): Add stdbool.
8750 * modules/readlink-tests (Files): Ship new file.
8751 (Depends-on): Add stdbool.
8752 * modules/symlinkat-tests (Files): Use new files.
8754 2009-09-23 Eric Blake <ebb9@byu.net>
8756 readlink: document portability issue with symlink length
8757 * doc/posix-functions/lstat.texi (lstat): Mention that some file
8758 systems have bogus st_size on symlinks, and mention the
8759 areadlink-with-size module.
8760 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
8761 * doc/posix-functions/readlink.texi (readlink): Mention the
8762 areadlink module, and ERANGE failure.
8763 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8764 * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
8766 readlink: fix Solaris 9 bug with trailing slash
8767 * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
8768 * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
8769 * doc/posix-functions/readlink.texi (readlink): Document this.
8770 * modules/readlink-tests: New test.
8771 * tests/test-readlink.c: Likewise.
8773 readlink: fix cygwin 1.5.x bug with return type
8774 * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
8775 * lib/unistd.in.h (readlink): Use ssize_t.
8776 * lib/readlink.c (readlink): Likewise.
8777 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8778 * modules/unistd (Makefile.am): Substitute it.
8779 * lib/unistd.in.h (readlink): Declare replacement.
8780 * doc/posix-functions/readlink.texi (readlink): Document this.
8782 symlink: use throughout gnulib
8783 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
8784 * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
8785 symlink is not used.
8786 * modules/symlinkat (Depends-on): Add symlink.
8787 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
8788 * modules/canonicalize-tests (Depends-on): Likewise.
8789 * modules/lstat-tests (Depends-on): Likewise.
8790 * modules/openat-tests (Depends-on): Likewise.
8791 * modules/remove-tests (Depends-on): Likewise.
8792 * modules/rmdir-tests (Depends-on): Likewise.
8793 * modules/unlink-tests (Depends-on): Likewise.
8794 * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
8795 * tests/test-canonicalize.c (symlink): Likewise.
8796 * tests/test-fstatat.c (symlink): Likewise.
8797 * tests/test-lstat.c (symlink): Likewise.
8798 * tests/test-remove.c (symlink): Likewise.
8799 * tests/test-rmdir.c (symlink): Likewise.
8800 * tests/test-unlink.c (symlink): Likewise.
8801 * tests/test-unlinkat.c (symlink): Likewise.
8803 symlink: new module, for Solaris 9 bug
8804 * modules/symlink: New file.
8805 * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
8806 * lib/symlink.c: Likewise.
8807 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
8808 * modules/unistd (Makefile.am): Substitute them.
8809 * lib/unistd.in.h (symlink): Declare replacement.
8810 * MODULES.html.sh (File system functions): Mention it.
8811 * doc/posix-functions/symlink.texi (symlink): Likewise.
8812 * modules/symlink-tests: New test.
8813 * tests/test-symlink.c: Likewise.
8815 2009-09-23 Bruno Haible <bruno@clisp.org>
8817 * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
8819 Test case: gnulib-tool --import --with-tests atexit inttypes.
8820 Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
8822 2009-09-23 Bruno Haible <bruno@clisp.org>
8824 * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
8825 subcommand, not in a subshell.
8827 2009-09-22 Eric Blake <ebb9@byu.net>
8829 unistd: sort replacement declarations
8830 * lib/unistd.in.h: Sort declarations.
8832 open, openat: minor optimization
8833 * lib/open.c (open): If open succeeded, len is non-zero.
8834 * lib/openat.c (rpl_openat): Likewise.
8836 link-follow: ensure correct result
8837 * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
8838 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
8839 distinguish between possible failures.
8841 2009-09-21 Eric Blake <ebb9@byu.net>
8843 fts: avoid compiler warning
8844 * lib/fts.c (dirent_inode_sort_may_be_useful)
8845 (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
8847 2009-09-19 Bruno Haible <bruno@clisp.org>
8849 * lib/progreloc.c (canonicalize_file_name): New declaration.
8851 2009-09-19 Eric Blake <ebb9@byu.net>
8854 * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
8856 openat: fix openat bugs on Solaris 9
8857 * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
8858 * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
8859 * modules/openat (Depends-on): Add open.
8860 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
8861 * modules/fcntl-h (Makefile.am): Substitute it.
8862 * lib/fcntl.in.h (openat): Declare replacement.
8863 * doc/posix-functions/openat.texi (openat): Document this.
8865 openat: move fstatat and unlinkat into correct files
8866 * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
8868 * lib/openat.c (fstatat, unlinkat): Move...
8869 * lib/fstatat.c (fstatat): ...into correct files.
8870 * lib/unlinkat.c (unlinkat): Likewise.
8872 openat: fix unlinkat bugs on Solaris 9
8873 * lib/unlinkat.c (unlinkat): New file.
8874 * modules/openat (Depends-on): Add unlink.
8875 (Files): Distribute it.
8876 * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
8877 trailing slash behavior is broken.
8878 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8879 * modules/unistd (Makefile.am): Substitute it.
8880 * lib/unistd.in.h (unlinkat): Declare replacement.
8881 * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
8883 openat: fix fstatat bugs on Solaris 9
8884 * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
8886 * doc/posix-functions/fstatat.texi (fstatat): Document this.
8888 test-unlinkat: enhance test, to expose Solaris 9 bug
8889 * tests/test-unlink.c (main): Factor guts...
8890 * tests/test-unlink.h (test_rmdir_func): ...into new file.
8891 * tests/test-rmdir.h (test_rmdir_func): Add parameter.
8892 * tests/test-rmdir.c (main): Adjust caller.
8893 * tests/test-unlinkat.c (main): Likewise. Add unlink tests.
8894 (unlinker): New helper function.
8895 (rmdirat): Enhance check.
8896 * modules/rmdir-tests (Depends-on): Add stdbool.
8897 * modules/unlink-tests (Depends-on): Likewise.
8898 (Files): Add test-unlink.h.
8899 * modules/openat-tests (Files): Likewise.
8900 (Depends-on): Add unlinkdir.
8902 test-fstatat: new test, to expose Solaris 9 bugs
8903 * tests/test-stat.c (main): Factor guts...
8904 * tests/test-stat.h (test_stat_func): ...into new file.
8905 * tests/test-lstat.c (main): Factor guts...
8906 * tests/test-lstat.h (test_lstat_func): ...into new file.
8907 * tests/test-fstatat.c: New file.
8908 * modules/stat-tests (Files): Add test-stat.h.
8909 * modules/lstat-tests (Files): Add test-lstat.h.
8910 (Depends-on): Add stdbool.
8911 * modules/openat-tests (Depends-on): Add pathmax.
8912 (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
8913 (Makefile.am): Run new test.
8915 remove: new module, for mingw and Solaris 9 bugs
8916 * modules/remove: New file.
8917 * lib/remove.c: Likewise.
8918 * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
8919 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
8920 * modules/stdio (Makefile.am): Use them.
8921 * lib/stdio.in.h (remove): Declare replacement.
8922 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8923 * doc/posix-functions/remove.texi (remove): Likewise.
8924 * modules/remove-tests: New test.
8925 * tests/test-remove.c: Likewise.
8927 unlink: new module, for Solaris 9 bug
8928 * modules/unlink: New file.
8929 * lib/unlink.c: Likewise.
8930 * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8931 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8932 * modules/unistd (Makefile.am): Use them.
8933 * lib/unistd.in.h (stat): Declare replacement.
8934 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8935 * doc/posix-functions/unlink.texi (unlink): Likewise.
8936 * modules/unlink-tests: New test.
8937 * tests/test-unlink.c: Likewise.
8939 lstat: fix Solaris 9 bug
8940 * lib/lstat.c (lstat): Also check for trailing slash on
8941 non-symlink, non-directories. Use stat module to simplify logic.
8942 * doc/posix-functions/lstat.texi (lstat): Document it.
8943 * modules/lstat-tests (Depends-on): Add errno, same-inode.
8944 (configure.ac): Check for symlink.
8945 * tests/test-lstat.c (main): Add more tests.
8947 stat: add as dependency to other modules
8948 * modules/chown (Depends-on): Add stat.
8949 * modules/euidaccess (Depends-on): Likewise.
8950 * modules/fchdir (Depends-on): Likewise.
8951 * modules/isdir (Depends-on): Likewise.
8952 * modules/link (Depends-on): Likewise.
8953 * modules/lstat (Depends-on): Likewise.
8954 * modules/mkdir-p (Depends-on): Likewise.
8955 * modules/modechange (Depends-on): Likewise.
8956 * modules/open (Depends-on): Likewise.
8957 * modules/readlink (Depends-on): Likewise.
8958 * modules/same (Depends-on): Likewise.
8960 stat: fix Solaris 9 bug
8961 * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
8963 * lib/stat.c (rpl_stat): Work around it.
8964 * doc/posix-functions/stat.texi (stat): Update documentation.
8966 stat: new module, for mingw bug
8967 * modules/stat: New file.
8968 * lib/stat.c: Likewise.
8969 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8970 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8971 * modules/sys_stat (Makefile.am): Use them.
8972 * lib/sys_stat.in.h (stat): Declare replacement.
8973 * lib/openat.c (fstatat): Deal with lstat and stat being function
8975 * modules/openat (Depends-on): Add inline.
8976 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8977 * doc/posix-functions/stat.texi (stat): Likewise.
8978 * modules/stat-tests: New test.
8979 * tests/test-stat.c: Likewise.
8981 2009-09-19 Jim Meyering <meyering@redhat.com>
8983 syntax-check: detect unnecessary inclusion of canonicalize.h
8984 * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
8986 2009-09-19 Eric Blake <ebb9@byu.net>
8988 canonicalize-lgpl: adjust clients to use correct header
8989 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
8990 (gl_CANONICALIZE_LGPL): Use correct shell quoting.
8991 * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
8992 * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
8993 * lib/progreloc.c (includes): Likewise.
8995 2009-09-19 Jim Meyering <meyering@redhat.com>
8997 test-posixtm.c: correct a comment
8998 * tests/test-posixtm.c: Correct first-line comment.
8999 Spotted by Eric Blake.
9001 2009-09-16 Jim Meyering <meyering@redhat.com>
9003 posixtm-tests: make T const-correct; add a test case
9004 * tests/test-posixtm.c (T): Declare const.
9005 Add a test for -(2^31+1).
9006 Remove useless can-succeed-only-in-2002 test.
9008 posixtm-tests: adjust the sole failing test
9009 * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
9010 expected output matches what mktime now produces. Cross-checked via
9011 erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
9013 posixtm: move #ifdef'd tests into a new module
9014 * lib/posixtm.c (posixtime): Remove #ifdef'd tests. Move to...
9015 * tests/test-posixtm.c: ... this new file.
9016 * modules/posixtm-tests: New module.
9018 2009-09-19 Eric Blake <ebb9@byu.net>
9020 openat: simplify use of at-func.c
9021 * lib/at-func.c (includes): Include prerequisites here, to
9022 simplify requirements on client files.
9023 * lib/openat-priv.h: Add double-inclusion guard.
9024 * lib/faccessat.c (includes): Simplify.
9025 * lib/fchmodat.c (includes): Likewise.
9026 * lib/fchownat.c (includes): Likewise.
9027 * lib/mkdirat.c (includes): Likewise.
9028 * lib/mkfifoat.c (includes): Likewise.
9029 * lib/symlinkat.c (includes): Likewise.
9031 openat: allow return of fd 0
9032 * modules/chdir-long (Depends-on): Relax openat-safer to openat.
9033 * modules/save-cwd (Depends-on): Replace fcntl-safer with
9035 * lib/chdir-long.c (includes): Replace "fcntl--.h" with
9036 <fcntl.h>; this module does not leak fds.
9037 * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
9038 must be allowed to return 0, leaving openat_safer to add the
9040 (openat_permissive): Avoid writing to just-opened fd 2 if
9041 restoring the current directory fails.
9042 * lib/openat-die.c (openat_restore_fail): Add comment.
9043 * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
9044 (save_cwd): Guarantee safe fd, but without use of open_safer.
9045 * tests/test-openat.c: New test.
9046 * modules/openat-tests (Files, Makefile.am): Distribute and build
9049 relocatable-prog-wrapper: fix build
9050 * modules/relocatable-prog-wrapper (Files): Update name of
9051 canonicalize m4 file, broken on 2009-09-17.
9052 Reported by emad hajjar <aleppos@hotmail.com>.
9054 2009-09-19 Bruno Haible <bruno@clisp.org>
9056 * lib/safe-alloc.h: Use the standard header with GPL copyright.
9057 * lib/safe-alloc.c: Likewise.
9058 Reported by Ian Beckwith <ianb@erislabs.net>.
9060 2009-09-18 Bruno Haible <bruno@clisp.org>
9062 * gnulib-tool: Add advice to "cannot find configure.ac" error message.
9063 Reported by <erobles@sensacd.com.mx>.
9065 2009-09-17 Eric Blake <ebb9@byu.net>
9067 canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
9068 * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
9069 slashes when checking if last component is missing.
9070 * tests/test-canonicalize.c (main): Test this.
9072 canonicalize, canonicalize-lgpl: honor // if distinct from /
9073 * modules/canonicalize (Files): Add double-slash-root.m4.
9074 * modules/canonicalize-lgpl (Files): Likewise.
9075 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9076 (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
9077 * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
9078 fallback definition.
9079 (canonicalize_filename_mode): Use it to protect //.
9080 * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
9081 (__realpath): Likewise.
9082 * tests/test-canonicalize.c (main): Test this.
9083 * tests/test-canonicalize-lgpl.c (main): Likewise.
9084 * modules/canonicalize-tests (Depends-on): Add same-inode.
9085 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9087 canonicalize-lgpl: fix glibc bug with trailing slash
9088 * m4/canonicalize-lgpl.m4: Move contents...
9089 * m4/canonicalize.m4: ...here.
9090 (gl_CANONICALIZE_LGPL): Factor realpath check...
9091 (gl_FUNC_REALPATH_WORKS): ...into new macro. Enhance to catch
9092 glibc 2.3.5 bug, fixed 2005-04-27.
9093 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
9094 (gl_PREREQ_CANONICALIZE_LGPL): Inline...
9095 (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
9096 * modules/canonicalize-lgpl (Files): Manage file rename.
9097 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9098 * modules/stdlib (Makefile.am): Substitute witness.
9099 * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
9101 * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
9102 replacement is required.
9103 * lib/canonicalize.c (canonicalize_file_name): Likewise.
9104 * doc/glibc-functions/canonicalize_file_name.texi
9105 (canonicalize_file_name): Document this.
9106 * doc/posix-functions/realpath.texi (realpath): Likewise.
9108 canonicalize-lgpl: reject non-directory with trailing slash
9109 * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
9110 * tests/test-canonicalize-lgpl.c (main): Enhance test. This
9111 catches failures in glibc 2.3.5.
9112 * tests/test-canonicalize.c (main): Likewise.
9114 canonicalize-lgpl: use native realpath if it works
9115 * lib/canonicalize-lgpl.c (realpath): Guard with
9116 FUNC_REALPATH_WORKS.
9117 * lib/stdlib.in.h (realpath): Make declaration optional based on
9119 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
9120 native realpath works.
9121 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9122 * modules/stdlib (Makefile.am): Substitute witness.
9124 canonicalize, canonicalize-lgpl: use <stdlib.h>
9125 * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
9126 (Include): Mention <stdlib.h>.
9127 (configure.ac): Mention functions we provide.
9128 * modules/canonicalize (configure.ac): Likewise.
9129 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
9130 realpath if canonicalize_file_name is missing.
9131 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
9132 * modules/stdlib (Makefile.am): Substitute witnesses.
9133 * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
9134 * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
9135 * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
9136 * NEWS: Document this.
9137 * doc/glibc-functions/canonicalize_file_name.texi
9138 (canonicalize_file_name): Likewise.
9139 * doc/posix-functions/realpath.texi (realpath): Likewise.
9140 * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
9142 test-canonicalize: consolidate into single C program
9143 * tests/test-canonicalize.sh: Delete; move setup into...
9144 * tests/test-canonicalize.c (main): ...the program, making it
9145 easier to run in debugger. Add some tests.
9146 * modules/canonicalize-tests (Files): Remove unused file.
9147 (Depends-on): Add progname.
9148 (configure.ac, Makefile.am): Simplify.
9150 test-canonicalize-lgpl: consolidate into single C program
9151 * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
9152 * tests/test-canonicalize-lgpl.c (main): ...the program, making it
9153 easier to run in debugger. Add some tests.
9154 * modules/canonicalize-lgpl-tests (Files): Remove unused file.
9155 (configure.ac, Makefile.am): Simplify.
9157 canonicalize: avoid resolvepath
9158 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
9160 * lib/canonicalize.c (includes): Simplify.
9161 (canonicalize_file_name): Drop resolvepath implementation.
9162 * modules/canonicalize (Depends-on): Drop filenamecat.
9164 canonicalize: don't lose errno
9165 * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
9168 canonicalize: simplify errno handling
9169 * lib/canonicalize.c (__set_errno): Delete macro, and use direct
9172 canonicalize, canonicalize-lgpl: update module dependencies
9173 * modules/canonicalize (Depends-on): Add extensions, lstat,
9175 (Files): Drop pathmax.h.
9176 (configure.ac): Adjust macro name.
9177 * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
9178 lstat, stdlib, sys_stat.
9179 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
9180 (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
9182 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
9183 (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
9184 (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
9185 * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
9186 declaration, if available.
9187 * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
9188 we can rely on the readlink module.
9189 (MAXSYMLINKS): Also consult SYMLOOP_MAX.
9190 (includes): Use <unistd.h> unconditionally.
9192 2009-09-17 Eric Blake <ebb9@byu.net>
9194 maint: make Include sections of modules consistent
9195 * modules/alloca: Use only header name; no need to list #include.
9196 * modules/alloca-opt: Likewise.
9197 * modules/arpa_inet: Likewise.
9198 * modules/canon-host: Likewise.
9199 * modules/configmake: Likewise.
9200 * modules/dirent: Likewise.
9201 * modules/eealloc: Likewise.
9202 * modules/environ: Likewise.
9203 * modules/fchdir: Likewise.
9204 * modules/fcntl: Likewise.
9205 * modules/fcntl-h: Likewise.
9206 * modules/gethrxtime: Likewise.
9207 * modules/gettime: Likewise.
9208 * modules/ignore-value: Likewise.
9209 * modules/inet_ntop: Likewise.
9210 * modules/inet_pton: Likewise.
9211 * modules/inttypes: Likewise.
9212 * modules/isnand-nolibm: Likewise.
9213 * modules/isnanf-nolibm: Likewise.
9214 * modules/mbchar: Likewise.
9215 * modules/mbfile: Likewise.
9216 * modules/mbiter: Likewise.
9217 * modules/mbuiter: Likewise.
9218 * modules/netdb: Likewise.
9219 * modules/netinet_in: Likewise.
9220 * modules/nproc: Likewise.
9221 * modules/pagealign_alloc: Likewise.
9222 * modules/poll: Likewise.
9223 * modules/printf-frexp: Likewise.
9224 * modules/pthread: Likewise.
9225 * modules/putenv: Likewise.
9226 * modules/random_r: Likewise.
9227 * modules/relocatable-prog: Likewise.
9228 * modules/search: Likewise.
9229 * modules/select: Likewise.
9230 * modules/selinux-h: Likewise.
9231 * modules/settime: Likewise.
9232 * modules/signal: Likewise.
9233 * modules/size_max: Likewise.
9234 * modules/socklen: Likewise.
9235 * modules/ssize_t: Likewise.
9236 * modules/stdarg: Likewise.
9237 * modules/stdbool: Likewise.
9238 * modules/stddef: Likewise.
9239 * modules/stdint: Likewise.
9240 * modules/stdio: Likewise.
9241 * modules/stdlib: Likewise.
9242 * modules/string: Likewise.
9243 * modules/strings: Likewise.
9244 * modules/sys_file: Likewise.
9245 * modules/sys_ioctl: Likewise.
9246 * modules/sys_select: Likewise.
9247 * modules/sys_socket: Likewise.
9248 * modules/sys_stat: Likewise.
9249 * modules/sys_time: Likewise.
9250 * modules/sys_times: Likewise.
9251 * modules/sys_utsname: Likewise.
9252 * modules/sys_wait: Likewise.
9253 * modules/sysexits: Likewise.
9254 * modules/time: Likewise.
9255 * modules/times: Likewise.
9256 * modules/tmpfile: Likewise.
9257 * modules/trim: Likewise.
9258 * modules/unistd: Likewise.
9259 * modules/wchar: Likewise.
9260 * modules/wctype: Likewise.
9262 2009-09-17 Bruno Haible <bruno@clisp.org>
9264 Make getdate.y compile on QNX and NetBSD 5 / i386.
9265 * m4/getdate.m4 (gl_GETDATE): Conditionally define
9266 TIME_T_FITS_IN_LONG_INT.
9267 * lib/getdate.y (long_time_t): New type.
9268 (relative_time): Change type of 'seconds' field to long_time_t.
9269 (get_date): Update types of local variables. Check against overflow
9270 during conversion from long_time_t to time_t.
9271 Reported by Matt Kraai <kraai@ftbfs.org>
9272 and Hasso Tepper <hasso@netbsd.org>.
9274 2009-09-17 Bruno Haible <bruno@clisp.org>
9276 * modules/COPYING: Update copyright years.
9277 * modules/README: Likeiwse.
9278 * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
9279 Reported by Ian Beckwith <ianb@erislabs.net>.
9281 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
9283 * users.txt: Update references for gnuit package.
9285 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
9287 * m4/getdelim.m4: Fix typo in copyright line.
9289 2009-09-17 Bruno Haible <bruno@clisp.org>
9291 * lib/atoll.c: Use the standard header with GPL copyright.
9292 * lib/argz.in.h: Likewise.
9293 * lib/glob.c: Likewise.
9294 * lib/glob-libc.h: Likewise.
9295 * lib/random_r.c: Likewise.
9296 * lib/siglist.h: Likewise.
9297 * lib/strsignal.c: Likewise.
9298 Reported by Ian Beckwith <ianb@erislabs.net>.
9300 2009-09-17 Eric Blake <ebb9@byu.net>
9302 rmdir: ensure correct dependency order
9303 * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
9305 2009-09-17 Bruno Haible <bruno@clisp.org>
9307 Disable assertion that fails on NetBSD 5 / i386.
9308 * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
9309 Reported by Sam Steingold <sds@gnu.org>
9310 and Hasso Tepper <hasso@netbsd.org>.
9312 2009-09-16 Eric Blake <ebb9@byu.net>
9314 unlinkdir: port to mingw
9315 * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
9316 on which no one can unlink a directory.
9318 stdlib: sort witness names
9319 * modules/stdlib (Makefile.am): Sort replacements.
9320 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
9321 * lib/stdlib.in.h: Likewise.
9323 parse-duration-tests: avoid link failure
9324 * modules/parse-duration-tests (test_parse_duration_LDADD): Add
9326 Reported by Tom G. Christensen.
9328 openat-tests: ensure unlinkat behaves like rmdir
9329 * tests/test-rmdir.c (main): Factor guts...
9330 * tests/test-rmdir.h (test_rmdir_func): ...into new file.
9331 * modules/rmdir-tests (Files): Ship new file.
9332 * modules/openat-tests: New test.
9333 * tests/test-unlinkat.c: Likewise.
9335 rmdir-errno: mark obsolete, it is unsafe for cross-compilation
9336 * modules/rmdir-errno (Status, Notice): Now obsolete.
9338 rmdir: work around cygwin 1.5.x and mingw bugs
9339 * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
9340 * lib/rmdir.c (rmdir): Work around it.
9341 * modules/rmdir (Status, Notice): No longer obsolete.
9342 (Files): Add dos.m4.
9343 (Depends-on): Add unistd.
9344 (configure.ac): Set witnesses.
9345 (License): Relax to LGPLv2+.
9346 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
9347 * modules/unistd (Makefile.am): Substitute witnesses.
9348 * lib/unistd.in.h (rmdir): Declare replacement.
9349 * doc/posix-functions/rmdir.texi (rmdir): Document this.
9350 * modules/rmdir-tests: New tests.
9351 * tests/test-rmdir.c: Likewise.
9353 2009-09-15 Eric Blake <ebb9@byu.net>
9355 fchdir: improve use of replacement functions
9356 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
9357 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
9358 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
9360 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
9361 * modules/sys_stat (Makefile.am): Substitute correct witness.
9362 * modules/dirent (Makefile.am): Likewise.
9363 * modules/unistd (Makefile.am): Likewise.
9364 * lib/dirent.in.h (opendir, closedir): Use better witnesses.
9365 * lib/unistd.in.h (dup): Likewise.
9366 * lib/sys_stat.in.h (fstat): Likewise.
9368 maint: ignore gnulib-tool temp files
9369 * .gitignore: Ignore files created during gnulib-tool --test.
9371 2009-09-13 Jim Meyering <meyering@redhat.com>
9373 posixtm: don't reject a time that specify "60" as the number of seconds
9374 * lib/posixtm.c (posixtime): The code to reject invalid dates
9375 would also reject a time specified with the .60 suffix.
9376 But POSIX allows that, in order to accommodate leap seconds.
9378 (main): Adjust tests accordingly.
9379 * modules/posixtm (Depends-on): Add stpcpy.
9381 2009-09-11 Jim Meyering <meyering@redhat.com>
9383 announce-gen: include [$release_type] in emitted Subject:
9384 * build-aux/announce-gen (get_tool_versions): Include [$release_type],
9385 e.g., [stable] in the emitted Subject: line.
9387 2009-09-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9389 Remove obsolete macros from several modules.
9390 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
9391 obsolete Autoconf macros with their modern counterparts.
9392 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
9393 * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
9394 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
9395 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
9396 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
9397 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9398 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
9399 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
9400 * m4/poll.m4 (gl_FUNC_POLL): Likewise.
9401 * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
9402 * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9403 * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9404 * m4/select.m4 (gl_FUNC_SELECT): Likewise.
9405 * m4/sockets.m4 (gl_SOCKETS): Likewise.
9406 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
9407 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
9408 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
9409 * m4/time_r.m4 (gl_TIME_R): Likewise.
9410 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
9411 * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
9412 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
9414 Fix copyright header in build-aux scripts.
9415 * build-aux/git-version-gen: Fix copyright header to match GPLv3
9417 * build-aux/ncftpput-ftp: Likewise.
9418 * build-aux/update-copyright: Likewise.
9420 2009-09-09 Eric Blake <ebb9@byu.net>
9422 test-link: allow Linux choice of errno
9423 * tests/test-link.c (main): Relax test for alternate error.
9425 strndup: fix improper m4 caching
9426 * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
9427 inside AC_CACHE_CHECK. Use REPLACE_STRNDUP, not HAVE_STRNDUP.
9428 (gl_PREREQ_STRNDUP): Delete.
9429 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
9430 * modules/string (Makefile.am): Substitute it.
9431 * lib/string.in.h (strndup): Modernize prototype.
9433 getcwd: port to mingw
9434 * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
9435 different from the POSIX assumptions made throughout the getcwd
9436 module; fortunately, the mingw getcwd does not need replacement.
9437 (gl_FUNC_GETCWD_NULL): Skip test on mingw.
9438 * modules/getcwd-tests: New test.
9439 * tests/test-getcwd.c: Likewise.
9441 link: fix platform bugs
9442 * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
9443 * lib/link.c (link): Work around them. Fix related mingw bug.
9444 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
9445 * modules/unistd (Makefile.am): Substitute it.
9446 * lib/unistd.in.h (link): Declare replacement.
9447 * doc/posix-functions/link.texi (link): Document this.
9448 * modules/link (Depends-on): Add strdup-posix, sys_stat.
9450 test-link: consolidate into single C program, test more cases
9451 * tests/test-link.sh: Delete.
9452 * tests/test-link.c: Test more error conditions. Exposes bugs on
9453 at least Cygwin and Solaris.
9454 * modules/link-tests (Files): Remove unused file.
9455 (Depends-on): Add errno, sys_stat.
9456 (Makefile.am): Simplify.
9458 2009-09-08 Bruno Haible <bruno@clisp.org>
9460 Work around towlower, towupper bug on mingw.
9461 * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
9462 * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
9463 * doc/posix-functions/towlower.texi: Mention the mingw bug.
9464 * doc/posix-functions/towupper.texi: Likewise.
9465 Reported by Eric Blake.
9467 2009-09-08 Jim Meyering <meyering@redhat.com>
9469 build: don't try to run autoheader if we don't use it
9470 * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
9471 is not used in configure.ac.
9473 2009-09-08 Eric Blake <ebb9@byu.net>
9475 euidaccess: fix compilation error
9476 * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
9478 rawmemchr: relax license
9479 * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
9481 Reported by Jim Meyering.
9483 mkfifoat: new module
9484 * modules/mkfifoat: New file.
9485 * lib/mkfifoat.c: Likewise.
9486 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
9487 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9488 * modules/sys_stat (Makefile.am): Use them.
9489 * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
9490 * MODULES.html.sh (File system functions): Mention module.
9491 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9492 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9493 * modules/mkfifoat-tests: New test.
9494 * tests/test-mkfifoat.c: Likewise.
9496 strchrnul: relax license
9497 * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
9499 Reported by Jim Meyering.
9501 2009-09-08 Eric Blake <ebb9@byu.net>
9503 fstatat: fix compilation on Solaris
9504 * lib/fstatat.c (includes): Add fcntl.h.
9505 Reported by Pádraig Brady.
9507 2009-09-07 Eric Blake <ebb9@byu.net>
9509 rename: modernize replacement
9510 * modules/rename (Depends-on): Add stdio.
9511 (configure.ac): Declare witness.
9512 * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
9513 stdio take care of replacement.
9514 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
9515 * modules/stdio (Makefile.am): Substitute them.
9516 * lib/stdio.in.h (rename): Declare replacement.
9517 * lib/rename.c (includes): Allow cross-compilation to non-windows
9519 * doc/posix-functions/rename.texi (rename): Improve
9522 stdio: sort witness names
9523 * modules/stdio (Makefile.am): Sort replacements.
9524 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9525 * lib/stdio.in.h: Likewise.
9527 getcwd: minor cleanups
9528 * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
9529 (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
9531 openat: provide more convenience names
9532 * modules/faccessat (configure.ac): Add C witness.
9533 * lib/unistd.in.h (readlinkat): Fix typo.
9534 * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
9535 convenience wrappers.
9536 * top/maint.mk (sc_prohibit_openat_without_use): Allow these
9537 wrappers in syntax checks.
9539 2009-09-06 Eric Blake <ebb9@byu.net>
9541 doc: fix comments in recent patches
9542 * lib/faccessat.c: Mention correct function.
9543 * lib/fchmodat.c: Likewise.
9544 * lib/fchownat.c: Likewise.
9545 * lib/symlinkat.c: Likewise.
9546 * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
9549 faccessat, symlinkat: continue cleanup of previous patch
9550 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
9551 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
9552 * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
9553 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
9554 * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
9555 * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
9558 2009-09-06 Bruno Haible <bruno@clisp.org>
9560 * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
9561 (fstatat): Declare if GNULIB_FSTATAT is set.
9562 (mkdirat): Declare if GNULIB_MKDIRAT is set.
9563 * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
9564 (unlinkat): Declare if GNULIB_UNLINKAT is set.
9565 * modules/fcntl-h (Files): Remove m4/openat.m4.
9566 * modules/sys_stat (Files): Remove m4/openat.m4.
9567 (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
9568 GNULIB_MKDIRAT instead of GNULIB_OPENAT.
9569 * modules/unistd (Files): Remove m4/openat.m4.
9570 (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
9572 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
9573 HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
9574 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
9575 GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
9576 HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
9578 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
9579 GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
9580 Don't require gl_OPENAT_DEFAULTS.
9581 * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
9582 gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
9583 GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
9584 (gl_OPENAT_DEFAULTS): Remove macro.
9586 2009-09-06 Bruno Haible <bruno@clisp.org>
9588 * modules/openat (configure.ac): Remove unneeded witness.
9590 2009-09-06 Bruno Haible <bruno@clisp.org>
9592 Set errno to ENOSYS when a function is entirely unsupported.
9593 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
9595 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
9596 * modules/chown (Depends-on): Remove errno.
9598 2009-09-06 Bruno Haible <bruno@clisp.org>
9600 * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
9602 2009-09-06 Bruno Haible <bruno@clisp.org>
9604 * lib/sys_stat.in.h: Fix preprocessor command indentation.
9606 2009-09-06 Ben Pfaff <blp@gnu.org>
9607 Bruno Haible <bruno@clisp.org>
9609 Work around a glibc bug in strtok_r.
9610 * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
9611 Undefine if UNDEFINE_STRTOK_R is set.
9612 * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
9613 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9614 REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
9615 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
9616 * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
9618 * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
9620 2009-09-06 Sergey Poznyakoff <gray@gnu.org.ua>
9623 * lib/exclude.c: Include wctype.h
9625 2009-09-06 Akim Demaille <demaille@gostai.com>
9627 bootstrap: improve error message
9628 * build-aux/bootstrap (find_tool): Upon failure, report the list
9630 Honor the initial value of the envvar.
9632 2009-09-05 Eric Blake <ebb9@byu.net>
9634 symlinkat: new module
9635 * modules/symlinkat: New file.
9636 * lib/symlinkat.c: Likewise.
9637 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
9638 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9639 * modules/unistd (Makefile.am): Use them.
9640 * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
9641 (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
9642 * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
9643 * MODULES.html.sh (File system functions): Mention module.
9644 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9645 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9646 * modules/symlinkat-tests: New test.
9647 * tests/test-symlinkat.c: Likewise.
9649 test-openat-safer: add more checks
9650 * tests/test-openat-safer.c (main): Check more code paths.
9652 2009-09-05 Jim Meyering <meyering@redhat.com>
9654 syntax-check: detect unnecessary inclusion of openat.h
9655 * top/maint.mk (sc_prohibit_openat_without_use): New rule.
9657 2009-09-05 Bruno Haible <bruno@clisp.org>
9659 Support towlower, towupper.
9660 * doc/posix-functions/towlower.texi: Mention module wctype.
9661 * doc/posix-functions/towupper.texi: Likewise.
9662 * lib/wctype.in.h (towlower, towupper): New functions.
9663 * tests/test-wctype.c: Include stdio.h, stdlib.h.
9664 (ASSERT): New macro.
9666 (main): Test also towlower, towupper. Test WEOF argument.
9667 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
9669 2009-09-05 Bruno Haible <bruno@clisp.org>
9671 Fix conversion behaviour when the input is invalid.
9672 * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
9673 mark occurring in first pass of indirect conversion.
9674 * tests/test-striconveh.c (main): Test conversion of invalid ASCII
9676 Found by clang's static analyzer.
9678 2009-09-05 Bruno Haible <bruno@clisp.org>
9680 * tests/test-striconveh.c (main): Test indirect conversion on platforms
9681 where direct conversion is possible.
9683 2009-09-04 Eric Blake <ebb9@byu.net>
9685 openat: fail with ENOENT on empty name
9686 * lib/openat-proc.c (openat_proc_name): Special-case the empty
9689 link-follow: fix logic bug in prior patch
9690 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
9691 reversed sense of yes and no in prior patch. Avoid confusing
9692 compilation failure with desired semantics.
9694 link-follow: accomodate mingw and cross-compilation
9695 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
9696 (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this. Change
9697 cross-compilation results to -1, to make linkat easier to
9698 implement when cross-compiling. Trivially support mingw.
9699 * modules/link-follow (configure.ac): Call new name.
9700 * NEWS: Mention this.
9702 2009-09-03 Eric Blake <ebb9@byu.net>
9704 faccessat: compile replacement
9705 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
9708 fts: fix compilation error
9709 * lib/fts.c (includes): Re-add "openat.h", for
9710 openat_needs_fchdir.
9712 faccessat: new module
9713 * modules/faccessat: New file.
9714 * lib/faccessat.c: Likewise.
9715 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
9716 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9717 * modules/unistd (Makefile.am): Use it.
9718 * lib/unistd.in.h (faccessat): Declare it.
9719 (F_OK, X_OK, W_OK, R_OK): Provide definitions.
9720 * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
9721 * MODULES.html.sh (File system functions): Mention it.
9722 * doc/posix-functions/faccessat.texi (faccessat): Likewise.
9723 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
9725 euidaccess: prefer POSIX over non-standard implementation
9726 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
9727 * lib/euidaccess.c (euidaccess): Use it if available.
9729 openat: make template easier to use
9730 * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
9731 AT_FUNC_F2 to be undefined.
9732 (VALIDATE_FLAG): New macro; use it to reject bad flags.
9733 (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
9734 * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
9735 * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
9736 * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
9738 * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
9739 * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
9740 [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
9743 openat: declare in POSIX headers
9744 * NEWS: Mention this.
9745 * modules/openat (configure.ac): Declare witnesses.
9746 (Depends-on): Add fcntl-h, sys_stat, unistd.
9747 (Include): Mention correct headers.
9748 * modules/fcntl-h (Depends-on): Add link-warning.
9749 (Files): Add openat.m4.
9750 (Makefile.am): Substitute witnesses.
9751 * modules/sys_stat (Files, Makefile.am): Likewise.
9752 * modules/unistd (Files, Makefile.am): Likewise.
9753 * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
9754 (gl_OPENAT_DEFAULTS): New macro.
9755 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
9756 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
9757 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
9758 (SYS_STAT_H): Remove unused variable.
9759 * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
9760 * lib/fcntl--.h (includes): Remove unneeded header.
9761 * lib/openat-safer.c (includes): Likewise.
9762 * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
9763 (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
9764 appropriate headers.
9765 (__OPENAT_PREFIX): Delete.
9766 * lib/fcntl.in.h (openat): Provide declaration.
9767 (AT_FDCWD): Fix Solaris bug.
9768 (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
9769 * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
9770 * lib/fchmodat.c (includes): Adjust to find declaration.
9771 * lib/fchownat.c (includes): Likewise.
9772 * lib/mkdirat.c (includes): Likewise.
9773 * lib/fstatat.c (includes): Likewise. Ensure original fstatat is
9776 2009-09-02 Eric Blake <ebb9@byu.net>
9778 errno: use consistently
9779 * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
9780 * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
9781 * lib/canonicalize.c (ELOOP): Likewise.
9782 * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
9783 * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
9784 * lib/lchown.c (EOPNOTSUPP): Likewise.
9785 * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
9786 * lib/savewd.c (ESTALE): Likewise.
9787 * lib/settime.c (ENOSYS): Likewise.
9788 * lib/utimens.c (ENOSYS): Likewise.
9789 * lib/xgethostname.c (ENAMETOOLONG): Likewise.
9790 * lib/chdir-safer.c (ELOOP): Likewise.
9791 (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
9792 * modules/c-stack (Depends-on): Add errno.
9793 * modules/canonicalize (Depends-on): Likewise.
9794 * modules/chdir-safer (Depends-on): Likewise.
9795 * modules/fdopendir (Depends-on): Likewise.
9796 * modules/inet_ntop (Depends-on): Likewise.
9797 * modules/inet_pton (Depends-on): Likewise.
9798 * modules/lchown (Depends-on): Likewise.
9799 * modules/openat (Depends-on): Likewise.
9800 * modules/savewd (Depends-on): Likewise.
9801 * modules/settime (Depends-on): Likewise.
9802 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
9804 fts: avoid leaking fds
9805 * modules/fts (Depends-on): Add cloexec.
9806 * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
9809 fts: make directory fds more robust
9810 * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
9811 (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
9813 backupfile, chdir-long, fts, savedir: make safer
9814 * lib/backupfile.c (includes): Use "dirent--.h", since
9815 numbered_backup can write to stderr during readdir.
9816 * lib/savedir.c (includes): Likewise.
9817 * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
9818 emulation can write to stderr on failure.
9819 * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
9820 * lib/getcwd.c: Document why opendir_safer is unused.
9821 * lib/glob.c: Likewise.
9822 * lib/scandir.c: Likewise.
9823 * lib/openat-proc.c: Likewise, for open_safer.
9824 * modules/backupfile (Depends-on): Add dirent-safer.
9825 * modules/savedir (Depends-on): Likewise.
9826 * modules/fts (Depends-on): Add dirent-safer and openat-safer.
9827 * modules/chdir-long (Depends-on): Add openat-safer.
9829 openat-safer: new module
9830 * modules/openat-safer: New file.
9831 * lib/openat-safer.c: Likewise.
9832 * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
9833 * lib/fcntl-safer.h (openat_safer): Declare.
9834 * lib/fcntl--.h (openat): Override.
9835 * MODULES.html.sh (File descriptor based I/O): Mention it.
9836 * lib/openat.h: Add double-inclusion guards.
9837 * lib/openat.c (includes): Only include "fcntl-safer.h", not
9838 "fcntl--.h", so we can implement openat.
9839 * modules/openat-safer-tests: New test.
9840 * tests/test-openat-safer.c: New file.
9842 dirent-safer: new module
9843 * modules/dirent-safer: New file.
9844 * lib/dirent--.h: Likewise.
9845 * lib/dirent-safer.h: Likewise.
9846 * lib/opendir-safer.c: Likewise.
9847 * m4/dirent-safer.m4: Likewise.
9848 * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
9849 * modules/dirent-safer-tests: New test.
9850 * tests/test-dirent-safer.c: New file.
9851 * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
9853 fdopendir: optimize on mingw
9854 * lib/unistd.in.h (_gl_directory_name): New prototype.
9855 * lib/fchdir.c (_gl_directory_name): Implement it.
9856 (fchdir): Use it to simplify implementation.
9857 * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
9858 fchdir, when available, to avoid calling [f]chdir().
9860 fdopendir: split into its own module
9861 * lib/openat.c (fdopendir): Move...
9862 * lib/fdopendir.c: ...into new file.
9863 * modules/fdopendir: New module.
9864 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
9865 * modules/openat (Depends-on): Add fdopendir.
9866 * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
9868 * modules/savedir (Depends-on): Only need fdopendir, not full
9870 * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
9871 * lib/openat.h (fdopendir): Drop prototype.
9872 * lib/dirent.in.h (fdopendir): Provide prototype.
9873 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
9874 * modules/dirent (Makefile.am): Substitute them.
9875 * MODULES.html.sh (File system functions): Mention it.
9876 * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
9877 * modules/fdopendir-tests: New file.
9878 * tests/test-fdopendir.c: Likewise.
9880 fchdir: use more consistent macro convention
9881 * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
9882 * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
9883 REPLACE_FCHDIR, rather than relying on config.h macros.
9884 * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
9885 inside a single make-time REPLACE_FCHDIR block, rather than using
9886 the config.h FCHDIR_REPLACEMENT.
9887 * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
9888 AC_SUBST'd, also AC_DEFINE it. Don't define FCHDIR_REPLACEMENT.
9889 Manage fstat replacement.
9890 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
9892 * modules/sys_stat (Files): Add m4/unistd_h.m4.
9893 (Makefile.am): Substitute REPLACE_FCHDIR.
9894 * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
9896 * lib/dup-safer.c (dup_safer): Likewise.
9897 * lib/dup2.c (rpl_dup2): Likewise.
9898 * lib/dup3.c (rpl_dup3): Likewise.
9899 * lib/open.c (rpl_open): Likewise.
9901 fchdir: simplify error handling, and support dup3
9902 * modules/fchdir (Depends-on): Use strdup-posix, not strdup. Add
9903 stdbool, malloc-posix, realloc-posix.
9904 * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
9905 (ensure_dirs_slot): Return false on allocation failure.
9907 (_gl_register_dup): New function.
9908 (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
9909 (_gl_register_fd): Close fd on allocation failure.
9910 * lib/fcntl.in.h (_gl_register_fd): Update signature.
9911 * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
9913 (rpl_dup2_fchdir): Delete prototype.
9914 * lib/open.c (open): Update caller.
9915 * lib/dup2.c (dup2): Track fchdir metadata.
9916 * lib/dup3.c (dup3): Likewise.
9917 * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
9918 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
9920 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9922 * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
9923 AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
9924 don't pass arguments to AC_OUTPUT.
9926 2009-09-02 Bruno Haible <bruno@clisp.org>
9928 * modules/mkdtemp (License): Relicense under LGPLv2+.
9929 Reported by Paolo Bonzini.
9931 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9933 Replace uses of obsolete autoconf macros in Jim's modules.
9934 The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
9935 AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
9936 can evoke a warning from autoconf when run with -Wobsolete
9937 enabled. They were declared obsolete for good reasons (see
9938 the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
9939 recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
9940 should not continue using the deprecated macros.
9941 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
9942 obsolete Autoconf macros with modern counterparts.
9943 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9944 * m4/dos.m4 (gl_AC_DOS): Likewise.
9945 * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
9946 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
9947 * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
9948 * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
9949 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
9950 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
9951 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
9952 * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
9953 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
9955 * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
9956 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
9957 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
9958 * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
9959 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
9960 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
9962 2009-09-01 Eric Blake <ebb9@byu.net>
9964 fchdir: fix off-by-one bug in previous patch
9965 * lib/fchdir.c (rpl_fstat): Use correct bounds.
9966 (_gl_unregister_fd): Delete useless if.
9968 2009-09-01 Daniel P. Berrange <berrange@redhat.com>
9970 maint.mk: sort the list of syntax-check rules
9971 * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
9972 easier to get a sense of progress when the rules are run sequentially
9973 and take a long time.
9975 2009-09-01 Simon Josefsson <simon@josefsson.org>
9977 * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
9978 * modules/netinet_in: Likewise.
9979 * modules/sys_file: Likewise.
9980 * modules/sys_ioctl: Likewise.
9981 * modules/sys_select: Likewise.
9982 * modules/sys_socket: Likewise.
9983 * modules/sys_stat: Likewise.
9984 * modules/sys_time: Likewise.
9985 * modules/sys_times: Likewise.
9986 * modules/sys_utsname: Likewise.
9987 * modules/sys_wait: Likewise.
9989 2009-09-01 Jim Meyering <meyering@redhat.com>
9991 fts: help ensure that return values are not ignored
9992 * lib/fts_.h (__GNUC_PREREQ): Define.
9993 (__attribute_warn_unused_result__): Define.
9994 (fts_children, fts_close, fts_open, fts_read): Declare with
9995 __attribute_warn_unused_result__.
9997 fts: fts_close now fails also when closing a dir file descriptor fails
9998 * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
9999 and propagate to caller, along with errno.
10001 announce-gen: correct formatting in --help output
10002 * build-aux/announce-gen (usage): Move the one-line description in
10003 --help output "up", to where it belongs, just after Usage:.
10005 2009-08-31 Eric Blake <ebb9@byu.net>
10007 fchdir: port to mingw
10008 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
10009 * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
10010 opened, then use a substitute.
10011 * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
10013 * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
10014 (_gl_register_fd): No need to check stat if open already filters
10016 (fchdir): Fix error condition to match POSIX.
10017 * modules/fchdir (Depends-on): Add sys_stat.
10018 * doc/posix-functions/open.texi (open): Document the limitation.
10019 * modules/fchdir-tests: New file.
10020 * tests/test-fchdir.c: Likewise.
10022 canonicalize: allow cross-testing from cygwin to mingw
10023 * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
10024 (Makefile.am): Pass it through TESTS_ENVIRONMENT.
10025 * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
10027 * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
10028 target does not support symlinks.
10029 * tests/test-canonicalize-lgpl.sh: Likewise.
10031 chown: avoid compilation warning on mingw
10032 * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
10033 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
10035 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10036 * modules/chown (Depends-on): Add errno.
10038 2009-08-31 Stefano Lattarini <stefano.lattarini@gmail.com> (tiny change)
10040 * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
10043 2009-08-31 Jim Meyering <meyering@redhat.com>
10045 canonicalize: remove useless initialization
10046 * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
10047 initialization of local, "end".
10049 2009-08-30 Bruno Haible <bruno@clisp.org>
10051 Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
10052 * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
10055 2009-08-30 Bruno Haible <bruno@clisp.org>
10057 * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
10058 /usr/xpg4/bin/tr when it exists.
10059 * tests/test-pipe-filter-gi1.sh: Likewise.
10061 2009-08-30 Bruno Haible <bruno@clisp.org>
10063 Work around deficient /usr/bin/id program on Solaris.
10064 * tests/test-file-has-acl.sh (ID): New variable.
10065 * tests/test-set-mode-acl.sh (ID): Likewise.
10066 * tests/test-copy-acl.sh (ID): Likewise.
10067 * tests/test-copy-file.sh (ID): Likewise.
10069 2009-08-30 Bruno Haible <bruno@clisp.org>
10071 New module 'xstriconveh'.
10072 * lib/xstriconveh.h: New file.
10073 * lib/xstriconveh.c: New file.
10074 * modules/xstriconveh: New file.
10076 2009-08-30 Bruno Haible <bruno@clisp.org>
10078 Make it easier to use mem_cd_iconveh.
10079 * lib/striconveh.h (iconveh_t): New type.
10080 (iconveh_open, iconveh_close): New declarations.
10081 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10082 with a single 'const iconveh_t *' argument.
10083 * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
10084 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10085 with a single 'const iconveh_t *' argument.
10086 (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
10087 * tests/test-striconveh.c (main): Update.
10088 * NEWS: Mention the change.
10090 2009-08-30 Bruno Haible <bruno@clisp.org>
10092 * doc/posix-functions/iconv_open.texi: Mention indirect conversion
10095 2009-08-30 Bruno Haible <bruno@clisp.org>
10097 Work around iconv_open problem on Solaris.
10098 * lib/iconv_open-solaris.gperf: New file.
10099 * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
10100 * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
10101 * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
10102 (Makefile.am): Add rule for iconv_open-solaris.h. Augment
10103 BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
10104 * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
10106 2009-08-29 Jim Meyering <meyering@redhat.com>
10108 maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
10109 * top/maint.mk (cvs-check): Remove target; it was just an alias
10110 to the better-named vc-diff-check.
10111 (maintainer-distcheck): Remove rule. It was used only from
10112 the (alpha/beta/major) target, and all of its commands but one
10113 were coreutils-specific.
10114 (vc-dist): Remove rule.
10115 (alpha beta major): Run "$(MAKE) distcheck" explicitly.
10116 Run vc-diff-check, not vc-dist.
10117 Run $(MAKE) dist with XZ_OPT=-9ev. Note spelling, with "-".
10119 2009-08-27 Bruno Haible <bruno@clisp.org>
10121 * tests/test-bitrotate.c (main): Remove test that uses a shift count
10124 2009-08-27 Bruno Haible <bruno@clisp.org>
10126 * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
10128 * doc/func.texi: Document the SunPRO C bug.
10130 2009-08-27 Bruno Haible <bruno@clisp.org>
10132 Fix link error on Solaris.
10133 * tests/test-parse-duration.c (xstrdup): Remove function.
10135 2009-08-26 Pádraig Brady <P@draigbrady.com>
10137 ignore-value: handle pointer types, too
10138 * lib/ignore-value.h (__attribute__): Remove definition.
10139 (ignore_value): Remove use of "__attribute__ ((unused))" in favor
10140 of a more concise and more-often effective "(void) i" statement.
10141 (ignore_ptr): New function to suppress warnings from functions that
10142 return pointers, and to make it explicit that one function doesn't
10145 2009-08-25 Bruno Haible <bruno@clisp.org>
10147 dup2: work around a Linux bug.
10148 * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
10149 * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
10150 * doc/posix-functions/dup2.texi: Mention the Linux bug.
10151 Reported by Simon Josefsson.
10153 2009-08-25 Jim Meyering <meyering@redhat.com>
10155 libguestfs uses gnulib
10156 * users.txt: Add libguestfs.
10158 2009-08-24 Eric Blake <ebb9@byu.net>
10160 dup2, pipe2: fix some recent test failures on cygwin 1.5.x
10161 * lib/pipe2.c (includes): Add binary-io.h.
10162 * lib/dup2.c (rpl_dup2): Correct buggy errno value.
10164 2009-08-24 Bruno Haible <bruno@clisp.org>
10166 Tolerate declared but missing accept4 syscall.
10167 * lib/accept4.c (accept4): Invoke original accept4 function first, if
10169 * lib/sys_socket.in.h (accept4): If the function is already present,
10171 * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
10172 * modules/accept4 (Makefile.am): Compile accept4.c always.
10173 Reported by Paolo Bonzini and Eric Blake.
10175 2009-08-23 Bruno Haible <bruno@clisp.org>
10177 New module 'accept4'.
10178 * lib/sys_socket.in.h (accept4): New declaration.
10179 * lib/accept4.c: New file.
10180 * m4/accept4.m4: New file.
10181 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
10182 GNULIB_ACCEPT4, HAVE_ACCEPT4.
10183 * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
10185 * modules/accept4: New file.
10186 * doc/glibc-functions/accept4.texi: Mention the new module.
10188 2009-08-24 Jim Meyering <meyering@redhat.com>
10190 progname: also set global program_invocation_name, when possible
10191 Before this change, a libtool-enabled program that calls glibc's
10192 error function would report the program name as
10193 "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
10194 * modules/progname (configure.ac): Check for a declaration of
10195 program_invocation_name.
10196 * lib/progname.c: Include <errno.h>.
10197 (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
10198 Set program_invocation_name.
10200 2009-08-23 Bruno Haible <bruno@clisp.org>
10202 * lib/dup3.c: Include <string.h>.
10204 2009-08-23 Bruno Haible <bruno@clisp.org>
10206 * lib/dup3.c (dup3): Test only once whether the system actually exists.
10207 * lib/pipe2.c (pipe2): Likewise.
10208 Suggested by Eric Blake.
10210 2009-08-23 Bruno Haible <bruno@clisp.org>
10212 Tolerate declared but missing dup3 syscall.
10213 * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
10214 * lib/unistd.in.h (dup3): If the function is already present,
10216 * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
10217 * modules/dup3 (Makefile.am): Compile dup3.c always.
10218 Reported by Paolo Bonzini.
10220 2009-08-23 Bruno Haible <bruno@clisp.org>
10222 Tolerate declared but missing pipe2 syscall.
10223 * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
10225 * lib/unistd.in.h (pipe2): If the function is already present,
10227 * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
10228 * modules/pipe2 (Makefile.am): Compile pipe2.c always.
10229 Reported by Paolo Bonzini.
10231 2009-08-23 Bruno Haible <bruno@clisp.org>
10233 * lib/pipe2.c (pipe2): Move #ifs inside function.
10235 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
10237 quotearg: document limitations of quote_these_too
10238 * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
10239 those limitations are created.
10240 * lib/quotearg.h (set_char_quoting): Document that digits and
10241 letters that are special after backslash are not permitted.
10242 (quotearg_char): Cross-reference set_char_quoting documentation.
10244 2009-08-23 Joel E. Denny <jdenny@clemson.edu>
10246 quotearg: implement custom_quoting_style
10247 * lib/quotearg.c: (struct quoting_options): Add left_quote and
10248 right_quote fields.
10249 (set_custom_quoting): New public function.
10250 (quotearg_buffer_restyled): Add left_quote and right_quote
10251 arguments, handle them very much like locale quoting, and update
10253 (quotearg_n_custom): New public function.
10254 (quotearg_n_custom_mem): New public function.
10255 (quotearg_custom): New public function.
10256 (quotearg_custom_mem): New public function.
10257 * lib/quotearg.h: Prototype and document new public functions.
10258 (enum quoting_style): For escape_quoting_style and
10259 clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
10260 ignored even though they're otherwise like c_quoting_style.
10261 Add custom_quoting_style member and document with comparison to
10262 clocale_quoting_style.
10263 * tests/test-quotearg.c (custom_quotes): New array.
10264 (custom_results): New array.
10265 (main): Extend to test custom quoting.
10267 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
10269 quotearg: fix right quote escaping when it's in quote_these_too
10270 * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
10271 quote, be sure to prepend only one backslash.
10272 * tests/test-quotearg.c (use_quote_double_quotes): New function.
10275 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
10277 quotearg-tests: test escaping of embedded locale quotes
10278 * tests/test-quotearg.c (struct result_strings): Add member for
10280 (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
10281 (inputs): Add new input.
10282 (results_g): Add expected results.
10283 (flag_results): Likewise.
10284 (locale_results): Likewise.
10285 (compare_strings): Check those.
10287 2009-08-23 Bruno Haible <bruno@clisp.org>
10289 Tests for module 'dup3'.
10290 * modules/dup3-tests: New file.
10291 * tests/test-dup3.c: New file.
10294 * lib/unistd.in.h (dup3): New declaration.
10295 * lib/dup3.c: New file.
10296 * m4/dup3.m4: New file.
10297 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
10299 * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
10300 * modules/dup3: New file.
10301 * doc/glibc-functions/dup3.texi: Mention the new module.
10303 2009-08-23 Bruno Haible <bruno@clisp.org>
10305 Tweak the dup2 test.
10306 * tests/test-dup2.c (main): Create the test file empty. Verify that an
10307 out-of-range fd yields EBADF. Verify that after writing to /dev/null,
10308 the test file is still empty. Fix argument order of lseek.
10310 2009-08-23 Bruno Haible <bruno@clisp.org>
10312 Avoid test link errors when the modules getopt-gnu, gettext are used.
10313 * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
10314 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10316 2009-08-23 Bruno Haible <bruno@clisp.org>
10318 Fix getdtablesize() on mingw.
10319 * lib/getdtablesize.c (getdtablesize): Implement differently.
10320 * lib/unistd.in.h (getdtablesize): Improve comment.
10322 2009-08-23 Bruno Haible <bruno@clisp.org>
10324 New module 'mkostemp'.
10325 Based on Ulrich Drepper's 2007-08-10 change in glibc.
10326 * lib/stdlib.in.h (mksotemp): New declaration.
10327 * lib/mkostemp.c: New file, from glibc with modifications.
10328 * lib/tempname.h (GT_FILE): Remove outdated comment.
10329 (gen_tempname): Add flags argument.
10330 * lib/tempname.c (__GT_BIGFILE): Remove macro.
10331 (__GT_FILE): Map to 1.
10332 (small_open, large_open): Remove macros.
10333 (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
10334 * lib/mkstemp.c (mkstemp): Update.
10335 * lib/mkdtemp.c (mkdtemp): Likewise.
10336 * m4/mkostemp.m4: New file.
10337 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
10339 * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
10341 * modules/mkostemp: New file, based on modules/mkstemp.
10342 * doc/glibc-functions/mkostemp.texi: Mention the new module.
10343 * NEWS: Mention the change.
10345 2009-08-23 Bruno Haible <bruno@clisp.org>
10347 * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
10348 Reported by Eric Blake.
10350 2009-08-23 Bruno Haible <bruno@clisp.org>
10352 * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
10353 Reported by Eric Blake.
10355 2009-08-23 Bruno Haible <bruno@clisp.org>
10357 * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
10358 * modules/pipe2 (Depends-on): Likewise.
10360 2009-08-23 Eric Blake <ebb9@byu.net>
10362 fcntl-h: add O_TTY_INIT support
10363 * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
10364 * tests/test-fcntl-h.c (o): Test it.
10365 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10367 fcntl-h: rename from fcntl, in preparation for fcntl(2)
10368 * modules/fcntl: Move <fcntl.h> header replacement...
10369 * modules/fcntl-h: ...to new name, so as not to collide with
10370 like-named function.
10371 * tests/test-fcntl.c: Rename...
10372 * tests/test-fcntl-h.c: ...to this. Test FD_CLOEXEC.
10373 * modules/fcntl-tests: Rename...
10374 * modules/fcntl-h-tests: ...to this. Update test file name.
10375 * modules/chdir-long (Depends-on): Update clients.
10376 * modules/chdir-safer (Depends-on): Likewise.
10377 * modules/fcntl-safer (Depends-on): Likewise.
10378 * modules/fts (Depends-on): Likewise.
10379 * modules/mkancesdirs (Depends-on): Likewise.
10380 * modules/mkdir-p (Depends-on): Likewise.
10381 * modules/open (Depends-on): Likewise.
10382 * modules/savewd (Depends-on): Likewise.
10383 * MODULES.html.sh (systems lacking POSIX:2008): Update name.
10384 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10386 2009-08-22 Bruno Haible <bruno@clisp.org>
10388 * modules/binary-io (License): Relicense under LGPL.
10389 * modules/pipe2 (License): Likewise.
10391 2009-08-22 Bruno Haible <bruno@clisp.org>
10393 * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
10395 * lib/pipe-filter-gi.c (filter_init): Likewise.
10396 Reported by Eric Blake.
10398 2009-08-22 Bruno Haible <bruno@clisp.org>
10400 * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
10401 * modules/pipe (Depends-on): Add pipe2.
10403 2009-08-22 Bruno Haible <bruno@clisp.org>
10405 Tests for module 'pipe2'.
10406 * modules/pipe2-tests: New file.
10407 * tests/test-pipe2.c: New file.
10409 New module 'pipe2'.
10410 * lib/unistd.in.h (pipe2): New declaration.
10411 * lib/pipe2.c: New file.
10412 * m4/pipe2.m4: New file.
10413 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
10415 * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
10416 * modules/pipe2: New file.
10417 * doc/glibc-functions/pipe2.texi: Mention the new module.
10419 2009-08-22 Bruno Haible <bruno@clisp.org>
10421 Reference some new glibc functions.
10422 * doc/glibc-functions/accept4.texi: New file.
10423 * doc/glibc-functions/dup3.texi: New file.
10424 * doc/glibc-functions/mkostemp.texi: New file.
10425 * doc/glibc-functions/pipe2.texi: New file.
10426 * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
10427 (Glibc sys/socket.h): Refer to accept4.
10428 (Glibc unistd.h): Refer to dup3, pipe2.
10429 Reported by Eric Blake.
10431 2009-08-22 Jim Meyering <meyering@redhat.com>
10432 Bruno Haible <bruno@clisp.org>
10434 annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
10435 This makes it so packages using automake-1.11's silent-rules option
10436 can print e.g., a single "GEN configmake.h" line, rather than
10437 the 30+ statements that perform the job. If you want to see the
10438 actual commands, you can still run "make V=1".
10439 * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
10440 so that make output is abbreviated when those variables are defined
10442 * modules/argz: Likewise.
10443 * modules/arpa_inet: Likewise.
10444 * modules/byteswap: Likewise.
10445 * modules/configmake: Likewise.
10446 * modules/dirent: Likewise.
10447 * modules/errno: Likewise.
10448 * modules/fcntl: Likewise.
10449 * modules/float: Likewise.
10450 * modules/fnmatch: Likewise.
10451 * modules/getopt-posix: Likewise.
10452 * modules/glob: Likewise.
10453 * modules/iconv_open: Likewise.
10454 * modules/inttypes: Likewise.
10455 * modules/localcharset: Likewise.
10456 * modules/locale: Likewise.
10457 * modules/math: Likewise.
10458 * modules/netdb: Likewise.
10459 * modules/netinet_in: Likewise.
10460 * modules/poll: Likewise.
10461 * modules/posix_spawnp-tests: Likewise.
10462 * modules/sched: Likewise.
10463 * modules/search: Likewise.
10464 * modules/selinux-h: Likewise.
10465 * modules/signal: Likewise.
10466 * modules/spawn: Likewise.
10467 * modules/stdarg: Likewise.
10468 * modules/stdbool: Likewise.
10469 * modules/stddef: Likewise.
10470 * modules/stdint: Likewise.
10471 * modules/stdio: Likewise.
10472 * modules/stdlib: Likewise.
10473 * modules/string: Likewise.
10474 * modules/strings: Likewise.
10475 * modules/sys_file: Likewise.
10476 * modules/sys_ioctl: Likewise.
10477 * modules/sys_select: Likewise.
10478 * modules/sys_socket: Likewise.
10479 * modules/sys_stat: Likewise.
10480 * modules/sys_time: Likewise.
10481 * modules/sys_times: Likewise.
10482 * modules/sys_utsname: Likewise.
10483 * modules/sys_wait: Likewise.
10484 * modules/sysexits: Likewise.
10485 * modules/time: Likewise.
10486 * modules/unistd: Likewise.
10487 * modules/wchar: Likewise.
10488 * modules/wctype: Likewise.
10490 2009-08-22 Jim Meyering <meyering@redhat.com>
10492 announce-gen: detect write failure
10493 * build-aux/announce-gen: Add Coda at end.
10494 Remove equivalent-but-more-verbose block at top.
10496 2009-08-19 Akim Demaille <demaille@gostai.com>
10498 bootstrap: --help to stdout.
10499 * bootstrap (usage): Don't send --help to stderr.
10500 Use a here doc instead of a long string.
10502 2009-08-21 Eric Blake <ebb9@byu.net>
10504 test-popen-safer: split from test-popen
10505 * tests/test-popen.c (main): Move...
10506 * tests/test-popen.h: ...into new file.
10507 * tests/test-popen-safer2.c: New file.
10508 * modules/popen-tests (Files): Add test-popen.h.
10509 * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
10510 Suggested by Bruno Haible.
10512 test-fcntl-safer: split from test-open
10513 * tests/test-open.c (main): Move...
10514 * tests/test-open.h: ...into new file.
10515 * tests/test-fcntl-safer.c: New file.
10516 * modules/open-tests (Files): Add test-open.h.
10517 * modules/fcntl-safer-tests: New file.
10518 Suggested by Bruno Haible.
10520 test-fopen-safer: split from test-fopen
10521 * tests/test-fopen.c (main): Move...
10522 * tests/test-fopen.h: ...into new file.
10523 * tests/test-fopen-safer.c: New file.
10524 * modules/fopen-tests (Files): Add test-fopen.h.
10525 * modules/fopen-safer-tests: New file.
10526 Suggested by Bruno Haible.
10528 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
10530 popen-safer: test O_CLOEXEC at run-time.
10531 * lib/popen-safer.c: Test O_CLOEXEC at run-time.
10533 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
10535 fcntl: move more flags to the header
10536 * lib/cloexec.c: Do not define FD_CLOEXEC here.
10537 * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
10538 * lib/fcntl.in.h: Do both things here.
10540 2009-08-21 Jim Meyering <meyering@redhat.com>
10542 consistently remove $@-t before redirecting to it
10543 * modules/argz: Remove $@-t and $@ before redirecting to the former.
10544 * modules/alloca-opt: Likewise.
10545 * modules/byteswap: Likewise.
10546 * modules/fnmatch: Likewise.
10547 * modules/getopt-posix: Likewise.
10548 * modules/glob: Likewise.
10549 * modules/poll: Likewise.
10550 * modules/posix_spawnp-tests: Likewise.
10551 * modules/sys_socket: Likewise.
10552 * modules/sysexits: Likewise.
10554 2009-08-21 Eric Blake <ebb9@byu.net>
10556 popen: simplify access to original popen
10557 * lib/popen.c (rpl_popen): No need to worry about popen being a
10559 Reported by Bruno Haible.
10561 2009-08-20 Eric Blake <ebb9@byu.net>
10563 build: avoid some compiler warnings
10564 * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
10565 * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
10567 (new_exclude_segment, excluded_file_pattern_p)
10568 (excluded_file_name_p): Reduce scope.
10569 * lib/vasnprintf.c (decimal_point_char): Avoid warning on
10570 old-style declaration.
10572 2009-08-20 Simon Josefsson <simon@josefsson.org>
10574 * tests/test-exclude1.sh: Handle Windows EOL.
10575 * tests/test-exclude2.sh: Likewise.
10576 * tests/test-exclude3.sh: Likewise.
10577 * tests/test-exclude4.sh: Likewise.
10578 * tests/test-exclude5.sh: Likewise.
10579 * tests/test-exclude6.sh: Likewise.
10580 * tests/test-exclude7.sh: Likewise.
10582 2009-08-19 Akim Demaille <demaille@gostai.com>
10584 bootstrap: find sha1sum when named gsha1sum.
10585 * bootstrap (find_tool): New.
10589 2009-08-20 Jim Meyering <meyering@redhat.com>
10591 maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
10592 * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
10593 expression that converts "." in a file name to "\." in the resulting
10594 regexp. Start with a dummy statement, so that prior shell variable
10595 definitions are expanded portably. Reported by Simon Josefsson.
10597 2009-08-20 Paolo Bonzini <bonzini@gnu.org>
10599 Fix polling for writeability of a screen buffer.
10600 * lib/poll.c: Distinguish input and screen buffers for the
10601 Win32 implementation.
10602 * lib/select.c: Likewise.
10604 2009-08-19 Eric Blake <ebb9@byu.net>
10606 popen-safer: prevent popen from clobbering std descriptors
10607 * modules/popen-safer: New file.
10608 * lib/popen-safer.c: Likewise.
10609 * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
10610 * lib/stdio--.h (popen): Provide override.
10611 * lib/stdio-safer.h (popen_safer): Provide declaration.
10612 * tests/test-popen.c (includes): Partially test this.
10613 * modules/popen-safer-tests: New file, for more tests.
10614 * tests/test-popen-safer.c: Likewise.
10615 * MODULES.html.sh (file stream based Input/Output): Mention it.
10617 tests: test some of the *-safer modules
10618 * modules/fopen-safer (Depends-on): Add fopen.
10619 * modules/fcntl-safer (Depends-on): Add fcntl.
10620 * modules/stdlib-safer (Depends-on): Add stdlib.
10621 (configure.ac): Set indicator.
10622 * modules/unistd-safer (configure.ac): Likewise.
10623 * modules/tmpfile-safer (configure.ac): Likewise.
10624 (Depends-on): Add tmpfile.
10625 * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
10627 * tests/test-fopen.c (includes): Test safer versions when they are
10629 * tests/test-open.c (includes): Likewise.
10631 popen: fix cygwin 1.5 bug when stdin closed
10632 * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
10633 * modules/popen: New file.
10634 * modules/popen-tests: Likewise.
10635 * tests/test-popen.c: Likewise.
10636 * m4/popen.m4: Likewise.
10637 * lib/popen.c: Likewise.
10638 * lib/stdio.in.h (popen): New declaration.
10639 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
10640 * modules/stdio (Makefile.am): Likewise.
10641 * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
10643 2009-08-17 Joel E. Denny <jdenny@clemson.edu>
10645 maint.mk: give full control over update-copyright exclusions
10646 * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
10647 ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
10648 (update-copyright): Don't force inclusion of top-level
10649 ChangeLog. Don't force exclusion of all COPYING files, but make
10650 them the default exclusion instead.
10652 2009-08-16 Bruno Haible <bruno@clisp.org>
10654 Fix test failures on Solaris 10.
10655 * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
10656 tests when Solaris iconv() is used.
10657 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
10658 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
10659 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
10660 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
10661 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
10663 2009-08-16 Bruno Haible <bruno@clisp.org>
10665 Fix test failures on Solaris 10.
10666 * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
10667 'tr' program and pass it as first argument.
10668 * tests/test-pipe-filter-gi1.sh: Likewise.
10669 * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
10670 program as first argument.
10671 * tests/test-pipe-filter-gi1.c (main): Likewise.
10673 2009-08-16 Eric Blake <ebb9@byu.net>
10675 fpurge: fix previous commits
10676 * modules/fpurge (Makefile.am): Make replacement conditional,
10677 partially reverting 2007-04-29 change; missed in previous
10679 * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
10682 2009-08-16 Bruno Haible <bruno@clisp.org>
10684 Clarify fpurge's effect on the file position.
10685 * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
10686 * tests/test-fpurge.c (main): Make a second pass for checking the file
10689 2009-08-16 Bruno Haible <bruno@clisp.org>
10691 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
10692 declaration of fpurge is missing.
10693 * tests/test-fpurge.c (main): Check that the file has not more contents
10694 than expected. Close the file before removing it.
10696 2009-08-15 Eric Blake <ebb9@byu.net>
10698 fpurge: don't wrap working cygwin implementation
10699 * lib/fpurge.c (fpurge): Fix comment typo.
10700 * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
10701 1.7 to avoid replacement.
10702 * tests/test-fpurge.c (main): Enhance test.
10704 2009-08-15 Eric Blake <ebb9@byu.net>
10705 and Jim Meyering <meyering@redhat.com>
10707 test-update-copyright: skip if perl is insufficient
10708 * tests/test-update-copyright.sh: Failure to run maintainer tool
10709 should not cause testsuite failure on cygwin 1.5.
10711 2009-08-14 Eric Blake <ebb9@byu.net>
10713 doc: mention more functions added in cygwin 1.7.0
10714 * doc/posix-headers/limits.texi (limits.h): Update for recent
10716 * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
10717 * doc/posix-functions/wordexp.texi (wordexp): Likewise.
10718 * doc/posix-functions/wordfree.texi (wordfree): Likewise.
10719 * doc/posix-functions/setlocale.texi (setlocale): Likewise.
10720 * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
10722 2009-08-14 Eric Blake <ebb9@byu.net>
10724 maint.mk: simplify update-copyright rule
10725 * top/maint.mk (update-copyright-local): Delete, and document how
10726 to do it in cfg.mk instead.
10727 (update-copyright-exclude-regexp): Delete, and document how to do
10728 it in .x-update-copyright instead.
10729 (update-copyright): Simplify, thanks to VC_LIST_EXCEPT. Don't
10732 2009-08-14 Bruno Haible <bruno@clisp.org>
10734 * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
10736 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
10738 maint.mk: support update-copyright-env
10739 * top/maint.mk (update-copyright-env): Define place-holder.
10740 (update-copyright): Expand $(update-copyright-env) before
10741 invoking update-copyright.
10743 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
10745 update-copyright: implement forced reformatting
10746 * build-aux/update-copyright: Implement and document
10747 UPDATE_COPYRIGHT_FORCE.
10748 * tests/test-update-copyright.sh: Test it.
10750 2009-08-14 Eric Blake <ebb9@byu.net>
10751 and Bruno Haible <bruno@clisp.org>
10753 stddef: fix NetBSD 5.0 NULL bug, rather than working around it
10754 * tests/test-locale.c: Revert previous patch related to NULL.
10755 * tests/test-stdio.c: Likewise.
10756 * tests/test-stdlib.c: Likewise.
10757 * tests/test-string.c: Likewise.
10758 * tests/test-unistd.c: Likewise.
10759 * modules/time-tests (Depends-on): Add verify.
10760 * modules/wchar-tests (Depends-on): Likewise.
10761 * tests/test-time.c: Test for NULL compliance.
10762 * tests/test-wchar.c: Likewise.
10763 * modules/locale (Depends-on): Add stddef.
10764 * modules/stdio (Depends-on): Likewise.
10765 * modules/stdlib (Depends-on): Likewise.
10766 * modules/string (Depends-on): Likewise.
10767 * modules/time (Depends-on): Likewise.
10768 * modules/unistd (Depends-on): Likewise.
10769 * modules/wchar (Depends-on): Likewise.
10770 * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
10771 * lib/stdlib.in.h (includes): Likewise.
10772 * lib/string.in.h (includes): Likewise.
10773 * lib/time.in.h (includes): Likewise.
10774 * lib/unistd.in.h (includes): Likewise.
10775 * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
10777 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
10778 * m4/stddef_h.m4: New file.
10779 * modules/stddef: Likewise.
10780 * lib/stddef.in.h: Likewise.
10781 * modules/stddef-tests: Likewise.
10782 * tests/test-stddef.c: Likewise.
10783 * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
10784 * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
10785 * doc/posix-headers/locale.texi (locale.h): Likewise.
10786 * doc/posix-headers/stdio.texi (stdio.h): Likewise.
10787 * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10788 * doc/posix-headers/string.texi (string.h): Likewise.
10789 * doc/posix-headers/time.texi (time.h): Likewise.
10790 * doc/posix-headers/unistd.texi (unistd.h): Likewise.
10791 * doc/posix-headers/wchar.texi (wchar.h): Likewise.
10793 2009-08-14 Eric Blake <ebb9@byu.net>
10795 doc: improve git diff of texinfo files
10796 * .gitattributes: Add rule for *.texi files, with hint on how to
10798 Copied from m4, and based on a report by Bruno Haible.
10800 2009-08-14 Bruno Haible <bruno@clisp.org>
10802 Disable multithread support by default on Cygwin 1.5.x for real.
10803 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
10805 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
10807 update-copyright: much ado about intervals
10808 * build-aux/update-copyright: Implement and document
10809 UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
10810 of copyright year intervals.
10811 Also, document UPDATE_COPYRIGHT_YEAR.
10812 * tests/test-update-copyright.sh: Test it.
10814 update-copyright: convert 2-digit to 4-digit years
10815 * build-aux/update-copyright: Implement and document.
10816 * tests/test-update-copyright.sh: Update.
10818 2009-08-14 Jim Meyering <meyering@redhat.com>
10820 test-exclude: avoid coreutils "make check" failure
10821 * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
10822 just as in test-argmatch.c.
10824 2009-08-13 Eric Blake <ebb9@byu.net>
10826 test-dup2: fix bad assumption
10827 * tests/test-dup2.c (main): Tolerate leaked fds from environment.
10828 Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
10830 test-version-etc: fix CRLF portability issue
10831 * tests/test-version-etc.sh: Use tr, not sed, as not all sed
10833 * tests/test-argp-version-etc-1.sh: Likewise.
10835 getopt: update client modules
10836 * modules/argp (Depends-on): Use getopt-gnu.
10837 * modules/git-merge-changelog (Depends-on): Likewise.
10838 * modules/long-options (Depends-on): Likewise.
10839 * modules/xstrtol (Depends-on): Likewise.
10841 2009-08-13 Simon Josefsson <simon@josefsson.org>
10843 * tests/test-version-etc.sh: Don't fail on different
10844 project/version. Don't fail on CRLF differences. Rewrite to use
10845 multiple -e instead of multiple sed forks, suggested by Eric Blake
10847 * tests/test-argp-version-etc-1.sh: Likewise.
10849 2009-08-13 Simon Josefsson <simon@josefsson.org>
10851 * tests/test-version-etc.sh: Don't fail on different
10854 2009-08-12 Bruno Haible <bruno@clisp.org>
10856 Tests for modules 'getopt-posix', 'getopt-gnu'.
10857 * modules/getopt-posix-tests: New file.
10858 * tests/test-getopt.c: New file.
10859 * tests/test-getopt.h: New file.
10860 * tests/test-getopt_long.h: New file.
10862 New modules 'getopt-posix', 'getopt-gnu'.
10863 * modules/getopt-gnu: New file, renamed from modules/getopt.
10864 * modules/getopt-posix: New file.
10865 * modules/getopt: Turn into an obsolete alias for getopt-gnu.
10866 * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
10867 (gl_GETOPT): Remove macro.
10868 (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
10869 Disable the test against BSD systems that declare optreset. Test
10870 against mingw bug. Test against lack of support of optional arguments
10872 * doc/glibc-headers/getopt.texi: Update module name and list of
10873 relevant platforms.
10874 * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
10875 'getopt-gnu' and more portability problems.
10876 * NEWS: Mention the changes.
10878 2009-08-12 Bruno Haible <bruno@clisp.org>
10880 Ensure that optarg etc. get declared by <unistd.h>.
10881 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
10882 AC_USE_SYSTEM_EXTENSIONS.
10883 * modules/getopt (Depends-on): Add 'extensions'.
10885 2009-08-12 Bruno Haible <bruno@clisp.org>
10887 Avoid test link errors.
10888 * modules/pipe-filter-ii-tests (Makefile.am): Define
10889 test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
10890 * modules/pipe-filter-gi-tests (Makefile.am): Define
10891 test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
10892 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10894 2009-08-12 Bruno Haible <bruno@clisp.org>
10896 * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
10897 gl_GETOPT_SUBSTITUTE before.
10898 (gl_GETOPT): Use it.
10899 * m4/argp.m4 (gl_ARGP): Update.
10900 Reported by Sergey Poznyakoff.
10902 * m4/getopt.m4: Reorder macros.
10903 (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
10904 (gl_GETOPT_SUBSTITUTE): Remove macro.
10906 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
10908 Minor improvement in gitlog-to-changelog
10910 * build-aux/gitlog-to-changelog: New option `--format' makes
10911 output format string configurable.
10913 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
10915 Optimize exclude: use hash tables for non-wildcard patterns.
10917 * lib/exclude.c: Include hash.h and mbuiter.h
10918 (struct exclude_pattern, exclude_segment): New data types.
10919 (struct exclude): Rewrite.
10920 (fnmatch_pattern_has_wildcards): New function.
10921 (new_exclude_segment, free_exclude_segment): New functions.
10922 (excluded_file_pattern_p, excluded_file_name_p): New functions.
10923 (excluded_file_name, add_exclude): Rewrite using new struct exclude.
10924 * lib/exclude.h (is_fnmatch_pattern): New prototype.
10925 * modules/exclude: Depend on hash and mbuiter.
10927 * modules/exclude-tests: New file.
10928 * tests/test-exclude.c: New file.
10929 * tests/test-exclude1.sh: New file.
10930 * tests/test-exclude2.sh: New file.
10931 * tests/test-exclude3.sh: New file.
10932 * tests/test-exclude4.sh: New file.
10933 * tests/test-exclude5.sh: New file.
10934 * tests/test-exclude6.sh: New file.
10935 * tests/test-exclude7.sh: New file.
10937 2009-08-12 Bruno Haible <bruno@clisp.org>
10939 Ensure that getopt() gets declared by <unistd.h>.
10940 * lib/unistd.in.h: Conditionally include getopt.h.
10941 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
10942 Set GNULIB_UNISTD_H_GETOPT.
10943 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10944 GNULIB_UNISTD_H_GETOPT.
10945 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
10947 2009-08-12 Bruno Haible <bruno@clisp.org>
10950 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
10951 gl_replace_getopt instead of GETOPT_H.
10953 2009-08-12 Bruno Haible <bruno@clisp.org>
10955 * m4/getopt.m4: Add comments.
10957 2009-08-12 Bruno Haible <bruno@clisp.org>
10959 Disable multithread support by default on Cygwin 1.5.x.
10960 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
10961 set gl_use_threads=no if not specified otherwise.
10963 2009-08-11 Bruno Haible <bruno@clisp.org>
10965 Avoid compilation error on NetBSD 5.0.
10966 * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
10967 * tests/test-stdio.c: Likewise.
10968 * tests/test-stdlib.c: Likewise.
10969 * tests/test-string.c: Likewise.
10970 * tests/test-unistd.c: Likewise.
10971 Reported by Greg Troxel <gdt@ir.bbn.com>
10972 at <https://savannah.gnu.org/support/?106973>.
10974 2009-08-11 Bruno Haible <bruno@clisp.org>
10976 * modules/dup2-tests (Depends-on): Remove close.
10978 Undo 2009-07-19 commit.
10979 * modules/acl-tests (Depends-on): Remove close.
10980 * modules/binary-io-tests (Depends-on): Likewise.
10981 * modules/closein-tests (Depends-on): Likewise.
10982 * modules/flock-tests (Depends-on): Likewise.
10983 * modules/fsync-tests (Depends-on): Likewise.
10984 * modules/lseek-tests (Depends-on): Likewise.
10985 * modules/pipe-tests (Depends-on): Likewise.
10986 * modules/posix_spawn-tests (Depends-on): Likewise.
10987 * modules/posix_spawnp-tests (Depends-on): Likewise.
10988 * modules/stat-time-tests (Depends-on): Likewise.
10989 * modules/yesno-tests (Depends-on): Likewise.
10991 2009-08-10 Bruno Haible <bruno@clisp.org>
10993 * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
10995 2009-08-10 Bruno Haible <bruno@clisp.org>
10998 * lib/write.c (rpl_write): Cast result of _get_osfhandle.
11000 2009-08-10 Bruno Haible <bruno@clisp.org>
11002 Don't optimize AC_LIBOBJs, as they may appear in different contexts.
11003 * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
11004 not only the first time.
11005 * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
11006 * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
11007 * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
11008 is 1, not only the the first time.
11010 2009-08-10 Bruno Haible <bruno@clisp.org>
11012 Make it possible to use module 'gethostname' without module 'close'.
11013 * lib/unistd.in.h (close): Evoke a link error only if
11014 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11015 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11016 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11017 * modules/unistd (Makefile.am): Substitute
11018 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11019 * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
11020 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11021 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
11022 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11023 * modules/sys_ioctl (Makefile.am): Substitute
11024 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11025 * modules/socket (configure.ac): On native Windows, set
11026 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
11027 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11028 Reported by Sam Steingold <sds@gnu.org>.
11030 2009-08-10 Bruno Haible <bruno@clisp.org>
11032 * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
11033 * modules/ioctl (configure.ac): Likewise.
11035 2009-08-10 Bruno Haible <bruno@clisp.org>
11037 Avoid collision between gnulib wrapper and libintl wrapper.
11038 * lib/stdio-write.c (printf): Don't define if a printf wrapper is
11039 already defined in intl/printf.c.
11040 (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
11041 (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
11043 2009-08-09 Bruno Haible <bruno@clisp.org>
11045 Make <sys/select.h> really self-contained, also on Solaris 10.
11046 * lib/sys_select.in.h: Include <string.h>.
11047 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
11048 Solaris 10 problem.
11049 * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
11050 * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
11051 Reported by Jim Meyering.
11053 2009-08-09 Bruno Haible <bruno@clisp.org>
11055 Avoid warnings from 'aclocal' that are due to a use of macro name
11056 AM_XGETTEXT_OPTION that is not defined in automake.
11057 * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
11059 * modules/error (configure.ac): Likewise.
11060 * modules/propername (configure.ac): Likewise.
11061 * modules/vasprintf (configure.ac): Likewise.
11062 * modules/verror (configure.ac): Likewise.
11063 * modules/xprintf (configure.ac): Likewise.
11064 * modules/xvasprintf (configure.ac): Likewise.
11066 2009-08-08 Bruno Haible <bruno@clisp.org>
11068 Avoid compilation error in C++ mode.
11069 * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
11070 Reported by Sam Steingold <sds@gnu.org>.
11072 2009-08-08 Bruno Haible <bruno@clisp.org>
11074 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
11075 for the various Unix platforms.
11076 * doc/posix-headers/limits.texi: Update platforms list regarding
11078 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11080 2009-08-07 Jim Meyering <meyering@redhat.com>
11082 selinux-at: fix typo in a comment
11083 * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
11084 Spotted by Paolo Bonzini.
11086 selinux-at: remove redundant m4 code, add documentation
11087 * modules/selinux-at (configure.ac): Remove redundant code.
11088 LIB_SELINUX is already set via the dependent module, selinux-h.
11089 (Include): Add quotes around selinux-at.h.
11090 * lib/selinux-at.h: Add documentation.
11091 Reported by Bruno Haible in
11092 http://marc.info/?l=gnulib-bug&m=124958988300749
11094 2009-08-07 Bruno Haible <bruno@clisp.org>
11096 Avoid link error on MacOS X 10.3 and 10.4.
11097 * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
11098 on non-ELF systems.
11099 * lib/argp-pv.c (argp_program_version): Likewise.
11100 Reported by Simon Josefsson.
11102 2009-08-07 Simon Josefsson <simon@josefsson.org>
11104 * tests/test-version-etc.sh: Use $EXEEXT.
11106 2009-08-06 Joel E. Denny <jdenny@clemson.edu>
11108 update-copyright: update documentation to point to maint.mk
11109 * build-aux/update-copyright: Here.
11111 2009-08-06 Jim Meyering <meyering@redhat.com>
11113 maint.mk: support update-copyright-local
11114 * top/maint.mk (update-copyright-local): Define place-holder.
11115 (update-copyright): Depend on $(update-copyright-local).
11117 2009-08-06 Jim Meyering <meyering@redhat.com>
11119 selinux-at: new module
11120 Initially written for coreutils, this module will soon be
11121 used by findutils, too.
11122 * MODULES.html.sh [Misc]: Add selinux-at.
11123 * lib/selinux-at.h: New file, from coreutils.
11124 * lib/selinux-at.c: Likewise.
11125 * modules/selinux-at: Likewise.
11126 (License): Change from LGPL to GPL, since it depends
11127 on the GPL'd openat module.
11130 * README: Remove references to cogito.
11131 Remove cvs-repo-updating instructions from 2007.
11132 Don't imply that CVS is better if you have limited disk space.
11134 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11136 update-copyright: support C-style comments
11137 * build-aux/update-copyright: Implement and document.
11138 * tests/test-update-copyright.sh: Test.
11140 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11142 update-copyright: support omitted "(C)"
11143 * build-aux/update-copyright: Implement and document. Also,
11144 allow variable whitespace before "(C)".
11145 * tests/test-update-copyright.sh: Test.
11147 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11149 update-copyright: don't trip on non-FSF copyright statements
11150 * build-aux/update-copyright: Fix so that the first correctly
11151 formatted FSF copyright statement is recognized no matter what
11152 appears before it. Update documentation.
11153 * tests/test-update-copyright.sh: Test that.
11155 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11157 update-copyright: clean up code a little
11158 * build-aux/update-copyright: Append "_re" to the name of any
11159 variable holding a regular expression.
11160 Replace "old" and "new" with "stmt" in variable names.
11161 Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
11163 Format code more consistently.
11165 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11167 update-copyright-tests: improve portability
11168 * tests/test-update-copyright.sh: Use cmp if diff cannot handle
11169 -u or /dev/null. Suggested by Jim Meyering and Eric Blake.
11171 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
11173 update-copyright: support @copyright{} and ©
11174 * build-aux/update-copyright: Implement and document.
11175 * tests/test-update-copyright.sh: Test.
11177 2009-08-04 Jim Meyering <meyering@redhat.com>
11179 update-copyright-tests: correctly test EOL=\r\n handling
11180 * tests/test-update-copyright.sh: Put \r at the end of some lines
11181 for the dos-eol tests. Based on a patch by Joel E. Denny.
11183 maint.mk: make update-copyright exclusion list more configurable
11184 * top/maint.mk (update-copyright): Default to excluding COPYING,
11185 but allow an override, in case someone does want to update that file.
11187 maint.mk: don't update copyright date in COPYING
11188 * top/maint.mk (update-copyright): Exclude COPYING.
11190 maint.mk: add a copyright-updating rule
11191 * top/maint.mk (update-copyright): New rule.
11192 Derived from coreutils/Makefile.am.
11194 update-copyright: rename some variables
11195 * build-aux/update-copyright: Rename a few variables for clarity.
11196 Tweak syntax. List Joel E. Denny as coauthor.
11198 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
11200 update-copyright: fix bug for 2-digit last year and add tests
11201 * build-aux/update-copyright: Fix bug.
11202 Use UPDATE_COPYRIGHT_YEAR from environment as current year if
11204 * modules/update-copyright-tests: New
11205 * tests/test-update-copyright.sh: New.
11207 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
11209 update-copyright: handle leading tabs in line prefix
11210 * build-aux/update-copyright: Count leading tabs as 8 spaces
11211 when computing margin. This helps with the formatting of
11212 ChangeLogs, for example.
11213 Fix documentation a little.
11215 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
11217 update-copyright: support EOL=\r\n
11218 * build-aux/update-copyright: Implement that.
11220 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
11222 update-copyright: automatically format copyright statements
11223 * build-aux/update-copyright: Implement that.
11224 Also, be a little more predictable and safer by always failing
11225 when the full copyright format is not perfectly recognized as an
11226 unbroken whole. Discussed at
11227 <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
11228 Rewrite documentation.
11230 2009-08-03 Bruno Haible <bruno@clisp.org>
11232 * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
11234 2009-08-02 Bruno Haible <bruno@clisp.org>
11236 Tests for module 'uname'.
11237 * modules/uname-tests: New file.
11238 * tests/test-uname.c: New file.
11240 New module 'uname'.
11241 * lib/uname.c: New file.
11242 * m4/uname.m4: New file.
11243 * modules/uname: New file.
11244 * doc/posix-functions/uname.texi: Mention the new module.
11246 2009-08-02 Bruno Haible <bruno@clisp.org>
11248 Tests for module 'sys_utsname'.
11249 * modules/sys_utsname-tests: New file.
11250 * tests/test-sys_utsname.c: New file.
11252 New module 'sys_utsname'.
11253 * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
11254 * m4/sys_utsname_h.m4: New file.
11255 * modules/sys_utsname: New file.
11256 * doc/posix-headers/sys_utsname.texi: Mention the new module.
11258 2009-08-02 Bruno Haible <bruno@clisp.org>
11260 Implicitly initialize the sockets library.
11261 * lib/gethostname.c: Include sockets.h.
11262 (rpl_gethostname): Invoke gl_sockets_startup.
11263 * lib/socket.c: Include sockets.h.
11264 (rpl_socket): Invoke gl_sockets_startup.
11265 * modules/gethostname (Depends-on): Add sockets.
11266 * modules/socket (Depends-on): Likewise.
11267 * tests/test-poll.c: Don't include sockets.h.
11268 (main): Don't invoke gl_sockets_startup.
11269 * tests/test-select.c: Don't include sockets.h.
11270 (main): Don't invoke gl_sockets_startup.
11272 2009-08-02 Bruno Haible <bruno@clisp.org>
11274 Allow multiple calls to gl_sockets_startup.
11275 * lib/sockets.c (initialized_sockets_version): New variable.
11276 (gl_sockets_startup): Do nothing if already called for this or a higher
11278 (gl_sockets_cleanup): Reset initialized_sockets_version.
11280 2009-08-03 Simon Josefsson <simon@josefsson.org>
11282 * tests/test-argp-version-etc-1.sh: Use EXEEXT. Don't fail on
11283 different project/version.
11285 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
11286 Bruno Haible <bruno@clisp.org>
11288 Tests for module 'pipe-filter-gi'.
11289 * modules/pipe-filter-gi-tests: New file.
11290 * tests/test-pipe-filter-gi1.sh: New file.
11291 * tests/test-pipe-filter-gi1.c: New file.
11292 * tests/test-pipe-filter-gi2.sh: New file.
11293 * tests/test-pipe-filter-gi2-main.c: New file.
11294 * tests/test-pipe-filter-gi2-child.c: New file.
11296 New module 'pipe-filter-gi'.
11297 * lib/pipe-filter-gi.c: New file.
11298 * modules/pipe-filter-gi: New file.
11300 2009-08-02 Bruno Haible <bruno@clisp.org>
11301 Paolo Bonzini <bonzini@gnu.org>
11303 Tests for module 'pipe-filter-ii'.
11304 * modules/pipe-filter-ii-tests: New file.
11305 * tests/test-pipe-filter-ii1.sh: New file.
11306 * tests/test-pipe-filter-ii1.c: New file.
11307 * tests/test-pipe-filter-ii2.sh: New file.
11308 * tests/test-pipe-filter-ii2-main.c: New file.
11309 * tests/test-pipe-filter-ii2-child.c: New file.
11311 New module 'pipe-filter-ii'.
11312 * lib/pipe-filter.h: New file.
11313 * lib/pipe-filter-ii.c: New file.
11314 * lib/pipe-filter-aux.h: New file.
11315 * modules/pipe-filter-ii: New file.
11317 2009-08-02 Simon Josefsson <simon@josefsson.org>
11319 * lib/gc-libgcrypt.c: Change copyright to FSF.
11320 * lib/gc-gnulib.c: Likewise.
11322 2009-08-02 Martin Lambers <marlam@marlam.de> (tiny change)
11324 * lib/gethostname.c: Include limits.h.
11326 2009-08-02 Simon Josefsson <simon@josefsson.org>
11327 Bruno Haible <bruno@clisp.org>
11329 Ensure HOST_NAME_MAX as part of the gethostname module.
11330 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
11331 define also HOST_NAME_MAX.
11332 * tests/test-gethostname.c: Include <limits.h>.
11333 (main): Check also HOST_NAME_MAX.
11334 * doc/posix-headers/limits.texi: Document the mingw problem.
11336 2009-08-02 Bruno Haible <bruno@clisp.org>
11338 * lib/gethostname.c (gethostname): Fix handling of large len argument.
11341 2009-03-31 Simon Josefsson <simon@josefsson.org>
11343 * lib/gethostname.c: Add Windows wrapper.
11344 * m4/gethostname.m4: Look for gethostname in -lws2_32.
11345 * modules/gethostname: Depend on sys_socket & errno, for also
11346 added lib/w32sock.h. Add GETHOSTNAME_LIB link directive.
11347 * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
11349 2009-07-31 Jim Meyering <meyering@redhat.com>
11351 getloadavg: fix symbol name in comment
11352 * lib/getloadavg.c: Correct a typo I introduced when adding
11353 comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
11354 Matt Kraai spotted the problem.
11356 2009-07-29 Matt Kraai <mkraai@beckman.com>
11358 getloadavg: check whether n_name is a pointer, for QNX 6.4.1
11359 * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
11360 code also if ! defined N_NAME_POINTER.
11361 * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
11362 This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
11363 but the n_name member is a 12-byte array.
11365 2009-07-29 Joel E. Denny <jdenny@clemson.edu>
11367 update-copyright: generalize comment handling
11368 * build-aux/update-copyright: Handle copyright statements
11369 within more comment styles.
11371 Report any file with an external copyright holder or parse failure.
11373 2009-07-29 Jim Meyering <meyering@redhat.com>
11375 mktime: correct setting of REPLACE_MKTIME
11376 * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
11378 update-copyright: new module
11379 * modules/update-copyright: New file.
11380 * build-aux/update-copyright: New file.
11381 * MODULES.html.sh (maint+release support): Add update-copyright.
11383 2009-07-27 Bruno Haible <bruno@clisp.org>
11385 Fix compilation error when <ctime> is used and mktime is replaced.
11386 * lib/time.in.h (mktime): New declaration.
11387 * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
11388 REPLACE_MKTIME instead of defining mktime in config.h.
11389 * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
11390 * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
11391 Reported by Ross McFarland <rwmcfa1@neces.com>.
11393 2009-07-27 Bruno Haible <bruno@clisp.org>
11395 * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
11396 Reported by Matt Kraai <mkraai@beckman.com>.
11398 2009-07-25 Jim Meyering <meyering@redhat.com>
11400 maint.mk: avoid warnings about missing files
11401 * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
11402 diagnostic when .prev-version does not exist.
11403 (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
11404 (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
11405 nonexistent cfg.mk.
11406 Suggestions from Simon Josefsson.
11408 2009-07-25 Bruno Haible <bruno@clisp.org>
11410 * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
11411 defined as macros. Needed on QNX 6.4.1.
11412 Reported by Matt Kraai <mkraai@beckman.com>.
11414 2009-07-23 Jim Meyering <meyering@redhat.com>
11416 maint.mk: invoke "make dist" with a working value of XZ_OPT
11417 * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
11419 2009-07-22 Matt Kraai <mkraai@beckman.com> (tiny change)
11421 Make fseeko.c compile on QNX.
11422 * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
11424 2009-07-22 Peter Simons <simons@cryp.to>
11426 C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
11427 * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
11428 * lib/md4.h: Likewise.
11429 * lib/md5.h: Likewise.
11430 * lib/sha1.h: Likewise.
11431 * lib/sha256.h: Likewise.
11432 * lib/sha512.h: Likewise.
11434 tests-sha1: don't assign literal string to 'char *' variable
11435 * tests/test-sha1.c (main): Declare locals with "const" to match
11436 attributes of the right hand side.
11438 2009-07-21 Eric Blake <ebb9@byu.net>
11440 dup2: fix more mingw problems
11441 * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
11443 * doc/posix-functions/dup2.texi (dup2): Document the bug.
11444 * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
11445 * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
11446 (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
11447 care of mingw bugs.
11449 2009-07-21 Jim Meyering <meyering@redhat.com>
11451 vc-list-files: avoid failure when /bin/sh is dash
11452 * build-aux/vc-list-files: Avoid a shell portability problem with dash.
11453 On some Debian based systems, /bin/sh is a symlink to dash, and running
11454 this command would omit the "/" following each 'tests' prefix:
11455 dash -x build-aux/vc-list-files -C . tests
11456 That is because bash and dash work differently:
11457 $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
11461 2009-07-21 Eric Blake <ebb9@byu.net>
11463 dup2-tests: test previous patch
11464 * modules/dup2-tests: New file.
11465 * tests/test-dup2.c: Likewise.
11466 * tests/test-open.c (main): Avoid unspecified behavior.
11467 * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
11470 dup2: work around mingw and cygwin 1.5 bug
11471 * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
11472 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11473 * modules/unistd (Makefile.am): Substitute it.
11474 * lib/unistd.in.h (dup2): Declare the replacement.
11475 * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
11476 * doc/posix-functions/dup2.texi (dup2): Document the bugs.
11477 * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
11478 * modules/execute (Depends-on): Add dup2.
11479 * modules/fseterr (Depends-on): Likewise.
11480 * modules/pipe (Depends-on): Likewise.
11481 * modules/posix_spawn-internal (Depends-on): Likewise.
11483 2009-07-21 Bruno Haible <bruno@clisp.org>
11485 * modules/.gitattributes: New file.
11487 2009-07-20 Bruno Haible <bruno@clisp.org>
11489 * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
11492 2009-07-20 Eric Blake <ebb9@byu.net>
11494 test-pipe: make a bit more robust.
11495 * tests/test-pipe.c (myerr): Allow error messages regardless of
11496 what we do to stderr.
11497 (test_pipe): Rearrange to avoid deadlock.
11498 (child_main): Try a larger read, to ensure we avoided deadlock.
11499 * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
11500 * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
11503 2009-07-19 Jim Meyering <meyering@redhat.com>
11505 fts: avoid false-positive cycle-detection
11506 * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
11507 for each new command line argument.
11509 2009-07-19 Bruno Haible <bruno@clisp.org>
11511 Fix build error on mingw with the modules sys_select and unistd.
11512 * modules/acl-tests (Depends-on): Add close.
11513 * modules/binary-io-tests (Depends-on): Likewise.
11514 * modules/closein-tests (Depends-on): Likewise.
11515 * modules/flock-tests (Depends-on): Likewise.
11516 * modules/fsync-tests (Depends-on): Likewise.
11517 * modules/lseek-tests (Depends-on): Likewise.
11518 * modules/pipe-tests (Depends-on): Likewise.
11519 * modules/posix_spawn-tests (Depends-on): Likewise.
11520 * modules/posix_spawnp-tests (Depends-on): Likewise.
11521 * modules/stat-time-tests (Depends-on): Likewise.
11522 * modules/yesno-tests (Depends-on): Likewise.
11524 2009-07-19 Bruno Haible <bruno@clisp.org>
11526 Unify conditionals.
11527 * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
11528 macros, not at the compiler macros.
11529 * lib/pipe.c: Likewise.
11530 * lib/execute.c: Likewise.
11531 * lib/spawni.c: Likewise.
11533 2009-07-19 Bruno Haible <bruno@clisp.org>
11535 Fix handling of closed stdin/stdout/stderr on mingw.
11536 * lib/w32spawn.h: Include unistd.h.
11537 (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
11538 file descriptor with O_NOINHERIT flag.
11539 (fd_safer_noinherit): New function, based on fd-safer.c.
11540 (dup_safer_noinherit): New function, based on dup-safer.c.
11541 (undup_safer_noinherit): New function.
11542 * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
11543 dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
11544 * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
11545 instead of fd_safer.
11546 * tests/test-pipe.c: Include <windows.h>.
11547 (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
11549 * tests/test-pipe.c (child_main, parent_main): New functions, extracted
11551 (test_pipe): Pass an extra argument for disambiguation.
11552 (main): Invoke parent_main or child_main.
11554 * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
11557 2009-07-18 Eric Blake <ebb9@byu.net>
11559 test-pipe: fix mingw build
11560 * tests/test-pipe.c (main): Avoid fcntl on mingw.
11562 2009-07-18 Bruno Haible <bruno@clisp.org>
11564 * modules/pipe-tests (Makefile.am): Fix typo.
11566 2009-07-18 Eric Blake <ebb9@byu.net>
11568 error: fix mingw build
11569 * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
11570 Reported by Bruno Haible.
11572 error: avoid undefined use of stdout
11573 * lib/error.c (error, error_at_line): Check that fd 1 is open
11574 before flushing stdout. Avoids a crash on cygwin when libsigsegv
11575 is handling faults and the close_stdout module wants to report the
11576 detection of closed stdout as an error.
11578 2009-07-17 Eric Blake <ebb9@byu.net>
11580 pipe: be robust in face of closed fds
11581 * lib/pipe.c (create_pipe): Closed standard descriptors in parent
11582 should cause child to misbehave.
11583 * modules/pipe-tests: New module.
11584 * tests/test-pipe.c: New file.
11585 * tests/test-pipe.sh: New file.
11586 Reported by Akim Demaille.
11588 2009-07-14 Bruno Haible <bruno@clisp.org>
11590 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
11591 Reported by anonymous kc.
11593 2009-07-07 Jim Meyering <meyering@redhat.com>
11595 maint.mk: don't look for translatable strings in *.m4 or *.mk
11596 * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
11597 when searching for translatable strings.
11599 2009-07-05 Jim Meyering <meyering@redhat.com>
11601 remove superfluous parentheses in STREQ definition
11602 * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
11603 * lib/getugroups.c (STREQ): Likewise.
11604 * lib/fnmatch.c (STREQ): Likewise.
11605 Spotted by Bruno Haible.
11607 2009-07-04 Jim Meyering <meyering@redhat.com>
11609 argv-iter: new module
11610 * MODULES.html.sh: Add argv-iter.
11611 * lib/argv-iter.c, lib/argv-iter.h: New files.
11612 * modules/argv-iter: New file.
11613 * modules/argv-iter-tests: New file.
11614 * tests/test-argv-iter.c: Test it.
11616 2009-07-04 Bruno Haible <bruno@clisp.org>
11619 * lib/git-merge-changelog.c (compute_mapping): In the case where file1
11620 contains more exact copies of a given entry than file2, leave the extra
11621 copies unpaired rather than aborting.
11622 Reported by Eric Blake.
11624 2009-07-02 Bruno Haible <bruno@clisp.org>
11626 Speedup git-merge-changelog for git cherry-pick.
11627 * lib/git-merge-changelog.c (struct entries_mapping): New type.
11628 (entries_mapping_get): New function, extracted from compute_mapping.
11629 (entries_mapping_reverse_get): New function.
11630 (compute_mapping): Add a 'full' argument. Return the result in a
11631 'struct entries_mapping'.
11632 (main): Update. Access the mappings through entries_mapping_get.
11633 Reported by Eric Blake.
11635 2009-07-02 Bruno Haible <bruno@clisp.org>
11637 * lib/git-merge-changelog.c (compute_mapping): Fix determination of
11640 2009-07-02 Bruno Haible <bruno@clisp.org>
11642 Speed up approximate search for matching ChangeLog entries.
11643 * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
11644 argument. Call fstrcmp_bounded instead of fstrcmp.
11645 (compute_mapping, try_split_merged_entry, main): Update callers.
11647 2009-07-02 Bruno Haible <bruno@clisp.org>
11649 * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
11651 2009-06-30 Bruno Haible <bruno@clisp.org>
11653 Reduce the number of uc_is_cased calls.
11654 * lib/unicase.h (casing_suffix_context_t): Add
11655 'first_char_except_ignorable' field.
11656 * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
11657 (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
11658 * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
11659 Update initializer.
11660 * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
11661 case-ignorable characters.
11662 * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
11663 * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
11664 * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
11665 * modules/unicase/u16-suffix-context (Depends-on): Likewise.
11666 * modules/unicase/u32-suffix-context (Depends-on): Likewise.
11668 2009-06-30 Bruno Haible <bruno@clisp.org>
11670 Tests for module 'unicase/ignorable'.
11671 * modules/unicase/ignorable-tests: New file.
11672 * tests/unicase/test-ignorable.c: New file, generated by
11675 Tests for module 'unicase/cased'.
11676 * modules/unicase/cased-tests: New file.
11677 * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
11678 * tests/unicase/test-predicate-part1.h: New file, derived from
11679 tests/unictype/test-predicate-part1.h.
11680 * tests/unicase/test-predicate-part2.h: New file, same as
11681 tests/unictype/test-predicate-part2.h.
11683 Fix evaluation of "Before C" condition of FINAL_SIGMA.
11684 * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
11685 (output_casing_properties): New function.
11687 * lib/unicase/cased.h: New file, generated by gen-uni-tables.
11688 * lib/unicase/cased.c: Include unictype/bitmap.h.
11689 (uc_is_cased): Define through a bitmap lookup.
11690 * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
11691 * lib/unicase/ignorable.c: Include unictype/bitmap.h.
11692 (uc_is_case_ignorable): Define through a bitmap lookup.
11693 * modules/unicase/cased (Files): Add lib/unicase/cased.h,
11694 lib/unictype/bitmap.h.
11695 (Depends-on): Add inline. Clean up.
11696 * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
11697 lib/unictype/bitmap.h.
11698 (Depends-on): Add inline. Clean up.
11699 * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
11701 * tests/unicase/test-u16-tolower.c (main): Likewise.
11702 * tests/unicase/test-u32-tolower.c (main): Likewise.
11704 2009-06-30 Bruno Haible <bruno@clisp.org>
11706 * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
11707 * lib/unicase/u16-casemap.c: Likewise.
11708 * lib/unicase/u32-casemap.c: Likewise.
11710 2009-06-29 Bruno Haible <bruno@clisp.org>
11712 Define u32_casefold as a wrapper around u32_ct_casefold.
11713 * lib/unicase/u32-casefold.c: Update.
11714 * modules/unicase/u32-casefold (Depends-on): Add
11715 unicase/u32-ct-casefold, unicase/empty-prefix-context,
11716 unicase/empty-suffix-context. Clean up.
11718 Define u16_casefold as a wrapper around u16_ct_casefold.
11719 * lib/unicase/u16-casefold.c: Update.
11720 * modules/unicase/u16-casefold (Depends-on): Add
11721 unicase/u16-ct-casefold, unicase/empty-prefix-context,
11722 unicase/empty-suffix-context. Clean up.
11724 Define u8_casefold as a wrapper around u8_ct_casefold.
11725 * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
11726 * lib/unicase/u8-casefold.c: Update.
11727 * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
11728 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11730 Define u32_totitle as a wrapper around u32_ct_totitle.
11731 * lib/unicase/u32-totitle.c: Update.
11732 * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
11733 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11735 Define u16_totitle as a wrapper around u16_ct_totitle.
11736 * lib/unicase/u16-totitle.c: Update.
11737 * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
11738 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11740 Define u8_totitle as a wrapper around u8_ct_totitle.
11741 * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
11743 (FUNC): Delegate to U_CT_TOTITLE.
11744 * lib/unicase/u8-totitle.c: Update.
11745 * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
11746 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11748 * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
11750 * modules/unicase/u32-tolower (Depends-on): Add
11751 unicase/empty-prefix-context, unicase/empty-suffix-context.
11753 * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
11755 * modules/unicase/u16-tolower (Depends-on): Add
11756 unicase/empty-prefix-context, unicase/empty-suffix-context.
11758 * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
11759 * modules/unicase/u8-tolower (Depends-on): Add
11760 unicase/empty-prefix-context, unicase/empty-suffix-context.
11762 * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
11764 * modules/unicase/u32-toupper (Depends-on): Add
11765 unicase/empty-prefix-context, unicase/empty-suffix-context.
11767 * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
11769 * modules/unicase/u16-toupper (Depends-on): Add
11770 unicase/empty-prefix-context, unicase/empty-suffix-context.
11772 * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
11773 * modules/unicase/u8-toupper (Depends-on): Add
11774 unicase/empty-prefix-context, unicase/empty-suffix-context.
11776 New module 'unicase/u32-ct-casefold'.
11777 * lib/unicase/u32-ct-casefold.c: New file.
11778 * modules/unicase/u32-ct-casefold: New file.
11780 New module 'unicase/u16-ct-casefold'.
11781 * lib/unicase/u16-ct-casefold.c: New file.
11782 * modules/unicase/u16-ct-casefold: New file.
11784 New module 'unicase/u8-ct-casefold'.
11785 * lib/unicase/u8-ct-casefold.c: New file.
11786 * lib/unicase/u-ct-casefold.h: New file, derived from
11787 lib/unicase/u-casefold.h.
11788 * modules/unicase/u8-ct-casefold: New file.
11790 New module 'unicase/u32-ct-totitle'.
11791 * lib/unicase/u32-ct-totitle.c: New file.
11792 * modules/unicase/u32-ct-totitle: New file.
11794 New module 'unicase/u16-ct-totitle'.
11795 * lib/unicase/u16-ct-totitle.c: New file.
11796 * modules/unicase/u16-ct-totitle: New file.
11798 New module 'unicase/u8-ct-totitle'.
11799 * lib/unicase/u8-ct-totitle.c: New file.
11800 * lib/unicase/u-ct-totitle.h: New file, derived from
11801 lib/unicase/u-totitle.h.
11802 * modules/unicase/u8-ct-totitle: New file.
11804 New module 'unicase/u32-ct-tolower'.
11805 * lib/unicase/u32-ct-tolower.c: New file.
11806 * modules/unicase/u32-ct-tolower: New file.
11808 New module 'unicase/u16-ct-tolower'.
11809 * lib/unicase/u16-ct-tolower.c: New file.
11810 * modules/unicase/u16-ct-tolower: New file.
11812 New module 'unicase/u8-ct-tolower'.
11813 * lib/unicase/u8-ct-tolower.c: New file.
11814 * modules/unicase/u8-ct-tolower: New file.
11816 New module 'unicase/u32-ct-toupper'.
11817 * lib/unicase/u32-ct-toupper.c: New file.
11818 * modules/unicase/u32-ct-toupper: New file.
11820 New module 'unicase/u16-ct-toupper'.
11821 * lib/unicase/u16-ct-toupper.c: New file.
11822 * modules/unicase/u16-ct-toupper: New file.
11824 New module 'unicase/u8-ct-toupper'.
11825 * lib/unicase/u8-ct-toupper.c: New file.
11826 * modules/unicase/u8-ct-toupper: New file.
11828 Add context arguments to u*_casemap functions.
11829 * lib/unicase/unicasemap.h: Include unicase.h.
11830 (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
11831 suffix_context arguments.
11832 * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
11834 (FUNC): Add prefix_context and suffix_context arguments. Use
11835 uc_is_cased and uc_is_case_ignorable.
11836 * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
11837 * lib/unicase/u16-casemap.c: Likewise.
11838 * lib/unicase/u32-casemap.c: Likewise.
11839 * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
11840 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11841 * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
11842 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11843 * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
11844 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11846 New module 'unicase/u32-suffix-context'.
11847 * lib/unicase/u32-suffix-context.c: New file.
11848 * modules/unicase/u32-suffix-context: New file.
11850 New module 'unicase/u16-suffix-context'.
11851 * lib/unicase/u16-suffix-context.c: New file.
11852 * modules/unicase/u16-suffix-context: New file.
11854 New module 'unicase/u8-suffix-context'.
11855 * lib/unicase/u8-suffix-context.c: New file.
11856 * lib/unicase/u-suffix-context.h: New file.
11857 * modules/unicase/u8-suffix-context: New file.
11859 New module 'unicase/empty-suffix-context'.
11860 * lib/unicase/empty-suffix-context.c: New file.
11861 * modules/unicase/empty-suffix-context: New file.
11863 New module 'unicase/u32-prefix-context'.
11864 * lib/unicase/u32-prefix-context.c: New file.
11865 * modules/unicase/u32-prefix-context: New file.
11867 New module 'unicase/u16-prefix-context'.
11868 * lib/unicase/u16-prefix-context.c: New file.
11869 * modules/unicase/u16-prefix-context: New file.
11871 New module 'unicase/u8-prefix-context'.
11872 * lib/unicase/u8-prefix-context.c: New file.
11873 * lib/unicase/u-prefix-context.h: New file.
11874 * lib/unicase/context.h: New file.
11875 * modules/unicase/u8-prefix-context: New file.
11877 New module 'unicase/empty-prefix-context'.
11878 * lib/unicase/empty-prefix-context.c: New file.
11879 * modules/unicase/empty-prefix-context: New file.
11881 New module 'unicase/ignorable'.
11882 * lib/unicase/ignorable.c: New file.
11883 * modules/unicase/ignorable: New file.
11885 New module 'unicase/cased'.
11886 * lib/unicase/caseprop.h: New file.
11887 * lib/unicase/cased.c: New file.
11888 * modules/unicase/cased: New file.
11890 New functions for case mapping of substrings.
11891 * lib/unicase.h (casing_prefix_context_t): New type.
11892 (unicase_empty_prefix_context): New variable.
11893 (u8_casing_prefix_context, u16_casing_prefix_context,
11894 u32_casing_prefix_context, u8_casing_prefixes_context,
11895 u16_casing_prefixes_context, u32_casing_prefixes_context): New
11897 (casing_suffix_context_t): New type.
11898 (unicase_empty_suffix_context): New variable.
11899 (u8_casing_suffix_context, u16_casing_suffix_context,
11900 u32_casing_suffix_context, u8_casing_suffixes_context,
11901 u16_casing_suffixes_context, u32_casing_suffixes_context,
11902 u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
11903 u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
11904 u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
11907 2009-06-28 Jim Meyering <meyering@redhat.com>
11909 boostrap: indent only with spaces
11910 * build-aux/bootstrap: Indent only with spaces, never TABs.
11912 bootstrap: split long lines
11913 * build-aux/bootstrap: Keep line length < 80.
11915 bootstrap: sync from coreutils
11916 * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
11917 just as autoreconf does. Verify a list of prerequisite
11918 package-name,version-number pairs if defined in bootstrap.conf.
11919 Refer to README-prereq, if prerequisites are not satisfied.
11921 2009-06-27 Eric Blake <ebb9@byu.net>
11923 tests: add test for bogus NULL definition
11924 * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
11925 * tests/test-stdlib.c: Likewise.
11926 * tests/test-string.c: Likewise.
11927 * tests/test-locale.c: Likewise.
11928 * tests/test-unistd.c: Likewise.
11929 * modules/stdio-tests (Depends-on): Add verify.
11930 * modules/stdlib-tests (Depends-on): Likewise.
11931 * modules/string-tests (Depends-on): Likewise.
11932 * modules/locale-tests (Depends-on): Likewise.
11933 * modules/unistd-tests (Depends-on): Likewise.
11935 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11937 * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
11938 self-explaining comment.
11939 * m4/selinux-selinux-h: Update serial.
11940 (gl_LIBSELINUX): New macro, adding a warning for missing development
11941 packages to code extracted from...
11942 (gl_HEADERS_SELINUX_SELINUX_H): ... this one. Require gl_LIBSELINUX.
11943 Add warning for missing development packages here, too.
11945 2009-06-26 Paolo Bonzini <bonzini@gnu.org>
11947 * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
11949 2009-06-25 Eric Blake <ebb9@byu.net>
11951 version-etc: fix regression
11952 * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
11954 (version_etc): Use it, to catch bugs with trailing NULL.
11955 * lib/version-etc.c (version_etc_arn): Delete unused argument.
11956 (version_etc_va): Fix logic bug.
11957 * modules/version-etc-tests: Add test.
11958 * tests/test-version-etc.c: New file.
11959 * tests/test-version-etc.sh: Likewise.
11961 2009-06-25 Sam Steingold <sds@gnu.org>
11963 * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
11964 mbtowc declaration.
11966 2009-06-25 Eric Blake <ebb9@byu.net>
11968 fpurge: migrate into <stdio.h>
11969 * lib/fpurge.h: Delete...
11970 * lib/stdio.in.h (fpurge): ...and declare here, instead.
11971 * lib/fpurge.c (fpurge): Change declaring header.
11972 * modules/fpurge (Files): Drop deleted file.
11973 (Depends-on): Add stdio.
11974 (configure.ac): Set witness.
11975 * modules/stdio (Makefile.am): Support fpurge macros.
11976 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11977 * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
11978 * lib/fflush.c: Update client.
11979 * tests/test-fpurge.c: Likewise.
11980 * NEWS: Mention the change.
11982 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
11984 * lib/argp-version-etc.c (program_authors): Add const
11986 * lib/version-etc.c: Fix typos in the comments.
11987 * modules/argp-version-etc: Depends on version-etc.
11989 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
11991 argp-version-etc: new module.
11993 * lib/argp-version-etc.c: New file.
11994 * lib/argp-version-etc.h: New file.
11995 * modules/argp-version-etc: New file.
11996 * modules/argp-version-etc-tests: New file.
11997 * tests/test-argp-version-etc.c: New test.
11998 * tests/test-argp-version-etc-1.sh: New test.
12000 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
12002 Provide additional interfaces and documentation for version-etc
12005 * lib/version-etc.c (version_etc_arn, version_etc_ar): New
12007 * lib/version-etc.h (version_etc_arn, version_etc_ar): New
12010 2009-06-24 Bruno Haible <bruno@clisp.org>
12012 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
12013 HAVE_LIB${NAME} macro.
12014 Reported by Sam Steingold <sds@gnu.org>.
12016 2009-06-23 Simon Josefsson <simon@josefsson.org>
12018 * modules/hash-tests (test_hash_LDADD): Link to libintl when
12021 2009-06-21 Bruno Haible <bruno@clisp.org>
12023 Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
12025 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
12026 together with LIB${NAME}, LTLIB${NAME}.
12027 Reported by Sam Steingold <sds@gnu.org>.
12029 2009-06-20 Jim Meyering <meyering@redhat.com>
12031 tests: make sc_require_test_exit_idiom more generic
12032 * top/maint.mk (Exit_witness_file): New overridable variable.
12033 (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
12034 Relax test for /^Exit \$fail$$/ to just /^Exit ./.
12036 2009-06-19 Jim Meyering <meyering@redhat.com>
12038 hash: reverse order of src/dst parameters in an internal interface
12039 * lib/hash.c (transfer_entries): Reverse order of parameters to
12040 put DST before SRC. Adjust callers.
12042 tests: test-hash: avoid wholesale duplication
12043 * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
12044 Instead, use a loop and add a single conditional.
12046 tests: test-hash: allow seed selection via a command line argument
12047 * tests/test-hash.c (get_seed): New function.
12050 2009-06-19 Eric Blake <ebb9@byu.net>
12052 hash: avoid memory leak on allocation failure
12053 * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
12054 failure. Factor repeated algorithm...
12055 (transfer_entries): ...into new helper routine.
12056 (hash_delete): React to hash_rehash return value.
12058 hash: reduce memory pressure in hash_rehash no-op case
12059 * lib/hash.c (next_prime): Avoid overflow.
12060 (hash_initialize): Factor bucket size computation...
12061 (compute_bucket_size): ...into new helper function.
12062 (hash_rehash): Use new function and open coding to reduce memory
12063 pressure, and avoid a memory leak in USE_OBSTACK code.
12064 Reported by Jim Meyering.
12066 2009-06-18 Eric Blake <ebb9@byu.net>
12068 hash: make rotation more obvious
12069 * modules/hash (Depends-on): Add bitrotate and stdint.
12070 * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
12071 * lib/hash.c (headers): Drop limits.h. Add stdint.h.
12072 (SIZE_MAX): Rely on headers for definition.
12073 (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
12074 (raw_hasher): Use rotr_sz.
12075 Suggested by Jim Meyering.
12077 hash: fix memory leak in last patch
12078 * lib/hash.c (hash_rehash): Avoid memory leak.
12080 hash: avoid no-op rehashing
12081 * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
12083 hash: provide default callback functions
12084 * lib/hash.c (raw_hasher, raw_comparator): New functions.
12085 (hash_initialize): Use them as defaults.
12086 * tests/test-hash.c (main): Test this.
12088 hash: minor optimization
12089 * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
12091 (hash_initialize): Document this promise.
12092 (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
12093 * tests/test-hash.c (hash_compare_strings): Test this.
12095 2009-06-18 Bruno Haible <bruno@clisp.org>
12097 * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
12098 going to be replaced anyway.
12100 2009-06-18 Bruno Haible <bruno@clisp.org>
12102 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
12104 (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
12105 be replaced anyway.
12107 2009-06-18 Eric Blake <ebb9@byu.net>
12109 hash: check for resize before insertion
12110 * lib/hash.c (hash_insert): Check whether bucket usage exceeds
12111 threshold before insertion, so that a pathological hash_rehash
12112 that fills every bucket can still trigger another rehash.
12114 2009-06-18 Jim Meyering <meyering@redhat.com>
12116 hash-tests: add a loop around the small tests
12117 * tests/test-hash.c (main): Repeat small tests with selected
12118 small initial table sizes.
12120 2009-06-17 Eric Blake <ebb9@byu.net>
12122 hash: minor cleanups
12123 * lib/hash.h (hash_entry): Make opaque, by moving...
12124 * lib/hash.c (hash_entry): ...here.
12125 (hash_insert): Clarify restrictions on what can be inserted.
12126 (hash_get_next): Clarify when it is safe to remove an element
12128 (check_tuning): Skip verification when tuning is known safe.
12129 (hash_initialize): Clarify restrictions on tuning.
12131 2009-06-17 Jim Meyering <jim@meyering.net>
12132 and Eric Blake <ebb9@byu.net>
12134 hash-tests: new module
12135 * modules/hash-tests: New file.
12136 * tests/test-hash.c: New file.
12138 2009-06-17 Eric Blake <ebb9@byu.net>
12140 strstr-simple: document new module
12141 * MODULES.html.sh: Document new module.
12143 strstr, strcasestr: replace on platforms with broken memchr
12144 * modules/strstr: Split into...
12145 * modules/strstr-simple: ...new module that does not care about
12146 performance, but does care about glibc bug.
12147 * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
12148 (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
12149 if platform memchr is broken, per Debian bug 521737.
12150 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
12152 * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
12153 * doc/posix-functions/strstr.texi (strstr): Document the fix.
12154 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
12155 * modules/mountlist (Depends-on): Add strstr-simple.
12156 * modules/gen-uni-tables (Depends-on): Likewise.
12157 * modules/argz (Depends-on): Add strstr.
12159 2009-06-17 Bruno Haible <bruno@clisp.org>
12161 * modules/posix_spawn-internal (Depends-on): Add errno.
12163 2009-06-17 Bruno Haible <bruno@clisp.org>
12165 Define missing ESTALE on Interix 3.5.
12166 * lib/errno.in.h (ESTALE): Assign a value if missing.
12167 * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
12168 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
12170 * doc/posix-headers/errno.texi: Mention the Interix bug.
12171 Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
12173 2009-06-15 Eric Blake <ebb9@byu.net>
12175 memchr, memchr2: add valgrind exception
12176 * lib/memchr.valgrind: New file.
12177 * lib/memchr2.valgrind: New file.
12178 * modules/memchr (Files): Distribute valgrind file.
12179 * modules/memchr2 (Files): Likewise.
12181 docs: memchr is no longer obsolete
12182 * MODULES.html.sh: Move memchr from obsolete to string.h section.
12183 * lib/string.in.h (memchr): Simplify logic.
12185 2009-06-14 Jim Meyering <meyering@redhat.com>
12187 link-follow: fix the "checking..." message to not mention trailing slash
12188 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
12189 never considered trailing slashes.
12191 2009-06-14 Bruno Haible <bruno@clisp.org>
12193 * m4/memchr.m4: Mention also the bug on IA-64.
12194 * doc/posix-functions/memchr.texi: Likewise.
12196 2009-06-12 Eric Blake <ebb9@byu.net>
12198 memchr: detect broken x86_64 and alpha implementations
12199 * modules/memchr-tests (Depends-on): Move mmap detection...
12200 * modules/memchr (Depends-on): ...here.
12201 (configure.ac): Set indicator.
12202 * lib/string.in.h (memchr): Declare replacement.
12203 * modules/string (Makefile.am): Trigger replacement.
12204 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
12205 * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
12207 * doc/posix-functions/memchr.texi (memchr): Document the bug.
12208 * modules/getpagesize (License): Relax license.
12210 2009-06-11 Bruno Haible <bruno@clisp.org>
12212 * lib/idpriv.h: Add more references.
12214 2009-06-08 Bruno Haible <bruno@clisp.org>
12216 Tests for module 'idpriv-droptemp'.
12217 * modules/idpriv-droptemp-tests: New file.
12218 * tests/test-idpriv-droptemp.sh: New file.
12219 * tests/test-idpriv-droptemp.su.sh: New file.
12220 * tests/test-idpriv-droptemp.c: New file.
12222 New module 'idpriv-droptemp'.
12223 * lib/idpriv-droptemp.c: New file.
12224 * modules/idpriv-droptemp: New file.
12226 2009-06-08 Bruno Haible <bruno@clisp.org>
12228 Tests for module 'idpriv-drop'.
12229 * modules/idpriv-drop-tests: New file.
12230 * tests/test-idpriv-drop.sh: New file.
12231 * tests/test-idpriv-drop.su.sh: New file.
12232 * tests/test-idpriv-drop.c: New file.
12234 New module 'idpriv-drop'.
12235 * lib/idpriv.h: New file.
12236 * lib-idpriv-drop.c: New file.
12237 * m4/idpriv.m4: New file.
12238 * modules/idpriv-drop: New file.
12240 2009-06-08 Bruno Haible <bruno@clisp.org>
12242 * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
12243 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12244 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12245 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12246 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12247 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12248 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12250 2009-06-08 Eric Blake <ebb9@byu.net>
12252 test-strstr: use memory fence, when possible
12253 * tests/test-strstr.c (main): Use memory fence, in order to be
12254 more likely to trigger Debian bug 521737.
12255 * modules/strstr-tests (Files): Pull in additional files.
12257 memchr: no longer obsolete, for wider field testing
12258 * modules/memchr (Status, Notice): Delete, this module is no
12260 * modules/vasnprintf (Depends-on): Add memchr.
12262 2009-06-07 Jim Meyering <meyering@redhat.com>
12264 hash: declare some functions with the warn_unused_result attribute
12265 * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
12267 2009-06-07 Bruno Haible <bruno@clisp.org>
12269 * tests/test-alignof.c: Don't test int64_t if it does not exist.
12270 Reported by Eric Blake.
12272 2009-06-06 Eric Blake <ebb9@byu.net>
12274 test-alignof: fix typo with long double
12275 * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
12278 2009-06-06 Neil Jerram <neil@ossau.uklinux.net> (tiny change)
12280 Escape non-texinfo { and }s.
12281 * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
12284 2009-06-04 Jim Meyering <meyering@redhat.com>
12286 gitlog-to-changelog: don't infloop on an empty commit log
12287 * build-aux/gitlog-to-changelog: Warn about an empty log message.
12288 Reported by Boris Petersen <transacid@centerim.org>.
12290 2009-06-03 Mike Frysinger <vapier@gentoo.org>
12292 version-etc: extend for packagers
12293 Add three new configure options, intended for packagers:
12294 --with-packager="packager name"
12295 --with-packager-version="packager-specific version"
12296 --with-packager-bug-reports="packager bug reporting"
12297 An example with coreutils:
12299 --with-packager=Gentoo \
12300 --with-packager-bug-report=http://bugs.gentoo.org/ \
12301 --with-packager-version="patchset 1.6"
12302 $ ./src/ls --version | head -n2
12303 ls (GNU coreutils) 7.1-dirty
12304 Packaged by Gentoo (patchset 1.6)
12305 Note that the bug reporting info via --help doesn't show up because
12306 coreutils uses its own custom emit_bug_reporting_address() implementation
12307 in src/system.h. If it didn't, it'd look like:
12308 $ ./src/ls --help | tail -n4
12309 Report bugs to <bug-coreutils@gnu.org>.
12310 Report Gentoo bugs to <http://bugs.gentoo.org/>.
12311 GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
12312 General help using GNU software: <http://www.gnu.org/gethelp/>.
12313 * lib/version-etc.c: Print new information, if provided.
12314 * m4/version-etc.m4: New file.
12315 * modules/version-etc (Files): Add m4/version-etc.m4.
12316 (configure.ac): Add gl_VERSION_ETC.
12318 2009-05-31 Bruno Haible <bruno@clisp.org>
12320 * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
12322 * modules/alignof-tests (Dependencies): Add stdint.
12323 Reported by Eric Blake.
12325 2009-05-31 Bruno Haible <bruno@clisp.org>
12327 * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
12328 restriction due to compiler bugs.
12329 Reported by Eric Blake.
12331 2009-05-31 Simon Josefsson <simon@josefsson.org>
12332 Bruno Haible <bruno@clisp.org>
12334 Fix test-alignof failure.
12335 * lib/alignof.h (alignof_slot): New macro.
12336 (alignof_type): New macro, with the same semantics as the previous
12338 (alignof): Alias to alignof_slot.
12339 * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
12340 check that the results are usable as constant expressions.
12342 2009-05-31 Bruno Haible <bruno@clisp.org>
12344 * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
12345 * tests/test-memchr.c (main): Check that memchr does not read past the
12346 first occurrence of the byte.
12347 * tests/test-strstr.c (main): Update comment.
12348 Suggested by Eric Blake.
12350 2009-05-30 Bruno Haible <bruno@clisp.org>
12352 * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
12353 detail how to use dumpbin.
12354 Reported by David Byron <dbyron@dbyron.com>.
12356 2009-06-02 Simon Josefsson <simon@josefsson.org>
12358 * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
12360 2009-06-02 Simon Josefsson <simon@josefsson.org>
12362 * m4/manywarnings.m4: Add GCC 4.4 warnings.
12364 2009-05-28 Bruno Haible <bruno@clisp.org>
12366 * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
12369 2009-05-28 Simon Josefsson <simon@josefsson.org>
12371 * gnulib-tool (func_import): Transform license on build-aux/ files too.
12373 2009-05-27 Simon Josefsson <simon@josefsson.org>
12375 * gnulib-tool (sed_transform_main_lib_file)
12376 (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
12379 2009-05-26 Simon Josefsson <simon@josefsson.org>
12381 * tests/test-strstr.c: Add another self-test.
12382 * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
12383 strdup. Suggested by Eric Blake <ebb9@byu.net>.
12385 2009-05-23 Bruno Haible <bruno@clisp.org>
12387 * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
12390 2009-05-21 Bruno Haible <bruno@clisp.org>
12392 Simplify use of mode_t varargs.
12393 * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
12394 uses 'mode_t' or 'int'.
12395 * lib/openat.c (openat): Likewise.
12396 * lib/open-safer.c (open_safer): Likewise.
12397 * m4/mode_t.m4: New file.
12398 * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
12399 * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
12400 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
12401 * modules/open (Files): Add m4/mode_t.m4.
12402 * modules/openat (Files): Likewise.
12403 * modules/fcntl-safer (Files): Likewise.
12404 Suggested by Eric Blake.
12406 2009-05-21 Pádraig Brady <P@draigbrady.com>
12408 * doc/glibc-functions/fallocate.texi: New file.
12409 * doc/gnulib.texi: Include it.
12411 2009-05-21 Eric Blake <ebb9@byu.net>
12412 Bruno Haible <bruno@clisp.org>
12414 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
12416 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
12418 2009-05-21 Eric Blake <ebb9@byu.net>
12419 Bruno Haible <bruno@clisp.org>
12421 Second attempt to work around an AIX 5.3, 6.1 compiler bug with
12422 include_next. Fix of 2008-11-20 commit.
12423 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
12424 NEXT_AS_FIRST_DIRECTIVE_FOO_H.
12425 * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
12427 * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
12428 instead of NEXT_MATH_H.
12430 2009-05-21 Bruno Haible <bruno@clisp.org>
12432 Avoid redefinition warnings for SIZE_MAX.
12433 * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
12434 Reported by Simon Josefsson.
12436 2009-05-21 Bruno Haible <bruno@clisp.org>
12438 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
12441 2009-05-20 Bruno Haible <bruno@clisp.org>
12443 Make zeroptr.h work on mingw.
12444 * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
12446 * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
12447 * modules/memchr2-tests (configure.ac): Likewise.
12448 * modules/memcmp-tests (configure.ac): Likewise.
12449 * modules/memmem-tests (configure.ac): Likewise.
12450 * modules/memrchr-tests (configure.ac): Likewise.
12451 Reported by Simon Josefsson.
12453 2009-05-20 Simon Josefsson <simon@josefsson.org>
12455 * tests/test-glob.c: Include string.h for strcmp prototype.
12457 2009-05-20 Simon Josefsson <simon@josefsson.org>
12459 * modules/getdelim (Depends-on): Add explicit stdint, although it
12460 was implicitly already pulled in via realloc-posix.
12461 * lib/getdelim.c: Get SIZE_MAX from stdint.h.
12463 2009-05-20 Simon Josefsson <simon@josefsson.org>
12465 MinGW and IRIX does not have sa_family_t type. Reported by "Tom
12466 G. Christensen" <tgc@jupiterrise.com>.
12467 * m4/sys_socket_h.m4: Check for sa_family_t.
12468 * lib/sys_socket.in.h: Typedef sa_family_t when needed.
12469 * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
12470 * tests/test-sys_socket.c: Check that sa_family_t works.
12472 2009-05-18 Eric Blake <ebb9@byu.net>
12474 maint.mk: allow gnulib_dir in VPATH build
12475 * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
12477 2009-05-15 Jim Meyering <meyering@redhat.com>
12479 maint.mk: Give gnulib_dir a default definition.
12480 * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
12481 Thus, most packages no longer need to specify this variable in cfg.mk
12483 2009-05-14 Tom Prince <tom.prince@ualberta.net> (tiny change)
12485 rename.m4: fix typos that would make non-mingw cross-configure fail
12486 * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
12488 2009-05-13 Eric Blake <ebb9@byu.net>
12490 mmap-anon: avoid out-of-order autoconf expansion
12491 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
12492 SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
12493 * modules/memchr-tests (Depends-on): Add extensions.
12494 * modules/memchr2-tests (Depends-on): Add extensions.
12495 * modules/memcmp-tests (Depends-on): Add extensions.
12496 * modules/memmem-tests (Depends-on): Add extensions.
12497 * modules/memrchr-tests (Depends-on): Add extensions.
12499 2009-05-13 Bruno Haible <bruno@clisp.org>
12501 Make some tests ISO C 99 compliant.
12502 * tests/zerosize-ptr.h: New file.
12503 * tests/test-memchr.c: Include zerosize-ptr.h.
12504 (main): Use a zero-size object pointer instead of NULL.
12505 * tests/test-memchr2.c: Include zerosize-ptr.h.
12506 (main): Use a zero-size object pointer instead of NULL.
12507 * tests/test-memcmp.c: Include zerosize-ptr.h.
12508 (main): Use a zero-size object pointer instead of NULL.
12509 * tests/test-memmem.c: Include zerosize-ptr.h.
12510 (main): Use a zero-size object pointer instead of NULL.
12511 * tests/test-memrchr.c: Include zerosize-ptr.h.
12512 (main): Use a zero-size object pointer instead of NULL.
12513 * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
12515 (Depends-on): Add getpagesize.
12516 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12517 * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
12519 (Depends-on): Add getpagesize.
12520 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12521 * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
12523 (Depends-on): Add getpagesize.
12524 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12525 * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
12527 (Depends-on): Add getpagesize.
12528 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12529 * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
12531 (Depends-on): Add getpagesize.
12532 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12534 2009-05-12 Bruno Haible <bruno@clisp.org>
12536 Tests for module 'alignof'.
12537 * modules/alignof-tests: New file.
12538 * tests/test-alignof.c: New file.
12540 2009-05-12 Bruno Haible <bruno@clisp.org>
12543 * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
12544 vendor compilers that are always correct.
12546 2009-05-12 Bruno Haible <bruno@clisp.org>
12548 Make the MAP_ANONYMOUS detection work on HP-UX 11.
12549 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
12550 not whether its fully works.
12552 2009-05-12 Bruno Haible <bruno@clisp.org>
12554 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
12556 2009-05-12 Jim Meyering <meyering@redhat.com>
12558 * top/maint.mk: Adjust backslash alignment.
12560 2009-05-11 Simon Josefsson <simon@josefsson.org>
12562 * top/maint.mk: Make $(srcdir)/build-aux configurable.
12564 2009-05-11 Eric Blake <ebb9@byu.net>
12566 argp: avoid undefined behavior
12567 * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
12570 2009-05-08 Simon Josefsson <simon@josefsson.org>
12572 * tests/test-vc-list-files-git.sh: Do git config of user.email and
12573 user.name to prevent git commit from complaining.
12575 2009-05-10 Bruno Haible <bruno@clisp.org>
12577 * gnulib-tool (func_import, func_create_testdir, copy-file): Change
12578 sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
12579 it rewrites every file name only once.
12580 Reported by Simon Josefsson. Helped by Ralf Wildenhues.
12582 2009-05-08 Bruno Haible <bruno@clisp.org>
12584 * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
12587 2009-05-08 Simon Josefsson <simon@josefsson.org>
12589 * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
12590 sockaddr_storage test.
12592 2009-05-07 Simon Josefsson <simon@josefsson.org>
12594 * modules/sys_socket (Makefile.am): Substitute
12595 HAVE_STRUCT_SOCKADDR_STORAGE. Depend on alignof.
12596 * m4/sys_socket_h.m4: Check for sockaddr_storage.
12597 * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
12598 * tests/test-sys_socket.c: Check sockaddr_storage.
12600 2009-05-08 Bruno Haible <bruno@clisp.org>
12602 New module 'alignof'.
12603 * lib/alignof.h: New file.
12604 * modules/alignof: New file.
12606 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
12607 Bruno Haible <bruno@clisp.org>
12609 Fix test-file-has-acl on FreeBSD.
12610 * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
12611 mask is implicitly added.
12612 * tests/test-file-has-acl.c: Include <signal.h>.
12613 (main): Terminate the test after 5 seconds.
12614 * modules/acl-tests (configure.ac): Check for alarm function.
12616 2009-05-04 Bruno Haible <bruno@clisp.org>
12618 Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
12619 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
12620 * modules/errno (configure.ac): Drop AC_REQUIRE.
12621 * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
12622 * modules/multiarch (configure.ac): Drop AC_REQUIRE.
12624 2009-05-04 Simon Josefsson <simon@josefsson.org>
12626 * modules/glob-tests: New module.
12627 * tests/test-glob.c: Add.
12629 2009-05-04 Simon Josefsson <simon@josefsson.org>
12631 * modules/fnmatch-tests: New module.
12632 * tests/test-fnmatch.c: Add.
12634 2009-05-04 Eric Blake <ebb9@byu.net>
12636 maint: make the new no-submodule-changes rule VPATH-safe
12637 * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
12639 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
12640 Bruno Haible <bruno@clisp.org>
12642 acl: Fix infinite loop on FreeBSD.
12643 * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
12644 of return value from acl_get_entry.
12645 * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
12648 2009-05-03 Bruno Haible <bruno@clisp.org>
12650 * lib/acl-internal.h (acl_entries): Clarify return value.
12651 * lib/acl_entries.c (acl_entries): Likewise.
12653 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
12655 Bug fix in acl module.
12656 * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
12658 2009-05-03 Bruno Haible <bruno@clisp.org>
12660 Create gperf-generated file in the source dir, not in the build dir.
12661 * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
12662 iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
12663 * modules/unicase/locale-language (unicase/locale-languages.h):
12665 * modules/unicase/special-casing (unicase/special-casing-table.h):
12667 * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
12668 * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
12669 * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
12670 Reported by Ralf Wildenhues.
12672 2009-05-03 Bruno Haible <bruno@clisp.org>
12674 * modules/fnmatch (Description, configure.ac): Taken from
12676 * modules/fnmatch-posix: Turn into a symbolic reference to the
12677 'fnmatch' module, and deprecate.
12678 * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
12680 2009-05-03 Bruno Haible <bruno@clisp.org>
12682 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
12683 gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
12684 Reported by Ralf Wildenhues.
12686 2009-05-04 Simon Josefsson <simon@josefsson.org>
12688 * m4/fnmatch.m4: Fix fnmatch re-define.
12690 2009-04-27 David Bartley <dtbartle@csclub.uwaterloo.ca>
12692 priv-set: new module and tests; adapt write-any-file
12693 * lib/priv-set.c: New file.
12694 * lib/priv-set.h: New file.
12695 * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
12696 * lib/write-any-file.c: Simplify by using priv-set module.
12697 * m4/priv-set.m4: New file.
12698 * modules/priv-set: New file.
12699 * modules/unlinkdir: Add dependency on priv-set module.
12700 * modules/write-any-file: Likewise.
12702 Tests for module 'priv-set'.
12703 * modules/priv-set-tests: New file.
12704 * tests/test-priv-set.c: New file.
12706 2009-05-03 Jim Meyering <meyering@redhat.com>
12707 Bruno Haible <bruno@clisp.org>
12709 * lib/propername.c (proper_name_utf8): Ignore no-op translations;
12710 use the converted UTF-8 variant of the name instead.
12712 2009-05-03 Jim Meyering <meyering@redhat.com>
12714 tests: tighten some getdate tests
12715 * tests/test-getdate.c (main): Tighten tests: require equality,
12716 not just greater than. Set TZ envvar to UTC0.
12718 2009-05-03 Giuseppe Scrivano <gscrivano@gnu.org>
12720 getdate: correctly interpret "next monday" when run on a Monday
12721 * lib/getdate.y (get_date): Correct the calculation of tm_mday so
12722 that e.g., "next tues" (when run on a tuesday) results in a date
12723 that is one week in the future, and not today's date.
12724 I.e., add a week when the wday is the same as the current one.
12725 Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
12726 and earlier by Martin Bernreuther and Jan Minář.
12727 * tests/test-getdate.c (main): Check that "next DAY" is always in
12728 the future and that "last DAY" is always in the past.
12730 2009-05-02 Jim Meyering <meyering@redhat.com>
12732 build: ensure that a release build fails when a submodule is unclean
12733 * top/maint.mk (no-submodule-changes): New rule.
12734 (alpha beta major): Depend on it.
12736 2009-05-02 Bruno Haible <bruno@clisp.org>
12738 Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
12739 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
12740 shell variable gl_fnmatch_required to detect which variant is
12742 (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
12743 gl_FUNC_FNMATCH_POSIX.
12744 * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
12745 exclude fnmatch-posix.
12747 2009-05-02 Bruno Haible <bruno@clisp.org>
12749 Relicense mbsrtowcs and strnlen1 under LGPLv2+.
12750 * modules/mbsrtowcs (License): Change to LGPLv2+.
12751 * modules/strnlen1 (License): Likewise.
12752 Reported by Simon Josefsson.
12754 2009-05-02 Bruno Haible <bruno@clisp.org>
12756 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
12758 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
12759 gnulib-tool was called with option --source-base=lib.
12761 2009-05-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12763 Use automake *-local hooks without commands, for extensibility.
12764 * modules/localcharset (Makefile.am): Rename install-exec-local
12765 rule to install-exec-localcharset, and make it a prerequisite of
12766 install-exec-local. Likewise, rename the uninstall-local rule to
12767 uninstall-localcharset, and make it a prerequisite of the former.
12769 2009-05-01 Bruno Haible <bruno@clisp.org>
12771 * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
12772 * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
12773 set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
12774 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
12775 * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
12776 * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
12777 m4/locale-zh.m4, m4/codeset.m4.
12779 * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
12780 set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
12781 * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
12784 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
12785 REPLACE_WCRTOMB if mbstate_t must be replaced.
12786 * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
12787 Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
12789 2009-05-01 Bruno Haible <bruno@clisp.org>
12791 Avoid compiler warnings when redefining macros defined by <libintl.h>.
12792 * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
12793 dngettext, dcngettext, textdomain, bindtextdomain,
12794 bind_textdomain_codeset): Undefine before redefining.
12796 2009-04-30 Bruno Haible <bruno@clisp.org>
12798 Fix bug introduced on 2009-04-25.
12799 * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
12800 gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
12801 * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
12803 * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
12805 * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
12807 Reported by Elbert_Pol <elbert.pol@gmail.com>.
12809 2009-04-28 Bruno Haible <bruno@clisp.org>
12812 * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
12813 * lib/uninorm.h (u*_normxfrm): Fix description of return value.
12814 * lib/unicase.h (u*_casexfrm): Likewise.
12815 Reported by Paolo Bonzini.
12817 2009-04-28 Bruno Haible <bruno@clisp.org>
12819 Fix a compilation error.
12820 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
12821 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
12822 Reported by Jim Meyering.
12824 2009-04-27 Bruno Haible <bruno@clisp.org>
12826 New module 'libunistring'.
12827 * modules/libunistring: New file.
12828 * m4/libunistring.m4: New file.
12829 * MODULES.html.sh (Unicode string functions): Add it.
12831 2009-04-27 Eric Blake <ebb9@byu.net>
12833 maint.mk: allow package-specific header to provide <config.h>
12834 * top/maint.mk (sc_require_config_h): New variable.
12835 (sc_require_config_h, sc_require_config_h_first): Use it.
12837 2009-04-27 Simon Josefsson <simon@josefsson.org>
12839 * top/maint.mk (sc_avoid_if_before_free): Except
12840 useless-if-before-free script.
12842 2009-04-27 Eric Blake <ebb9@byu.net>
12844 maintainer-makefile: depend on all required helper scripts
12845 * modules/maintainer-makefile (Depends-on): Add vc-list-files and
12846 useless-if-before-free.
12847 * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
12848 version, rather than assuming gnulib checkout is available.
12849 Reported by Simen Josefsson.
12851 2009-04-26 Bruno Haible <bruno@clisp.org>
12853 Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
12854 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
12857 2009-04-26 Bruno Haible <bruno@clisp.org>
12859 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
12860 * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
12861 AC_LIB_HAVE_LINKFLAGS.
12863 2009-04-26 Bruno Haible <bruno@clisp.org>
12865 Simplify calling convention of u*_conv_from_encoding.
12866 * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
12867 u32_conv_from_encoding): Expect a resultbuf argument and return the
12868 result directly as a pointer.
12869 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
12870 * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
12871 * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
12872 * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
12873 * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
12874 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
12876 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
12877 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
12878 * lib/vasnprintf.c (VASNPRINTF): Update.
12879 * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
12880 * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
12881 * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
12882 * NEWS: Mention the change.
12884 2009-04-26 Bruno Haible <bruno@clisp.org>
12886 Simplify calling convention of u*_conv_to_encoding.
12887 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
12888 u32_conv_to_encoding): Expect a resultbuf argument and return the
12889 result directly as a pointer.
12890 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
12891 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
12892 freeing scaled_offsets if mem_iconveha failed.
12893 * lib/unicase/u-casexfrm.h (FUNC): Update.
12894 * lib/uninorm/u-normxfrm.h (FUNC): Update.
12895 * lib/vasnprintf.c (VASNPRINTF): Update.
12896 * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
12897 * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
12898 * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
12899 * NEWS: Mention the change.
12901 2009-04-26 Bruno Haible <bruno@clisp.org>
12903 Avoid test failures on AIX and OSF/1.
12904 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
12906 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
12907 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
12909 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
12910 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
12911 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
12912 * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
12913 * doc/posix-functions/malloc.texi: Document the portability problem
12914 related to malloc(0).
12916 2009-04-26 Bruno Haible <bruno@clisp.org>
12918 * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
12919 * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
12920 * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
12922 2009-04-25 Bruno Haible <bruno@clisp.org>
12924 Avoid link error when creating a namespace clean library.
12925 * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
12926 as macro with arguments if already defined as an alias.
12927 * lib/signbitf.c (gl_signbitf): Don't undefine.
12928 * lib/signbitd.c (gl_signbitd): Don't undefine.
12929 * lib/signbitl.c (gl_signbitl): Don't undefine.
12931 2009-04-25 Jim Meyering <meyering@redhat.com>
12933 vc-list-files: fix another quoting bug
12934 * build-aux/vc-list-files: Avoid sed backslash expansion
12935 of pathological directory names.
12937 2009-04-25 Eric Blake <ebb9@byu.net>
12939 vc-list-files: fix shell quoting error
12940 * build-aux/vc-list-files: Protect against $ in $dir. Normalize
12943 2009-04-25 Jim Meyering <meyering@redhat.com>
12945 vc-list-files: restore lost functionality with subdir argument
12946 * build-aux/vc-list-files: When given a non-"." sub-directory
12947 argument, substitute the $dir/ prefix back onto each resulting name.
12948 Otherwise, coreutils' root_tests check would fail.
12950 2009-04-24 Eric Blake <ebb9@byu.net>
12952 vc-list-files: ignore git symlinks
12953 * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
12954 than ls-files, to ignore git symlinks.
12956 maint.mk: import improvements from m4
12957 * top/maint.mk (VC-tag): Use signing key from cfg.mk.
12958 (move_if_change): Delete unused macro.
12959 (news-date-check, vc-diff-check): Support VPATH builds.
12960 (announcement): Likewise. Split --bootstrap-tools list...
12961 (boostrap-tools): ...into separate list, which can be overridden
12963 (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
12964 requiring dependency on useless-if-before-free module.
12965 (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
12966 Support VPATH builds.
12968 2009-04-24 Jim Meyering <meyering@redhat.com>
12970 maint.mk: remove coreutils-specific rules and variables
12971 * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
12972 (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
12973 (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
12975 maint.mk: remove obsolete rule
12976 * top/maint.mk (rel-check): Remove rule.
12977 (WGET, WGETFLAGS): Remove now-unused variables.
12979 2009-04-24 Simon Josefsson <simon@josefsson.org>
12981 * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
12984 * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
12985 '$(PATH_SEPARATOR)' instead of ':'.
12987 2009-04-24 Simon Josefsson <simon@josefsson.org>
12989 * lib/getopt1.c (main): Use 'const' for static array.
12991 2009-04-24 Simon Josefsson <simon@josefsson.org>
12993 * top/maint.mk: Sync with coreutils.
12994 * NEWS: Explain incompatibilities.
12996 2009-04-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12997 Bruno Haible <bruno@clisp.org>
12999 Fix cross-compilation results.
13000 * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
13001 statement, as third argument of AC_TRY_RUN.
13002 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13003 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
13005 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13006 * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13008 * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13009 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
13010 * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
13012 2009-04-20 Bruno Haible <bruno@clisp.org>
13014 Avoid test failure on mingw.
13015 * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
13017 2009-04-20 Bruno Haible <bruno@clisp.org>
13019 Avoid compilation error on mingw.
13020 * modules/localename-tests (Depends-on): Add locale.
13022 2009-04-19 Bruno Haible <bruno@clisp.org>
13024 Support for building a shared library on Windows platforms.
13025 * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
13026 (main): Test the presence of UNINORM_NFC here.
13027 * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
13028 (main): Test the presence of UNINORM_NFD here.
13029 * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
13030 (main): Test the presence of UNINORM_NFKC here.
13031 * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
13032 (main): Test the presence of UNINORM_NFKD here.
13034 2009-04-19 Bruno Haible <bruno@clisp.org>
13036 Avoid a compiler warning.
13037 * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
13038 Change type of variable 'sequence'.
13040 2009-04-19 Bruno Haible <bruno@clisp.org>
13042 * modules/configmake (Makefile.am): When the contents of configmake.h
13043 does not change, arrange to preserve its modification time.
13045 2009-04-17 Simon Josefsson <simon@josefsson.org>
13047 * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
13050 2009-04-16 Jim Meyering <meyering@redhat.com>
13052 useless-if-before-free: improve conversion code
13053 * build-aux/useless-if-before-free: Adjust code-in-comment to match
13054 "...!= 0" as well as "...!= NULL". emacs has one of the former.
13056 2009-04-14 Bruno Haible <bruno@clisp.org>
13058 * modules/fcntl (Depends-on): Add extensions.
13059 * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
13061 2009-04-12 Ben Pfaff <blp@gnu.org>
13063 Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
13064 * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
13066 2009-03-20 Ben Pfaff <blp@gnu.org>
13068 Make rename replace existing destinations on Windows.
13069 * m4/rename.m4: Add test for Mingw.
13070 * lib/rename.c: Add rename replacement that uses MoveFileEx with
13071 MOVEFILE_REPLACE_EXISTING to replace existing destination files.
13072 * doc/posix-functions/rename.texi: Document.
13074 2009-04-10 Bruno Haible <bruno@clisp.org>
13076 New include file "iconveh.h".
13077 * lib/iconveh.h: New file, extracted from lib/striconveh.h.
13078 * lib/striconveh.h: Include it.
13079 (enum iconv_ilseq_handler): Remove definition.
13080 * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
13082 * lib/striconveha.c: Include striconveh.h.
13083 * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
13084 * modules/striconveh (Files): Add lib/iconveh.h.
13085 * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
13088 2009-04-10 Bruno Haible <bruno@clisp.org>
13090 * lib/uniconv.h: Update comment.
13092 2009-04-10 Bruno Haible <bruno@clisp.org>
13094 * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
13096 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
13097 * lib/unistr/u16-mbtouc-aux.c: Likewise.
13098 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
13099 * lib/unistr/u8-mbtouc.c: Inside libunistring, include
13100 "unistring-notinline.h", so that the function gets defined always.
13101 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
13102 * lib/unistr/u8-uctomb.c: Likewise.
13103 * lib/unistr/u16-mbtouc.c: Likewise.
13104 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
13105 * lib/unistr/u16-uctomb.c: Likewise.
13106 * lib/unistr/u32-mbtouc.c: Likewise.
13107 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
13108 * lib/unistr/u32-uctomb.c: Likewise.
13110 2009-04-10 Bruno Haible <bruno@clisp.org>
13112 Mark 'utime' obsolete.
13113 * modules/utime (Status, Notice): New sections.
13114 Suggested by Jim Meyering.
13116 Fix cross-compile guess for utime test.
13117 * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
13119 * doc/posix-functions/utime.texi: Give more precisions.
13120 Reported by Jan <ipif@ymail.com>.
13122 2009-04-09 Kamil Dudka <kdudka@redhat.com>
13124 filevercmp: correct today's change
13125 * lib/filevercmp.c: Also handle coreutils' test inputs.
13126 * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
13128 Fix regression in 'filevercmp' module. Thanks Sven Joachim
13130 * lib/filevercmp.c: Special handle for "", "." and "..".
13131 * tests/test-filevercmp.c: Enlarge the set suite.
13133 2009-04-07 Jim Meyering <meyering@redhat.com>
13135 useless-if-before-free: show how to remove braced useless free, too
13136 * build-aux/useless-if-before-free: still only in a comment, though.
13138 2009-04-07 Reuben Thomas <rrt@sc3d.org>
13140 maint.mk: import changes to syntax-check macros from coreutils
13141 * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
13142 Use them in the relevant macros.
13144 2009-04-06 Bruno Haible <bruno@clisp.org>
13146 Fix unportable use of bit-fields.
13147 * lib/unicase/special-casing.h (struct special_casing_rule): Change the
13148 bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
13149 AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
13151 2009-04-06 Bruno Haible <bruno@clisp.org>
13153 Avoid test failures on AIX and OSF/1.
13154 * tests/unicase/test-u8-casefold.c (check): Account for the possibility
13155 that malloc(0) = NULL.
13156 * tests/unicase/test-u8-tolower.c (check): Likewise.
13157 * tests/unicase/test-u8-totitle.c (check): Likewise.
13158 * tests/unicase/test-u8-toupper.c (check): Likewise.
13159 * tests/unicase/test-u16-casefold.c (check): Likewise.
13160 * tests/unicase/test-u16-tolower.c (check): Likewise.
13161 * tests/unicase/test-u16-totitle.c (check): Likewise.
13162 * tests/unicase/test-u16-toupper.c (check): Likewise.
13163 * tests/unicase/test-u32-casefold.c (check): Likewise.
13164 * tests/unicase/test-u32-tolower.c (check): Likewise.
13165 * tests/unicase/test-u32-totitle.c (check): Likewise.
13166 * tests/unicase/test-u32-toupper.c (check): Likewise.
13167 * tests/uninorm/test-u8-nfc.c (check): Likewise.
13168 * tests/uninorm/test-u8-nfd.c (check): Likewise.
13169 * tests/uninorm/test-u8-nfkc.c (check): Likewise.
13170 * tests/uninorm/test-u8-nfkd.c (check): Likewise.
13171 * tests/uninorm/test-u16-nfc.c (check): Likewise.
13172 * tests/uninorm/test-u16-nfd.c (check): Likewise.
13173 * tests/uninorm/test-u16-nfkc.c (check): Likewise.
13174 * tests/uninorm/test-u16-nfkd.c (check): Likewise.
13175 * tests/uninorm/test-u32-nfc.c (check): Likewise.
13176 * tests/uninorm/test-u32-nfd.c (check): Likewise.
13177 * tests/uninorm/test-u32-nfkc.c (check): Likewise.
13178 * tests/uninorm/test-u32-nfkd.c (check): Likewise.
13180 2009-04-05 Bruno Haible <bruno@clisp.org>
13182 Work around an autoconf limitation.
13183 * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
13184 comment line if it would be longer than 3 KB.
13186 2009-04-05 Bruno Haible <bruno@clisp.org>
13188 Avoid test failure with libiconv-1.13.
13189 * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
13190 of the expected test results.
13192 2009-04-05 Bruno Haible <bruno@clisp.org>
13194 * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
13195 noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
13196 that it should be installed.
13198 2009-04-05 Bruno Haible <bruno@clisp.org>
13200 * gnulib-tool: New option --copy-file.
13201 (func_usage): Document it.
13202 (func_dest_tmpfilename): Moved out of func_import.
13203 (func_add_file, func_update_file): New functions, extracted from
13205 (func_import): Update.
13207 2009-04-05 Karl Berry <karl@gnu.org>
13209 * README: prominently mention gnulib-tool.
13210 Rearrange sections so getting the code is near the top.
13212 2009-04-05 Bruno Haible <bruno@clisp.org>
13214 * lib/unicase.h: Mention u*_cmp2.
13215 * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13216 * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
13217 * lib/unicase/ulc-casecmp.c: Likewise.
13218 * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
13219 * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
13220 * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
13222 * modules/unicase/ulc-casecmp (Depends-on): Likewise.
13223 * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
13225 * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
13228 * lib/uninorm.h: Mention u*_cmp2.
13229 * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13230 * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
13231 * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
13232 * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
13233 * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
13235 * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
13237 * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
13240 New module 'unistr/u32-cmp2'.
13241 * lib/unistr/u32-cmp2.c: New file.
13242 * modules/unistr/u32-cmp2: New file.
13244 New module 'unistr/u16-cmp2'.
13245 * lib/unistr/u16-cmp2.c: New file.
13246 * modules/unistr/u16-cmp2: New file.
13248 New module 'unistr/u8-cmp2'.
13249 * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
13250 * lib/unistr/u8-cmp2.c: New file.
13251 * lib/unistr/u-cmp2.h: New file.
13252 * modules/unistr/u8-cmp2: New file.
13254 2009-04-05 Bruno Haible <bruno@clisp.org>
13256 * lib/unictype.h (uc_property_is_valid): New macro.
13257 * tests/unictype/test-pr_byname.c (main): Use it.
13259 * lib/unistr.h: Doc fixes.
13260 * lib/uniconv.h: Doc fixes.
13261 * lib/unictype.h: Doc fixes.
13263 2009-04-03 Paul Eggert <eggert@cs.ucla.edu>
13265 Port coreutils 7.2 to Solaris 8.
13267 * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
13268 * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
13269 for Solaris 8. This is a bit of a hack, as it means it's the
13270 caller's responsibility to add -lnsl if needed, but most likely it
13271 won't be needed since only getaddrinfo uses this and getaddrinfo
13272 isn't needed on Solaris 8.
13274 * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
13275 problem to Solaris 8 encountered with coreutils 7.2, which
13276 resulted in a message "fnmatch.c:292: warning: passing argument 4
13277 of 'mbsrtowcs' from incompatible pointer type". Also, add mbsinit
13278 at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
13280 2009-04-03 Simon Josefsson <simon@josefsson.org>
13282 * m4/ld-version-script.m4: Add FIXME comment.
13284 2009-04-02 Simon Josefsson <simon@josefsson.org>
13286 * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
13287 SOVERSION variable.
13289 2009-04-02 Bruno Haible <bruno@clisp.org>
13291 * Makefile (info, html, dvi, pdf): Combine the rules.
13292 Suggested by Jim Meyering.
13294 2009-04-01 Bruno Haible <bruno@clisp.org>
13296 * Makefile (info, html, dvi, pdf): New targets.
13297 Reported by Reuben Thomas <rrt@sc3d.org>.
13299 2009-04-01 Bruno Haible <bruno@clisp.org>
13301 * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
13302 can be put into PATH.
13303 Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
13305 2009-04-01 Bruno Haible <bruno@clisp.org>
13307 * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
13309 2009-04-01 Bruno Haible <bruno@clisp.org>
13311 Rename module 'visibility'.
13312 * modules/lib-symbol-visibility: Renamed from modules/visibility.
13313 * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
13314 * doc/gnulib.texi: Update.
13315 * MODULES.html.sh (Misc): Update.
13316 * NEWS: Mention the change.
13318 2009-04-01 Simon Josefsson <simon@josefsson.org>
13320 * modules/lib-msvc-compat: New module. Thanks to Bruno Haible
13321 <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
13322 Eric Blake <ebb9@byu.net> for review.
13323 * MODULES.html.sh: Add lib-msvc-compat.
13324 * doc/gnulib.texi: Link to new section.
13325 * m4/ld-output-def.m4: New file.
13326 * doc/ld-output-def.texi: New file.
13328 2009-04-01 Simon Josefsson <simon@josefsson.org>
13330 Rename ld-version-script to lib-symbol-versions. Suggested by
13331 Bruno Haible <bruno@clisp.org>.
13332 * modules/ld-version-script: Renamed to lib-symbol-versions.
13333 * doc/ld-version-script.texi: Fix module name.
13334 * MODULES.html.sh: Add lib-symbol-versions.
13336 2009-03-31 Simon Josefsson <simon@josefsson.org>
13338 * modules/u64-tests: New file.
13339 * tests/test-u64.c: New file.
13341 2009-03-04 Simon Josefsson <simon@josefsson.org>
13343 * MODULES.html.sh: Mention u64.
13344 * modules/u64: New module.
13345 * modules/crypto/sha512: Depend on u64 module instead of providing
13348 2009-03-27 Eric Blake <ebb9@byu.net>
13350 test-strerror: make debugging EAI_SYSTEM easier
13351 * modules/getaddrinfo-tests (Depends-on): Add strerror.
13352 * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
13353 failure was EAI_SYSTEM.
13355 2009-03-25 Bruno Haible <bruno@clisp.org>
13357 Fix a problem with --enable-relocatable on Solaris 7.
13358 * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
13361 2009-03-25 Eric Blake <ebb9@byu.net>
13363 test-sockets: avoid gcc warning
13364 * tests/test-sockets.c (main): Silence compiler warning.
13366 2009-03-25 Paul Eggert <eggert@cs.ucla.edu>
13368 New modules nproc, pthread, contributed by Glen Lenker.
13370 * MODULES.html.sh: Add pthread, nproc.
13371 * lib/nproc.c: New file.
13372 * lib/nproc.h: New file.
13373 * lib/pthread.in.h: New file.
13374 * m4/pthread.m4: New file.
13375 * modules/nproc: New file.
13376 * modules/pthread: New file.
13378 2009-03-24 Simon Josefsson <simon@josefsson.org>
13380 * modules/unicase/locale-language-tests (test_locale_language_LDADD):
13383 2009-03-24 Kamil Dudka <kdudka@redhat.com>
13385 filevercmp: handle simple~ and numbered.~3~ backup suffixes
13386 * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
13387 * tests/test-filevercmp.c: Add tests for backup suffixes.
13389 2009-03-24 Simon Josefsson <simon@josefsson.org>
13391 * modules/stdlib (Depends-on): Add stdint, needed when defining
13392 struct random_data on, for example, HP-UX 10.20. Reported by
13393 Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13395 2009-03-24 Simon Josefsson <simon@josefsson.org>
13397 * lib/readline.c (readline): Call fflush on stdout after printing
13400 2009-03-20 Bruno Haible <bruno@clisp.org>
13402 Remove dependency from 'close' module to -lws2_32 on native Windows.
13403 * lib/close-hook.h: New file.
13404 * lib/close-hook.c: New file.
13405 * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
13407 (_gl_close_fd_maybe_socket): Remove function.
13408 (rpl_close): Invoke execute_all_close_hooks instead of
13409 _gl_close_fd_maybe_socket.
13410 * lib/sockets.c: Include close-hook.h, w32sock.h.
13411 (close_fd_maybe_socket): New function, essentially from lib/close.c.
13412 (close_sockets_hook): New variable.
13413 (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
13414 (gl_sockets_cleanup): Unregister it.
13415 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
13416 * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
13417 * modules/close-hook: New file.
13418 * modules/close (Files): Remove lib/w32sock.h.
13419 (Depends-on): Add close-hook.
13420 (Link): Remove section.
13421 * modules/sockets (Files): Add lib/w32sock.h.
13422 (Depends-on): Add close-hook.
13423 * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
13425 * NEWS: Mention that LIB_CLOSE is gone.
13427 2009-03-23 Eric Blake <ebb9@byu.net>
13429 signal-tests: test previous patch
13430 * tests/test-signal.c: New file.
13431 * modules/signal-tests: Likewise.
13433 signal.h: always support 'volatile sig_atomic_t'
13434 * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
13435 (gl_SIGNAL_H_DEFAULTS): Add a default.
13436 * modules/signal (Makefile.am): Substitute if needed.
13437 * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
13438 users can blindly add volatile.
13439 * doc/posix-headers/signal.texi (signal.h): Document it.
13440 Reported by Matthew Woehlke.
13442 2009-03-23 Jim Meyering <meyering@redhat.com>
13444 pathmax: PATH_MAX: use pathconf only when available
13445 * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
13446 only if HAVE_PATHCONF is defined. Patch by Sylvain Beucler.
13447 * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
13448 This avoids a link failure in a PSP cross-compilation environment
13449 described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
13451 * lib/vasnprintf.c (divide): Fix typo in comment.
13453 2009-03-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13455 * gnulib-tool (func_filter_filelist): Fix comment.
13457 2009-03-20 Bruno Haible <bruno@clisp.org>
13459 Make sockets.h self-contained.
13460 * lib/sockets.c: Include sockets.h first.
13461 * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
13463 2009-03-19 Eric Blake <ebb9@byu.net>
13465 doc: mention more functions added in cygwin 1.7.0
13466 * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
13468 * doc/posix-functions/log2f.texi: Likewise.
13470 2009-03-19 Jim Meyering <meyering@redhat.com>
13472 fsusage: avoid syntax error due to statement-before-declaration
13473 * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
13474 after all declarations. Reported by Matthew Woehlke in
13475 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
13477 2009-03-18 Eric Blake <ebb9@byu.net>
13479 build-aux/compile: sync from automake
13480 * build-aux/compile: New file, from automake.
13481 * config/srclist.txt: Mention build-aux/compile.
13483 2009-03-17 Bruno Haible <bruno@clisp.org>
13485 * lib/git-merge-changelog.c: Fix typo in comment.
13486 Reported by Reuben Thomas <rrt@sc3d.org>.
13488 2009-03-17 Reuben Thomas <rrt@sc3d.org>
13490 * m4/regex.m4: update and improve help for
13491 --without-included-regex.
13493 2009-03-17 Simon Josefsson <simon@josefsson.org>
13495 * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
13496 failure on missing include files.
13498 2009-03-17 Eric Blake <ebb9@byu.net>
13500 doc: mention more functions added in cygwin 1.7.0
13501 * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
13503 * doc/posix-functions/fwscanf.texi: Likewise.
13504 * doc/posix-functions/swprintf.texi: Likewise.
13505 * doc/posix-functions/swscanf.texi: Likewise.
13506 * doc/posix-functions/vfwprintf.texi: Likewise.
13507 * doc/posix-functions/vfwscanf.texi: Likewise.
13508 * doc/posix-functions/vswprintf.texi: Likewise.
13509 * doc/posix-functions/vswscanf.texi: Likewise.
13510 * doc/posix-functions/vwprintf.texi: Likewise.
13511 * doc/posix-functions/vwscanf.texi: Likewise.
13512 * doc/posix-functions/wcscasecmp.texi: Likewise.
13513 * doc/posix-functions/wcsdup.texi: Likewise.
13514 * doc/posix-functions/wcsftime.texi: Likewise.
13515 * doc/posix-functions/wcsncasecmp.texi: Likewise.
13516 * doc/posix-functions/wprintf.texi: Likewise.
13517 * doc/posix-functions/wscanf.texi: Likewise.
13518 * doc/glibc-functions/gethostbyname2.texi: Likewise.
13520 2009-03-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13522 maint.mk: really add $(AM_MAKEFLAGS)
13523 * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
13524 was inadvertently omitted in the last commit.
13525 Spotted by Bruno Haible.
13527 maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
13528 * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
13529 $(AM_MAKEFLAGS)' rather than plain `make'.
13531 gnulib-tool: execute $MAKE not make
13532 * gnulib-tool: Default $MAKE to 'make'.
13533 (func_create_testdir, func_create_megatestdir): Use $MAKE rather
13534 than make. Initialize $MAKE in the do-autobuild script.
13536 gnulib-tool: use $MAKE not make in generated files
13537 * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
13538 make, in generated files. Initialize $MAKE in the do-autobuild
13541 * top/GNUmakefile (_have-git-version-gen): Fix typo.
13543 GNUmakefile: disable parallelism only for multiple, recursive targets
13544 * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
13545 additions in the Makefile.
13546 (AM_RECURSIVE_TARGETS): New macro, override only if not provided
13548 (.NOTPARALLEL): Only disable parallel builds if multiple targets
13549 are listed on the command line and at least one of them is
13550 listed in $(ALL_RECURSIVE_TARGETS).
13552 2009-03-14 Bruno Haible <bruno@clisp.org>
13554 * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
13555 utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
13556 * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
13557 * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
13558 utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
13559 * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
13560 * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
13562 * modules/unistr/u8-strchr (Depends-on): Likewise.
13563 * modules/unistr/u8-strrchr (Depends-on): Likewise.
13564 * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
13566 * modules/unistr/u16-strchr (Depends-on): Likewise.
13567 * modules/unistr/u16-strrchr (Depends-on): Likewise.
13569 2009-03-12 Bruno Haible <bruno@clisp.org>
13571 Work around select() bug on Interix 3.5.
13572 * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
13573 * lib/select.c (rpl_select): Add an implementation for Unix platforms.
13574 * m4/select.m4: New file.
13575 * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
13576 * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
13577 * modules/select (Files): Add m4/select.m4.
13578 (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
13579 * modules/nanosleep (Depends-on): Add select.
13580 * modules/poll (Depends-on): Likewise.
13581 * doc/posix-functions/select.texi: Mention the Interix bug.
13582 Reported by Markus Duft <mduft@gentoo.org>.
13584 * lib/select.c: Renamed from lib/winsock-select.c.
13585 * modules/select (Files): Add lib/select.c, remove
13586 lib/winsock-select.c.
13587 (configure.ac): Update.
13589 2009-03-12 Jim Meyering <meyering@redhat.com>
13591 avoid gcc warnings about unused macro definitions
13592 * lib/readtokens.c (STREQ): Remove unused definition.
13593 * lib/xmalloc.c (SIZE_MAX): Likewise.
13594 * lib/openat-die.c (N_): Likewise.
13595 * lib/mountlist.c (SIZE_MAX): Remove definition.
13596 Instead, include <stdint.h>.
13597 * lib/readutmp.c: Likewise.
13598 * modules/readutmp (Depends-on): Add stdint.
13599 * modules/mountlist (Depends-on): Add stdint.
13600 * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
13602 2009-03-10 Bruno Haible <bruno@clisp.org>
13604 Tests for module 'mbmemcasecoll'.
13605 * modules/mbmemcasecoll-tests: New file.
13606 * tests/test-mbmemcasecoll1.sh: New file.
13607 * tests/test-mbmemcasecoll2.sh: New file.
13608 * tests/test-mbmemcasecoll3.sh: New file.
13609 * tests/test-mbmemcasecoll.c: New file.
13611 New module 'mbmemcasecoll'.
13612 * lib/mbmemcasecoll.h: New file.
13613 * lib/mbmemcasecoll.c: New file.
13614 * modules/mbmemcasecoll: New file.
13616 * tests/test-mbmemcasecmp.h: New file, extracted from
13617 tests/test-mbmemcasecmp.c.
13618 * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
13619 (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
13621 * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
13623 2009-03-09 Bruno Haible <bruno@clisp.org>
13625 Tests for module 'mbmemcasecmp'.
13626 * modules/mbmemcasecmp-tests: New file.
13627 * tests/test-mbmemcasecmp1.sh: New file.
13628 * tests/test-mbmemcasecmp2.sh: New file.
13629 * tests/test-mbmemcasecmp3.sh: New file.
13630 * tests/test-mbmemcasecmp.c: New file.
13632 New module 'mbmemcasecmp'.
13633 * lib/mbmemcasecmp.h: New file.
13634 * lib/mbmemcasecmp.c: New file.
13635 * modules/mbmemcasecmp: New file.
13637 2009-03-09 Bruno Haible <bruno@clisp.org>
13639 Tests for module 'unicase/ulc-casecoll'.
13640 * modules/unicase/ulc-casecoll-tests: New file.
13641 * tests/unicase/test-ulc-casecoll1.sh: New file.
13642 * tests/unicase/test-ulc-casecoll2.sh: New file.
13643 * tests/unicase/test-ulc-casecoll.c: New file.
13645 New module 'unicase/ulc-casecoll'.
13646 * lib/unicase.h (ulc_casecoll): New declaration.
13647 * lib/unicase/ulc-casecoll.c: New file.
13648 * modules/unicase/ulc-casecoll: New file.
13650 New module 'unicase/ulc-casexfrm'.
13651 * lib/unicase.h (ulc_casexfrm): New declaration.
13652 * lib/unicase/ulc-casexfrm.c: New file.
13653 * modules/unicase/ulc-casexfrm: New file.
13655 2009-03-09 Bruno Haible <bruno@clisp.org>
13657 Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
13660 * m4/mbscasecmp.m4: Remove file.
13661 * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
13662 (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
13664 * m4/mbscasestr.m4: Remove file.
13665 * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
13666 (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
13668 * m4/mbschr.m4: Remove file.
13669 * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
13670 (configure.ac): Remove gl_FUNC_MBSCHR invocation.
13672 * m4/mbscspn.m4: Remove file.
13673 * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
13674 (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
13676 * m4/mbslen.m4: Remove file.
13677 * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
13678 (configure.ac): Remove gl_FUNC_MBSLEN invocation.
13680 * m4/mbsncasecmp.m4: Remove file.
13681 * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
13682 (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
13684 * m4/mbsnlen.m4: Remove file.
13685 * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
13686 (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
13688 * m4/mbspbrk.m4: Remove file.
13689 * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
13690 (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
13692 * m4/mbspcasecmp.m4: Remove file.
13693 * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
13694 (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
13696 * m4/mbsrchr.m4: Remove file.
13697 * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
13698 (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
13700 * m4/mbssep.m4: Remove file.
13701 * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
13702 (configure.ac): Remove gl_FUNC_MBSSEP invocation.
13704 * m4/mbsspn.m4: Remove file.
13705 * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
13706 (configure.ac): Remove gl_FUNC_MBSSPN invocation.
13708 * m4/mbsstr.m4: Remove file.
13709 * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
13710 (configure.ac): Remove gl_FUNC_MBSSTR invocation.
13712 * m4/mbstok_r.m4: Remove file.
13713 * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
13714 (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
13716 * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
13718 * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
13719 AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
13721 * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
13723 2009-03-08 Bruno Haible <bruno@clisp.org>
13725 Tests for module 'unicase/ulc-casecmp'.
13726 * modules/unicase/ulc-casecmp-tests: New file.
13727 * tests/unicase/test-ulc-casecmp1.sh: New file.
13728 * tests/unicase/test-ulc-casecmp2.sh: New file.
13729 * tests/unicase/test-ulc-casecmp.c: New file.
13731 New module 'unicase/ulc-casecmp'.
13732 * lib/unicase.h (ulc_casecmp): New declaration.
13733 * lib/unicase/ulc-casecmp.c: New file.
13734 * lib/unicase/u-casecmp.h (FUNC): Change argument types to
13735 'const SRC_UNIT *'.
13736 * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
13737 * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
13738 * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
13739 * modules/unicase/ulc-casecmp: New file.
13741 Tests for module 'unicase/u32-is-cased'.
13742 * modules/unicase/u32-is-cased-tests: New file.
13743 * tests/unicase/test-u32-is-cased.c: New file.
13745 Tests for module 'unicase/u16-is-cased'.
13746 * modules/unicase/u16-is-cased-tests: New file.
13747 * tests/unicase/test-u16-is-cased.c: New file.
13749 Tests for module 'unicase/u8-is-cased'.
13750 * modules/unicase/u8-is-cased-tests: New file.
13751 * tests/unicase/test-u8-is-cased.c: New file.
13752 * tests/unicase/test-is-cased.h: New file.
13754 New module 'unicase/u32-is-cased'.
13755 * lib/unicase/u32-is-cased.c: New file.
13756 * modules/unicase/u32-is-cased: New file.
13758 New module 'unicase/u16-is-cased'.
13759 * lib/unicase/u16-is-cased.c: New file.
13760 * modules/unicase/u16-is-cased: New file.
13762 New module 'unicase/u8-is-cased'.
13763 * lib/unicase/u8-is-cased.c: New file.
13764 * lib/unicase/u-is-cased.h: New file.
13765 * modules/unicase/u8-is-cased: New file.
13767 Tests for module 'unicase/u32-is-casefolded'.
13768 * modules/unicase/u32-is-casefolded-tests: New file.
13769 * tests/unicase/test-u32-is-casefolded.c: New file.
13771 Tests for module 'unicase/u16-is-casefolded'.
13772 * modules/unicase/u16-is-casefolded-tests: New file.
13773 * tests/unicase/test-u16-is-casefolded.c: New file.
13775 Tests for module 'unicase/u8-is-casefolded'.
13776 * modules/unicase/u8-is-casefolded-tests: New file.
13777 * tests/unicase/test-u8-is-casefolded.c: New file.
13778 * tests/unicase/test-is-casefolded.h: New file.
13780 New module 'unicase/u32-is-casefolded'.
13781 * lib/unicase/u32-is-casefolded.c: New file.
13782 * modules/unicase/u32-is-casefolded: New file.
13784 New module 'unicase/u16-is-casefolded'.
13785 * lib/unicase/u16-is-casefolded.c: New file.
13786 * modules/unicase/u16-is-casefolded: New file.
13788 New module 'unicase/u8-is-casefolded'.
13789 * lib/unicase/u8-is-casefolded.c: New file.
13790 * modules/unicase/u8-is-casefolded: New file.
13792 Tests for module 'unicase/u32-is-titlecase'.
13793 * modules/unicase/u32-is-titlecase-tests: New file.
13794 * tests/unicase/test-u32-is-titlecase.c: New file.
13796 Tests for module 'unicase/u16-is-titlecase'.
13797 * modules/unicase/u16-is-titlecase-tests: New file.
13798 * tests/unicase/test-u16-is-titlecase.c: New file.
13800 Tests for module 'unicase/u8-is-titlecase'.
13801 * modules/unicase/u8-is-titlecase-tests: New file.
13802 * tests/unicase/test-u8-is-titlecase.c: New file.
13803 * tests/unicase/test-is-titlecase.h: New file.
13805 New module 'unicase/u32-is-titlecase'.
13806 * lib/unicase/u32-is-titlecase.c: New file.
13807 * modules/unicase/u32-is-titlecase: New file.
13809 New module 'unicase/u16-is-titlecase'.
13810 * lib/unicase/u16-is-titlecase.c: New file.
13811 * modules/unicase/u16-is-titlecase: New file.
13813 New module 'unicase/u8-is-titlecase'.
13814 * lib/unicase/u8-is-titlecase.c: New file.
13815 * modules/unicase/u8-is-titlecase: New file.
13817 Tests for module 'unicase/u32-is-lowercase'.
13818 * modules/unicase/u32-is-lowercase-tests: New file.
13819 * tests/unicase/test-u32-is-lowercase.c: New file.
13821 Tests for module 'unicase/u16-is-lowercase'.
13822 * modules/unicase/u16-is-lowercase-tests: New file.
13823 * tests/unicase/test-u16-is-lowercase.c: New file.
13825 Tests for module 'unicase/u8-is-lowercase'.
13826 * modules/unicase/u8-is-lowercase-tests: New file.
13827 * tests/unicase/test-u8-is-lowercase.c: New file.
13828 * tests/unicase/test-is-lowercase.h: New file.
13830 New module 'unicase/u32-is-lowercase'.
13831 * lib/unicase/u32-is-lowercase.c: New file.
13832 * modules/unicase/u32-is-lowercase: New file.
13834 New module 'unicase/u16-is-lowercase'.
13835 * lib/unicase/u16-is-lowercase.c: New file.
13836 * modules/unicase/u16-is-lowercase: New file.
13838 New module 'unicase/u8-is-lowercase'.
13839 * lib/unicase/u8-is-lowercase.c: New file.
13840 * modules/unicase/u8-is-lowercase: New file.
13842 Tests for module 'unicase/u32-is-uppercase'.
13843 * modules/unicase/u32-is-uppercase-tests: New file.
13844 * tests/unicase/test-u32-is-uppercase.c: New file.
13846 Tests for module 'unicase/u16-is-uppercase'.
13847 * modules/unicase/u16-is-uppercase-tests: New file.
13848 * tests/unicase/test-u16-is-uppercase.c: New file.
13850 Tests for module 'unicase/u8-is-uppercase'.
13851 * modules/unicase/u8-is-uppercase-tests: New file.
13852 * tests/unicase/test-u8-is-uppercase.c: New file.
13853 * tests/unicase/test-is-uppercase.h: New file.
13855 New module 'unicase/u32-is-uppercase'.
13856 * lib/unicase/u32-is-uppercase.c: New file.
13857 * modules/unicase/u32-is-uppercase: New file.
13859 New module 'unicase/u16-is-uppercase'.
13860 * lib/unicase/u16-is-uppercase.c: New file.
13861 * modules/unicase/u16-is-uppercase: New file.
13863 New module 'unicase/u8-is-uppercase'.
13864 * lib/unicase/u8-is-uppercase.c: New file.
13865 * modules/unicase/u8-is-uppercase: New file.
13867 New module 'unicase/u32-is-invariant'.
13868 * lib/unicase/u32-is-invariant.c: New file.
13869 * modules/unicase/u32-is-invariant: New file.
13871 New module 'unicase/u16-is-invariant'.
13872 * lib/unicase/u16-is-invariant.c: New file.
13873 * modules/unicase/u16-is-invariant: New file.
13875 New module 'unicase/u8-is-invariant'.
13876 * lib/unicase/u8-is-invariant.c: New file.
13877 * lib/unicase/invariant.h: New file.
13878 * lib/unicase/u-is-invariant.h: New file.
13879 * modules/unicase/u8-is-invariant: New file.
13881 Tests for module 'unicase/u32-casecoll'.
13882 * modules/unicase/u32-casecoll-tests: New file.
13883 * tests/unicase/test-u32-casecoll.c: New file.
13885 Tests for module 'unicase/u16-casecoll'.
13886 * modules/unicase/u16-casecoll-tests: New file.
13887 * tests/unicase/test-u16-casecoll.c: New file.
13889 Tests for module 'unicase/u8-casecoll'.
13890 * modules/unicase/u8-casecoll-tests: New file.
13891 * tests/unicase/test-u8-casecoll.c: New file.
13893 New module 'unicase/u32-casecoll'.
13894 * lib/unicase/u32-casecoll.c: New file.
13895 * modules/unicase/u32-casecoll: New file.
13897 New module 'unicase/u16-casecoll'.
13898 * lib/unicase/u16-casecoll.c: New file.
13899 * modules/unicase/u16-casecoll: New file.
13901 New module 'unicase/u8-casecoll'.
13902 * lib/unicase/u8-casecoll.c: New file.
13903 * lib/unicase/u-casecoll.h: New file.
13904 * modules/unicase/u8-casecoll: New file.
13906 New module 'unicase/u32-casexfrm'.
13907 * lib/unicase/u32-casexfrm.c: New file.
13908 * modules/unicase/u32-casexfrm: New file.
13910 New module 'unicase/u16-casexfrm'.
13911 * lib/unicase/u16-casexfrm.c: New file.
13912 * modules/unicase/u16-casexfrm: New file.
13914 New module 'unicase/u8-casexfrm'.
13915 * lib/unicase/u8-casexfrm.c: New file.
13916 * lib/unicase/u-casexfrm.h: New file.
13917 * modules/unicase/u8-casexfrm: New file.
13919 Tests for module 'unicase/u32-casecmp'.
13920 * modules/unicase/u32-casecmp-tests: New file.
13921 * tests/unicase/test-u32-casecmp.c: New file.
13923 Tests for module 'unicase/u16-casecmp'.
13924 * modules/unicase/u16-casecmp-tests: New file.
13925 * tests/unicase/test-u16-casecmp.c: New file.
13927 Tests for module 'unicase/u8-casecmp'.
13928 * modules/unicase/u8-casecmp-tests: New file.
13929 * tests/unicase/test-u8-casecmp.c: New file.
13930 * tests/unicase/test-casecmp.h: New file.
13932 New module 'unicase/u32-casecmp'.
13933 * lib/unicase/u32-casecmp.c: New file.
13934 * modules/unicase/u32-casecmp: New file.
13936 New module 'unicase/u16-casecmp'.
13937 * lib/unicase/u16-casecmp.c: New file.
13938 * modules/unicase/u16-casecmp: New file.
13940 New module 'unicase/u8-casecmp'.
13941 * lib/unicase/u8-casecmp.c: New file.
13942 * lib/unicase/u-casecmp.h: New file.
13943 * modules/unicase/u8-casecmp: New file.
13945 Tests for module 'unicase/u32-casefold'.
13946 * modules/unicase/u32-casefold-tests: New file.
13947 * tests/unicase/test-u32-casefold.c: New file.
13949 Tests for module 'unicase/u16-casefold'.
13950 * modules/unicase/u16-casefold-tests: New file.
13951 * tests/unicase/test-u16-casefold.c: New file.
13953 Tests for module 'unicase/u8-casefold'.
13954 * modules/unicase/u8-casefold-tests: New file.
13955 * tests/unicase/test-u8-casefold.c: New file.
13957 New module 'unicase/u32-casefold'.
13958 * lib/unicase/u32-casefold.c: New file.
13959 * modules/unicase/u32-casefold: New file.
13961 New module 'unicase/u16-casefold'.
13962 * lib/unicase/u16-casefold.c: New file.
13963 * modules/unicase/u16-casefold: New file.
13965 New module 'unicase/u8-casefold'.
13966 * lib/unicase/u8-casefold.c: New file.
13967 * lib/unicase/u-casefold.h: New file.
13968 * modules/unicase/u8-casefold: New file.
13970 New module 'unicase/tocasefold'.
13971 * lib/unicase/casefold.h: New file.
13972 * lib/unicase/tocasefold.c: New file.
13973 * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
13974 * modules/unicase/tocasefold: New file.
13976 Tests for module 'unicase/u32-totitle'.
13977 * modules/unicase/u32-totitle-tests: New file.
13978 * tests/unicase/test-u32-totitle.c: New file.
13980 Tests for module 'unicase/u16-totitle'.
13981 * modules/unicase/u16-totitle-tests: New file.
13982 * tests/unicase/test-u16-totitle.c: New file.
13984 Tests for module 'unicase/u8-totitle'.
13985 * modules/unicase/u8-totitle-tests: New file.
13986 * tests/unicase/test-u8-totitle.c: New file.
13988 New module 'unicase/u32-totitle'.
13989 * lib/unicase/u32-totitle.c: New file.
13990 * modules/unicase/u32-totitle: New file.
13992 New module 'unicase/u16-totitle'.
13993 * lib/unicase/u16-totitle.c: New file.
13994 * modules/unicase/u16-totitle: New file.
13996 New module 'unicase/u8-totitle'.
13997 * lib/unicase/u8-totitle.c: New file.
13998 * lib/unicase/u-totitle.h: New file.
13999 * modules/unicase/u8-totitle: New file.
14001 Tests for module 'unicase/u32-tolower'.
14002 * modules/unicase/u32-tolower-tests: New file.
14003 * tests/unicase/test-u32-tolower.c: New file.
14005 Tests for module 'unicase/u16-tolower'.
14006 * modules/unicase/u16-tolower-tests: New file.
14007 * tests/unicase/test-u16-tolower.c: New file.
14009 Tests for module 'unicase/u8-tolower'.
14010 * modules/unicase/u8-tolower-tests: New file.
14011 * tests/unicase/test-u8-tolower.c: New file.
14013 New module 'unicase/u32-tolower'.
14014 * lib/unicase/u32-tolower.c: New file.
14015 * modules/unicase/u32-tolower: New file.
14017 New module 'unicase/u16-tolower'.
14018 * lib/unicase/u16-tolower.c: New file.
14019 * modules/unicase/u16-tolower: New file.
14021 New module 'unicase/u8-tolower'.
14022 * lib/unicase/u8-tolower.c: New file.
14023 * modules/unicase/u8-tolower: New file.
14025 Tests for module 'unicase/u32-toupper'.
14026 * modules/unicase/u32-toupper-tests: New file.
14027 * tests/unicase/test-u32-toupper.c: New file.
14029 Tests for module 'unicase/u16-toupper'.
14030 * modules/unicase/u16-toupper-tests: New file.
14031 * tests/unicase/test-u16-toupper.c: New file.
14033 Tests for module 'unicase/u8-toupper'.
14034 * modules/unicase/u8-toupper-tests: New file.
14035 * tests/unicase/test-u8-toupper.c: New file.
14037 New module 'unicase/u32-toupper'.
14038 * lib/unicase/u32-toupper.c: New file.
14039 * modules/unicase/u32-toupper: New file.
14041 New module 'unicase/u16-toupper'.
14042 * lib/unicase/u16-toupper.c: New file.
14043 * modules/unicase/u16-toupper: New file.
14045 New module 'unicase/u8-toupper'.
14046 * lib/unicase/u8-toupper.c: New file.
14047 * modules/unicase/u8-toupper: New file.
14049 New module 'unicase/u32-casemap'.
14050 * lib/unicase/u32-casemap.c: New file.
14051 * modules/unicase/u32-casemap: New file.
14053 New module 'unicase/u16-casemap'.
14054 * lib/unicase/u16-casemap.c: New file.
14055 * modules/unicase/u16-casemap: New file.
14057 New module 'unicase/u8-casemap'.
14058 * lib/unicase/unicasemap.h: New file.
14059 * lib/unicase/u8-casemap.c: New file.
14060 * lib/unicase/u-casemap.h: New file.
14061 * modules/unicase/u8-casemap: New file.
14063 New module 'unicase/special-casing'.
14064 * lib/unicase/special-casing.h: New file.
14065 * lib/unicase/special-casing.c: New file.
14066 * lib/unicase/special-casing-table.gperf: New file, generated by
14068 * modules/unicase/special-casing: New file.
14070 Tests for module 'unicase/locale-language'.
14071 * modules/unicase/locale-language-tests: New file.
14072 * tests/unicase/test-locale-language.sh: New file.
14073 * tests/unicase/test-locale-language.c: New file.
14075 New module 'unicase/locale-language'.
14076 * lib/unicase/locale-language.c: New file.
14077 * lib/unicase/locale-languages.gperf: New file.
14078 * modules/unicase/locale-language: New file.
14080 Generate more tables for case conversion and case folding.
14081 * lib/gen-uni-tables.c (SCC_*): New enum items.
14082 (struct special_casing_rule): New type.
14083 (casing_rules, num_casing_rules, allocated_casing_rules): New
14085 (add_casing_rule, fill_casing_rules): New functions.
14086 (struct casefold_rule): New type.
14087 (casefolding_rules, num_casefolding_rules,
14088 allocated_casefolding_rules): New variables.
14089 (fill_casefolding_rules): New function.
14090 (unicode_casefold): New variable.
14091 (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
14092 sort_casing_rules, output_casing_rules): New functions.
14093 (main): Accept to more arguments: SpecialCasing.txt and
14094 CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
14095 redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
14096 Output mapping for casefolding.
14098 * lib/unicase.h: Include stdbool.h, uninorm.h.
14099 (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
14100 u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
14101 (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
14103 (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
14105 (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
14106 (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
14108 (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
14109 u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
14110 u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
14111 u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
14113 * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
14115 2009-03-08 Bruno Haible <bruno@clisp.org>
14117 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14118 u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
14119 * lib/uninorm/u-normcmp.h (FUNC): Likewise.
14120 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14122 2009-03-07 Bruno Haible <bruno@clisp.org>
14124 Adjust u*_normcmp, u*_normcoll API.
14125 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14126 u16_normcoll, u32_normcoll): Change failure conventions.
14127 * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
14128 errno and return -1.
14129 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14131 2009-03-07 Bruno Haible <bruno@clisp.org>
14133 Tests for module 'uninorm/u32-normcoll'.
14134 * modules/uninorm/u32-normcoll-tests: New file.
14135 * tests/uninorm/test-u32-normcoll.c: New file.
14137 Tests for module 'uninorm/u16-normcoll'.
14138 * modules/uninorm/u16-normcoll-tests: New file.
14139 * tests/uninorm/test-u16-normcoll.c: New file.
14141 Tests for module 'uninorm/u8-normcoll'.
14142 * modules/uninorm/u8-normcoll-tests: New file.
14143 * tests/uninorm/test-u8-normcoll.c: New file.
14145 2009-03-07 Bruno Haible <bruno@clisp.org>
14147 * tests/uninorm/test-u32-normcmp.h: New file, extracted from
14148 tests/uninorm/test-u32-normcmp.c.
14149 * tests/uninorm/test-u32-normcmp.c: Include it.
14150 (test_nonascii): New function, extracted from main. Add some more
14152 (main): Invoke test_ascii and test_nonascii.
14153 * modules/uninorm/u32-normcmp-tests (Files): Add
14154 tests/uninorm/test-u32-normcmp.h.
14155 (Depends-on): Remove uninorm/u32-normcmp.
14157 * tests/uninorm/test-u16-normcmp.h: New file, extracted from
14158 tests/uninorm/test-u16-normcmp.c.
14159 * tests/uninorm/test-u16-normcmp.c: Include it.
14160 (test_nonascii): New function, extracted from main. Add some more
14162 (main): Invoke test_ascii and test_nonascii.
14163 * modules/uninorm/u16-normcmp-tests (Files): Add
14164 tests/uninorm/test-u16-normcmp.h.
14165 (Depends-on): Remove uninorm/u16-normcmp.
14167 * tests/uninorm/test-u8-normcmp.h: New file, extracted from
14168 tests/uninorm/test-u8-normcmp.c.
14169 * tests/uninorm/test-u8-normcmp.c: Include it.
14170 (test_nonascii): New function, extracted from main. Add some more
14172 (main): Invoke test_ascii and test_nonascii.
14173 * modules/uninorm/u8-normcmp-tests (Files): Add
14174 tests/uninorm/test-u8-normcmp.h.
14175 (Depends-on): Remove uninorm/u8-normcmp.
14177 2009-03-07 Bruno Haible <bruno@clisp.org>
14179 New module 'uninorm/u32-normcoll'.
14180 * lib/uninorm/u32-normcoll.c: New file.
14181 * modules/uninorm/u32-normcoll: New file.
14183 New module 'uninorm/u16-normcoll'.
14184 * lib/uninorm/u16-normcoll.c: New file.
14185 * modules/uninorm/u16-normcoll: New file.
14187 New module 'uninorm/u8-normcoll'.
14188 * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
14190 * lib/uninorm/u8-normcoll.c: New file.
14191 * lib/uninorm/u-normcoll.h: New file.
14192 * modules/uninorm/u8-normcoll: New file.
14194 New module 'uninorm/u32-normxfrm'.
14195 * lib/uninorm/u32-normxfrm.c: New file.
14196 * modules/uninorm/u32-normxfrm: New file.
14198 New module 'uninorm/u16-normxfrm'.
14199 * lib/uninorm/u16-normxfrm.c: New file.
14200 * modules/uninorm/u16-normxfrm: New file.
14202 New module 'uninorm/u8-normxfrm'.
14203 * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
14205 * lib/uninorm/u8-normxfrm.c: New file.
14206 * lib/uninorm/u-normxfrm.h: New file.
14207 * modules/uninorm/u8-normxfrm: New file.
14209 2009-03-07 Bruno Haible <bruno@clisp.org>
14211 * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
14212 * modules/uninorm/u16-normcmp (Depends-on): Likewise.
14213 * modules/uninorm/u32-normcmp (Depends-on): Likewise.
14215 2009-03-07 Bruno Haible <bruno@clisp.org>
14217 New module 'memxfrm'.
14218 * lib/memxfrm.h: New file.
14219 * lib/memxfrm.c: New file.
14220 * modules/memxfrm: New file.
14222 2009-03-07 Bruno Haible <bruno@clisp.org>
14224 New module 'memcmp2'.
14225 * lib/memcmp2.h: New file.
14226 * lib/memcmp2.c: New file.
14227 * modules/memcmp2: New file.
14229 2009-03-07 Bruno Haible <bruno@clisp.org>
14231 Tests for module 'uninorm/decomposing-form'.
14232 * modules/uninorm/decomposing-form-tests: New file.
14233 * tests/uninorm/test-decomposing-form.c: New file.
14235 New module 'uninorm/decomposing-form'.
14236 * lib/uninorm.h (uninorm_decomposing_form): New declaration.
14237 * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
14238 Add 'decomposing_variant' field.
14239 * lib/uninorm/decomposing-form.c: New file.
14240 * lib/uninorm/nfc.c (uninorm_nfc): Update.
14241 * lib/uninorm/nfd.c (uninorm_nfd): Update.
14242 * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
14243 * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
14244 * modules/uninorm/decomposing-form: New file.
14245 * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
14246 * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
14248 2009-03-07 Bruno Haible <bruno@clisp.org>
14250 * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
14253 2009-03-06 Bruno Haible <bruno@clisp.org>
14255 Tests for module 'uninorm/u32-normcmp'.
14256 * tests/uninorm/test-u32-normcmp.c: New file.
14257 * modules/uninorm/u32-normcmp-tests: New file.
14259 Tests for module 'uninorm/u16-normcmp'.
14260 * tests/uninorm/test-u16-normcmp.c: New file.
14261 * modules/uninorm/u16-normcmp-tests: New file.
14263 Tests for module 'uninorm/u8-normcmp'.
14264 * tests/uninorm/test-u8-normcmp.c: New file.
14265 * modules/uninorm/u8-normcmp-tests: New file.
14267 New module 'uninorm/u32-normcmp'.
14268 * lib/uninorm/u32-normcmp.c: New file.
14269 * modules/uninorm/u32-normcmp: New file.
14271 New module 'uninorm/u16-normcmp'.
14272 * lib/uninorm/u16-normcmp.c: New file.
14273 * modules/uninorm/u16-normcmp: New file.
14275 New module 'uninorm/u8-normcmp'.
14276 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
14278 * lib/uninorm/u8-normcmp.c: New file.
14279 * lib/uninorm/u-normcmp.h: New file.
14280 * modules/uninorm/u8-normcmp: New file.
14282 2009-03-06 Bruno Haible <bruno@clisp.org>
14284 * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
14285 Reported by Eric Blake.
14287 2009-03-06 Eric Blake <ebb9@byu.net>
14288 Bruno Haible <bruno@clisp.org>
14290 * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
14291 * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
14293 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
14294 * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
14296 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
14298 2009-03-06 Eric Blake <ebb9@byu.net>
14300 * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
14301 to avoid compiler warnings.
14302 * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
14304 2009-03-05 Bruno Haible <bruno@clisp.org>
14306 * tests/test-ftell.c (main): Disable test beyond end of file on
14308 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
14310 2009-03-05 Kamil Dudka <kdudka@redhat.com>
14312 * lib/filevercmp.c: Move hidden files up in ordering.
14313 * tests/test-filevercmp.c: Add tests for hidden files.
14315 2009-03-04 Bruno Haible <bruno@clisp.org>
14317 * modules/visibility (Makefile.am): Augment AM_CFLAGS.
14318 * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
14320 Reported by Simon Josefsson.
14322 2009-03-03 Bruno Haible <bruno@clisp.org>
14324 * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
14325 Reported by Simon Josefsson.
14327 * doc/ld-version-script.texi: Update node reference.
14329 2009-03-03 Bruno Haible <bruno@clisp.org>
14331 * modules/visibility (License): Change to 'unlimited'.
14332 Suggested by Simon Josefsson.
14334 2009-03-03 Jim Meyering <meyering@redhat.com>
14336 unlinkdir: cannot_unlink_dir may modify process state
14337 * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
14338 it's neither thread-safe nor appropriate for use in a library.
14340 2009-03-03 Eric Blake <ebb9@byu.net>
14342 test-closein: silence test under Darwin
14343 * tests/test-closein.sh: Ignore stderr from cat, since we don't
14344 care if it dies from EPIPE or EBADF.
14346 2009-03-03 Bruno Haible <bruno@clisp.org>
14348 * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
14350 * doc/visibility.texi: Fix @node and @section.
14352 2009-03-03 Simon Josefsson <simon@josefsson.org>
14354 * doc/gnulib.texi: Link to sections for ld version script and
14356 * doc/visibility.texi: Add @node and @section.
14357 * modules/ld-version-script: New module.
14358 * m4/ld-version-script.m4: New file.
14359 * doc/ld-version-script.texi: New file.
14361 2009-03-02 David Lutterkort <lutter@redhat.com>
14363 * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
14364 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14366 2009-03-02 Bruno Haible <bruno@clisp.org>
14368 * doc/visibility.texi: Mention libtool's -export-symbols option.
14370 2009-03-02 Jim Meyering <meyering@redhat.com>
14372 announce-gen: new option: --no-print-checksums
14373 * build-aux/announce-gen (usage): Describe it.
14374 (print_checksums): Print a newline here, not in the [*] footnote.
14377 2009-03-01 Bruno Haible <bruno@clisp.org>
14379 Use socklen_t in the native Windows replacements prototypes.
14380 * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
14382 * lib/getsockopt.c (rpl_getsockopt): Likewise.
14383 * lib/setsockopt.c (rpl_setsockopt): Likewise.
14384 * modules/getsockopt (Depends-on): Add socklen.
14385 * modules/setsockopt (Depends-on): Add socklen.
14387 2009-03-01 Bruno Haible <bruno@clisp.org>
14389 * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
14392 2009-03-01 Eric Blake <ebb9@byu.net>
14393 Bruno Haible <bruno@clisp.org>
14395 * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
14397 * lib/wait-process.c (wait_subprocess): Omit error message about
14398 deadly signal sent to the child of termsigp != NULL.
14400 2009-03-01 Eric Blake <ebb9@byu.net>
14402 * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
14404 2009-03-01 Bruno Haible <bruno@clisp.org>
14406 Avoid a gcc warning.
14407 * tests/test-sched.c (b): Make global.
14408 Reported by Eric Blake.
14410 2009-01-19 Martin Lambers <marlam@marlam.de>
14412 Provide POSIX semantics for socket timeout options on W32.
14413 * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
14414 * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
14415 * modules/setsockopt: Depend on sys_time module for struct timeval.
14416 * modules/getsockopt: Depend on sys_time module for struct timeval.
14418 2009-03-01 Simon Josefsson <simon@josefsson.org>
14420 * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
14421 __USE_GNU, for consistency with netdb.in.h.
14422 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14424 2009-03-01 Bruno Haible <bruno@clisp.org>
14426 More support for FreeMiNT.
14427 * lib/fseeko.c (rpl_fseeko): Complete last commit.
14428 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14430 2009-03-01 Bruno Haible <bruno@clisp.org>
14432 More support for FreeMiNT.
14433 * lib/fpurge.c (fpurge): Correct last commit.
14434 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14436 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14438 Fix unportable awk script in vc-list-files.
14439 * build-aux/vc-list-files: In the replacement awk script, use
14440 substr with a second argument of 1, not zero.
14441 Report by Simon Josefsson.
14443 2009-02-28 Bruno Haible <bruno@clisp.org>
14445 More support for FreeMiNT.
14446 * lib/freading.c (freading) [__MINT__]: Use new macros that were added
14448 * lib/fwriting.c (fwriting): Likewise.
14449 Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
14451 2009-02-28 Bruno Haible <bruno@clisp.org>
14453 * tests/test-freadseek.c (main): Disable test beyond end of file on
14455 * tests/test-ftello.c (main): Likewise.
14456 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
14458 2009-02-28 Bruno Haible <bruno@clisp.org>
14460 Add tentative support for FreeMiNT.
14461 * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
14462 * lib/fpurge.c (fpurge): Likewise.
14463 * lib/freadable.c (freadable): Likewise.
14464 * lib/freading.c (freading): Likewise.
14465 * lib/freadptr.c (freadptr): Likewise.
14466 * lib/freadseek.c (freadptrinc): Likewise.
14467 * lib/fseeko.c (rpl_fseeko): Likewise.
14468 * lib/fseterr.c (fseterr): Likewise.
14469 * lib/fwritable.c (fwritable): Likewise.
14470 * lib/fwriting.c (fwriting): Likewise.
14471 * lib/freadahead.c (freadahead): Likewise, based on code by Alan
14473 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14475 2009-02-28 Bruno Haible <bruno@clisp.org>
14477 * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
14479 Reported by Jim Meyering.
14481 2009-02-28 Bruno Haible <bruno@clisp.org>
14483 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
14484 Mention the results of these tests on various platforms.
14485 * doc/posix-functions/fprintf.texi: Mention platforms in canonical
14487 * doc/posix-functions/printf.texi: Likewise.
14488 * doc/posix-functions/snprintf.texi: Likewise.
14489 * doc/posix-functions/sprintf.texi: Likewise.
14490 * doc/posix-functions/vfprintf.texi: Likewise.
14491 * doc/posix-functions/vprintf.texi: Likewise.
14492 * doc/posix-functions/vsnprintf.texi: Likewise.
14493 * doc/posix-functions/vsprintf.texi: Likewise.
14494 * doc/glibc-functions/obstack_printf.texi: Likewise.
14495 * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14497 2009-02-28 Bruno Haible <bruno@clisp.org>
14499 * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
14500 Reported by Loïc Minier <lool@dooz.org>.
14502 2009-02-27 Bruno Haible <bruno@clisp.org>
14504 * gnulib-tool (func_import): Make the sed expression used to create the
14505 sed script for updating the .gitignore file POSIX compliant.
14506 Reported by Eric Blake.
14508 2009-02-27 Bruno Haible <bruno@clisp.org>
14510 * gnulib-tool (sed): Don't alias as "sed --posix".
14511 Reported by Eric Blake.
14513 2009-02-27 Bruno Haible <bruno@clisp.org>
14515 Avoid test link errors.
14516 * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
14517 * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
14518 * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
14519 * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
14520 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14522 2009-02-27 Bruno Haible <bruno@clisp.org>
14524 Avoid spurious "(cached)" in configure output.
14525 * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
14526 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
14527 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
14528 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
14529 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
14530 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
14531 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
14532 * m4/stdarg.m4 (gl_STDARG_H): Likewise.
14533 Reported by Eric Blake.
14535 2009-02-27 Eric Blake <ebb9@byu.net>
14537 printf: fix regression in previous patch
14538 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
14540 2009-02-27 Bruno Haible <bruno@clisp.org>
14542 * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
14544 * lib/stdint.in.h: Likewise.
14545 Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
14547 2009-02-27 Eric Blake <ebb9@byu.net>
14549 doc: mention more functions added in cygwin 1.7.0
14550 * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
14552 * doc/posix-functions/open_wmemstream.texi: Likewise.
14553 * doc/posix-functions/wcsnlen.texi: Likewise.
14554 * doc/posix-functions/wcsnrtombs.texi: Likewise.
14555 * doc/posix-functions/wcstod.texi: Likewise.
14556 * doc/posix-functions/wcstof.texi: Likewise.
14557 * doc/posix-functions/wcstoimax.texi: Likewise.
14558 * doc/posix-functions/wcstok.texi: Likewise.
14559 * doc/posix-functions/wcstoumax.texi: Likewise.
14561 Detect bug in cygwin 1.5.x *printf on 1-character %ls.
14562 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
14563 * doc/posix-functions/fprintf.texi: Update.
14564 * doc/posix-functions/printf.texi: Update.
14565 * doc/posix-functions/snprintf.texi: Update.
14566 * doc/posix-functions/sprintf.texi: Update.
14567 * doc/posix-functions/vfprintf.texi: Update.
14568 * doc/posix-functions/vprintf.texi: Update.
14569 * doc/posix-functions/vsnprintf.texi: Update.
14570 * doc/posix-functions/vsprintf.texi: Update.
14571 * doc/glibc-functions/obstack_printf.texi: Update.
14572 * doc/glibc-functions/obstack_vprintf.texi: Update.
14574 2009-02-26 Eric Blake <ebb9@byu.net>
14576 avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
14577 * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
14578 compilation bug by using runtime conversion.
14579 * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14580 * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
14581 * modules/ceill-tests (Files): Use nan.h.
14582 * modules/floorl-tests (Files): Likewise.
14583 * modules/frexpl-tests (Files): Likewise.
14584 * modules/isnanl-tests (Files): Likewise.
14585 * modules/ldexpl-tests (Files): Likewise.
14586 * modules/roundl-tests (Files): Likewise.
14587 * modules/truncl-tests (Files): Likewise.
14588 * tests/test-ceill.c (main): Use a working NaN.
14589 * tests/test-floorl.c (main): Likewise.
14590 * tests/test-frexpl.c (main): Likewise.
14591 * tests/test-isnan.c (test_long_double): Likewise.
14592 * tests/test-isnanl.h (main): Likewise.
14593 * tests/test-ldexpl.h (main): Likewise.
14594 * tests/test-roundl.h (main): Likewise.
14595 * tests/test-truncl.h (main): Likewise.
14596 See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
14598 2009-02-26 Eric Blake <ebb9@byu.net>
14599 Bruno Haible <bruno@clisp.org>
14601 Work around a *printf bug with %ls on Solaris.
14602 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
14603 precision is specified, sprintf stops converting the wide string
14604 argument when the number of bytes that have been produced by this
14605 conversion equals or exceeds the precision.
14606 * doc/posix-functions/fprintf.texi: Update.
14607 * doc/posix-functions/printf.texi: Update.
14608 * doc/posix-functions/snprintf.texi: Update.
14609 * doc/posix-functions/sprintf.texi: Update.
14610 * doc/posix-functions/vfprintf.texi: Update.
14611 * doc/posix-functions/vprintf.texi: Update.
14612 * doc/posix-functions/vsnprintf.texi: Update.
14613 * doc/posix-functions/vsprintf.texi: Update.
14614 * doc/glibc-functions/obstack_printf.texi: Update.
14615 * doc/glibc-functions/obstack_vprintf.texi: Update.
14617 2009-02-26 Eric Blake <ebb9@byu.net>
14619 stdlib: favor compiler check of random.h
14620 * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check. Needed
14621 to avoid an ObjC random.h installed by Swarm.
14623 2009-02-26 Bruno Haible <bruno@clisp.org>
14625 Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
14626 * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
14627 Reported by Gary V. Vaughan <gary@gnu.org>.
14629 2009-02-26 Bruno Haible <bruno@clisp.org>
14631 Fix *printf behaviour regarding the %ls directive.
14632 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
14633 * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
14634 NEED_PRINTF_DIRECTIVE_LS.
14635 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
14636 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
14637 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14638 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
14639 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
14640 * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
14641 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
14642 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14643 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14644 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14645 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14646 * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
14647 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14648 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14649 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14650 * doc/posix-functions/fprintf.texi: Update.
14651 * doc/posix-functions/printf.texi: Update.
14652 * doc/posix-functions/snprintf.texi: Update.
14653 * doc/posix-functions/sprintf.texi: Update.
14654 * doc/posix-functions/vfprintf.texi: Update.
14655 * doc/posix-functions/vprintf.texi: Update.
14656 * doc/posix-functions/vsnprintf.texi: Update.
14657 * doc/posix-functions/vsprintf.texi: Update.
14658 * doc/glibc-functions/obstack_printf.texi: Update.
14659 * doc/glibc-functions/obstack_vprintf.texi: Update.
14660 Reported by Eric Blake.
14662 2009-02-25 Bruno Haible <bruno@clisp.org>
14664 * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
14666 Reported by Gary V. Vaughan <gary@gnu.org>.
14668 2009-02-25 Bruno Haible <bruno@clisp.org>
14670 Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
14671 * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
14672 (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
14673 * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
14674 Reported by Gary V. Vaughan <gary@gnu.org>.
14676 2009-02-25 Bruno Haible <bruno@clisp.org>
14678 Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
14679 * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
14680 INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
14681 * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
14682 Reported by Gary V. Vaughan <gary@gnu.org>.
14684 2009-02-25 Eric Blake <ebb9@byu.net>
14686 tests: skip fseek/ftell tests if ungetc is broken
14687 * m4/ungetc.m4: New file.
14688 * modules/fseek-tests: Split test, so ungetc dependency is
14689 separate from rest of test.
14690 * modules/fseeko-tests: Likewise.
14691 * modules/ftell-tests: Likewise.
14692 * modules/ftello-tests: Likewise.
14693 * tests/test-fseek.c (main): Isolate ungetc dependency.
14694 * tests/test-fseeko.c (main): Likewise.
14695 * tests/test-ftell.c (main): Likewise.
14696 * tests/test-ftello.c (main): Likewise.
14697 * tests/test-fseek2.sh: New file.
14698 * tests/test-fseeko2.sh: Likewise.
14699 * tests/test-ftell2.sh: Likewise.
14700 * tests/test-ftello2.sh: Likewise.
14702 2009-02-25 Ondřej Vašík <ovasik@redhat.com>
14704 test-getaddrinfo: fix usage of skip return code 77
14705 * tests/test-gettaddrinfo.c: Return skip code 77 only
14706 for first occurance of skip (4x77 is not 77)
14708 2009-02-25 Gary V. Vaughan <gary@gnu.org>
14710 strtod: avoid C99 decl-after-statement
14711 * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
14713 2009-02-24 Eric Blake <ebb9@byu.net>
14715 strtod: detect HP-UX 11.31 bug
14716 * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
14717 Reported by Gary V. Vaughan.
14719 2009-02-23 Bruno Haible <bruno@clisp.org>
14721 Fix invalid read past end of memory block.
14722 * lib/vasnprintf.c (DCHAR_SET): Define.
14723 (local_wcslen): Define only when needed.
14724 (local_strnlen, local_wcsnlen): New functions.
14725 (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
14726 directives that involve a conversion ourselves.
14727 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
14728 wcsnlen, mbrtowc, wcrtomb.
14729 * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
14730 * tests/test-vasprintf-posix.c (test_function): Likewise.
14731 * tests/test-snprintf-posix.h (test_function): Likewise.
14732 * tests/test-sprintf-posix.h (test_function): Likewise.
14733 Reported by Ben Pfaff <blp@cs.stanford.edu>.
14735 2009-02-22 Bruno Haible <bruno@clisp.org>
14737 Implement new clarified decomposition of Hangul syllables.
14738 * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
14739 of type LTV, return only a pairwise decomposition.
14740 * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
14742 * tests/uninorm/test-decomposition.c (main): Updated expected result.
14743 * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
14744 * tests/uninorm/test-compat-decomposition.c (main): Likewise.
14746 2009-02-22 Bruno Haible <bruno@clisp.org>
14748 * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
14749 zero-length results and shrink excess allocated memory.
14750 * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
14751 * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
14752 * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
14753 * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
14754 * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
14755 * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
14756 * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
14757 * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
14758 * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
14759 * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
14760 * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
14761 * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
14763 2009-02-21 Bruno Haible <bruno@clisp.org>
14765 * doc/gnulib.texi: Include safe-alloc.texi earlier.
14766 * doc/safe-alloc.texi: Terminate sentences with a period. Use two
14767 spaces after a period. Put a space between a macro name and its
14768 argument list. Trivial rewordings.
14769 * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
14770 * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
14771 (main): Return 0 explicitly.
14773 2009-02-21 Bruno Haible <bruno@clisp.org>
14775 Tests for module 'uninorm/filter'.
14776 * tests/uninorm/test-uninorm-filter-nfc.c: New file.
14777 * modules/uninorm/filter-tests: New file.
14779 New module 'uninorm/filter'.
14780 * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
14781 uninorm_filter_flush, uninorm_filter_free): New declarations.
14782 * lib/uninorm/uninorm-filter.c: New file.
14783 * modules/uninorm/filter: New file.
14785 2009-02-21 Bruno Haible <bruno@clisp.org>
14787 Tests for module 'uninorm/nfkc'.
14788 * tests/uninorm/test-nfkc.c: New file.
14789 * tests/uninorm/test-u8-nfkc.c: New file.
14790 * tests/uninorm/test-u16-nfkc.c: New file.
14791 * tests/uninorm/test-u32-nfkc.c: New file.
14792 * tests/uninorm/test-u32-nfkc-big.sh: New file.
14793 * tests/uninorm/test-u32-nfkc-big.c: New file.
14794 * modules/uninorm/nfkc-tests: New file.
14796 New module 'uninorm/nfkc'.
14797 * lib/uninorm/nfkc.c: New file.
14798 * modules/uninorm/nfkc: New file.
14800 Tests for module 'uninorm/nfkd'.
14801 * tests/uninorm/test-nfkd.c: New file.
14802 * tests/uninorm/test-u8-nfkd.c: New file.
14803 * tests/uninorm/test-u16-nfkd.c: New file.
14804 * tests/uninorm/test-u32-nfkd.c: New file.
14805 * tests/uninorm/test-u32-nfkd-big.sh: New file.
14806 * tests/uninorm/test-u32-nfkd-big.c: New file.
14807 * modules/uninorm/nfkd-tests: New file.
14809 New module 'uninorm/nfkd'.
14810 * lib/uninorm/nfkd.c: New file.
14811 * modules/uninorm/nfkd: New file.
14813 Tests for module 'uninorm/nfc'.
14814 * tests/uninorm/test-nfc.c: New file.
14815 * tests/uninorm/test-u8-nfc.c: New file.
14816 * tests/uninorm/test-u16-nfc.c: New file.
14817 * tests/uninorm/test-u32-nfc.c: New file.
14818 * tests/uninorm/test-u32-nfc-big.sh: New file.
14819 * tests/uninorm/test-u32-nfc-big.c: New file.
14820 * modules/uninorm/nfc-tests: New file.
14822 New module 'uninorm/nfc'.
14823 * lib/uninorm/nfc.c: New file.
14824 * modules/uninorm/nfc: New file.
14826 Tests for module 'uninorm/nfd'.
14827 * tests/uninorm/test-nfd.c: New file.
14828 * tests/uninorm/test-u8-nfd.c: New file.
14829 * tests/uninorm/test-u16-nfd.c: New file.
14830 * tests/uninorm/test-u32-nfd.c: New file.
14831 * tests/uninorm/test-u32-nfd-big.sh: New file.
14832 * tests/uninorm/test-u32-nfd-big.c: New file.
14833 * tests/uninorm/test-u32-normalize-big.h: New file.
14834 * tests/uninorm/test-u32-normalize-big.c: New file.
14835 * tests/uninorm/NormalizationTest.txt: New file, created from
14836 Unicode 5.1.0 NormalizationTest.txt.
14837 * modules/uninorm/nfd-tests: New file.
14839 New module 'uninorm/nfd'.
14840 * lib/uninorm/nfd.c: New file.
14841 * modules/uninorm/nfd: New file.
14843 New module 'uninorm/u32-normalize'.
14844 * lib/uninorm/u32-normalize.c: New file.
14845 * modules/uninorm/u32-normalize: New file.
14847 New module 'uninorm/u16-normalize'.
14848 * lib/uninorm/u16-normalize.c: New file.
14849 * modules/uninorm/u16-normalize: New file.
14851 New module 'uninorm/u8-normalize'.
14852 * lib/uninorm/u8-normalize.c: New file.
14853 * lib/uninorm/normalize-internal.h: New file.
14854 * lib/uninorm/u-normalize-internal.h: New file.
14855 * modules/uninorm/u8-normalize: New file.
14857 New module 'uninorm/decompose-internal'.
14858 * lib/uninorm/decompose-internal.c: New file.
14859 * modules/uninorm/decompose-internal: New file.
14861 Tests for module 'uninorm/composition'.
14862 * tests/uninorm/test-composition.c: New file.
14863 * modules/uninorm/composition-tests: New file.
14865 New module 'uninorm/composition'.
14866 * lib/uninorm/composition.c: New file.
14867 * lib/uninorm/composition-table.gperf: New file, generated by
14869 * modules/uninorm/composition: New file.
14871 Tests for module 'uninorm/compat-decomposition'.
14872 * tests/uninorm/test-compat-decomposition.c: New file.
14873 * modules/uninorm/compat-decomposition-tests: New file.
14875 New module 'uninorm/compat-decomposition'.
14876 * lib/uninorm/decompose-internal.h: New file.
14877 * lib/uninorm/compat-decomposition.c: New file.
14878 * modules/uninorm/compat-decomposition: New file.
14880 Tests for module 'uninorm/canonical-decomposition'.
14881 * tests/uninorm/test-canonical-decomposition.c: New file.
14882 * modules/uninorm/canonical-decomposition-tests: New file.
14884 New module 'uninorm/canonical-decomposition'.
14885 * lib/uninorm/canonical-decomposition.c: New file.
14886 * modules/uninorm/canonical-decomposition: New file.
14888 Tests for module 'uninorm/decomposition'.
14889 * tests/uninorm/test-decomposition.c: New file.
14890 * modules/uninorm/decomposition-tests: New file.
14892 New module 'uninorm/decomposition'.
14893 * lib/uninorm/decomposition.c: New file.
14894 * modules/uninorm/decomposition: New file.
14896 New module 'uninorm/decomposition-table'.
14897 * lib/uninorm/decomposition-table.h: New file.
14898 * lib/uninorm/decomposition-table.c: New file.
14899 * lib/uninorm/decomposition-table1.h: New file, generated by
14901 * lib/uninorm/decomposition-table2.h: New file, generated by
14903 * modules/uninorm/decomposition-table: New file.
14905 * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
14906 (UC_DECOMP_*): New enumeration items.
14907 (get_decomposition): New function.
14908 (struct decomp_table): New type.
14909 (output_decomposition, output_decomposition_tables): New functions.
14910 (unicode_composition_exclusions): New variable.
14911 (fill_composition_exclusions, debug_output_composition_tables): New
14913 (main): Accept one more argument. Invoke fill_composition_exclusions.
14914 Output decomposition and composition tables.
14916 New module 'uninorm/base'.
14917 * lib/uninorm.h: New file.
14918 * lib/unictype.h: Update comment.
14919 * modules/uninorm/base: New file.
14921 2009-02-21 David Lutterkort <lutter@redhat.com>
14923 Tests for module 'safe-alloc'.
14924 * tests/test-safe-alloc.c: New file.
14925 * modules/safe-alloc-tests: New file.
14927 New module 'safe-alloc'.
14928 * lib/safe-alloc.h: New file.
14929 * lib/safe-alloc.c: New file.
14930 * m4/safe-alloc.m4: New file.
14931 * modules/safe-alloc: New file.
14932 * doc/safe-alloc.texi: New file.
14933 * doc/gnulib.texi: Include it.
14934 * MODULES.html.sh (Memory management functions <stdlib.h>): Add
14937 2009-02-18 Bruno Haible <bruno@clisp.org>
14939 Fix link error on non-glibc systems.
14940 * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
14942 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14944 2009-02-18 Jim Meyering <meyering@redhat.com>
14946 fts: avoid used-uninitialized error due to recent change
14947 * lib/fts.c (fts_read): Guard uses of the new member,
14948 parent->fts_n_dirs_remaining, since it's not relevant for
14949 the parent of a directory specified on the command-line.
14951 2009-02-17 James Youngman <jay@gnu.org>
14952 Bruno Haible <bruno@clisp.org>
14954 * m4/include_next.m4: Reformulate comment.
14956 2009-02-16 Jim Meyering <meyering@redhat.com>
14958 fts: add #if guards so that the fts_lgpl module still builds
14959 * lib/fts.c: Guard just-added hash-table-using parts with
14960 #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
14961 Reported by Simon Josefsson.
14963 2009-02-15 Bruno Haible <bruno@clisp.org>
14965 * modules/array-mergesort-tests: New file.
14966 * tests/test-array-mergesort.c: New file.
14968 New module 'array-mergesort'.
14969 * modules/array-mergesort: New file.
14970 * lib/array-mergesort.h: New file.
14972 2009-02-15 Bruno Haible <bruno@clisp.org>
14974 Fix 2009-02-07 commit.
14975 * lib/gen-uni-tables.c (output_predicate, output_category,
14976 output_combclass, output_bidi_category, output_decimal_digit,
14977 output_digit, output_numeric, output_mirror, output_scripts,
14978 output_ident_category, output_simple_mapping): Fix format directives.
14979 (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
14981 2009-02-15 Albert Chin-A-Young <china@thewrittenword.com>
14983 * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
14984 fixes are available from IBM.
14986 2009-02-13 Jim Meyering <meyering@redhat.com>
14988 fts: arrange not to stat non-directories in more cases
14989 This makes GNU find (when it doesn't need to stat each file)
14990 *much* more efficient at traversing reiserfs file systems.
14991 * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
14992 (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
14993 * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
14994 (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
14995 (leaf_optimization_applies): New function.
14996 (LCO_hash, LCO_compare): New helper functions.
14997 (link_count_optimize_ok): New function.
14998 (fts_stat): Initialize new member (if dir).
14999 (fts_read): Decrement parent's fts_n_dirs_remaining count if
15000 we've just stat'ed a directory. Skip the stat call when possible.
15002 Note this AFS-related exchange:
15003 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
15004 and note find's pioctl call in find/fstype.c.
15005 But that is necessary only if you want to enable the
15006 optimization for AFS, and for now, I don't.
15008 fts: move a function definition "up" (no semantic change)
15009 * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
15010 "up" to precede upcoming use of a related function.
15012 2009-02-11 Jim Meyering <meyering@redhat.com>
15014 fts: correct internal computation of nlinks (optimization-related)
15015 * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
15016 whether the current entry is a directory, so don't test it.
15018 2009-02-10 Bruno Haible <bruno@clisp.org>
15020 Tests for module 'uniwbrk/ulc-wordbreaks'.
15021 * modules/uniwbrk/ulc-wordbreaks-tests: New file.
15022 * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
15023 * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
15025 Tests for module 'uniwbrk/u32-wordbreaks'.
15026 * modules/uniwbrk/u32-wordbreaks-tests: New file.
15027 * tests/uniwbrk/test-u32-wordbreaks.c: New file.
15029 Tests for module 'uniwbrk/u16-wordbreaks'.
15030 * modules/uniwbrk/u16-wordbreaks-tests: New file.
15031 * tests/uniwbrk/test-u16-wordbreaks.c: New file.
15033 Tests for module 'uniwbrk/u8-wordbreaks'.
15034 * modules/uniwbrk/u8-wordbreaks-tests: New file.
15035 * tests/uniwbrk/test-u8-wordbreaks.c: New file.
15037 2009-02-10 Bruno Haible <bruno@clisp.org>
15039 * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
15041 * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
15042 * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
15043 * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
15045 2009-02-10 Simon Josefsson <simon@josefsson.org>
15047 * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
15048 inline keywords. Reported by Bruno Haible <bruno@clisp.org>.
15050 2009-02-10 Bruno Haible <bruno@clisp.org>
15052 * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
15053 * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
15054 * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
15055 * lib/unilbrk/u8-possible-linebreaks.c: Update.
15056 * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
15057 * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
15059 2009-02-09 Simon Josefsson <simon@josefsson.org>
15061 * lib/sockets.h (gl_fd_to_handle): New function.
15063 * tests/test-sockets.c: Call gl_fd_to_handle.
15065 2009-02-09 Bruno Haible <bruno@clisp.org>
15067 * doc/havelib.texi: Document the conventions on bi-arch systems.
15069 2009-02-08 Bruno Haible <bruno@clisp.org>
15071 Document the AC_LIB_LINKFLAGS macro.
15072 * doc/havelib.texi: New file, mostly written on 2005-05-24.
15073 * doc/gnulib.texi: Include it.
15075 2009-02-08 Bruno Haible <bruno@clisp.org>
15077 Fix wrong order of sections, compared to TOC.
15078 * doc/gnulib.texi: Include relocatable-maint.texi after the
15079 "Regular expressions" node, not before.
15081 2009-02-08 Bruno Haible <bruno@clisp.org>
15083 Tests for module 'unicase/totitle'.
15084 * modules/unicase/totitle-tests: New file.
15086 Tests for module 'unicase/tolower'.
15087 * modules/unicase/tolower-tests: New file.
15089 Tests for module 'unicase/toupper'.
15090 * modules/unicase/toupper-tests: New file.
15091 * tests/unicase/test-mapping-part1.h: New file.
15092 * tests/unicase/test-mapping-part2.h: New file.
15094 New module 'unicase/totitle'.
15095 * modules/unicase/totitle: New file.
15096 * lib/unicase/totitle.c: New file.
15098 New module 'unicase/tolower'.
15099 * modules/unicase/tolower: New file.
15100 * lib/unicase/tolower.c: New file.
15102 New module 'unicase/toupper'.
15103 * modules/unicase/toupper: New file.
15104 * lib/unicase/toupper.c: New file.
15105 * lib/unicase/simple-mapping.h: New file.
15107 * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
15108 (mapping_table): New structure.
15109 (output_simple_mapping): New function.
15110 (main): Invoke output_simple_mapping_test and output_simple_mapping.
15111 * modules/gen-uni-tables (Description): Update.
15112 * lib/unicase/toupper.h: New file, automatically generated by
15114 * lib/unicase/tolower.h: New file, automatically generated by
15116 * lib/unicase/totitle.h: New file, automatically generated by
15118 * tests/unicase/test-uc_toupper.c: New file, automatically generated by
15120 * tests/unicase/test-uc_tolower.c: New file, automatically generated by
15122 * tests/unicase/test-uc_totitle.c: New file, automatically generated by
15125 New module 'unicase/base'.
15126 * modules/unicase/base: New file.
15127 * lib/unicase.h: New file.
15129 2009-02-08 Bruno Haible <bruno@clisp.org>
15131 New module 'uniwbrk/ulc-wordbreaks'.
15132 * modules/uniwbrk/ulc-wordbreaks: New file.
15133 * lib/uniwbrk/ulc-wordbreaks.c: New file.
15135 New module 'uniwbrk/u32-wordbreaks'.
15136 * modules/uniwbrk/u32-wordbreaks: New file.
15137 * lib/uniwbrk/u32-wordbreaks.c: New file.
15139 New module 'uniwbrk/u16-wordbreaks'.
15140 * modules/uniwbrk/u16-wordbreaks: New file.
15141 * lib/uniwbrk/u16-wordbreaks.c: New file.
15143 New module 'uniwbrk/u8-wordbreaks'.
15144 * modules/uniwbrk/u8-wordbreaks: New file.
15145 * lib/uniwbrk/u8-wordbreaks.c: New file.
15146 * lib/uniwbrk/u-wordbreaks.h: New file.
15148 New module 'uniwbrk/table'.
15149 * modules/uniwbrk/table: New file.
15150 * lib/uniwbrk/wbrktable.h: New file.
15151 * lib/uniwbrk/wbrktable.c: New file.
15153 New module 'uniwbrk/wordbreak-property'.
15154 * modules/uniwbrk/wordbreak-property: New file.
15155 * lib/uniwbrk/wordbreak-property.c: New file.
15157 * lib/gen-uni-tables.c (WBP_*): New enum items.
15158 (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
15159 (unicode_org_wbp): New variable.
15160 (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
15162 (wbp_table): New structure.
15163 (output_wbp, output_wbrk_tables): New functions.
15164 (main): Accept additional argument. Invoke fill_org_wbp,
15165 debug_output_wbrk_tables, debug_output_org_wbrk_tables,
15166 output_wbrk_tables.
15167 * modules/gen-uni-tables (Description): Update.
15168 * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
15171 New module 'uniwbrk/base'.
15172 * modules/uniwbrk/base: New file.
15173 * lib/uniwbrk.h: New file.
15175 2009-02-08 Bruno Haible <bruno@clisp.org>
15177 Update to Unicode 5.1.0.
15178 * lib/gen-uni-tables.c (is_property_alphabetic): Include
15180 (is_property_default_ignorable_code_point): Don't include characters
15181 of category Cc or Cs and not-a-characters.
15182 (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
15183 U+0D79, U+109E, U+109F, U+A60C.
15184 * lib/unictype/bidi_of.h: Regenerated.
15185 * lib/unictype/blocks.h: Regenerated.
15186 * lib/unictype/categ_C.h: Regenerated.
15187 * lib/unictype/categ_Cf.h: Regenerated.
15188 * lib/unictype/categ_Cn.h: Regenerated.
15189 * lib/unictype/categ_L.h: Regenerated.
15190 * lib/unictype/categ_Ll.h: Regenerated.
15191 * lib/unictype/categ_Lm.h: Regenerated.
15192 * lib/unictype/categ_Lo.h: Regenerated.
15193 * lib/unictype/categ_Lu.h: Regenerated.
15194 * lib/unictype/categ_M.h: Regenerated.
15195 * lib/unictype/categ_Mc.h: Regenerated.
15196 * lib/unictype/categ_Me.h: Regenerated.
15197 * lib/unictype/categ_Mn.h: Regenerated.
15198 * lib/unictype/categ_N.h: Regenerated.
15199 * lib/unictype/categ_Nd.h: Regenerated.
15200 * lib/unictype/categ_Nl.h: Regenerated.
15201 * lib/unictype/categ_No.h: Regenerated.
15202 * lib/unictype/categ_P.h: Regenerated.
15203 * lib/unictype/categ_Pd.h: Regenerated.
15204 * lib/unictype/categ_Pe.h: Regenerated.
15205 * lib/unictype/categ_Pf.h: Regenerated.
15206 * lib/unictype/categ_Pi.h: Regenerated.
15207 * lib/unictype/categ_Po.h: Regenerated.
15208 * lib/unictype/categ_Ps.h: Regenerated.
15209 * lib/unictype/categ_S.h: Regenerated.
15210 * lib/unictype/categ_Sk.h: Regenerated.
15211 * lib/unictype/categ_Sm.h: Regenerated.
15212 * lib/unictype/categ_So.h: Regenerated.
15213 * lib/unictype/categ_of.h: Regenerated.
15214 * lib/unictype/combining.h: Regenerated.
15215 * lib/unictype/ctype_alnum.h: Regenerated.
15216 * lib/unictype/ctype_alpha.h: Regenerated.
15217 * lib/unictype/ctype_graph.h: Regenerated.
15218 * lib/unictype/ctype_lower.h: Regenerated.
15219 * lib/unictype/ctype_print.h: Regenerated.
15220 * lib/unictype/ctype_punct.h: Regenerated.
15221 * lib/unictype/ctype_upper.h: Regenerated.
15222 * lib/unictype/decdigit.h: Regenerated.
15223 * lib/unictype/digit.h: Regenerated.
15224 * lib/unictype/mirror.h: Regenerated.
15225 * lib/unictype/numeric.h: Regenerated.
15226 * lib/unictype/pr_alphabetic.h: Regenerated.
15227 * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
15228 * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
15229 * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
15230 * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
15231 * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
15232 * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
15233 * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
15234 * lib/unictype/pr_combining.h: Regenerated.
15235 * lib/unictype/pr_dash.h: Regenerated.
15236 * lib/unictype/pr_decimal_digit.h: Regenerated.
15237 * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
15238 * lib/unictype/pr_deprecated.h: Regenerated.
15239 * lib/unictype/pr_diacritic.h: Regenerated.
15240 * lib/unictype/pr_extender.h: Regenerated.
15241 * lib/unictype/pr_format_control.h: Regenerated.
15242 * lib/unictype/pr_grapheme_base.h: Regenerated.
15243 * lib/unictype/pr_grapheme_extend.h: Regenerated.
15244 * lib/unictype/pr_grapheme_link.h: Regenerated.
15245 * lib/unictype/pr_id_continue.h: Regenerated.
15246 * lib/unictype/pr_id_start.h: Regenerated.
15247 * lib/unictype/pr_ideographic.h: Regenerated.
15248 * lib/unictype/pr_ignorable_control.h: Regenerated.
15249 * lib/unictype/pr_lowercase.h: Regenerated.
15250 * lib/unictype/pr_math.h: Regenerated.
15251 * lib/unictype/pr_numeric.h: Regenerated.
15252 * lib/unictype/pr_other_alphabetic.h: Regenerated.
15253 * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
15254 * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
15255 * lib/unictype/pr_other_id_continue.h: Regenerated.
15256 * lib/unictype/pr_other_lowercase.h: Regenerated.
15257 * lib/unictype/pr_other_math.h: Regenerated.
15258 * lib/unictype/pr_punctuation.h: Regenerated.
15259 * lib/unictype/pr_sentence_terminal.h: Regenerated.
15260 * lib/unictype/pr_soft_dotted.h: Regenerated.
15261 * lib/unictype/pr_terminal_punctuation.h: Regenerated.
15262 * lib/unictype/pr_unassigned_code_value.h: Regenerated.
15263 * lib/unictype/pr_unified_ideograph.h: Regenerated.
15264 * lib/unictype/pr_uppercase.h: Regenerated.
15265 * lib/unictype/pr_xid_continue.h: Regenerated.
15266 * lib/unictype/pr_xid_start.h: Regenerated.
15267 * lib/unictype/pr_zero_width.h: Regenerated.
15268 * lib/unictype/scripts.h: Regenerated.
15269 * lib/unictype/scripts_byname.gperf: Regenerated.
15270 * lib/unictype/sy_java_ident.h: Regenerated.
15271 * lib/unilbrk/lbrkprop1.h: Regenerated.
15272 * lib/unilbrk/lbrkprop2.h: Regenerated.
15273 * tests/unictype/test-categ_C.c: Regenerated.
15274 * tests/unictype/test-categ_Cf.c: Regenerated.
15275 * tests/unictype/test-categ_Cn.c: Regenerated.
15276 * tests/unictype/test-categ_L.c: Regenerated.
15277 * tests/unictype/test-categ_Ll.c: Regenerated.
15278 * tests/unictype/test-categ_Lm.c: Regenerated.
15279 * tests/unictype/test-categ_Lo.c: Regenerated.
15280 * tests/unictype/test-categ_Lu.c: Regenerated.
15281 * tests/unictype/test-categ_M.c: Regenerated.
15282 * tests/unictype/test-categ_Mc.c: Regenerated.
15283 * tests/unictype/test-categ_Me.c: Regenerated.
15284 * tests/unictype/test-categ_Mn.c: Regenerated.
15285 * tests/unictype/test-categ_N.c: Regenerated.
15286 * tests/unictype/test-categ_Nd.c: Regenerated.
15287 * tests/unictype/test-categ_Nl.c: Regenerated.
15288 * tests/unictype/test-categ_No.c: Regenerated.
15289 * tests/unictype/test-categ_P.c: Regenerated.
15290 * tests/unictype/test-categ_Pd.c: Regenerated.
15291 * tests/unictype/test-categ_Pe.c: Regenerated.
15292 * tests/unictype/test-categ_Pf.c: Regenerated.
15293 * tests/unictype/test-categ_Pi.c: Regenerated.
15294 * tests/unictype/test-categ_Po.c: Regenerated.
15295 * tests/unictype/test-categ_Ps.c: Regenerated.
15296 * tests/unictype/test-categ_S.c: Regenerated.
15297 * tests/unictype/test-categ_Sk.c: Regenerated.
15298 * tests/unictype/test-categ_Sm.c: Regenerated.
15299 * tests/unictype/test-categ_So.c: Regenerated.
15300 * tests/unictype/test-ctype_alnum.c: Regenerated.
15301 * tests/unictype/test-ctype_alpha.c: Regenerated.
15302 * tests/unictype/test-ctype_graph.c: Regenerated.
15303 * tests/unictype/test-ctype_lower.c: Regenerated.
15304 * tests/unictype/test-ctype_print.c: Regenerated.
15305 * tests/unictype/test-ctype_punct.c: Regenerated.
15306 * tests/unictype/test-ctype_upper.c: Regenerated.
15307 * tests/unictype/test-decdigit.h: Regenerated.
15308 * tests/unictype/test-digit.h: Regenerated.
15309 * tests/unictype/test-numeric.h: Regenerated.
15310 * tests/unictype/test-pr_alphabetic.c: Regenerated.
15311 * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
15312 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
15313 * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
15314 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
15315 * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
15316 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
15317 * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
15318 * tests/unictype/test-pr_combining.c: Regenerated.
15319 * tests/unictype/test-pr_dash.c: Regenerated.
15320 * tests/unictype/test-pr_decimal_digit.c: Regenerated.
15321 * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
15322 * tests/unictype/test-pr_deprecated.c: Regenerated.
15323 * tests/unictype/test-pr_diacritic.c: Regenerated.
15324 * tests/unictype/test-pr_extender.c: Regenerated.
15325 * tests/unictype/test-pr_format_control.c: Regenerated.
15326 * tests/unictype/test-pr_grapheme_base.c: Regenerated.
15327 * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
15328 * tests/unictype/test-pr_grapheme_link.c: Regenerated.
15329 * tests/unictype/test-pr_id_continue.c: Regenerated.
15330 * tests/unictype/test-pr_id_start.c: Regenerated.
15331 * tests/unictype/test-pr_ideographic.c: Regenerated.
15332 * tests/unictype/test-pr_ignorable_control.c: Regenerated.
15333 * tests/unictype/test-pr_lowercase.c: Regenerated.
15334 * tests/unictype/test-pr_math.c: Regenerated.
15335 * tests/unictype/test-pr_numeric.c: Regenerated.
15336 * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
15337 * tests/unictype/test-pr_other_default_ignorable_code_point.c:
15339 * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
15340 * tests/unictype/test-pr_other_id_continue.c: Regenerated.
15341 * tests/unictype/test-pr_other_lowercase.c: Regenerated.
15342 * tests/unictype/test-pr_other_math.c: Regenerated.
15343 * tests/unictype/test-pr_punctuation.c: Regenerated.
15344 * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
15345 * tests/unictype/test-pr_soft_dotted.c: Regenerated.
15346 * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
15347 * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
15348 * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
15349 * tests/unictype/test-pr_uppercase.c: Regenerated.
15350 * tests/unictype/test-pr_xid_continue.c: Regenerated.
15351 * tests/unictype/test-pr_xid_start.c: Regenerated.
15352 * tests/unictype/test-pr_zero_width.c: Regenerated.
15354 Update to Unicode 5.1.0.
15355 * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
15356 U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
15357 U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
15358 U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
15359 U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
15360 U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
15361 U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
15362 U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
15363 U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
15364 (nonspacing_table_ind): Update.
15365 * tests/uniwidth/test-uc_width2.sh: Update expected result.
15367 Update to Unicode 5.1.0.
15368 * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
15370 * lib/uniname/uniname.c (unicode_character_name,
15371 unicode_name_character): Add the range 0x1Fxxx to the code transform.
15372 * lib/uniname/uninames.h: Regenerated.
15373 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
15375 2009-02-07 Bruno Haible <bruno@clisp.org>
15377 Merge gen-ctype and gen-lbrk into a single program.
15378 * lib/gen-uni-tables.c: New file, incorporating
15379 lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
15380 Add directory prefixes to the names of the generated files.
15381 * lib/unictype/gen-ctype.c: Remove file.
15382 * lib/unilbrk/gen-lbrk.c: Remove file.
15383 * modules/gen-uni-tables: New file.
15384 * modules/unictype/gen-ctype: Remove file.
15385 * modules/unilbrk/gen-lbrk: Remove file.
15387 2009-02-07 Bruno Haible <bruno@clisp.org>
15389 * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
15391 New module 'unistr/u32-strcoll'.
15392 * modules/unistr/u32-strcoll: New file.
15393 * lib/unistr/u32-strcoll.c: New file.
15395 New module 'unistr/u16-strcoll'.
15396 * modules/unistr/u16-strcoll: New file.
15397 * lib/unistr/u16-strcoll.c: New file.
15399 New module 'unistr/u8-strcoll'.
15400 * modules/unistr/u8-strcoll: New file.
15401 * lib/unistr/u8-strcoll.c: New file.
15402 * lib/unistr/u-strcoll.h: New file.
15404 2009-02-07 Bruno Haible <bruno@clisp.org>
15406 * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
15407 * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
15408 * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
15409 * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
15410 * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
15411 * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
15413 2009-02-07 Bruno Haible <bruno@clisp.org>
15416 * lib/unictype/gen-ctype.c (output_predicate, output_category,
15417 output_combclass, output_bidi_category, output_decimal_digit,
15418 output_digit, output_numeric, output_mirror, output_scripts,
15419 output_ident_category): Use proper width specifier in format strings.
15421 2009-02-07 Bruno Haible <bruno@clisp.org>
15423 * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
15426 2009-02-07 Jim Meyering <meyering@redhat.com>
15428 regex: avoid compilation failure with upcoming gcc-4.4
15429 * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
15430 [workaround for PGC prior to 6.1-2]. Otherwise, we'd get this:
15431 "... error: integer overflow in preprocessor expression".
15433 2009-02-05 Ben Pfaff <blp@gnu.org>
15435 Fix link errors on Windows when close module is used.
15436 * modules/close: Add $(LIB_CLOSE) to Link section.
15437 * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
15438 $(LIB_CLOSE) on Windows.
15440 2009-02-05 Jim Meyering <meyering@redhat.com>
15442 still avoid unused-parameter warnings, but do it cleanly
15443 * lib/fsusage.c (UNUSED_PARAM): Remove definition.
15444 (get_fs_usage): Cast to void instead.
15445 * lib/mountlist.c (UNUSED_PARAM): Remove definition.
15446 (dev_from_mount_options, read_file_system_list): Cast to void.
15447 Prompted by Bruno Haible.
15449 2009-02-04 Jim Meyering <meyering@redhat.com>
15451 fsusage.c: correct copyright year
15452 * lib/fsusage.c: Reflect year in which the change is pushed into
15454 avoid misc. warnings
15455 * lib/fsusage.c (UNUSED_PARAM): Define.
15456 (get_fs_usage): Mark parameter "disk" as unused.
15457 * lib/getugroups.c (getgrent): Use "void" in prototype.
15458 * lib/mountlist.c: Mark unused parameters.
15459 (read_file_system_list): Declare a local with "const".
15460 * lib/nanosleep.c (getnow): Declare static.
15461 * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
15463 dirfd: set errno upon failure
15464 * lib/dirfd.c: Include <errno.h>.
15465 Set errno to ENOTSUP when returning -1.
15466 * modules/dirfd (Depends-on): Add errno.
15467 Suggested by John Kodis <kodis@comcast.net>.
15469 2009-02-01 Bruno Haible <bruno@clisp.org>
15471 Don't assume sizeof (long) >= sizeof (void *).
15472 * lib/memcmp.c: Include stdint.h.
15473 (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
15474 srcp2 to 'const byte *'.
15475 (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
15476 types to uintptr_t.
15477 (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
15478 * modules/memcmp (Depends-on): Add stdint.
15479 Reported by Ozkan Sezer <sezeroz@gmail.com>.
15481 2009-01-30 Eric Blake <ebb9@byu.net>
15483 fix more require-before-expand issues
15484 * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
15485 expand, AC_PROG_AWK.
15486 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
15488 2009-01-28 Eric Blake <ebb9@byu.net>
15490 version-etc: use consistent URL formatting
15491 * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
15492 Improve formatting. Use fputs for string without %.
15494 2009-01-28 Jim Meyering <meyering@redhat.com>
15496 00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
15497 * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
15498 "underquoted definition of NAME" from autoconf-2.59.
15500 2009-01-28 Bruno Haible <bruno@clisp.org>
15502 * doc/gnulib.texi: Add "Obsolete modules" to index.
15504 2009-01-28 Jim Meyering <meyering@redhat.com>
15506 useless-if-before-free: recognize more variants
15507 * build-aux/useless-if-before-free: Also recognize e.g.,
15508 if (NULL != p) free (p);
15510 2009-01-27 Mark McLoughlin <markmc@redhat.com>
15512 test-getaddrinfo: skip (don't fail) this test when there's no network
15513 * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
15514 on the presumption that it means you lack network access.
15516 2009-01-26 Jim Meyering <meyering@redhat.com>
15518 fflush: avoid warnings on modern systems
15519 * lib/fflush.c (rpl_fflush): Move declarations of locals,
15520 pos and result, into scopes where they're used.
15522 2009-01-26 Eric Blake <ebb9@byu.net>
15524 Silence warning reintroduced by recent extensions patch.
15525 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
15526 (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
15529 Backport improved autoconf semantics of AC_DEFUN_ONCE.
15530 * m4/00gnulib.m4: New file.
15531 * gnulib-tool (func_get_filelist): Always use it.
15532 * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
15533 Reported by Bruno Haible, with suggestions from Paolo Bonzini.
15535 2009-01-25 Bruno Haible <bruno@clisp.org>
15537 Make test-quotearg work on MacOS X and AIX.
15538 * tests/test-quotearg.sh: New file.
15539 * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
15540 * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
15541 * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
15542 include <libintl.h>.
15543 (fake_locale): Remove variable.
15544 (gettext, dgettext, dcgettext): Remove functions.
15545 (main): Instead of setting a fake locale, set a real locale. Call
15546 textdomain and bindtextdomain.
15547 * modules/quotearg-tests (Files): Add the new files.
15548 (Depends-on): Add gettext, setenv, unsetenv.
15549 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
15550 (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
15551 Augment TESTS_ENVIRONMENT.
15553 2009-01-25 Bruno Haible <bruno@clisp.org>
15555 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
15556 fr_FR.ISO8859-1 locale on MacOS X.
15557 * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
15558 ja_JP.eucJP locale on MacOS X.
15559 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
15560 zh_CN.GB18030 locale on MacOS X.
15562 2009-01-25 Bruno Haible <bruno@clisp.org>
15564 Avoid link errors on MacOS X 10.3.
15565 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
15566 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
15568 2009-01-25 Bruno Haible <bruno@clisp.org>
15570 * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
15571 * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
15572 * modules/pipe (Files): Remove m4/posix_spawn.m4.
15573 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
15574 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
15575 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
15576 posix_spawnattr_init, posix_spawnattr_setsigmask,
15577 posix_spawnattr_setflags, posix_spawnattr_destroy.
15579 * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
15580 * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
15581 * modules/execute (Files): Remove m4/posix_spawn.m4.
15582 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
15583 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
15584 posix_spawnattr_init, posix_spawnattr_setsigmask,
15585 posix_spawnattr_setflags, posix_spawnattr_destroy.
15587 2009-01-25 Bruno Haible <bruno@clisp.org>
15589 * lib/glthread/threadlib.c: Include <stdlib.h>.
15591 2009-01-25 Bruno Haible <bruno@clisp.org>
15593 * lib/glthread/threadlib.c (dummy): New declaration.
15595 2009-01-25 Bruno Haible <bruno@clisp.org>
15597 * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
15598 multibyte characters also for the GB18030 encoding. Don't crash when
15599 the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
15601 2009-01-25 Bruno Haible <bruno@clisp.org>
15603 Avoid redefining 'struct random_data' on OSF/1 5.1.
15604 * lib/stdlib.in.h: Include <random.h> if it exists.
15605 * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
15606 HAVE_RANDOM_H. Include <random.h> when testing whether
15607 'struct random_data' exists.
15608 * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
15610 2009-01-25 Bruno Haible <bruno@clisp.org>
15612 Don't install charset.alias on MacOS X >= 10.3.
15613 * lib/localcharset.c (DARWIN7): New macro.
15614 (get_charset_aliases): Hardcode the result for Darwin7.
15615 * modules/localcharset (install-exec-local): Don't install
15616 charset.alias on MacOS X >= 10.3, if the file does not yet exist.
15618 2009-01-25 Bruno Haible <bruno@clisp.org>
15620 Don't install charset.alias on mingw and Cygwin.
15621 * modules/localcharset (install-exec-local): Don't install
15622 charset.alias on mingw and Cygwin, if the file does not yet exist.
15623 The result for these platforms is hardcoded in localcharset.c.
15625 2009-01-25 Bruno Haible <bruno@clisp.org>
15627 Make it possible again to use AC_GNU_SOURCE together with gnulib.
15628 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
15629 before requiring AC_USE_SYSTEM_EXTENSIONS.
15631 2009-01-25 Jim Meyering <meyering@redhat.com>
15633 c-strtod: avoid warnings
15634 * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
15635 "assignment discards qualifiers from pointer target type" warnings.
15637 2009-01-24 Bruno Haible <bruno@clisp.org>
15639 Add support for non-UTF-8 locales on MacOS X.
15640 * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
15641 canonical encodings. For Darwin 7 and newer, don't map traditional
15642 encodings to UTF-8.
15643 Reported by Vincent Lefevre <vincent@vinc17.org>
15644 at <http://savannah.gnu.org/bugs/?25235>.
15646 2009-01-24 Bruno Haible <bruno@clisp.org>
15648 * doc/gnulib.texi (Obsolete modules): New section.
15649 Reported by Mike Frysinger <vapier@gentoo.org>.
15651 2009-01-24 Bruno Haible <bruno@clisp.org>
15653 * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
15656 2009-01-24 Bruno Haible <bruno@clisp.org>
15658 * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
15659 Reported by Eric Blake.
15661 2009-01-24 Bruno Haible <bruno@clisp.org>
15663 * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
15664 set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
15665 Reported by Gary V. Vaughan <gary@gnu.org>.
15667 2009-01-24 Bruno Haible <bruno@clisp.org>
15669 * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
15671 2009-01-23 Bruno Haible <bruno@clisp.org>
15673 Make c-strtod, c-strtold usable in libraries.
15674 * lib/c-strtod.c: Include string.h instead of xalloc.h.
15675 (C_STRTOD): Call strdup instead of xstrdup.
15676 * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
15677 * modules/c-strtold (Depends-on): Likewise.
15678 * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
15679 * NEWS: Mention the change.
15680 Reported by Michael Gold <mgold@ncf.ca>.
15682 2009-01-23 Jim Meyering <meyering@redhat.com>
15684 c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
15685 * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
15686 ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
15688 2009-01-23 Simon Josefsson <simon@josefsson.org>
15690 * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
15692 * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
15693 * modules/version-etc (Description): Update.
15695 2009-01-22 Bruno Haible <bruno@clisp.org>
15697 Cache the C locale object.
15698 * lib/c-strtod.c (c_locale_cache): New variable.
15699 (c_locale): New function.
15700 (C_STRTOD): Use it, and don't call freelocale.
15701 * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
15702 Suggested by Paolo Bonzini.
15704 2009-01-21 Bruno Haible <bruno@clisp.org>
15706 * lib/getloadavg.c (getloadavg): Check c_strtod result against error
15707 conditions other than overflow.
15709 2009-01-21 Bruno Haible <bruno@clisp.org>
15711 * lib/c-strtod.c: Include errno.h.
15712 (C_STRTOD): Check against NULL return from newlocale. Preserve errno
15713 value from STRTOD_L and STRTOD.
15715 2009-01-21 Bruno Haible <bruno@clisp.org>
15716 and Jim Meyering <meyering@redhat.com>
15718 nanosleep: skip configure test (fail it) for apple universal builds
15719 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
15720 universal builds, assume that nanosleep does not work.
15721 * modules/nanosleep (Depends-on): Add multiarch.
15723 mktime: skip configure test (fail it) for apple universal builds
15724 * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
15725 universal builds, assume that mktime does not work.
15726 * modules/mktime (Depends-on): Add multiarch.
15728 2009-01-21 Eric Blake <ebb9@byu.net>
15730 multiarch: avoid expand-before-require warning
15731 * modules/multiarch (configure.ac): Require, rather than expand,
15733 * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
15734 (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
15735 enforce that all clients require it. Partial reversion of
15738 error: avoid expand-before-require warning
15739 * modules/errno (configure.ac): Require, rather than expand,
15741 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
15742 (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
15743 enforce that all clients require it.
15745 gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
15746 * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
15747 obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
15748 and rely solely on gl_USE_SYSTEM_EXTENSIONS.
15750 2009-01-21 Paolo Bonzini <bonzini@gnu.org>
15753 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
15755 regex: do not depend on obsolete modules.
15756 * modules/regex: Remove memcmp and memmove.
15758 2009-01-20 Bruno Haible <bruno@clisp.org>
15760 Make the 'link' module link on Windows NT 4.
15761 * lib/link.c (_WIN32_WINNT): Don't define.
15762 (CreateHardLinkFuncType): New type.
15763 (CreateHardLinkFunc, initialized): New variables.
15764 (initialize): New function.
15765 (link): Invoke CreateHardLink indirectly through the function pointer.
15767 2009-01-20 Bruno Haible <bruno@clisp.org>
15769 Fix compilation failure on mingw.
15770 * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
15772 2009-01-20 Michael Gold <mgold@ncf.ca> (tiny change)
15774 * doc/c-strtod.texi: Mention a couple of restrictions.
15776 2009-01-20 Jim Meyering <meyering@redhat.com>
15778 gettimeofday: move more declarations out of functions
15779 * lib/gettimeofday.c: Move extern declarations of tzset and
15780 gmtime out of containing functions. Prompted by Bruno Haible.
15782 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
15784 regex: do not depend on obsolete modules.
15785 * modules/regex: Remove memcmp and memmove.
15787 2009-01-19 Bruno Haible <bruno@clisp.org>
15789 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
15790 * modules/uniconv/u16-conv-from-enc (configure.ac): Require
15791 gl_BIGENDIAN, not AC_C_BIGENDIAN.
15792 * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
15793 * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
15795 2009-01-19 Bruno Haible <bruno@clisp.org>
15797 * tests/test-link.c: Include <errno.h>.
15798 (main): Exit with code 77 when a hard link cannot be created due to
15800 * tests/test-link.sh: Skip test when a hard link cannot be created due
15801 to the file system.
15802 Suggested by Eric Blake.
15804 2009-01-19 Martin Lambers <marlam@marlam.de>
15806 * modules/link-tests: New file.
15807 * tests/test-link.sh: New file.
15808 * tests/test-link.c: New file.
15810 2009-01-19 Eric Blake <ebb9@byu.net>
15812 doc: mention another function added in cygwin 1.7.0
15813 * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
15814 Another new function in cygwin 1.7.
15816 2009-01-19 Bruno Haible <bruno@clisp.org>
15818 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
15819 * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
15820 * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
15821 gl_BIGENDIAN, not AC_C_BIGENDIAN.
15822 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
15823 * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
15824 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15825 * m4/md4.m4 (gl_MD4): Likewise.
15826 * m4/md5.m4 (gl_MD5): Likewise.
15827 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
15828 * m4/sha1.m4 (gl_SHA1): Likewise.
15829 * m4/sha256.m4 (gl_SHA256): Likewise.
15830 * m4/sha512.m4 (gl_SHA512): Likewise.
15832 2009-01-19 Bruno Haible <bruno@clisp.org>
15834 * modules/uniname/uniname-tests (Depends-on): Add progname.
15835 * tests/uniname/test-uninames.c: Include progname.h.
15836 (main): Call set_program_name.
15838 * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
15839 * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
15840 (main): Call set_program_name.
15842 * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
15843 * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
15844 (main): Call set_program_name.
15846 * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
15847 * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
15848 (main): Call set_program_name.
15850 * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
15851 * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
15852 (main): Call set_program_name.
15854 * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
15855 * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
15856 (main): Call set_program_name.
15858 * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
15859 * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
15860 (main): Call set_program_name.
15862 * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
15863 * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
15864 (main): Call set_program_name.
15866 * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
15867 * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
15868 (main): Call set_program_name.
15870 2009-01-19 Eric Blake <ebb9@byu.net>
15872 test-unistd: test previous patch
15873 * tests/test-unistd.c: Test *_FILENO macros.
15875 unistd: guarantee STDIN_FILENO here, for OS/2 EMX
15876 * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15877 Guarantee a definition.
15878 * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
15879 * modules/unistd-safer (Depends-on): Add dependency on unistd.
15880 * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
15881 * lib/dup-safer.c (STDERR_FILENO): Likewise.
15882 * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15884 * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
15885 * lib/fopen-safer.c (STDERR_FILENO): Likewise.
15886 * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15888 * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
15889 * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
15890 (STDERR_FILENO): Likewise.
15891 * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
15892 (STDERR_FILENO): Likewise.
15893 * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
15894 (STDERR_FILENO): Likewise.
15895 Reported by Elbert Pol.
15897 2009-01-19 Eric Blake <ebb9@byu.net>
15899 doc: mention more functions added in cygwin 1.7.0
15900 * doc/posix-functions/abort.texi (abort): Update wording related
15902 * doc/posix-functions/daylight.texi (daylight): Likewise.
15903 * doc/posix-functions/optarg.texi (optarg): Likewise.
15904 * doc/posix-functions/optarg.texi (opterr): Likewise.
15905 * doc/posix-functions/optarg.texi (optind): Likewise.
15906 * doc/posix-functions/optarg.texi (optopt): Likewise.
15907 * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
15908 worked in 1.5.x, and was withdrawn in 1.7.
15909 * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15910 * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
15912 * doc/posix-functions/perror.texi (perror): Likewise.
15913 * doc/posix-functions/printf.texi (printf): Likewise.
15914 * doc/posix-functions/snprintf.texi (snprintf): Likewise.
15915 * doc/posix-functions/sprintf.texi (sprintf): Likewise.
15916 * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15917 * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15918 * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15919 * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
15920 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
15922 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
15924 * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
15926 * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
15927 * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
15929 * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
15930 * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
15931 * doc/posix-functions/confstr.texi (confstr): Likewise.
15932 * doc/posix-functions/dprintf.texi (dprintf): Likewise.
15933 * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
15934 * doc/posix-functions/fgetws.texi (fgetws): Likewise.
15935 * doc/posix-functions/fputwc.texi (fputwc): Likewise.
15936 * doc/posix-functions/fputws.texi (fputws): Likewise.
15937 * doc/posix-functions/fwide.texi (fwide): Likewise.
15938 * doc/posix-functions/getwc.texi (getwc): Likewise.
15939 * doc/posix-functions/getwchar.texi (getwchar): Likewise.
15940 * doc/posix-functions/putwc.texi (putwc): Likewise.
15941 * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15942 * doc/posix-functions/sigignore.texi (sigignore): Likewise.
15943 * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
15944 * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15945 * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
15946 * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
15947 * doc/posix-functions/wcstol.texi (wcstol): Likewise.
15948 * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
15949 * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
15950 * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
15951 * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
15953 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
15955 ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
15956 * lib/ioctl.c: Include <sys/ioctl.h>.
15958 2009-01-19 Simon Josefsson <simon@josefsson.org>
15960 * modules/getdate-tests (Depends-on): Add progname.
15961 * tests/test-getdate.c: Use progname module, to avoid link errors
15962 on non-glibc systems.
15964 2009-01-18 Simon Josefsson <simon@josefsson.org>
15966 * modules/filenamecat-tests (Depends-on): Add progname.
15967 * modules/fstrcmp-tests (Depends-on): Likewise.
15969 * tests/test-filenamecat.c: Use progname module, to avoid link
15970 errors on non-glibc systems.
15971 * tests/test-fstrcmp.c: Likewise.
15973 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
15975 gettimeofday: avoid warning: nested extern declaration of 'localtime'
15976 * lib/gettimeofday.c: Move extern declaration out of function.
15978 2009-01-18 Bruno Haible <bruno@clisp.org>
15980 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
15981 * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
15982 (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
15984 2009-01-18 Bruno Haible <bruno@clisp.org>
15986 * lib/strftime.c (MEMPCPY): Remove unused macro.
15987 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
15989 2009-01-18 Martin Lambers <marlam@marlam.de>
15992 * lib/unistd.in.h (link): New declaration.
15993 * lib/link.c: New file.
15994 * m4/link.m4: New file.
15995 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
15997 * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
15998 * modules/link: New file.
15999 * doc/posix-functions/link.texi: Mention the new module.
16001 2009-01-18 Bruno Haible <bruno@clisp.org>
16003 * tests/test-avltree_list.c (main): Call set_program_name.
16004 * tests/test-avltree_oset.c (main): Likewise.
16005 * tests/test-obstack-printf.c: Include progname.h.
16006 (main): Call set_program_name.
16007 * tests/test-quotearg.c: Include progname.h.
16008 (main): Call set_program_name.
16009 * tests/test-xmemdup0.c: Include progname.h.
16010 (main): Call set_program_name.
16012 2009-01-18 Bruno Haible <bruno@clisp.org>
16014 New module 'alphasort'.
16015 * lib/dirent.in.h (alphasort): New declaration.
16016 * lib/alphasort.c: New file, from glibc with modifications.
16017 * m4/alphasort.m4: New file.
16018 * modules/alphasort: New file.
16019 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
16021 * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
16023 * doc/posix-functions/alphasort.texi: Mention the new module and the
16024 portability problems.
16026 2009-01-18 Bruno Haible <bruno@clisp.org>
16028 New module 'scandir'.
16029 * lib/dirent.in.h (scandir): New declaration.
16030 * lib/scandir.c: New file, from glibc with modifications.
16031 * m4/scandir.m4: New file.
16032 * modules/scandir: New file.
16033 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
16035 * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
16037 * doc/posix-functions/scandir.texi: Mention the new module and the
16038 portability problems.
16040 2009-01-17 Bruno Haible <bruno@clisp.org>
16042 * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
16043 Update documentation.
16044 (func_remove_suffix): Escape all dots in the suffix. Update
16046 (func_filter_filelist): Update documentation.
16047 Reported by Ralf Wildenhues.
16049 2009-01-17 Bruno Haible <bruno@clisp.org>
16051 * modules/dprintf-posix-tests: New file.
16052 * tests/test-dprintf-posix.sh: New file.
16053 * tests/test-dprintf-posix.c: New file.
16055 New modules 'dprintf', 'dprintf-posix'.
16056 * lib/stdio.in.h (dprintf): New declaration.
16057 * lib/dprintf.c: New file.
16058 * m4/dprintf.m4: New file.
16059 * m4/dprintf-posix.m4: New file.
16060 * modules/dprintf: New file.
16061 * modules/dprintf-posix: New file.
16062 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
16063 HAVE_DPRINTF, REPLACE_DPRINTF.
16064 * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
16065 HAVE_DPRINTF, REPLACE_DPRINTF.
16066 * doc/posix-functions/dprintf.texi: Mention the new modules.
16068 2009-01-17 Bruno Haible <bruno@clisp.org>
16070 * modules/vdprintf-posix-tests: New file.
16071 * tests/test-vdprintf-posix.sh: New file.
16072 * tests/test-vdprintf-posix.c: New file.
16074 New modules 'vdprintf', 'vdprintf-posix'.
16075 * lib/stdio.in.h (vdprintf): New declaration.
16076 * lib/vdprintf.c: New file.
16077 * m4/vdprintf.m4: New file.
16078 * m4/vdprintf-posix.m4: New file.
16079 * modules/vdprintf: New file.
16080 * modules/vdprintf-posix: New file.
16081 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
16082 HAVE_VDPRINTF, REPLACE_VDPRINTF.
16083 * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
16084 HAVE_VDPRINTF, REPLACE_VDPRINTF.
16085 * doc/posix-functions/vdprintf.texi: Mention the new modules.
16087 2009-01-17 Bruno Haible <bruno@clisp.org>
16089 Fix replacement of fopen on mingw.
16090 * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
16093 2009-01-17 Bruno Haible <bruno@clisp.org>
16095 Fix compilation error on HP-UX 11.00, present since 2008-09-24.
16096 * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
16098 2009-01-17 Bruno Haible <bruno@clisp.org>
16100 Avoid test-fflush2.sh failure on mingw.
16101 * tests/test-fflush2.c: Include binary-io.h.
16102 (main): Put standard input into binary mode.
16103 * modules/fflush-tests (Depends-on): Add binary-io.
16105 2009-01-17 Bruno Haible <bruno@clisp.org>
16107 * lib/wchar.in.h: In another particular situation, include only the
16108 system's <wchar.h> file.
16109 (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
16110 Reported by Albert Chin-A-Young <china@thewrittenword.com>
16111 and Thomas Guyot-Sionnest <dermoth@aei.ca>.
16113 2009-01-17 Bruno Haible <bruno@clisp.org>
16115 Support for stripping executables in --enable-relocatable.
16116 * build-aux/install-reloc: Expect one more argument, or an environment
16117 variable RELOC_STRIP_PROG. If set, strip the destination program and
16119 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
16121 * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
16122 to set RELOCATABLE_STRIP.
16123 * NEWS: Mention the new Makefile requirement.
16125 2009-01-17 Bruno Haible <bruno@clisp.org>
16127 * build-aux/install-reloc: Remove debugging information left over by
16128 C compiler on MacOS X.
16130 2009-01-17 Bruno Haible <bruno@clisp.org>
16132 Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
16133 * lib/progreloc.c (find_executable): Fix type of pointer passed to
16134 _NSGetExecutablePath.
16136 2009-01-16 Jim Meyering <meyering@redhat.com>
16138 strerror: avoid warnings about discarding "const"
16139 * lib/strerror.c (rpl_strerror): Instead of returning a const
16140 string from each and every "case", use a variable, and add a single
16141 cast after the switch.
16143 2009-01-16 Albert Chin-A-Young <china@thewrittenword.com>
16145 * lib/arpa_inet.in.h: Add extern "C" block for C++.
16147 2009-01-16 Bruno Haible <bruno@clisp.org>
16149 * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
16150 array initializer syntax that also works in C++ mode.
16151 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16153 2009-01-16 Jim Meyering <meyering@redhat.com>
16155 poll: suppress a warning
16156 * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
16157 to ignore "...unsigned expression < 0 is always false" warnings.
16159 2009-01-16 Daniel P. Berrange <berrange@redhat.com>
16161 poll: remove declarations of unused variables
16162 * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
16163 sockbuf and optlen.
16165 2009-01-15 Bruno Haible <bruno@clisp.org>
16167 Make fflush-after-ungetc POSIX compliant on BSD systems.
16168 * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
16169 (clear_ungetc_buffer): Implement also for other systems.
16170 (rpl_fflush): On glibc systems, invoke
16171 clear_ungetc_buffer_preserving_position. Otherwise, invoke
16172 clear_ungetc_buffer after fetching the stream's position, not before.
16174 2009-01-15 Bruno Haible <bruno@clisp.org>
16176 Make fflush-after-ungetc POSIX compliant on glibc systems.
16177 * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
16179 * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
16180 (rpl_fflush): On glibc systems, simply call the system's fflush
16181 function after clearing the ungetc buffer.
16182 * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
16183 Instead, lseek only to the end of file, then use the system's fseeko
16184 for the rest. On glibc systems, reset the EOF indicator bit.
16186 2009-01-15 Jim Meyering <meyering@redhat.com>
16188 openmp.m4: revert quote-adding change, for portability to older autoconf
16189 * m4/openmp.m4: Remove the quotes added on 2009-01-14.
16190 This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
16191 Simon Josefsson noticed the problem when using autoconf-2.61.
16193 2009-01-15 Bruno Haible <bruno@clisp.org>
16195 * tests/test-fflush2.sh: Invoke test-fflush2 twice.
16196 * tests/test-fflush2.c (ASSERT): Always fail.
16197 (main): Add two tests for fflush() after ungetc(), taking into account
16198 the Austin Group's clarification.
16199 Suggested by Eric Blake.
16201 2009-01-15 Albert Chin-A-Young <china@thewrittenword.com>
16203 mktime.m4: remove K&R-style function prototypes
16204 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
16205 for the Sun C++ compiler.
16207 2009-01-14 Bruno Haible <bruno@clisp.org>
16209 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
16210 while including <wchar.h>.
16211 * lib/wchar.in.h: In two particular situations on HP-UX, include only
16212 the system's <wchar.h> file.
16213 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16215 2009-01-14 Bruno Haible <bruno@clisp.org>
16217 * m4/csharp.m4: Don't mention gettext on the serial number line.
16218 * m4/csharpexec.m4: Likewise.
16219 * m4/eaccess.m4: Likewise.
16220 * m4/javaexec.m4: Likewise.
16221 * m4/sig_atomic_t.m4: Likewise.
16222 * m4/tmpdir.m4: Likewise.
16223 * m4/intldir.m4: Bump gettext version.
16224 * m4/lib-ld.m4: Likewise.
16226 2009-01-14 Bruno Haible <bruno@clisp.org>
16228 * lib/progname.c (set_program_name): Add more comments.
16229 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
16231 2009-01-14 Simon Josefsson <simon@josefsson.org>
16233 * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
16234 were sys/stat.h does not define it.
16236 2009-01-14 Jim Meyering <meyering@redhat.com>
16238 many *.m4 files: improve m4 quoting
16239 99% of this change was performed by running the following commands:
16240 git ls-files | grep '\.m4$' | xargs perl -pi \
16241 -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
16242 -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16243 -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16244 -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
16245 perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
16246 The remainder were to add Copyright dates, increment serial numbers,
16247 undo some changes in comments, exclude m4/intl.m4, and add quotes
16248 around the "1" in ",1" where the unusual spacing prohibited the
16249 above regexps from doing the job. For more details, see
16250 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
16251 * m4/acl.m4: Modified.
16252 * m4/afs.m4: Likewise.
16253 * m4/alloca.m4: Likewise.
16254 * m4/argp.m4: Likewise.
16255 * m4/argz.m4: Likewise.
16256 * m4/atexit.m4: Likewise.
16257 * m4/bison-i18n.m4: Likewise.
16258 * m4/bison.m4: Likewise.
16259 * m4/byteswap.m4: Likewise.
16260 * m4/c-stack.m4: Likewise.
16261 * m4/c-strtod.m4: Likewise.
16262 * m4/calloc.m4: Likewise.
16263 * m4/canonicalize-lgpl.m4: Likewise.
16264 * m4/chown.m4: Likewise.
16265 * m4/clock_time.m4: Likewise.
16266 * m4/codeset.m4: Likewise.
16267 * m4/copy-file.m4: Likewise.
16268 * m4/csharp.m4: Likewise.
16269 * m4/csharpcomp.m4: Likewise.
16270 * m4/csharpexec.m4: Likewise.
16271 * m4/d-ino.m4: Likewise.
16272 * m4/d-type.m4: Likewise.
16273 * m4/dirfd.m4: Likewise.
16274 * m4/double-slash-root.m4: Likewise.
16275 * m4/eaccess.m4: Likewise.
16276 * m4/eealloc.m4: Likewise.
16277 * m4/environ.m4: Likewise.
16278 * m4/errno_h.m4: Likewise.
16279 * m4/euidaccess.m4: Likewise.
16280 * m4/execute.m4: Likewise.
16281 * m4/fatal-signal.m4: Likewise.
16282 * m4/fchdir.m4: Likewise.
16283 * m4/fcntl_h.m4: Likewise.
16284 * m4/fileblocks.m4: Likewise.
16285 * m4/filenamecat.m4: Likewise.
16286 * m4/findprog.m4: Likewise.
16287 * m4/flexmember.m4: Likewise.
16288 * m4/fnmatch.m4: Likewise.
16289 * m4/fopen.m4: Likewise.
16290 * m4/fpending.m4: Likewise.
16291 * m4/fprintf-posix.m4: Likewise.
16292 * m4/free.m4: Likewise.
16293 * m4/frexp.m4: Likewise.
16294 * m4/frexpl.m4: Likewise.
16295 * m4/fsusage.m4: Likewise.
16296 * m4/ftruncate.m4: Likewise.
16297 * m4/gc-camellia.m4: Likewise.
16298 * m4/gc-random.m4: Likewise.
16299 * m4/gc.m4: Likewise.
16300 * m4/getaddrinfo.m4: Likewise.
16301 * m4/getcwd-abort-bug.m4: Likewise.
16302 * m4/getcwd-path-max.m4: Likewise.
16303 * m4/getdate.m4: Likewise.
16304 * m4/getdomainname.m4: Likewise.
16305 * m4/getgroups.m4: Likewise.
16306 * m4/gethostname.m4: Likewise.
16307 * m4/gethrxtime.m4: Likewise.
16308 * m4/getline.m4: Likewise.
16309 * m4/getloadavg.m4: Likewise.
16310 * m4/getndelim2.m4: Likewise.
16311 * m4/getpass.m4: Likewise.
16312 * m4/gettext.m4: Likewise.
16313 * m4/gettime.m4: Likewise.
16314 * m4/gettimeofday.m4: Likewise.
16315 * m4/gnulib-common.m4: Likewise.
16316 * m4/group-member.m4: Likewise.
16317 * m4/host-os.m4: Likewise.
16318 * m4/iconv.m4: Likewise.
16319 * m4/iconv_open.m4: Likewise.
16320 * m4/inet_ntop.m4: Likewise.
16321 * m4/inet_pton.m4: Likewise.
16322 * m4/inline.m4: Likewise.
16323 * m4/intldir.m4: Likewise.
16324 * m4/intlmacosx.m4: Likewise.
16325 * m4/intmax.m4: Likewise.
16326 * m4/intmax_t.m4: Likewise.
16327 * m4/inttypes.m4: Likewise.
16328 * m4/inttypes_h.m4: Likewise.
16329 * m4/inttypes-pri.m4: Likewise.
16330 * m4/isapipe.m4: Likewise.
16331 * m4/isnand.m4: Likewise.
16332 * m4/isnanf.m4: Likewise.
16333 * m4/isnanl.m4: Likewise.
16334 * m4/javacomp.m4: Likewise.
16335 * m4/javaexec.m4: Likewise.
16336 * m4/jm-winsz1.m4: Likewise.
16337 * m4/jm-winsz2.m4: Likewise.
16338 * m4/lchown.m4: Likewise.
16339 * m4/lcmessage.m4: Likewise.
16340 * m4/ldexpl.m4: Likewise.
16341 * m4/lib-ld.m4: Likewise.
16342 * m4/lib-link.m4: Likewise.
16343 * m4/libsigsegv.m4: Likewise.
16344 * m4/link-follow.m4: Likewise.
16345 * m4/localcharset.m4: Likewise.
16346 * m4/locale-fr.m4: Likewise.
16347 * m4/locale-ja.m4: Likewise.
16348 * m4/locale-tr.m4: Likewise.
16349 * m4/locale-zh.m4: Likewise.
16350 * m4/lock.m4: Likewise.
16351 * m4/longlong.m4: Likewise.
16352 * m4/ls-mntd-fs.m4: Likewise.
16353 * m4/lstat.m4: Likewise.
16354 * m4/malloc.m4: Likewise.
16355 * m4/mathl.m4: Likewise.
16356 * m4/mbrtowc.m4: Likewise.
16357 * m4/mbstate_t.m4: Likewise.
16358 * m4/mbswidth.m4: Likewise.
16359 * m4/memchr.m4: Likewise.
16360 * m4/memcmp.m4: Likewise.
16361 * m4/memcpy.m4: Likewise.
16362 * m4/memmem.m4: Likewise.
16363 * m4/memmove.m4: Likewise.
16364 * m4/mempcpy.m4: Likewise.
16365 * m4/memrchr.m4: Likewise.
16366 * m4/memset.m4: Likewise.
16367 * m4/minmax.m4: Likewise.
16368 * m4/mkdir-slash.m4: Likewise.
16369 * m4/mkdtemp.m4: Likewise.
16370 * m4/mktime.m4: Likewise.
16371 * m4/mmap-anon.m4: Likewise.
16372 * m4/mountlist.m4: Likewise.
16373 * m4/nanosleep.m4: Likewise.
16374 * m4/nls.m4: Likewise.
16375 * m4/nocrash.m4: Likewise.
16376 * m4/open.m4: Likewise.
16377 * m4/openat.m4: Likewise.
16378 * m4/openmp.m4: Likewise.
16379 * m4/pathmax.m4: Likewise.
16380 * m4/perl.m4: Likewise.
16381 * m4/physmem.m4: Likewise.
16382 * m4/pipe.m4: Likewise.
16383 * m4/po.m4: Likewise.
16384 * m4/poll.m4: Likewise.
16385 * m4/posixtm.m4: Likewise.
16386 * m4/posixver.m4: Likewise.
16387 * m4/printf-frexp.m4: Likewise.
16388 * m4/printf-frexpl.m4: Likewise.
16389 * m4/printf-posix.m4: Likewise.
16390 * m4/printf-posix-rpl.m4: Likewise.
16391 * m4/printf.m4: Likewise.
16392 * m4/progtest.m4: Likewise.
16393 * m4/putenv.m4: Likewise.
16394 * m4/readline.m4: Likewise.
16395 * m4/readlink.m4: Likewise.
16396 * m4/readutmp.m4: Likewise.
16397 * m4/realloc.m4: Likewise.
16398 * m4/regex.m4: Likewise.
16399 * m4/relocatable.m4: Likewise.
16400 * m4/relocatable-lib.m4: Likewise.
16401 * m4/rename-dest-slash.m4: Likewise.
16402 * m4/rename.m4: Likewise.
16403 * m4/rmdir-errno.m4: Likewise.
16404 * m4/rmdir.m4: Likewise.
16405 * m4/roundf.m4: Likewise.
16406 * m4/roundl.m4: Likewise.
16407 * m4/rpmatch.m4: Likewise.
16408 * m4/save-cwd.m4: Likewise.
16409 * m4/selinux-selinux-h.m4: Likewise.
16410 * m4/setenv.m4: Likewise.
16411 * m4/settime.m4: Likewise.
16412 * m4/sig2str.m4: Likewise.
16413 * m4/sig_atomic_t.m4: Likewise.
16414 * m4/signalblocking.m4: Likewise.
16415 * m4/signbit.m4: Likewise.
16416 * m4/sigpipe.m4: Likewise.
16417 * m4/sockets.m4: Likewise.
16418 * m4/sockpfaf.m4: Likewise.
16419 * m4/st_dm_mode.m4: Likewise.
16420 * m4/stat-time.m4: Likewise.
16421 * m4/stdbool.m4: Likewise.
16422 * m4/stdint.m4: Likewise.
16423 * m4/stdint_h.m4: Likewise.
16424 * m4/stpcpy.m4: Likewise.
16425 * m4/stpncpy.m4: Likewise.
16426 * m4/strcase.m4: Likewise.
16427 * m4/strchrnul.m4: Likewise.
16428 * m4/strcspn.m4: Likewise.
16429 * m4/strdup.m4: Likewise.
16430 * m4/strftime.m4: Likewise.
16431 * m4/strndup.m4: Likewise.
16432 * m4/strnlen.m4: Likewise.
16433 * m4/strpbrk.m4: Likewise.
16434 * m4/strptime.m4: Likewise.
16435 * m4/strsep.m4: Likewise.
16436 * m4/strtod.m4: Likewise.
16437 * m4/strtoimax.m4: Likewise.
16438 * m4/strtok_r.m4: Likewise.
16439 * m4/strtol.m4: Likewise.
16440 * m4/strtoll.m4: Likewise.
16441 * m4/strtoul.m4: Likewise.
16442 * m4/strtoull.m4: Likewise.
16443 * m4/strtoumax.m4: Likewise.
16444 * m4/strverscmp.m4: Likewise.
16445 * m4/threadlib.m4: Likewise.
16446 * m4/timegm.m4: Likewise.
16447 * m4/tm_gmtoff.m4: Likewise.
16448 * m4/tmpdir.m4: Likewise.
16449 * m4/tmpfile.m4: Likewise.
16450 * m4/tzset.m4: Likewise.
16451 * m4/uintmax_t.m4: Likewise.
16452 * m4/unlinkdir.m4: Likewise.
16453 * m4/unlocked-io.m4: Likewise.
16454 * m4/uptime.m4: Likewise.
16455 * m4/userspec.m4: Likewise.
16456 * m4/utimbuf.m4: Likewise.
16457 * m4/utime.m4: Likewise.
16458 * m4/utimes-null.m4: Likewise.
16459 * m4/utimes.m4: Likewise.
16460 * m4/vararrays.m4: Likewise.
16461 * m4/vasnprintf.m4: Likewise.
16462 * m4/vfprintf-posix.m4: Likewise.
16463 * m4/vprintf-posix.m4: Likewise.
16464 * m4/wait-process.m4: Likewise.
16465 * m4/wchar_t.m4: Likewise.
16466 * m4/wint_t.m4: Likewise.
16467 * m4/write-any-file.m4: Likewise.
16468 * m4/yield.m4: Likewise.
16470 2009-01-13 Bruno Haible <bruno@clisp.org>
16472 Avoid test-copy-file.sh failures when ACL support insufficient.
16473 * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
16475 * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
16476 Reported by Jim Meyering.
16478 2009-01-13 Bruno Haible <bruno@clisp.org>
16480 * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
16481 m4/inttypes_h.m4, needed by m4/intmax_t.m4.
16482 * modules/unistdio/u8-printf-parse (Files): Likewise.
16483 * modules/unistdio/u32-printf-parse (Files): Likewise.
16484 * modules/unistdio/ulc-printf-parse (Files): Likewise.
16486 2009-01-13 Simon Josefsson <simon@josefsson.org>
16488 * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
16489 and m4/inttypes_h.m4 too.
16491 2009-01-12 Eric Blake <ebb9@byu.net>
16493 tests: IRIX 6.2 cc can't compile -0.0 into .data
16494 * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
16495 rather than at compile-time.
16496 * tests/test-floorl.c (minus_zero): Likewise.
16497 * tests/test-frexpl.c (minus_zero): Likewise.
16498 * tests/test-isnan.c (minus_zerol): Likewise.
16499 * tests/test-isnanl.h (minus_zero): Likewise.
16500 * tests/test-ldexpl.c (minus_zero): Likewise.
16501 * tests/test-roundl.c (minus_zero): Likewise.
16502 * tests/test-signbit.c (minus_zerol): Likewise.
16503 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
16504 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
16505 * tests/test-truncl.c (minus_zero): Likewise.
16506 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
16507 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
16508 Reported by Tom G. Christensen and Nelson H. F. Beebe.
16510 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
16512 regex: fix glibc bug 9697
16513 * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
16516 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
16518 regex: fix glibc bug 697
16519 * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
16520 being NULL also if there are no backreferences.
16522 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
16524 regex: merge glibc changes
16525 * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
16526 * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
16527 re_string_skip_chars, re_string_reconstruct): Likewise.
16528 * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
16530 2009-01-07 Jim Meyering <meyering@redhat.com>
16532 poll: filter through cppi
16533 * lib/poll.c: Indent cpp directives to reflect nesting.
16535 2009-01-07 Daniel P. Berrange <berrange@redhat.com>
16537 poll: don't return uninitialized
16538 * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
16540 2009-01-06 Jeremy Olexa <darkside@gentoo.org> (tiny change)
16542 avoid compile failure on AIX 6.1
16543 * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
16544 Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
16546 2009-01-04 Jim Meyering <meyering@redhat.com>
16548 remove duplicate inclusion of <stdio.h>
16549 * tests/test-fprintf-posix.c: Likewise.
16550 * tests/test-printf-posix.c: Likewise.
16551 * tests/test-snprintf-posix.c: Likewise.
16552 * tests/test-sprintf-posix.c: Likewise.
16553 * tests/test-vasprintf-posix.c: Likewise.
16554 * tests/test-vfprintf-posix.c: Likewise.
16555 * tests/test-vprintf-posix.c: Likewise.
16556 * tests/test-vsnprintf-posix.c: Likewise.
16557 * tests/test-vsprintf-posix.c: Likewise.
16559 2009-01-03 Jim Meyering <meyering@redhat.com>
16561 gnulib-tool: fix sed-based filtering
16562 * gnulib-tool (func_filter_filelist): Remove extra backslash
16563 in sed_fff_filter definition.
16565 2009-01-02 Jim Meyering <meyering@redhat.com>
16567 strftime: avoid compilation failure on Solaris 2.6
16568 * modules/strftime (Depends-on): Add mbrlen and mbsinit.
16569 * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
16570 Don't #define mbrlen or mbsinit, since now they're guaranteed to
16571 be available. Reported by Tom G. Christensen. Details in
16572 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
16574 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16575 Bruno Haible <bruno@clisp.org>
16577 Speed up gnulib-tool by doing more string processing through shell
16579 * gnulib-tool (fast_func_append): New variable.
16580 (func_remove_prefix, func_remove_suffix): New functions.
16581 (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
16582 (func_filter_filelist): New function.
16583 (func_get_dependencies): Use func_remove_suffix instead of sed.
16584 (func_get_automake_snippet): Use func_filter_filelist instead of a
16585 subshell and sed invocation.
16587 2009-01-01 Bruno Haible <bruno@clisp.org>
16589 Fix a security bug.
16590 * gnulib-tool (func_import, import, update): Don't allow the characters
16591 '"', '$', '`', '\' in macro arguments that become part of commands that
16594 2009-01-01 Bruno Haible <bruno@clisp.org>
16596 * gnulib-tool (func_reset_sigpipe): Add more comments.
16598 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16600 * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
16601 func_emit_tests_Makefile_am, func_import): Abort loops early if we
16602 already know the answer.
16604 2009-01-01 Jim Meyering <meyering@redhat.com>
16606 * lib/version-etc.c (version_etc_va): Update copyright year.
16608 2008-12-30 Bruno Haible <bruno@clisp.org>
16610 * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
16611 LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
16612 Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
16614 2008-12-29 Eric Blake <ebb9@byu.net>
16616 multiarch: avoid autoconf AC_REQUIRE bug
16617 * m4/multiarch.m4 (gl_MULTIARCH): Split body...
16618 (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
16620 Reported by Bruno Haible, and analyzed in
16621 http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
16623 2008-12-29 Bruno Haible <bruno@clisp.org>
16625 * gnulib-tool (func_import): When generating sed-ignore-removed, handle
16626 files in subdirectories correctly.
16627 Reported by Ralf Wildenhues.
16629 2008-12-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16631 * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
16632 rather than 'join FILE -', for Solaris join.
16634 2008-12-29 Bruno Haible <bruno@clisp.org>
16636 * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
16638 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
16639 * m4/glibc2.m4 (gt_GLIBC2): Likewise.
16640 * m4/glibc21.m4 (gl_GLIBC21): Likewise.
16641 * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
16642 * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16643 * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
16644 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
16645 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
16646 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
16647 * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
16648 * m4/nls.m4 (AM_NLS): Likewise.
16649 * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
16650 * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
16651 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
16652 * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
16653 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
16654 * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16655 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
16656 * m4/visibility.m4 (gl_VISIBILITY): Likewise.
16657 * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
16658 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
16659 * m4/xsize.m4 (gl_XSIZE): Likewise.
16660 Suggested by Jim Meyering.
16662 2008-11-17 Bruce Korb <bkorb@gnu.org>
16664 * lib/parse-duration.h: non-iso form accepts years, months weeks, too
16665 * lib/parse-duration.c: use a switch instead of cascading if's.
16667 2008-12-29 Eric Blake <ebb9@byu.net>
16669 wchar.h: supply WEOF on Irix 5.3
16670 * lib/wchar.in.h (wint_t): Also supply WEOF.
16671 * lib/wctype.in.h (wint_t): Likewise.
16672 * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
16673 * doc/posix-headers/wctype.texi (wctype.h): Likewise.
16674 Reported by Tom G. Christensen.
16676 2008-12-26 Bruno Haible <bruno@clisp.org>
16678 * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
16681 2008-12-26 Bruno Haible <bruno@clisp.org>
16683 * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
16685 2008-12-26 Bruno Haible <bruno@clisp.org>
16687 * lib/stdint.in.h: Move the include of <wchar.h> down until after all
16688 the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
16689 not __STDC_CONSTANT_MACROS.
16690 Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
16692 2008-12-25 Bruno Haible <bruno@clisp.org>
16694 Add support for universal builds to vasnprintf.
16695 * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
16696 universal builds, guess no.
16697 * modules/vasnprintf-posix (Depends-on): Add multiarch.
16698 * modules/vasprintf-posix (Depends-on): Likewise.
16699 * modules/fprintf-posix (Depends-on): Likewise.
16700 * modules/vfprintf-posix (Depends-on): Likewise.
16701 * modules/snprintf-posix (Depends-on): Likewise.
16702 * modules/vsnprintf-posix (Depends-on): Likewise.
16703 * modules/sprintf-posix (Depends-on): Likewise.
16704 * modules/vsprintf-posix (Depends-on): Likewise.
16705 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
16706 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16707 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16708 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16709 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16710 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16711 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16713 Add support for universal builds to <inttypes.h>.
16714 * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
16715 _SCNu64_PREFIX): In Apple
16716 universal builds, define directly, using _LP64.
16717 * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
16718 INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
16719 * modules/inttypes (Depends-on): Add multiarch.
16720 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
16722 Add support for universal builds to <stdint.h>.
16723 * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
16724 universal builds, define directly, using _LP64.
16725 * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
16726 Apple universal builds, don't test for the size and suffix of ptrdiff_t
16728 * modules/stdint (Depends-on): Add multiarch.
16729 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
16731 New module 'multiarch'.
16732 * modules/multiarch: New file.
16733 * m4/multiarch.m4: New file.
16735 2008-12-25 Bruno Haible <bruno@clisp.org>
16737 * gnulib-tool (func_create_testdir): Avoid failure of mv command.
16739 2008-12-25 Bruno Haible <bruno@clisp.org>
16741 * modules/btowc (License): Relicense under LGPLv2+.
16742 * modules/mbsinit (License): Likewise.
16743 * modules/mbrtowc (License): Likewise.
16744 * modules/wcrtomb (License): Likewise.
16745 * modules/streq (License): Likewise.
16746 Reported by David Lutterkort <lutter@redhat.com>.
16748 2008-12-23 Bruno Haible <bruno@clisp.org>
16750 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
16752 2008-12-23 Bruno Haible <bruno@clisp.org>
16754 Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
16755 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
16756 GETADDRINFO_LIB, not in LIBS.
16757 * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
16758 * modules/canon-host (Link): Likewise.
16759 * NEWS: Mention the change.
16760 * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
16763 2008-12-22 Bruno Haible <bruno@clisp.org>
16765 * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
16766 * doc/posix-functions/iswalpha_l.texi: Likewise.
16767 * doc/posix-functions/iswblank_l.texi: Likewise.
16768 * doc/posix-functions/iswcntrl_l.texi: Likewise.
16769 * doc/posix-functions/iswctype_l.texi: Likewise.
16770 * doc/posix-functions/iswdigit_l.texi: Likewise.
16771 * doc/posix-functions/iswgraph_l.texi: Likewise.
16772 * doc/posix-functions/iswlower_l.texi: Likewise.
16773 * doc/posix-functions/iswprint_l.texi: Likewise.
16774 * doc/posix-functions/iswpunct_l.texi: Likewise.
16775 * doc/posix-functions/iswspace_l.texi: Likewise.
16776 * doc/posix-functions/iswupper_l.texi: Likewise.
16777 * doc/posix-functions/iswxdigit_l.texi: Likewise.
16778 * doc/posix-functions/mbsnrtowcs.texi: Likewise.
16779 * doc/posix-functions/open_wmemstream.texi: Likewise.
16780 * doc/posix-functions/swscanf.texi: Likewise.
16781 * doc/posix-functions/towctrans_l.texi: Likewise.
16782 * doc/posix-functions/towlower.texi: Likewise.
16783 * doc/posix-functions/towlower_l.texi: Likewise.
16784 * doc/posix-functions/towupper.texi: Likewise.
16785 * doc/posix-functions/towupper_l.texi: Likewise.
16786 * doc/posix-functions/vfwprintf.texi: Likewise.
16787 * doc/posix-functions/vfwscanf.texi: Likewise.
16788 * doc/posix-functions/vswscanf.texi: Likewise.
16789 * doc/posix-functions/vwprintf.texi: Likewise.
16790 * doc/posix-functions/vwscanf.texi: Likewise.
16791 * doc/posix-functions/wcpcpy.texi: Likewise.
16792 * doc/posix-functions/wcpncpy.texi: Likewise.
16793 * doc/posix-functions/wcscasecmp.texi: Likewise.
16794 * doc/posix-functions/wcscasecmp_l.texi: Likewise.
16795 * doc/posix-functions/wcscoll_l.texi: Likewise.
16796 * doc/posix-functions/wcsdup.texi: Likewise.
16797 * doc/posix-functions/wcsncasecmp.texi: Likewise.
16798 * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
16799 * doc/posix-functions/wcsnlen.texi: Likewise.
16800 * doc/posix-functions/wcsnrtombs.texi: Likewise.
16801 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
16802 * doc/posix-functions/wctrans_l.texi: Likewise.
16803 * doc/posix-functions/wctype_l.texi: Likewise.
16804 * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
16805 * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
16806 * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
16807 * doc/glibc-functions/fputws_unlocked.texi: Likewise.
16808 * doc/glibc-functions/getwc_unlocked.texi: Likewise.
16809 * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
16810 * doc/glibc-functions/putwc_unlocked.texi: Likewise.
16811 * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
16812 * doc/glibc-functions/wcschrnul.texi: Likewise.
16813 * doc/glibc-functions/wcsftime_l.texi: Likewise.
16814 * doc/glibc-functions/wcstod_l.texi: Likewise.
16815 * doc/glibc-functions/wcstof_l.texi: Likewise.
16816 * doc/glibc-functions/wcstol_l.texi: Likewise.
16817 * doc/glibc-functions/wcstold_l.texi: Likewise.
16818 * doc/glibc-functions/wcstoll_l.texi: Likewise.
16819 * doc/glibc-functions/wcstoq.texi: Likewise.
16820 * doc/glibc-functions/wcstoul_l.texi: Likewise.
16821 * doc/glibc-functions/wcstoull_l.texi: Likewise.
16822 * doc/glibc-functions/wcstouq.texi: Likewise.
16823 * doc/glibc-functions/wmempcpy.texi: Likewise.
16825 2008-12-22 Ingo Weinhold <ingo_weinhold@gmx.de> (tiny change)
16826 Eric Blake <ebb9@byu.net>
16827 Paolo Bonzini <bonzini@gnu.org>
16828 Bruno Haible <bruno@clisp.org>
16830 Make c-stack work on Haiku.
16831 * lib/c-stack.c (SA_ONSTACK): Define fallback.
16832 (c_stack_action): Use SA_ONSTACK flag.
16834 2008-12-22 Bruno Haible <bruno@clisp.org>
16836 * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
16838 2008-12-22 Bruno Haible <bruno@clisp.org>
16840 Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
16841 * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
16843 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
16845 * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
16846 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
16847 * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
16848 * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
16850 2008-12-22 Bruno Haible <bruno@clisp.org>
16852 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
16855 2008-12-22 Eric Blake <ebb9@byu.net>
16857 Avoid gcc warnings on cygwin.
16858 * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
16859 Avoid unused variable.
16860 * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
16863 2008-12-22 Bruno Haible <bruno@clisp.org>
16865 Remove HAVE_MBRTOWC conditionals.
16866 * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
16867 (mbscasecmp): Assume mbrtowc function.
16868 * lib/mbscasestr.c: Include mbuiter.h unconditionally.
16869 (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
16870 * lib/mbschr.c: Include mbuiter.h unconditionally.
16871 (mbschr): Assume mbrtowc function.
16872 * lib/mbscspn.c: Include mbuiter.h unconditionally.
16873 (mbscspn): Assume mbrtowc function.
16874 * lib/mbslen.c: Include mbuiter.h unconditionally.
16875 (mbslen): Assume mbrtowc function.
16876 * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
16877 (mbsncasecmp): Assume mbrtowc function.
16878 * lib/mbsnlen.c: Include mbiter.h unconditionally.
16879 (mbsnlen): Assume mbrtowc function.
16880 * lib/mbspbrk.c: Include mbuiter.h unconditionally.
16881 (mbspbrk): Assume mbrtowc function.
16882 * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
16883 (mbspcasecmp): Assume mbrtowc function.
16884 * lib/mbsrchr.c: Include mbuiter.h unconditionally.
16885 (mbsrchr): Assume mbrtowc function.
16886 * lib/mbssep.c: Include mbuiter.h unconditionally.
16887 (mbssep): Assume mbrtowc function.
16888 * lib/mbsspn.c: Include mbuiter.h unconditionally.
16889 (mbsspn): Assume mbrtowc function.
16890 * lib/mbsstr.c: Include mbuiter.h unconditionally.
16891 (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
16892 * lib/mbstok_r.c: Include mbuiter.h unconditionally.
16893 (mbstok_r): Assume mbrtowc function.
16894 * lib/propername.c: Include mbuiter.h unconditionally.
16895 (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
16896 * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
16897 (trim2): Assume mbrtowc function.
16898 * lib/mbswidth.c (mbsinit): Remove fallback definition.
16899 (mbsnwidth): Assume mbrtowc function.
16900 * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
16901 * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
16902 fallback definitions.
16903 * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
16905 2008-12-22 Bruno Haible <bruno@clisp.org>
16907 * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
16909 2008-12-22 Paolo Bonzini <bonzini@gnu.org>
16911 * modules/regex: Request emulations for the mb*/wc* functions we need.
16912 * m4/regex.m4: Don't look for those functions here.
16913 * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
16915 2008-12-22 Bruno Haible <bruno@clisp.org>
16917 * modules/fnmatch (Depends-on): Remove duplicated dependency.
16919 2008-12-21 Bruno Haible <bruno@clisp.org>
16921 Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
16922 * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
16923 (Include): Remove conditionalization.
16924 * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
16925 (Include): Remove conditionalization.
16926 * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
16927 (Include): Remove conditionalization.
16928 * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
16929 * m4/mbfile.m4 (gl_MBFILE): Likewise.
16930 * NEWS: Mention the change.
16931 Reported by Alan Hourihane <alanh@fairlite.co.uk>
16932 via Sergey Poznyakoff <gray@gnu.org.ua>.
16934 2008-12-21 Bruno Haible <bruno@clisp.org>
16936 * MODULES.html.sh (Extended multibyte and wide character utilities
16937 <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
16938 wcrtomb, wcsrtombs.
16939 (Support for systems lacking POSIX:2008): Add accept, bind, close,
16940 connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
16941 mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
16942 setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
16944 2008-12-21 Bruno Haible <bruno@clisp.org>
16946 * MODULES.html.sh: Change section titles to refer to POSIX:2008.
16948 2008-12-21 Bruno Haible <bruno@clisp.org>
16950 * modules/wcsnrtombs-tests: New file.
16951 * tests/test-wcsnrtombs1.sh: New file.
16952 * tests/test-wcsnrtombs2.sh: New file.
16953 * tests/test-wcsnrtombs3.sh: New file.
16954 * tests/test-wcsnrtombs4.sh: New file.
16955 * tests/test-wcsnrtombs.c: New file.
16957 New module 'wcsnrtombs'.
16958 * lib/wchar.in.h (wcsnrtombs): New declaration.
16959 * lib/wcsnrtombs.c: New file.
16960 * lib/wcsrtombs-state.c: New file.
16961 * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
16962 (internal_state): Remove variable.
16963 * m4/wcsnrtombs.m4: New file.
16964 * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
16966 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
16968 * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
16970 * modules/wcsnrtombs: New file.
16971 * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
16972 * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
16974 2008-12-21 Bruno Haible <bruno@clisp.org>
16976 * modules/wcsrtombs-tests: New file.
16977 * tests/test-wcsrtombs1.sh: New file.
16978 * tests/test-wcsrtombs2.sh: New file.
16979 * tests/test-wcsrtombs3.sh: New file.
16980 * tests/test-wcsrtombs4.sh: New file.
16981 * tests/test-wcsrtombs.c: New file.
16983 New module 'wcsrtombs'.
16984 * lib/wchar.in.h (wcsrtombs): New declaration.
16985 * lib/wcsrtombs.c: New file.
16986 * m4/wcsrtombs.m4: New file.
16987 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
16988 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
16989 * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
16990 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
16991 * modules/wcsrtombs: New file.
16992 * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
16995 2008-12-21 Bruno Haible <bruno@clisp.org>
16997 Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
16998 * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
16999 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
17000 with NULL destination argument in various locales. Set REPLACE_WCRTOMB
17002 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
17003 * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
17004 * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17005 m4/locale-zh.m4, m4/codeset.m4.
17006 * doc/posix-functions/wcrtomb.texi: Document the bug.
17008 2008-12-21 Bruno Haible <bruno@clisp.org>
17010 Work around a btowc() bug on IRIX 6.5.
17011 * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
17012 * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
17013 REPLACE_WTOBC if not.
17014 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
17015 * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
17016 * doc/posix-functions/btowc.texi: Mention the IRIX bug.
17018 2008-12-21 Bruno Haible <bruno@clisp.org>
17020 * modules/wcrtomb-tests: New file.
17021 * tests/test-wcrtomb.sh: New file.
17022 * tests/test-wcrtomb.c: New file.
17024 New module 'wcrtomb'.
17025 * lib/wchar.in.h (wcrtomb): New declaration.
17026 * lib/wcrtomb.c: New file.
17027 * m4/wcrtomb.m4: New file.
17028 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
17030 * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
17032 * modules/wcrtomb: New file.
17033 * doc/posix-functions/wcrtomb.texi: Mention the new module.
17035 2008-12-21 Bruno Haible <bruno@clisp.org>
17037 * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
17038 * modules/mbsrtowcs (Files): Likewise.
17039 * modules/wctob (Files): Likewise.
17040 * modules/c-strcase-tests (Files): Likewise.
17041 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
17042 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
17043 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
17044 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
17045 * modules/vasnprintf-posix-tests (Files): Likewise.
17047 2008-12-21 William Pursell <bill.pursell@gmail.com>
17049 gitlog-to-changelog: pass all command-line arguments to git-log
17050 * build-aux/gitlog-to-changelog: When producing a ChangeLog,
17051 it is sometimes convenient to filter the commits in various ways.
17052 gitlog-to-changelog only allows --since to specify a start date,
17053 but git-log itself supports many other filtering mechanisms.
17054 At the moment, I want to filter by branch name. Rather than
17055 adding a --branch option to gitlog-to-changelog, it seems more
17056 flexible to simply pass all options directly to git-log and let
17057 git do the work. Notice that this effectively makes --since a
17058 redundant option for gitlog-to-changelog, but removing it would
17059 require current usage to change since calls would then require
17060 an additional '--'.
17062 2008-12-21 Bruno Haible <bruno@clisp.org>
17064 * modules/mbsnrtowcs-tests: New file.
17065 * tests/test-mbsnrtowcs1.sh: New file.
17066 * tests/test-mbsnrtowcs2.sh: New file.
17067 * tests/test-mbsnrtowcs3.sh: New file.
17068 * tests/test-mbsnrtowcs4.sh: New file.
17069 * tests/test-mbsnrtowcs.c: New file.
17071 New module 'mbsnrtowcs'.
17072 * lib/wchar.in.h (mbsnrtowcs): New declaration.
17073 * lib/mbsnrtowcs.c: New file.
17074 * lib/mbsrtowcs-state.c: New file.
17075 * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
17076 (internal_state): Remove variable.
17077 * m4/mbsnrtowcs.m4: New file.
17078 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
17080 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
17081 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17082 * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
17083 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17084 * modules/mbsnrtowcs: New file.
17085 * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
17086 * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
17087 portability problem.
17089 2008-12-21 Bruno Haible <bruno@clisp.org>
17091 Work around mbsrtowcs bug.
17092 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
17093 (gl_FUNC_MBSRTOWCS): Invoke it.
17094 * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17096 * doc/posix-functions/mbsrtowcs.texi: Document the bug.
17098 2008-12-21 Bruno Haible <bruno@clisp.org>
17100 * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
17102 2008-12-21 Bruno Haible <bruno@clisp.org>
17104 Update doc for AIX.
17105 * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
17106 16-bit wchar_t type.
17107 * doc/posix-functions/btowc.texi: Likewise.
17108 * doc/posix-functions/fgetwc.texi: Likewise.
17109 * doc/posix-functions/fgetws.texi: Likewise.
17110 * doc/posix-functions/fputwc.texi: Likewise.
17111 * doc/posix-functions/fputws.texi: Likewise.
17112 * doc/posix-functions/fwide.texi: Likewise.
17113 * doc/posix-functions/fwprintf.texi: Likewise.
17114 * doc/posix-functions/fwscanf.texi: Likewise.
17115 * doc/posix-functions/getwchar.texi: Likewise.
17116 * doc/posix-functions/getwc.texi: Likewise.
17117 * doc/posix-functions/iswalnum.texi: Likewise.
17118 * doc/posix-functions/iswalpha.texi: Likewise.
17119 * doc/posix-functions/iswblank.texi: Likewise.
17120 * doc/posix-functions/iswcntrl.texi: Likewise.
17121 * doc/posix-functions/iswctype.texi: Likewise.
17122 * doc/posix-functions/iswdigit.texi: Likewise.
17123 * doc/posix-functions/iswgraph.texi: Likewise.
17124 * doc/posix-functions/iswlower.texi: Likewise.
17125 * doc/posix-functions/iswprint.texi: Likewise.
17126 * doc/posix-functions/iswpunct.texi: Likewise.
17127 * doc/posix-functions/iswspace.texi: Likewise.
17128 * doc/posix-functions/iswupper.texi: Likewise.
17129 * doc/posix-functions/iswxdigit.texi: Likewise.
17130 * doc/posix-functions/mbrtowc.texi: Likewise.
17131 * doc/posix-functions/mbsrtowcs.texi: Likewise.
17132 * doc/posix-functions/mbstowcs.texi: Likewise.
17133 * doc/posix-functions/mbtowc.texi: Likewise.
17134 * doc/posix-functions/putwchar.texi: Likewise.
17135 * doc/posix-functions/putwc.texi: Likewise.
17136 * doc/posix-functions/swprintf.texi: Likewise.
17137 * doc/posix-functions/tolower.texi: Likewise.
17138 * doc/posix-functions/toupper.texi: Likewise.
17139 * doc/posix-functions/towctrans.texi: Likewise.
17140 * doc/posix-functions/ungetwc.texi: Likewise.
17141 * doc/posix-functions/vswprintf.texi: Likewise.
17142 * doc/posix-functions/wcrtomb.texi: Likewise.
17143 * doc/posix-functions/wcscat.texi: Likewise.
17144 * doc/posix-functions/wcschr.texi: Likewise.
17145 * doc/posix-functions/wcscmp.texi: Likewise.
17146 * doc/posix-functions/wcscoll.texi: Likewise.
17147 * doc/posix-functions/wcscpy.texi: Likewise.
17148 * doc/posix-functions/wcscspn.texi: Likewise.
17149 * doc/posix-functions/wcsftime.texi: Likewise.
17150 * doc/posix-functions/wcslen.texi: Likewise.
17151 * doc/posix-functions/wcsncat.texi: Likewise.
17152 * doc/posix-functions/wcsncmp.texi: Likewise.
17153 * doc/posix-functions/wcsncpy.texi: Likewise.
17154 * doc/posix-functions/wcspbrk.texi: Likewise.
17155 * doc/posix-functions/wcsrchr.texi: Likewise.
17156 * doc/posix-functions/wcsrtombs.texi: Likewise.
17157 * doc/posix-functions/wcsspn.texi: Likewise.
17158 * doc/posix-functions/wcsstr.texi: Likewise.
17159 * doc/posix-functions/wcstod.texi: Likewise.
17160 * doc/posix-functions/wcstof.texi: Likewise.
17161 * doc/posix-functions/wcstoimax.texi: Likewise.
17162 * doc/posix-functions/wcstok.texi: Likewise.
17163 * doc/posix-functions/wcstold.texi: Likewise.
17164 * doc/posix-functions/wcstoll.texi: Likewise.
17165 * doc/posix-functions/wcstol.texi: Likewise.
17166 * doc/posix-functions/wcstombs.texi: Likewise.
17167 * doc/posix-functions/wcstoull.texi: Likewise.
17168 * doc/posix-functions/wcstoul.texi: Likewise.
17169 * doc/posix-functions/wcstoumax.texi: Likewise.
17170 * doc/posix-functions/wcswidth.texi: Likewise.
17171 * doc/posix-functions/wcsxfrm.texi: Likewise.
17172 * doc/posix-functions/wctob.texi: Likewise.
17173 * doc/posix-functions/wctomb.texi: Likewise.
17174 * doc/posix-functions/wctrans.texi: Likewise.
17175 * doc/posix-functions/wctype.texi: Likewise.
17176 * doc/posix-functions/wcwidth.texi: Likewise.
17177 * doc/posix-functions/wmemchr.texi: Likewise.
17178 * doc/posix-functions/wmemcmp.texi: Likewise.
17179 * doc/posix-functions/wmemcpy.texi: Likewise.
17180 * doc/posix-functions/wmemmove.texi: Likewise.
17181 * doc/posix-functions/wmemset.texi: Likewise.
17182 * doc/posix-functions/wprintf.texi: Likewise.
17183 * doc/posix-functions/wscanf.texi: Likewise.
17185 2008-12-21 Bruno Haible <bruno@clisp.org>
17187 Update doc for HP-UX 11.11.
17188 * doc/posix-functions/btowc.texi: Clarify that the function is missing
17189 in HP-UX version 11.00, not in all versions of HP-UX 11.
17190 * doc/posix-functions/fwide.texi: Likewise.
17191 * doc/posix-functions/fwprintf.texi: Likewise.
17192 * doc/posix-functions/fwscanf.texi: Likewise.
17193 * doc/posix-functions/inet_ntop.texi: Likewise.
17194 * doc/posix-functions/inet_pton.texi: Likewise.
17195 * doc/posix-functions/mbrlen.texi: Likewise.
17196 * doc/posix-functions/mbrtowc.texi: Likewise.
17197 * doc/posix-functions/mbsinit.texi: Likewise.
17198 * doc/posix-functions/mbsrtowcs.texi: Likewise.
17199 * doc/posix-functions/swprintf.texi: Likewise.
17200 * doc/posix-functions/swscanf.texi: Likewise.
17201 * doc/posix-functions/towctrans.texi: Likewise.
17202 * doc/posix-functions/vfwprintf.texi: Likewise.
17203 * doc/posix-functions/vswprintf.texi: Likewise.
17204 * doc/posix-functions/vwprintf.texi: Likewise.
17205 * doc/posix-functions/wcrtomb.texi: Likewise.
17206 * doc/posix-functions/wcsrtombs.texi: Likewise.
17207 * doc/posix-functions/wcsstr.texi: Likewise.
17208 * doc/posix-functions/wctob.texi: Likewise.
17209 * doc/posix-functions/wctrans.texi: Likewise.
17210 * doc/posix-functions/wmemchr.texi: Likewise.
17211 * doc/posix-functions/wmemcmp.texi: Likewise.
17212 * doc/posix-functions/wmemcpy.texi: Likewise.
17213 * doc/posix-functions/wmemmove.texi: Likewise.
17214 * doc/posix-functions/wmemset.texi: Likewise.
17215 * doc/posix-functions/wprintf.texi: Likewise.
17216 * doc/posix-functions/wscanf.texi: Likewise.
17218 2008-12-21 Bruno Haible <bruno@clisp.org>
17220 Work around a portability problem.
17221 * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
17222 * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
17224 2008-12-20 Bruno Haible <bruno@clisp.org>
17226 * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
17227 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
17228 REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
17229 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
17230 * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
17232 Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
17233 * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
17235 (GNULIB_defined_mbstate_t): New macro.
17236 (mbsinit): Redefine if REPLACE_MBSINIT is set.
17237 (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
17238 * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
17239 reuses the system's mbrtowc function but works around the bugs.
17240 * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
17241 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
17243 (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
17244 be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
17245 MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
17246 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
17247 REPLACE_MBSINIT if mbsinit needs to be overridden.
17248 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
17249 REPLACE_MBSINIT, REPLACE_MBRTOWC.
17250 * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
17251 REPLACE_MBSINIT, REPLACE_MBRTOWC.
17252 * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17254 (Depends): Add mbsinit.
17255 * modules/mbsinit (Depends): Add mbrtowc.
17256 * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
17258 2008-12-20 Bruno Haible <bruno@clisp.org>
17260 * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
17261 so that there are no conversion errors on AIX.
17262 * tests/test-mbsrtowcs.c (main): LIkewise.
17264 2008-12-20 Bruno Haible <bruno@clisp.org>
17266 Work around wctob bug on Solaris <= 9.
17267 * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
17268 * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
17269 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
17270 * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
17271 * modules/wctob (Files): Add m4/locale-fr.m4.
17272 * doc/posix-functions/wctob.texi: Mention the Solaris bug.
17274 2008-12-20 Bruno Haible <bruno@clisp.org>
17276 * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
17278 * tests/test-select-in.sh: Likewise.
17279 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17281 2008-12-20 Bruno Haible <bruno@clisp.org>
17283 Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
17284 * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
17287 2008-12-20 Bruno Haible <bruno@clisp.org>
17289 Ensure mbstate_t is defined on HP-UX 11.11.
17290 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
17291 AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
17292 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
17293 AC_USE_SYSTEM_EXTENSIONS.
17294 * modules/fnmatch (Depends-on): Add extensions.
17295 * modules/mbrlen (Depends-on): Likewise.
17296 * modules/mbrtowc (Depends-on): Likewise.
17297 * modules/mbsinit (Depends-on): Likewise.
17298 * modules/mbsrtowcs (Depends-on): Likewise.
17299 * modules/mbswidth (Depends-on): Likewise.
17300 * modules/quotearg (Depends-on): Likewise.
17301 * modules/strftime (Depends-on): Likewise.
17303 2008-12-20 Bruno Haible <bruno@clisp.org>
17305 Ensure wctob is declared on IRIX 6.5.
17306 * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
17307 * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
17308 HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
17309 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
17311 * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
17313 * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
17315 2008-12-19 Bruno Haible <bruno@clisp.org>
17317 * modules/mbsrtowcs-tests: New file.
17318 * tests/test-mbsrtowcs1.sh: New file.
17319 * tests/test-mbsrtowcs2.sh: New file.
17320 * tests/test-mbsrtowcs3.sh: New file.
17321 * tests/test-mbsrtowcs4.sh: New file.
17322 * tests/test-mbsrtowcs.c: New file.
17324 New module 'mbsrtowcs'.
17325 * lib/wchar.in.h (mbsrtowcs): New declaration.
17326 * lib/mbsrtowcs.c: New file.
17327 * m4/mbsrtowcs.m4: New file.
17328 * modules/mbsrtowcs: New file.
17329 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
17331 * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
17333 * doc/posix-functions/mbsrtowcs.texi: Document the new module.
17335 2008-12-19 Bruno Haible <bruno@clisp.org>
17337 New module 'mbrlen'.
17338 * lib/wchar.in.h (mbrlen): New declaration.
17339 * lib/mbrlen.c: New file.
17340 * m4/mbrlen.m4: New file.
17341 * modules/mbrlen: New file.
17342 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
17344 * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
17346 * doc/posix-functions/mbrlen.texi: Document the new module.
17348 2008-12-19 Bruno Haible <bruno@clisp.org>
17350 * lib/mbrtowc.c: Include verify.h. Verify an assumption.
17351 * modules/mbrtowc (Depends-on): Add verify.
17352 Suggested by Paul Eggert.
17354 2008-12-18 Bruno Haible <bruno@clisp.org>
17356 * modules/mbsinit-tests: New file.
17357 * tests/test-mbsinit.sh: New file.
17358 * tests/test-mbsinit.c: New file.
17360 2008-12-18 Bruno Haible <bruno@clisp.org>
17362 * modules/mbrtowc-tests: New file.
17363 * tests/test-mbrtowc1.sh: New file.
17364 * tests/test-mbrtowc2.sh: New file.
17365 * tests/test-mbrtowc3.sh: New file.
17366 * tests/test-mbrtowc4.sh: New file.
17367 * tests/test-mbrtowc.c: New file.
17369 New module 'mbrtowc'.
17370 * lib/wchar.in.h (mbstate_t): Override when the system does not have
17371 mbsinit and mbrtowc.
17372 (mbrtowc): New declaration.
17373 * lib/mbrtowc.c: New file.
17374 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
17375 * modules/mbrtowc: New file.
17376 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
17378 * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
17380 * doc/posix-functions/mbrtowc.texi: Document the new module.
17382 2008-12-18 Bruno Haible <bruno@clisp.org>
17384 New module 'wctob'.
17385 * lib/wchar.in.h (wctob): New declaration.
17386 * lib/wctob.c: New file.
17387 * m4/wctob.m4: New file.
17388 * modules/wctob: New file.
17389 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
17391 * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
17392 * doc/posix-functions/wctob.texi: Document the new module.
17394 2008-12-18 Bruno Haible <bruno@clisp.org>
17396 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
17397 * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
17399 2008-12-18 Simon Josefsson <simon@josefsson.org>
17401 * lib/flock.c: Use proper #if symbol in check. Reported by "Tom
17402 G. Christensen" <tgc@jupiterrise.com>.
17404 * lib/flock.c: Need to include errno.h. Reported by "Tom
17405 G. Christensen" <tgc@jupiterrise.com>.
17407 * lib/flock.c: Need to include string.h. Reported by "Tom
17408 G. Christensen" <tgc@jupiterrise.com> and Eric Blake
17411 2008-12-18 Bruno Haible <bruno@clisp.org>
17413 * m4/locale-ja.m4: New file, from GNU gettext.
17415 2008-12-17 Bruno Haible <bruno@clisp.org>
17417 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
17418 Suggested by Eric Blake.
17420 2008-12-17 Bruno Haible <bruno@clisp.org>
17422 * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
17424 2008-12-17 Bruno Haible <bruno@clisp.org>
17426 * lib/mbsinit.c: Include verify.h. Verify an assumption.
17427 * modules/mbsinit (Depends-on): Add verify.
17428 Suggested by Paul Eggert.
17430 2008-12-17 Bruno Haible <bruno@clisp.org>
17432 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
17433 * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
17435 * m4/mbiter.m4 (gl_MBITER): LIkewise.
17436 * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
17437 * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
17438 * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
17439 * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
17440 * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
17441 * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
17442 * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
17443 * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
17444 * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
17445 * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
17446 * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
17447 * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
17448 * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
17449 * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
17450 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17451 * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
17452 * modules/trim (configure.ac): Likewise.
17454 2008-12-17 Bruno Haible <bruno@clisp.org>
17456 * modules/btowc-tests: New file.
17457 * tests/test-btowc1.sh: New file.
17458 * tests/test-btowc2.sh: New file.
17459 * tests/test-btowc.c: New file.
17461 New module 'btowc'.
17462 * lib/wchar.in.h (btowc): New declaration.
17463 * lib/btowc.c: New file.
17464 * m4/btowc.m4: New file.
17465 * modules/btowc: New file.
17466 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
17468 * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
17469 * doc/posix-functions/btowc.texi: Document the new module.
17471 2008-12-17 Bruno Haible <bruno@clisp.org>
17473 New module 'mbsinit'.
17474 * lib/wchar.in.h (mbsinit): New declaration.
17475 * lib/mbsinit.c: New file.
17476 * m4/mbsinit.m4: New file.
17477 * modules/mbsinit: New file.
17478 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
17480 * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
17482 * doc/posix-functions/mbsinit.texi: Document the new module.
17484 2008-12-16 Bruno Haible <bruno@clisp.org>
17486 * lib/unistd.in.h: Add comment.
17487 * tests/test-environ.c: Don't include <stdlib.h>.
17489 2008-12-16 Bruno Haible <bruno@clisp.org>
17491 * lib/parse-duration.h (parse_duration): Document return value
17493 * lib/parse-duration.c: Include specification header first. Add
17496 (parse_year_month_day, parse_hour_minute_second): Move side effects
17497 outside of strchr call.
17498 (parse_non_iso8601): Move side effects outside of isspace call.
17499 (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
17502 2008-12-16 Bruno Haible <bruno@clisp.org>
17504 * tests/test-parse-duration.sh: Produce no output when the test
17507 2008-12-16 Bruno Haible <bruno@clisp.org>
17509 * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
17512 2008-12-15 Bruno Haible <bruno@clisp.org>
17514 * doc/glibc-functions/fgetxattr.texi: Tweak wording.
17515 * doc/glibc-functions/flistxattr.texi: Likewise.
17516 * doc/glibc-functions/fopencookie.texi: Likewise.
17517 * doc/glibc-functions/fremovexattr.texi: Likewise.
17518 * doc/glibc-functions/fsetxattr.texi: Likewise.
17519 * doc/glibc-functions/getxattr.texi: Likewise.
17520 * doc/glibc-functions/lgetxattr.texi: Likewise.
17521 * doc/glibc-functions/listxattr.texi: Likewise.
17522 * doc/glibc-functions/llistxattr.texi: Likewise.
17523 * doc/glibc-functions/lremovexattr.texi: Likewise.
17524 * doc/glibc-functions/lsetxattr.texi: Likewise.
17525 * doc/glibc-functions/removexattr.texi: Likewise.
17526 * doc/glibc-functions/setxattr.texi: Likewise.
17527 * doc/posix-functions/open_memstream.texi: Likewise.
17529 2008-12-15 Eric Blake <ebb9@byu.net>
17531 Update doc for cygwin 1.7.
17532 * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
17534 * doc/posix-functions/fchmodat.texi: Likewise.
17535 * doc/posix-functions/fchownat.texi: Likewise.
17536 * doc/posix-functions/fdopendir.texi: Likewise.
17537 * doc/posix-functions/fmemopen.texi: Likewise.
17538 * doc/posix-functions/freeaddrinfo.texi: Likewise.
17539 * doc/posix-functions/fstatat.texi: Likewise.
17540 * doc/posix-functions/futimens.texi: Likewise.
17541 * doc/posix-functions/gai_strerror.texi: Likewise.
17542 * doc/posix-functions/getaddrinfo.texi: Likewise.
17543 * doc/posix-functions/getnameinfo.texi: Likewise.
17544 * doc/posix-functions/if_freenameindex.texi: Likewise.
17545 * doc/posix-functions/if_indextoname.texi: Likewise.
17546 * doc/posix-functions/if_nameindex.texi: Likewise.
17547 * doc/posix-functions/if_nametoindex.texi: Likewise.
17548 * doc/posix-functions/insque.texi: Likewise.
17549 * doc/posix-functions/linkat.texi: Likewise.
17550 * doc/posix-functions/llrint.texi: Likewise.
17551 * doc/posix-functions/llrintf.texi: Likewise.
17552 * doc/posix-functions/llrintl.texi: Likewise.
17553 * doc/posix-functions/lockf.texi: Likewise.
17554 * doc/posix-functions/lrintl.texi: Likewise.
17555 * doc/posix-functions/mkdirat.texi: Likewise.
17556 * doc/posix-functions/mkfifoat.texi: Likewise.
17557 * doc/posix-functions/mknodat.texi: Likewise.
17558 * doc/posix-functions/mq_close.texi: Likewise.
17559 * doc/posix-functions/mq_getattr.texi: Likewise.
17560 * doc/posix-functions/mq_notify.texi: Likewise.
17561 * doc/posix-functions/mq_open.texi: Likewise.
17562 * doc/posix-functions/mq_receive.texi: Likewise.
17563 * doc/posix-functions/mq_send.texi: Likewise.
17564 * doc/posix-functions/mq_setattr.texi: Likewise.
17565 * doc/posix-functions/mq_timedreceive.texi: Likewise.
17566 * doc/posix-functions/mq_timedsend.texi: Likewise.
17567 * doc/posix-functions/mq_unlink.texi: Likewise.
17568 * doc/posix-functions/open_memstream.texi: Likewise.
17569 * doc/posix-functions/openat.texi: Likewise.
17570 * doc/posix-functions/posix_fadvise.texi: Likewise.
17571 * doc/posix-functions/posix_fallocate.texi: Likewise.
17572 * doc/posix-functions/posix_madvise.texi: Likewise.
17573 * doc/posix-functions/posix_memalign.texi: Likewise.
17574 * doc/posix-functions/posix_openpt.texi: Likewise.
17575 * doc/posix-functions/readlinkat.texi: Likewise.
17576 * doc/posix-functions/remque.texi: Likewise.
17577 * doc/posix-functions/renameat.texi: Likewise.
17578 * doc/posix-functions/rintl.texi: Likewise.
17579 * doc/posix-functions/sem_unlink.texi: Likewise.
17580 * doc/posix-functions/shm_open.texi: Likewise.
17581 * doc/posix-functions/shm_unlink.texi: Likewise.
17582 * doc/posix-functions/signgam.texi: Likewise.
17583 * doc/posix-functions/sigset.texi: Likewise.
17584 * doc/posix-functions/stpcpy.texi: Likewise.
17585 * doc/posix-functions/stpncpy.texi: Likewise.
17586 * doc/posix-functions/strerror.texi: Likewise.
17587 * doc/posix-functions/strtod.texi: Likewise.
17588 * doc/posix-functions/symlinkat.texi: Likewise.
17589 * doc/posix-functions/unlinkat.texi: Likewise.
17590 * doc/posix-functions/utimensat.texi: Likewise.
17591 * doc/glibc-functions/bindresvport.texi: Likewise.
17592 * doc/glibc-functions/dn_expand.texi: Likewise.
17593 * doc/glibc-functions/exp10.texi: Likewise.
17594 * doc/glibc-functions/exp10f.texi: Likewise.
17595 * doc/glibc-functions/fgetxattr.texi: Likewise.
17596 * doc/glibc-functions/flistxattr.texi: Likewise.
17597 * doc/glibc-functions/fopencookie.texi: Likewise.
17598 * doc/glibc-functions/freeifaddrs.texi: Likewise.
17599 * doc/glibc-functions/fremovexattr.texi: Likewise.
17600 * doc/glibc-functions/fsetxattr.texi: Likewise.
17601 * doc/glibc-functions/getifaddrs.texi: Likewise.
17602 * doc/glibc-functions/getxattr.texi: Likewise.
17603 * doc/glibc-functions/lgetxattr.texi: Likewise.
17604 * doc/glibc-functions/listxattr.texi: Likewise.
17605 * doc/glibc-functions/llistxattr.texi: Likewise.
17606 * doc/glibc-functions/lremovexattr.texi: Likewise.
17607 * doc/glibc-functions/lsetxattr.texi: Likewise.
17608 * doc/glibc-functions/pow10.texi: Likewise.
17609 * doc/glibc-functions/pow10f.texi: Likewise.
17610 * doc/glibc-functions/rcmd_af.texi: Likewise.
17611 * doc/glibc-functions/removexattr.texi: Likewise.
17612 * doc/glibc-functions/res_init.texi: Likewise.
17613 * doc/glibc-functions/res_mkquery.texi: Likewise.
17614 * doc/glibc-functions/res_query.texi: Likewise.
17615 * doc/glibc-functions/res_querydomain.texi: Likewise.
17616 * doc/glibc-functions/res_send.texi: Likewise.
17617 * doc/glibc-functions/rresvport_af.texi: Likewise.
17618 * doc/glibc-functions/setxattr.texi: Likewise.
17619 * doc/glibc-functions/strcasestr.texi: Likewise.
17621 2008-12-15 Bruno Haible <bruno@clisp.org>
17623 Fix compilation error on OSF/1 4.0.
17624 * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
17625 <sys/time.h>, simply delegate to the system header.
17626 Reported by Daniel Richard G. <oss@teragram.com>.
17628 2008-12-15 Bruno Haible <bruno@clisp.org>
17630 * doc/posix-functions/openat.texi: Mention the 'openat' module.
17631 * doc/posix-functions/fchmodat.texi: Likewise.
17632 * doc/posix-functions/fchownat.texi: Likewise.
17633 * doc/posix-functions/fdopendir.texi: Likewise.
17634 * doc/posix-functions/fstatat.texi: Likewise.
17635 * doc/posix-functions/mkdirat.texi: Likewise.
17636 * doc/posix-functions/unlinkat.texi: Likewise.
17638 2008-12-14 Bruno Haible <bruno@clisp.org>
17640 Update doc for POSIX:2008.
17641 * doc/posix-functions/faccessat.texi: New file.
17642 * doc/posix-functions/fchmodat.texi: New file.
17643 * doc/posix-functions/fchownat.texi: New file.
17644 * doc/posix-functions/fdopendir.texi: New file.
17645 * doc/posix-functions/fstatat.texi: New file.
17646 * doc/posix-functions/futimens.texi: New file.
17647 * doc/posix-functions/linkat.texi: New file.
17648 * doc/posix-functions/mkdirat.texi: New file.
17649 * doc/posix-functions/mkfifoat.texi: New file.
17650 * doc/posix-functions/mknodat.texi: New file.
17651 * doc/posix-functions/open_wmemstream.texi: New file.
17652 * doc/posix-functions/openat.texi: New file.
17653 * doc/posix-functions/psiginfo.texi: New file.
17654 * doc/posix-functions/pthread_mutex_consistent.texi: New file.
17655 * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
17656 * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
17657 * doc/posix-functions/readlinkat.texi: New file.
17658 * doc/posix-functions/renameat.texi: New file.
17659 * doc/posix-functions/strerror_l.texi: New file.
17660 * doc/posix-functions/symlinkat.texi: New file.
17661 * doc/posix-functions/unlinkat.texi: New file.
17662 * doc/posix-functions/utimensat.texi: New file.
17663 * doc/gnulib.texi (Function Substitutes): Add these subsections.
17665 2008-12-14 Bruno Haible <bruno@clisp.org>
17667 Update doc for POSIX:2008.
17668 * doc/posix-functions/alphasort.texi: Renamed from
17669 doc/glibc-functions/alphasort.texi.
17670 * doc/posix-functions/dirfd.texi: Renamed from
17671 doc/glibc-functions/dirfd.texi.
17672 * doc/posix-functions/dprintf.texi: Renamed from
17673 doc/glibc-functions/dprintf.texi.
17674 * doc/posix-functions/duplocale.texi: Renamed from
17675 doc/glibc-functions/duplocale.texi.
17676 * doc/posix-functions/fexecve.texi: Renamed from
17677 doc/glibc-functions/fexecve.texi.
17678 * doc/posix-functions/fmemopen.texi: Renamed from
17679 doc/glibc-functions/fmemopen.texi.
17680 * doc/posix-functions/freelocale.texi: Renamed from
17681 doc/glibc-functions/freelocale.texi.
17682 * doc/posix-functions/getdate_err.texi: Renamed from
17683 doc/glibc-functions/getdate_err.texi.
17684 * doc/posix-functions/isalnum_l.texi: Renamed from
17685 doc/glibc-functions/isalnum_l.texi.
17686 * doc/posix-functions/isalpha_l.texi: Renamed from
17687 doc/glibc-functions/isalpha_l.texi.
17688 * doc/posix-functions/isblank_l.texi: Renamed from
17689 doc/glibc-functions/isblank_l.texi.
17690 * doc/posix-functions/iscntrl_l.texi: Renamed from
17691 doc/glibc-functions/iscntrl_l.texi.
17692 * doc/posix-functions/isdigit_l.texi: Renamed from
17693 doc/glibc-functions/isdigit_l.texi.
17694 * doc/posix-functions/isgraph_l.texi: Renamed from
17695 doc/glibc-functions/isgraph_l.texi.
17696 * doc/posix-functions/islower_l.texi: Renamed from
17697 doc/glibc-functions/islower_l.texi.
17698 * doc/posix-functions/isprint_l.texi: Renamed from
17699 doc/glibc-functions/isprint_l.texi.
17700 * doc/posix-functions/ispunct_l.texi: Renamed from
17701 doc/glibc-functions/ispunct_l.texi.
17702 * doc/posix-functions/isspace_l.texi: Renamed from
17703 doc/glibc-functions/isspace_l.texi.
17704 * doc/posix-functions/isupper_l.texi: Renamed from
17705 doc/glibc-functions/isupper_l.texi.
17706 * doc/posix-functions/iswalnum_l.texi: Renamed from
17707 doc/glibc-functions/iswalnum_l.texi.
17708 * doc/posix-functions/iswalpha_l.texi: Renamed from
17709 doc/glibc-functions/iswalpha_l.texi.
17710 * doc/posix-functions/iswblank_l.texi: Renamed from
17711 doc/glibc-functions/iswblank_l.texi.
17712 * doc/posix-functions/iswcntrl_l.texi: Renamed from
17713 doc/glibc-functions/iswcntrl_l.texi.
17714 * doc/posix-functions/iswctype_l.texi: Renamed from
17715 doc/glibc-functions/iswctype_l.texi.
17716 * doc/posix-functions/iswdigit_l.texi: Renamed from
17717 doc/glibc-functions/iswdigit_l.texi.
17718 * doc/posix-functions/iswgraph_l.texi: Renamed from
17719 doc/glibc-functions/iswgraph_l.texi.
17720 * doc/posix-functions/iswlower_l.texi: Renamed from
17721 doc/glibc-functions/iswlower_l.texi.
17722 * doc/posix-functions/iswprint_l.texi: Renamed from
17723 doc/glibc-functions/iswprint_l.texi.
17724 * doc/posix-functions/iswpunct_l.texi: Renamed from
17725 doc/glibc-functions/iswpunct_l.texi.
17726 * doc/posix-functions/iswspace_l.texi: Renamed from
17727 doc/glibc-functions/iswspace_l.texi.
17728 * doc/posix-functions/iswupper_l.texi: Renamed from
17729 doc/glibc-functions/iswupper_l.texi.
17730 * doc/posix-functions/iswxdigit_l.texi: Renamed from
17731 doc/glibc-functions/iswxdigit_l.texi.
17732 * doc/posix-functions/isxdigit_l.texi: Renamed from
17733 doc/glibc-functions/isxdigit_l.texi.
17734 * doc/posix-functions/mbsnrtowcs.texi: Renamed from
17735 doc/glibc-functions/mbsnrtowcs.texi.
17736 * doc/posix-functions/mkdtemp.texi: Renamed from
17737 doc/glibc-functions/mkdtemp.texi.
17738 * doc/posix-functions/newlocale.texi: Renamed from
17739 doc/glibc-functions/newlocale.texi.
17740 * doc/posix-functions/nl_langinfo_l.texi: Renamed from
17741 doc/glibc-functions/nl_langinfo_l.texi.
17742 * doc/posix-functions/open_memstream.texi: Renamed from
17743 doc/glibc-functions/open_memstream.texi.
17744 * doc/posix-functions/opterr.texi: Renamed from
17745 doc/glibc-functions/opterr.texi.
17746 * doc/posix-functions/optind.texi: Renamed from
17747 doc/glibc-functions/optind.texi.
17748 * doc/posix-functions/optopt.texi: Renamed from
17749 doc/glibc-functions/optopt.texi.
17750 * doc/posix-functions/psignal.texi: Renamed from
17751 doc/glibc-functions/psignal.texi.
17752 * doc/posix-functions/scandir.texi: Renamed from
17753 doc/glibc-functions/scandir.texi.
17754 * doc/posix-functions/sched_get_priority_min.texi: Renamed from
17755 doc/glibc-functions/sched_get_priority_min.texi.
17756 * doc/posix-functions/signgam.texi: Renamed from
17757 doc/glibc-functions/signgam.texi.
17758 * doc/posix-functions/stpcpy.texi: Renamed from
17759 doc/glibc-functions/stpcpy.texi.
17760 * doc/posix-functions/stpncpy.texi: Renamed from
17761 doc/glibc-functions/stpncpy.texi.
17762 * doc/posix-functions/strcasecmp_l.texi: Renamed from
17763 doc/glibc-functions/strcasecmp_l.texi.
17764 * doc/posix-functions/strcoll_l.texi: Renamed from
17765 doc/glibc-functions/strcoll_l.texi.
17766 * doc/posix-functions/strfmon_l.texi: Renamed from
17767 doc/glibc-functions/strfmon_l.texi.
17768 * doc/posix-functions/strftime_l.texi: Renamed from
17769 doc/glibc-functions/strftime_l.texi.
17770 * doc/posix-functions/strncasecmp_l.texi: Renamed from
17771 doc/glibc-functions/strncasecmp_l.texi.
17772 * doc/posix-functions/strndup.texi: Renamed from
17773 doc/glibc-functions/strndup.texi.
17774 * doc/posix-functions/strnlen.texi: Renamed from
17775 doc/glibc-functions/strnlen.texi.
17776 * doc/posix-functions/strsignal.texi: Renamed from
17777 doc/glibc-functions/strsignal.texi.
17778 * doc/posix-functions/strxfrm_l.texi: Renamed from
17779 doc/glibc-functions/strxfrm_l.texi.
17780 * doc/posix-functions/timer_gettime.texi: Renamed from
17781 doc/glibc-functions/timer_gettime.texi.
17782 * doc/posix-functions/tolower_l.texi: Renamed from
17783 doc/glibc-functions/tolower_l.texi.
17784 * doc/posix-functions/toupper_l.texi: Renamed from
17785 doc/glibc-functions/toupper_l.texi.
17786 * doc/posix-functions/towctrans_l.texi: Renamed from
17787 doc/glibc-functions/towctrans_l.texi.
17788 * doc/posix-functions/towlower_l.texi: Renamed from
17789 doc/glibc-functions/towlower_l.texi.
17790 * doc/posix-functions/towupper_l.texi: Renamed from
17791 doc/glibc-functions/towupper_l.texi.
17792 * doc/posix-functions/uselocale.texi: Renamed from
17793 doc/glibc-functions/uselocale.texi.
17794 * doc/posix-functions/vdprintf.texi: Renamed from
17795 doc/glibc-functions/vdprintf.texi.
17796 * doc/posix-functions/wcpcpy.texi:
17797 Renamed from doc/glibc-functions/wcpcpy.texi.
17798 * doc/posix-functions/wcpncpy.texi: Renamed from
17799 doc/glibc-functions/wcpncpy.texi.
17800 * doc/posix-functions/wcscasecmp.texi: Renamed from
17801 doc/glibc-functions/wcscasecmp.texi.
17802 * doc/posix-functions/wcscasecmp_l.texi: Renamed from
17803 doc/glibc-functions/wcscasecmp_l.texi.
17804 * doc/posix-functions/wcscoll_l.texi: Renamed from
17805 doc/glibc-functions/wcscoll_l.texi.
17806 * doc/posix-functions/wcsdup.texi: Renamed from
17807 doc/glibc-functions/wcsdup.texi.
17808 * doc/posix-functions/wcsncasecmp.texi: Renamed from
17809 doc/glibc-functions/wcsncasecmp.texi.
17810 * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
17811 doc/glibc-functions/wcsncasecmp_l.texi.
17812 * doc/posix-functions/wcsnlen.texi: Renamed from
17813 doc/glibc-functions/wcsnlen.texi.
17814 * doc/posix-functions/wcsnrtombs.texi: Renamed from
17815 doc/glibc-functions/wcsnrtombs.texi.
17816 * doc/posix-functions/wcsxfrm_l.texi: Renamed from
17817 doc/glibc-functions/wcsxfrm_l.texi.
17818 * doc/posix-functions/wctrans_l.texi: Renamed from
17819 doc/glibc-functions/wctrans_l.texi.
17820 * doc/posix-functions/wctype_l.texi: Renamed from
17821 doc/glibc-functions/wctype_l.texi.
17822 * doc/gnulib.texi (Function Substitutes): Add these subsections.
17823 (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
17824 Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
17825 Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
17827 (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
17830 2008-12-14 Bruno Haible <bruno@clisp.org>
17832 Update doc for POSIX:2008.
17833 * doc/posix-functions/*.texi: Update URL of POSIX specification.
17835 2008-12-14 Bruno Haible <bruno@clisp.org>
17837 Update doc for POSIX:2008.
17838 * doc/pastposix-functions/bcmp.texi: Renamed from
17839 doc/posix-functions/bcmp.texi.
17840 * doc/pastposix-functions/bcopy.texi: Renamed from
17841 doc/posix-functions/bcopy.texi.
17842 * doc/pastposix-functions/bsd_signal.texi: Renamed from
17843 doc/posix-functions/bsd_signal.texi.
17844 * doc/pastposix-functions/bzero.texi: Renamed from
17845 doc/posix-functions/bzero.texi.
17846 * doc/pastposix-functions/ecvt.texi: Renamed from
17847 doc/posix-functions/ecvt.texi.
17848 * doc/pastposix-functions/fcvt.texi: Renamed from
17849 doc/posix-functions/fcvt.texi.
17850 * doc/pastposix-functions/ftime.texi: Renamed from
17851 doc/posix-functions/ftime.texi.
17852 * doc/pastposix-functions/gcvt.texi: Renamed from
17853 doc/posix-functions/gcvt.texi.
17854 * doc/pastposix-functions/getcontext.texi: Renamed from
17855 doc/posix-functions/getcontext.texi.
17856 * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
17857 doc/posix-functions/gethostbyaddr.texi.
17858 * doc/pastposix-functions/gethostbyname.texi: Renamed from
17859 doc/posix-functions/gethostbyname.texi.
17860 * doc/pastposix-functions/getwd.texi: Renamed from
17861 doc/posix-functions/getwd.texi.
17862 * doc/pastposix-functions/h_errno.texi: Renamed from
17863 doc/posix-functions/h_errno.texi.
17864 * doc/pastposix-functions/index.texi: Renamed from
17865 doc/posix-functions/index.texi.
17866 * doc/pastposix-functions/makecontext.texi: Renamed from
17867 doc/posix-functions/makecontext.texi.
17868 * doc/pastposix-functions/mktemp.texi: Renamed from
17869 doc/posix-functions/mktemp.texi.
17870 * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
17871 doc/posix-functions/pthread_attr_getstackaddr.texi.
17872 * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
17873 doc/posix-functions/pthread_attr_setstackaddr.texi.
17874 * doc/pastposix-functions/rindex.texi: Renamed from
17875 doc/posix-functions/rindex.texi.
17876 * doc/pastposix-functions/scalb.texi: Renamed from
17877 doc/posix-functions/scalb.texi.
17878 * doc/pastposix-functions/setcontext.texi: Renamed from
17879 doc/posix-functions/setcontext.texi.
17880 * doc/pastposix-functions/swapcontext.texi: Renamed from
17881 doc/posix-functions/swapcontext.texi.
17882 * doc/pastposix-functions/ualarm.texi: Renamed from
17883 doc/posix-functions/ualarm.texi.
17884 * doc/pastposix-functions/usleep.texi: Renamed from
17885 doc/posix-functions/usleep.texi.
17886 * doc/pastposix-functions/vfork.texi: Renamed from
17887 doc/posix-functions/vfork.texi.
17888 * doc/pastposix-functions/wcswcs.texi: Renamed from
17889 doc/posix-functions/wcswcs.texi.
17890 * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
17891 (Function Substitutes): Update.
17893 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17895 * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
17898 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17899 Bruno Haible <bruno@clisp.org>
17901 * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
17903 2008-12-13 Bruno Haible <bruno@clisp.org>
17905 * modules/strtoull (Depends-on): Remove unistd.
17907 2008-12-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17909 * modules/strtoull (Depends-on): Add stdlib.
17911 2008-12-11 Simon Josefsson <simon@josefsson.org>
17913 * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
17915 2008-12-10 Jim Meyering <meyering@redhat.com>
17917 gl_ASSERT: don't say assertions are disabled when they're not
17918 * m4/assert.m4 (gl_ASSERT): Do not make configure report
17919 "checking whether to enable assertions... no", when they are in
17920 fact enabled. This is solely a bug in the output of configure.
17921 In spite of saying "no", NDEBUG was not defined in that case.
17922 Also, as noted by Eric Blake, leave assertions enabled upon
17923 --enable-assert=INVALID.
17925 2008-12-10 Bruno Haible <bruno@clisp.org>
17927 Change MODULES.html to refer to POSIX:2008 where possible.
17928 * MODULES.html.sh (POSIX2008_URL): New variable.
17929 (posix_headers): Remove sys/timeb, ucontext.
17930 (posix2001_headers): New variable.
17931 (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
17932 ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
17933 index, makecontext, mktemp, pthread_attr_getstackaddr,
17934 pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
17935 ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
17936 (posix2001_functions): New variable.
17937 (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
17940 2008-12-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17942 add missing include to parse-duration.c
17943 * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
17944 * modules/parse-duration (Depends-on): Add xalloc.
17946 fix sed script reading maint.mk
17947 * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
17948 (syntax-check-rules): Use it.
17950 2008-12-09 Bruno Haible <bruno@clisp.org>
17952 * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
17953 MacOS X 10.4/PowerPC.
17954 Reported by Simon Josefsson.
17956 2008-12-08 Jim Meyering <meyering@redhat.com>
17958 work around mingw's lack of some S_IF definitions
17959 * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
17960 Reported by Simon Josefsson.
17962 2008-12-08 Bruno Haible <bruno@clisp.org>
17964 * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
17965 applied to variables. Needed on MacOS X 10.4/PowerPC.
17966 Reported by Simon Josefsson.
17968 2008-12-08 William Pursell <bill.pursell@gmail.com> (tiny change)
17969 and Eric Blake <ebb9@byu.net>
17971 assert: honor --enable-assert
17972 * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
17973 order to honor --enable-assert, rather than treating it as a
17974 synonym for --disable-assert.
17976 2008-12-08 Jim Meyering <meyering@redhat.com>
17978 * lib/posixtm.c: Remove now-useless declaration of mktime.
17980 * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
17982 2008-12-07 Bruno Haible <bruno@clisp.org>
17984 * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
17985 test_once): Mark functions as static.
17986 * tests/test-tls.c (test_tls): Likewise.
17988 2008-12-07 Bruno Haible <bruno@clisp.org>
17990 * lib/striconveha.h (uniconv_register_autodetect): Renamed from
17991 iconv_register_autodetect.
17993 2008-12-07 Jim Meyering <meyering@redhat.com>
17995 posixtm.c: avoid a warning
17996 * lib/posixtm.c (posixtime): Don't initialize tm0.
17997 It's no longer needed to placate gcc4's -Wuninitialized,
17998 and the attempt to placate would elicit a new warning.
18000 unicodeio.c: mark unused parameters
18001 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18002 (fallback_failure_callback): Likewise.
18004 2008-12-07 Bruno Haible <bruno@clisp.org>
18006 * gnulib-tool (func_create_testdir): When building the tests
18007 subdirectory, ignore the modules gnumakefile and maintainer-makefile.
18008 Reported by Simon Josefsson.
18010 2008-12-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18012 * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
18014 2008-12-06 Bruno Haible <bruno@clisp.org>
18016 * lib/c-stack.h (c_stack_action): Clarify possible side effects.
18017 Suggested by Eric Blake.
18019 2008-12-06 Bruno Haible <bruno@clisp.org>
18021 Fix a c-stack test failure on MacOS X.
18022 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
18023 AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
18024 handler for SIGBUS as well.
18025 * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
18026 install a signal handler for SIGBUS as well.
18027 Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
18029 2008-12-06 Bruno Haible <bruno@clisp.org>
18031 Advocacy documentation.
18032 * doc/gnulib-intro.texi (Benefits): New section.
18033 * doc/gnulib.texi: Update.
18035 2008-12-06 Bruno Haible <bruno@clisp.org>
18037 Document the 'manywarnings' module.
18038 * doc/manywarnings.texi: New file.
18039 * doc/gnulib.texi: Include it.
18041 2008-12-05 Eric Blake <ebb9@byu.net>
18043 tests: silence some gcc warnings
18044 * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
18045 * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
18048 2008-12-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18049 Bruno Haible <bruno@clisp.org>
18051 * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
18053 2008-11-29 Jim Meyering <meyering@redhat.com>
18055 unicodeio.c: mark unused parameters
18056 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18057 (fallback_failure_callback): Likewise.
18060 * lib/fts.c (s_ifmt_shift_bits): Remove function. Not needed after all.
18061 (set_stat_type): Return S_IF*-valued "type" directly.
18062 Prompted by James Youngman's spotting a related bug.
18063 Confirmed by further testing through find.
18065 fts: provide dirent.d_type via FTSENT.fts_statp, when possible
18066 * lib/fts.c (D_TYPE): Define.
18067 (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
18068 (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
18069 (s_ifmt_shift_bits): New function.
18070 (set_stat_type): New function.
18071 (fts_build): When not calling fts_stat, call set_stat_type
18072 to propagate dirent.d_type info to fts_read caller.
18073 * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
18074 fts_statp->st_mode type information may be valid.
18076 2008-11-28 Simon Josefsson <simon@josefsson.org>
18078 * lib/sys_time.in.h: Add extern "C" block for C++. Suggested by
18079 Brian Dessent <brian@dessent.net>. Reported by Sam Steingold
18082 2008-11-20 Bruno Haible <bruno@clisp.org>
18084 Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
18085 * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
18087 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
18088 INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
18089 * modules/math (Makefile.am): Substitute
18090 INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
18091 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18093 2008-11-18 Alexandre Duret-Lutz <adl@lrde.epita.fr>
18094 Bruno Haible <bruno@clisp.org>
18096 * lib/stdint.in.h: Define all type macros so that their expansion is
18097 a single typedef'ed token. Fixes a compilation failure in Boost which
18098 does "using ::int8_t;".
18100 2008-11-18 Simon Josefsson <simon@josefsson.org>
18102 * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
18103 gl_MANYWARN_ALL_GCC.
18104 * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
18105 gl_WARN_COMPLEMENT. Suggested by Bruno Haible <bruno@clisp.org>.
18106 * modules/manywarnings: New file.
18107 * MODULES.html.sh: Mention manywarnings module.
18109 2008-11-18 Bruno Haible <bruno@clisp.org>
18111 * doc/gnulib-tool.texi (Unit tests): New section.
18113 2008-11-18 Simon Josefsson <simon@josefsson.org>
18115 * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
18116 paths like 'lib/po/foo.po'.
18118 2008-11-17 Simon Josefsson <simon@josefsson.org>
18120 * m4/warnings.m4: Improve code. Reported by Ralf Wildenhues
18121 <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
18123 2008-11-17 Simon Josefsson <simon@josefsson.org>
18125 * m4/warnings.m4: Use CPPFLAGS to really check whether the
18128 2008-11-17 Simon Josefsson <simon@josefsson.org>
18130 * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
18132 2008-11-17 Bruce Korb <bkorb@gnu.org>
18134 * modules/parse-duration-tests: New file.
18135 * tests/test-parse-duration.sh: New file.
18136 * tests/test-parse-duration.c: New file.
18138 New module 'parse-duration'.
18139 * lib/parse-duration.h: New file.
18140 * lib/parse-duration.c: New file.
18141 * modules/parse-duration: New file.
18143 2008-11-17 Bruno Haible <bruno@clisp.org>
18145 * tests/test-select-out.sh: Comment out the first pipe test.
18146 Reported by Simon Josefsson.
18148 2008-11-17 Bruno Haible <bruno@clisp.org>
18150 * modules/getaddrinfo (Depends-on): Add servent, hostent.
18151 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
18154 2008-11-17 Bruno Haible <bruno@clisp.org>
18156 * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
18157 -lnetwork and -lnet. Needed for Haiku and BeOS.
18159 2008-11-16 Bruno Haible <bruno@clisp.org>
18161 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
18163 2008-11-16 Bruno Haible <bruno@clisp.org>
18165 Avoid test failure on Haiku.
18166 * tests/test-fsync.c: Include <errno.h>.
18167 (main): Don't require that fsync (0) fails.
18169 2008-11-15 Bruno Haible <bruno@clisp.org>
18171 New module 'hostent'.
18172 * modules/hostent: New file.
18173 * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
18175 2008-11-15 Bruno Haible <bruno@clisp.org>
18177 New module 'servent'.
18178 * modules/servent: New file.
18179 * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
18181 2008-11-15 Bruno Haible <bruno@clisp.org>
18183 Avoid generating same test program with two different rules.
18184 * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
18185 test-frexp to test-frexp-nolibm.
18186 * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
18187 test-frexpl to test-frexpl-nolibm.
18189 2008-11-15 Bruno Haible <bruno@clisp.org>
18191 * modules/frexpl-tests (Makefile.am): Link test-frexpl with
18194 2008-11-15 Bruno Haible <bruno@clisp.org>
18196 * lib/netdb.in.h: Activate the definitions also when the system's
18197 <netdb.h> has 'struct addrinfo'.
18198 * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
18199 EAI_OVERFLOW or AI_NUMERICSERV.
18200 * doc/posix-headers/netdb.texi: Document the problem.
18202 2008-11-15 Bruno Haible <bruno@clisp.org>
18204 * tests/test-sched.c: Test also the existence of the SCHED_* macros.
18206 Make the 'sched' module work on platforms where <sched.h> exists but
18207 is incomplete (such as Haiku).
18208 * lib/sched.in.h; Include the system's <sched.h> if it exists.
18209 (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
18210 * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
18211 defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
18212 HAVE_STRUCT_SCHED_PARAM.
18213 * modules/sched (Depends-on): Add include_next.
18214 (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
18215 PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
18216 * doc/posix-headers/sched.texi: Document the issue.
18218 2008-11-13 Jim Meyering <meyering@redhat.com>
18220 test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
18221 * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
18222 test would fail due to the difference in the Report bugs to ...
18223 line. The expected address is empty, "<>", while the actual
18224 would contain e.g., "<bug-tar@gnu.org>". Filter out any address.
18226 2008-11-12 Bruno Haible <bruno@clisp.org>
18228 lstat: don't compile lstat.c on systems lacking lstat
18229 * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
18230 which don't have lstat; this is handled by lib/sys_stat.in.h already.
18231 Reported by Daniel P. Berrange via Jim Meyering.
18233 2008-11-12 Jim Meyering <meyering@redhat.com>
18235 * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
18237 2008-11-12 Simon Josefsson <simon@josefsson.org>
18239 * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
18242 2008-11-12 Bruno Haible <bruno@clisp.org>
18244 * lib/unicodeio.c: Include unistr.h.
18245 (utf8_wctomb): Remove function.
18246 (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
18248 2008-11-12 Simon Josefsson <simon@josefsson.org>
18250 * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
18251 Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
18253 * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
18255 2008-11-12 Simon Josefsson <simon@josefsson.org>
18257 * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
18258 * doc/gnulib.texi: Add section for warnings.
18260 2008-11-11 Bruno Haible <bruno@clisp.org>
18262 * lib/sockets.h: Add a comment.
18264 2008-11-11 Karl Berry <karl@gnu.org>
18266 * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
18268 2008-11-11 Eric Blake <ebb9@byu.net>
18270 fdl.texi: avoid git symlinks
18271 * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
18273 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
18275 * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
18277 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
18279 * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
18280 (gl_WARN_ADD): Substitute $2 if literal.
18282 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
18284 * m4/warning.m4: Remove.
18286 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
18288 * m4/warnings.m4: Almost complete rewrite. :-)
18290 2008-11-10 Simon Josefsson <simon@josefsson.org>
18292 * modules/warnings: New module.
18293 * m4/warnings.m4: New file.
18294 * MODULES.html.sh: Mention warnings module.
18295 With review improvements from Paolo Bonzini <bonzini@gnu.org> and
18296 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18298 2008-11-10 Eric Blake <ebb9@byu.net>
18300 fdl.texi: make a symlink to the latest version
18301 * doc/standards.texi: Revert today's earlier change.
18302 * doc/fdl-1.2.texi: Rename from old fdl.texi...
18303 * doc/fdl.texi: ...and replace this with a symlink to the newer
18306 2008-11-10 Bruno Haible <bruno@clisp.org>
18308 * tests/test-select-fd.c (main): Accept the result file name as fourth
18310 * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
18311 * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
18313 2008-11-10 Bruno Haible <bruno@clisp.org>
18315 * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
18316 HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
18317 as autoconf-substituted macros.
18318 * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
18319 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
18320 gl_NETDB_H_DEFAULTS. Set these variables.
18321 * modules/netdb (Makefile.am): Substitute these variables.
18323 2008-11-10 Eric Blake <ebb9@byu.net>
18325 standards.texi: include correct file for FDL 1.3
18326 * doc/standards.texi (GNU Free Documentation License): Change
18327 include file to pull in FDL 1.3, not 1.2.
18329 fdl.texi: revert accidental change to license
18330 * doc/fdl.texi: This is FDL 1.2, not 1.3.
18332 2008-11-10 Bruno Haible <bruno@clisp.org>
18334 * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
18335 cross-compiling guesses also when the native compile gives no result.
18337 2008-11-10 Bruno Haible <bruno@clisp.org>
18339 * lib/spawni.c (__spawni): Force variable into the stack.
18341 2008-11-10 Bruno Haible <bruno@clisp.org>
18343 Add support for Haiku.
18344 * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
18345 glibc and BeOS, but also on Haiku.
18346 * lib/fpurge.c (fpurge): Likewise.
18347 * lib/freadable.c (freadable): Likewise.
18348 * lib/freadahead.c (freadahead): Likewise.
18349 * lib/freading.c (freading): Likewise.
18350 * lib/freadptr.c (freadptr): Likewise.
18351 * lib/freadseek.c (freadptrinc): Likewise.
18352 * lib/fseeko.c (rpl_fseeko): Likewise.
18353 * lib/fseterr.c (fseterr): Likewise.
18354 * lib/fwritable.c (fwritable): Likewise.
18355 * lib/fwriting.c (fwriting): Likewise.
18356 Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
18358 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
18360 * lib/config.charset: Treat Haiku like BeOS.
18362 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
18364 * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
18365 * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
18367 2008-11-08 Bruno Haible <bruno@clisp.org>
18369 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
18372 2008-11-08 Bruno Haible <bruno@clisp.org>
18374 * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
18376 2008-11-08 Bruno Haible <bruno@clisp.org>
18378 * tests/test-select-fd.c: New file.
18379 * tests/test-select-in.sh: New file.
18380 * tests/test-select-out.sh: New file.
18381 * tests/test-select-stdin.c: New file.
18382 * modules/select-tests (Files): Add the new files.
18383 (Depends-on): Add gettimeofday.
18384 (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
18385 Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
18386 check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
18388 2008-11-06 Alexander V. Lukyanov <lav@netis.ru>
18389 Bruno Haible <bruno@clisp.org>
18391 * lib/sys_stat.in.h: Enclose function definitions in extern "C".
18393 2008-10-12 Giuseppe Scrivano <gscrivano@gnu.org>
18395 * build-aux/pmccabe2html: Added support for C++ source files.
18397 2008-11-05 Ben Pfaff <blp@gnu.org>
18399 Fix lib/close.c build on Windows.
18400 * modules/close (Files): Add lib/w32sock.h.
18402 2008-11-05 Joel E. Denny <jdenny@ces.clemson.edu>
18404 Accept Bison's NEWS format.
18405 * build-aux/announce-gen (print_news_deltas): Tweak
18408 2008-11-04 Bruno Haible <bruno@clisp.org>
18410 * modules/random_r (Maintainer): Add glibc.
18412 2008-11-04 Simon Josefsson <simon@josefsson.org>
18414 * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
18415 by karl@freefriends.org (Karl Berry).
18416 * doc/alloca.texi: Likewise.
18417 * doc/c-ctype.texi: Likewise.
18418 * doc/c-strcase.texi: Likewise.
18419 * doc/c-strcaseeq.texi: Likewise.
18420 * doc/c-strcasestr.texi: Likewise.
18421 * doc/c-strstr.texi: Likewise.
18422 * doc/c-strtod.texi: Likewise.
18423 * doc/c-strtold.texi: Likewise.
18424 * doc/ctime.texi: Likewise.
18425 * doc/error.texi: Likewise.
18426 * doc/fdl.texi: Likewise.
18427 * doc/gcd.texi: Likewise.
18428 * doc/getdate.texi: Likewise.
18429 * doc/gnulib-intro.texi: Likewise.
18430 * doc/gnulib-tool.texi: Likewise.
18431 * doc/gnulib.texi: Likewise.
18432 * doc/inet_ntoa.texi: Likewise.
18433 * doc/maintain.texi: Likewise.
18434 * doc/make-stds.texi: Likewise.
18435 * doc/quote.texi: Likewise.
18436 * doc/regexprops-generic.texi: Likewise.
18437 * doc/standards.texi: Likewise.
18438 * doc/verify.texi: Likewise.
18439 * doc/visibility.texi: Likewise.
18440 * doc/gnulib.texi (GNU Free Documentation License): Include
18441 fdl-1.3.texi instead of fdl.texi.
18443 2008-11-04 Simon Josefsson <simon@josefsson.org>
18445 * doc/fdl-1.3.texi: New file, from
18446 <http://www.gnu.org/licenses/fdl-1.3.texi>.
18447 * modules/fdl-1.3: Add.
18448 * MODULES.html.sh: Add fdl-1.3.
18450 2008-11-03 Bruno Haible <bruno@clisp.org>
18452 Make determination of absolute name of header file work with AIX xlc.
18453 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
18454 AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
18456 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
18457 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
18459 2008-11-03 Simon Josefsson <simon@josefsson.org>
18461 * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
18462 -fprofile-arcs -ftest-coverage. Suggested by Ludovic Courtès
18465 2008-11-02 Bruno Haible <bruno@clisp.org>
18467 Mark 'strpbrk' obsolete.
18468 * modules/strpbrk (Status, Notice): New sections.
18469 * modules/strtok_r (Depends-on): Add strpbrk.
18471 2008-11-02 Bruno Haible <bruno@clisp.org>
18473 Mark 'strdup' obsolete.
18474 * modules/strdup (Status, Notice): New sections.
18475 * modules/findprog (Depends-on): Add strdup.
18476 * modules/getaddrinfo (Depends-on): Likewise.
18477 * modules/localename (Depends-on): Likewise.
18478 * modules/relocatable-lib (Depends-on): Likewise.
18479 * modules/relocatable-lib-lgpl (Depends-on): Likewise.
18480 * modules/relocatable-prog (Depends-on): Likewise.
18481 * modules/trim (Depends-on): Likewise.
18482 * modules/unictype/gen-ctype (Depends-on): Likewise.
18483 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
18485 2008-11-02 Bruno Haible <bruno@clisp.org>
18487 Mark 'strcspn' obsolete.
18488 * modules/strcspn (Status, Notice): New sections.
18490 2008-11-02 Bruno Haible <bruno@clisp.org>
18492 Mark 'rmdir' obsolete.
18493 * modules/rmdir (Status, Notice): New sections.
18494 * modules/clean-temp (Depends-on): Add rmdir.
18495 * modules/openat (Depends-on): Likewise.
18497 2008-11-02 Bruno Haible <bruno@clisp.org>
18499 Mark 'raise' obsolete.
18500 * modules/raise (Status, Notice): New sections.
18501 (Include): Specify <signal.h>.
18502 * modules/stdio (Depends-on): Add raise.
18503 * modules/write (Depends-on): Likewise.
18505 2008-11-02 Bruno Haible <bruno@clisp.org>
18507 Mark 'memset' obsolete.
18508 * modules/memset (Status, Notice): New sections.
18510 2008-11-02 Bruno Haible <bruno@clisp.org>
18512 Mark 'memmove' obsolete.
18513 * modules/memmove (Status, Notice): New sections.
18514 * modules/argp (Depends-on): Add memmove.
18515 * modules/argz (Depends-on): Likewise.
18516 * modules/canonicalize (Depends-on): Likewise.
18517 * modules/canonicalize-lgpl (Depends-on): Likewise.
18518 * modules/fts (Depends-on): Likewise.
18519 * modules/getcwd (Depends-on): Likewise.
18520 * modules/human (Depends-on): Likewise.
18521 * modules/regex (Depends-on): Likewise.
18522 * modules/striconveh (Depends-on): Likewise.
18523 * modules/trim (Depends-on): Likewise.
18524 * modules/unistr/u8-move (Depends-on): Likewise.
18525 * modules/unistr/u16-move (Depends-on): Likewise.
18526 * modules/unistr/u32-move (Depends-on): Likewise.
18528 2008-11-02 Bruno Haible <bruno@clisp.org>
18530 Mark 'memcpy' obsolete.
18531 * modules/memcpy (Status, Notice): New sections.
18533 2008-11-02 Bruno Haible <bruno@clisp.org>
18535 Mark 'memcmp' obsolete.
18536 * modules/memcmp (Status, Notice): New sections.
18537 * modules/argmatch (Depends-on): Add memchr.
18538 * modules/backupfile (Depends-on): Likewise.
18539 * modules/c-strcasestr (Depends-on): Likewise.
18540 * modules/crypto/des (Depends-on): Likewise.
18541 * modules/csharpcomp (Depends-on): Likewise.
18542 * modules/fnmatch (Depends-on): Likewise.
18543 * modules/git-merge-changelog (Depends-on): Likewise.
18544 * modules/isnand (Depends-on): Likewise.
18545 * modules/isnand-nolibm (Depends-on): Likewise.
18546 * modules/isnanf (Depends-on): Likewise.
18547 * modules/isnanf-nolibm (Depends-on): Likewise.
18548 * modules/isnanl (Depends-on): Likewise.
18549 * modules/isnanl-nolibm (Depends-on): Likewise.
18550 * modules/mbchar (Depends-on): Likewise.
18551 * modules/memcoll (Depends-on): Likewise.
18552 * modules/quotearg (Depends-on): Likewise.
18553 * modules/regex (Depends-on): Likewise.
18554 * modules/relocatable-prog (Depends-on): Likewise.
18555 * modules/same (Depends-on): Likewise.
18556 * modules/signbit (Depends-on): Likewise.
18557 * modules/strcasestr-simple (Depends-on): Likewise.
18558 * modules/unictype/gen-ctype (Depends-on): Likewise.
18559 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
18560 * modules/uniname/uniname (Depends-on): Likewise.
18561 * modules/unistr/u8-cmp (Depends-on): Likewise.
18563 2008-11-02 Bruno Haible <bruno@clisp.org>
18565 Mark 'memchr' obsolete.
18566 * modules/memchr (Status, Notice): New sections.
18567 * modules/argp (Depends-on): Add memchr.
18568 * modules/base64 (Depends-on): Likewise.
18569 * modules/c-strcasestr (Depends-on): Likewise.
18570 * modules/chdir-long (Depends-on): Likewise.
18571 * modules/fnmatch (Depends-on): Likewise.
18572 * modules/getsubopt (Depends-on): Likewise.
18573 * modules/git-merge-changelog (Depends-on): Likewise.
18574 * modules/glob (Depends-on): Likewise.
18575 * modules/strcasestr-simple (Depends-on): Likewise.
18576 * modules/strnlen (Depends-on): Likewise.
18578 2008-11-02 Bruno Haible <bruno@clisp.org>
18580 Mark 'atexit' obsolete.
18581 * modules/atexit (Status, Notice): New sections.
18582 * modules/chdir-long (Depends-on): Add atexit.
18583 * modules/wait-process (Depends-on): Likewise.
18585 2008-11-02 Bruno Haible <bruno@clisp.org>
18587 * gnulib-tool: New option --with-obsolete.
18588 (func_usage): Document it.
18589 (func_modules_transitive_closure): Drop obsolete dependencies if
18590 incobsolete is not true.
18591 (func_import): Read and save the incobsolete variable to the cache.
18593 2008-11-02 Bruno Haible <bruno@clisp.org>
18595 * modules/TEMPLATE-EXTENDED: New field 'Status'.
18596 * gnulib-tool: New option --extract-status.
18597 (func_usage): Document it.
18598 (sed_extract_prog): Recognize it.
18599 (func_get_status): New function.
18601 2008-10-30 Simon Josefsson <simon@josefsson.org>
18603 * modules/sockets (License): Change from LGPL to LGPLv2+.
18605 2008-10-28 Simon Josefsson <simon@josefsson.org>
18607 * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
18609 2008-10-28 Simon Josefsson <simon@josefsson.org>
18611 * MODULES.html.sh (Support for systems lacking POSIX:2001):
18612 Mention times and sys_times.
18613 * modules/sys_times, modules/sys_times-tests: New modules.
18614 * modules/times, modules/times-tests: Likewise
18615 * m4/sys_times_h.m4: New file.
18616 * lib/sys_times.in.h: Likewise
18617 * lib/times.c: Likewise.
18618 * tests/test-sys_times.c: Likewise.
18619 * tests/test-times.c: Likewise.
18620 * doc/posix-headers/sys_times.texi: Update.
18621 * doc/posix-functions/times.texi: Update.
18623 2008-10-28 Jim Meyering <meyering@redhat.com>
18625 * modules/tempname (Depends-on): Add lstat.
18627 * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
18629 2008-10-28 Simon Josefsson <simon@josefsson.org>
18631 * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
18632 * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
18633 using idiom used elsewhere in gnulib.
18635 2008-10-27 Jim Meyering <meyering@redhat.com>
18637 * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
18639 2008-10-27 Simon Josefsson <simon@josefsson.org>
18641 * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
18642 TESTS_ENVIRONMENT, for shell scripts that needs to call built
18644 * tests/test-argp-2.sh: Use $EXEEXT when needed.
18646 2008-10-27 Simon Josefsson <simon@josefsson.org>
18648 * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
18650 2008-10-27 Bruno Haible <bruno@clisp.org>
18652 * tests/test-lstat.c: Include <stdio.h>.
18654 2008-10-27 Simon Josefsson <simon@josefsson.org>
18656 * modules/lstat-tests: New module.
18657 * tests/test-lstat.c: New file.
18659 2008-10-26 Jim Meyering <meyering@redhat.com>
18661 * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
18663 2008-10-26 Simon Josefsson <simon@josefsson.org>
18664 Bruno Haible <bruno@clisp.org>
18666 Fix a clash between the type DATADIR on Windows and the macro DATADIR.
18667 * modules/configmake (Include): Add a note that the include must come
18668 after all system headers.
18669 * lib/javaversion.c: Include configmake.h after all other includes.
18671 2008-10-26 Bruno Haible <bruno@clisp.org>
18673 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
18674 HAVE_STRUCT_RANDOM_DATA to 1.
18675 (gl_STDLIB_H): Simplify.
18677 2008-10-26 Simon Josefsson <simon@josefsson.org>
18679 * m4/stdlib_h.m4: Check for struct random_data. Initialize and
18680 substitute HAVE_STRUCT_RANDOM_DATA.
18681 * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
18683 * modules/stdlib (Makefile.am): Substitute
18684 HAVE_STRUCT_RANDOM_DATA.
18686 2008-10-26 Simon Josefsson <simon@josefsson.org>
18688 * doc/gnulib.texi (@copying): Use GFDLv1.2+.
18689 * doc/gnulib-intro.texi (Copyright): Likewise.
18691 2008-10-26 Simon Josefsson <simon@josefsson.org>
18693 * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
18696 2008-10-25 Ben Pfaff <blp@cs.stanford.edu>
18697 Bruno Haible <bruno@clisp.org>
18699 * lib/unistd.in.h: Include <winsock2.h>.
18700 (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
18701 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
18702 Provide dummy declarations.
18703 (gethostname): Override.
18704 * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
18705 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
18706 gl_PREREQ_SYS_H_WINSOCK2.
18707 * modules/gethostname (Files): Add m4/sys_socket_h.m4.
18708 * doc/posix-functions/gethostname.texi: More details.
18710 2008-10-25 Bruno Haible <bruno@clisp.org>
18712 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
18713 gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
18714 * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
18716 * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
18718 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
18719 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
18720 gl_UNISTD_H_DEFAULTS.
18722 2008-10-25 Eric Blake <ebb9@byu.net>
18724 signbit: avoid spurious compiler failure
18725 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
18726 declarations inside function.
18728 2008-10-24 Simon Josefsson <simon@josefsson.org>
18729 Bruno Haible <bruno@clisp.org>
18731 * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
18732 * modules/random_r (Depends-on): Add stdint.
18734 2008-10-24 Bruno Haible <bruno@clisp.org>
18736 * modules/intprops (License): Change to LGPLv2+, with approval by Paul
18738 * modules/strerror (License): Likewise.
18740 2008-10-24 Jim Meyering <meyering@redhat.com>
18742 sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
18743 * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
18745 2008-10-24 Eric Blake <ebb9@byu.net>
18747 getgroups: fix compilation when getgroups is available
18748 * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
18749 but with <config.h> override of getgroups disabled.
18751 2008-10-24 Simon Josefsson <simon@josefsson.org>
18753 * doc/gnulib.texi (Header files): Add note about C++ problems.
18754 Explained by Bruno Haible <bruno@clisp.org>.
18756 2008-10-23 Bruno Haible <bruno@clisp.org>
18758 Define a dummy SA_NODEFER macro on Interix.
18759 * lib/signal.in.h (SA_NODEFER): Define fallback.
18760 Reported by Aleksey Cheusov <cheusov@tut.by> via
18761 Thomas Klausner <wiz@netbsd.org> and Eric Blake.
18763 2008-10-23 Bruno Haible <bruno@clisp.org>
18765 * modules/freadahead (License): Change to LGPLv2+.
18766 Suggested by Simon Josefsson.
18768 2008-10-23 Jim Meyering <meyering@redhat.com>
18770 random_r: new module
18771 * modules/random_r: New file.
18772 * m4/random_r.m4: New file.
18773 * lib/random_r.c: New file, from glibc.
18774 * modules/random_r-tests: New file.
18775 * tests/test-random_r.c: New file.
18776 * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
18778 (RAND_MAX): Define.
18779 * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
18780 * modules/stdlib: Substitute them, too.
18781 * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
18782 * doc/glibc-functions/initstate_r.texi: Mention the new module.
18783 * doc/glibc-functions/random_r.texi: Likewise.
18784 * doc/glibc-functions/setstate_r.texi: Likewise.
18785 * doc/glibc-functions/srandom_r.texi: Likewise.
18786 * config/srclist.txt: Mention it.
18788 2008-10-23 David Lutterkort <lutter@redhat.com>
18790 * modules/selinux-h: Search for LIB_SELINUX and mark it as a
18793 2008-10-23 Jim Meyering <meyering@redhat.com>
18795 selinux-h: mark parameters of stub functions as intentionally unused
18796 * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
18797 * lib/se-context.in.h: Likewise.
18799 2008-10-22 Simon Josefsson <simon@josefsson.org>
18801 * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
18803 2008-10-22 Simon Josefsson <simon@josefsson.org>
18805 * m4/getgroups.m4: Avoid invoking test with wrong parameters.
18807 2008-10-22 Eric Blake <ebb9@byu.net>
18809 glthread/thread: avoid compiler warning
18810 * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
18811 Add unreachable abort to silence compiler.
18813 2008-10-22 Eric Blake <ebb9@byu.net>
18815 netdb: also supply struct addrinfo for cygwin 1.5.x
18816 * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
18818 * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
18820 * doc/posix-headers/netdb.texi (netdb.h): Document this.
18822 2008-10-22 Bruno Haible <bruno@clisp.org>
18824 * users.txt: Update entry about pspp.
18826 2008-10-21 Bruno Haible <bruno@clisp.org>
18829 * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
18830 * lib/close.c (_gl_close_fd_maybe_socket): Make static.
18833 * lib/ioctl.c (ioctl): Don't undefine.
18834 * lib/socket.c (socket): Don't undefine.
18836 Remove unused module indicator macros.
18837 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
18838 GNULIB_$1 as a C macro.
18840 * doc/posix-functions/close.texi: Undo last change.
18841 * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
18844 2008-10-21 Bruno Haible <bruno@clisp.org>
18846 Add gethostname() declaration to <unistd.h>.
18847 * lib/unistd.in.h (gethostname): New declaration.
18848 * lib/gethostname.c: Include <unistd.h>.
18849 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
18850 gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
18851 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
18852 and HAVE_GETHOSTNAME.
18853 * modules/gethostname (Depends-on): Add unistd.
18854 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18855 (Include): Specify <unistd.h>.
18856 * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
18858 * tests/test-gethostname.c: Include <unistd.h> first.
18860 2008-10-21 Bruno Haible <bruno@clisp.org>
18862 * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
18863 * modules/select-tests (Depends-on): Likewise.
18864 Reported by Simon Josefsson.
18866 2008-10-21 Simon Josefsson <simon@josefsson.org>
18868 * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
18869 * lib/accept.c: New file, based on winsock.c.
18870 * lib/bind.c: New file, based on winsock.c.
18871 * lib/connect.c: New file, based on winsock.c.
18872 * lib/getpeername.c: New file, based on winsock.c.
18873 * lib/getsockname.c: New file, based on winsock.c.
18874 * lib/getsockopt.c: New file, based on winsock.c.
18875 * lib/ioctl.c: New file, based on winsock.c.
18876 * lib/listen.c: New file, based on winsock.c.
18877 * lib/recv.c: New file, based on winsock.c.
18878 * lib/recvfrom.c: New file, based on winsock.c.
18879 * lib/send.c: New file, based on winsock.c.
18880 * lib/sendto.c: New file, based on winsock.c.
18881 * lib/setsockopt.c: New file, based on winsock.c.
18882 * lib/shutdown.c: New file, based on winsock.c.
18883 * lib/socket.c: New file, based on winsock.c.
18884 * lib/w32sock.h: New file, based on winsock.c.
18885 * lib/winsock.c: Remove file.
18886 * modules/accept: Likewise.
18887 * modules/bind: Likewise.
18888 * modules/connect: Likewise.
18889 * modules/getpeername: Likewise.
18890 * modules/getsockname: Likewise.
18891 * modules/getsockopt: Likewise.
18892 * modules/ioctl: Likewise.
18893 * modules/listen: Likewise.
18894 * modules/recv: Likewise.
18895 * modules/recvfrom: Likewise.
18896 * modules/send: Likewise.
18897 * modules/sendto: Likewise.
18898 * modules/setsockopt: Likewise.
18899 * modules/shutdown: Likewise.
18900 * modules/socket: Use socket.c instead of winsock.c.
18901 * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
18902 * doc/posix-functions/accept.texi: Doc fix.
18903 * doc/posix-functions/bind.texi: Doc fix.
18904 * doc/posix-functions/close.texi: Doc fix.
18905 * doc/posix-functions/connect.texi: Doc fix.
18906 * doc/posix-functions/getpeername.texi: Doc fix.
18907 * doc/posix-functions/getsockname.texi: Doc fix.
18908 * doc/posix-functions/getsockopt.texi: Doc fix.
18909 * doc/posix-functions/ioctl.texi: Doc fix.
18910 * doc/posix-functions/listen.texi: Doc fix.
18911 * doc/posix-functions/recv.texi: Doc fix.
18912 * doc/posix-functions/recvfrom.texi: Doc fix.
18913 * doc/posix-functions/send.texi: Doc fix.
18914 * doc/posix-functions/sendto.texi: Doc fix.
18915 * doc/posix-functions/setsockopt.texi: Doc fix.
18916 * doc/posix-functions/shutdown.texi: Doc fix.
18917 * doc/posix-functions/socket.texi: Doc fix.
18919 2008-10-20 Bruno Haible <bruno@clisp.org>
18921 Take into account the role of SIGABRT_COMPAT on Windows 2008.
18922 * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
18923 (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
18924 as an alias for SIGABRT.
18925 * lib/sigaction.c (SIGABRT_COMPAT): New macro.
18926 (sigaction): Map it to SIGABRT.
18927 Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
18929 2008-10-20 Bruno Haible <bruno@clisp.org>
18931 * lib/fts.c: Don't include lstat.h.
18932 * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
18934 Move the lstat() declaration to <sys/stat.h>.
18935 * lib/lstat.h: Remove file.
18936 * lib/sys_stat.in.h: Add special invocation convention.
18937 (lstat): New declaration.
18938 * lib/lstat.c (orig_lstat): New function.
18939 (rpl_lstat): Use orig_lstat instead of lstat.
18940 * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
18941 AC_C_INLINE. Set REPLACE_LSTAT.
18942 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
18944 * modules/lstat (Files): Remove lib/lstat.h.
18945 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
18946 (Include): Specify <sys/stat.h> instead of lstat.h.
18947 * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
18949 * NEWS: Mention the change.
18951 2008-10-20 Bruno Haible <bruno@clisp.org>
18953 * modules/posix_spawn-tests: New file.
18954 * tests/test-posix_spawn3.c: New file.
18956 2008-10-20 Bruno Haible <bruno@clisp.org>
18958 * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
18959 * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
18960 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
18961 * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
18962 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
18964 2008-10-20 Bruno Haible <bruno@clisp.org>
18966 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
18967 of posix_spawn on AIX 5.3.
18969 2008-10-20 Bruno Haible <bruno@clisp.org>
18971 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
18973 2008-10-20 Bruno Haible <bruno@clisp.org>
18975 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
18976 of AC_LANG_PROGRAM.
18978 2008-10-20 Simon Josefsson <simon@josefsson.org>
18980 * lib/netdb.in.h: Don't define GNU specific constants until they
18981 are supported or needed. Reported by Bruno Haible
18984 2008-10-20 Simon Josefsson <simon@josefsson.org>
18986 * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
18988 2008-10-20 Simon Josefsson <simon@josefsson.org>
18990 * lib/getaddrinfo.h: Remove file.
18991 * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
18992 * m4/getaddrinfo.m4: Call gl_HEADER_NETDB. Don't check for netdb.h.
18993 * lib/netdb.in.h: Add declarations from getaddrinfo.h.
18994 * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
18995 * modules/netdb: Substitute GNULIB_GETADDRINFO.
18996 * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
18997 * tests/test-getaddrinfo.c: Likewise.
18998 * lib/gai_strerror.c: Likewise. Also drop HAVE_NETDB_H check.
18999 * NEWS: Mention change.
19001 2008-10-19 Bruno Haible <bruno@clisp.org>
19003 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
19005 2008-10-19 Bruno Haible <bruno@clisp.org>
19007 * lib/wait-process.c: Include simply <sys/wait.h>.
19008 (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
19009 WIFSTOPPED): Remove fallback definitions.
19010 * modules/wait-process (Depends-on): Add sys_wait.
19012 New module 'sys_wait'.
19013 * modules/sys_wait: New file.
19014 * lib/sys_wait.in.h: New file, partially copied from
19015 lib/wait-process.c.
19016 * m4/sys_wait_h.m4: New file.
19017 * doc/posix-headers/sys_wait.texi: Mention the new module.
19019 2008-10-19 Bruno Haible <bruno@clisp.org>
19021 * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
19023 2008-10-19 Bruno Haible <bruno@clisp.org>
19025 Assume that waitpid() fills an 'int' status, not a 'union wait'.
19026 * lib/wait-process.c (WAIT_T): Remove type.
19027 (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
19028 (wait_subprocess): Update.
19030 2008-10-19 Bruno Haible <bruno@clisp.org>
19032 New module 'atoll'.
19033 * modules/atoll: New file.
19034 * lib/stdlib.in.h (atoll): New declaration.
19035 * lib/atoll.c: New file, from glibc with modifications.
19036 * m4/atoll.m4: New file.
19037 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
19039 * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
19040 * doc/posix-functions/atoll.texi: Mention the new module.
19042 2008-10-19 Bruno Haible <bruno@clisp.org>
19044 Add strtoull() declaration to <stdlib.h>.
19045 * lib/stdlib.in.h (strtoull): New declaration.
19046 * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19048 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
19050 * modules/strtoull (Depends-on): Add stdlib.
19051 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19052 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
19055 2008-10-19 Bruno Haible <bruno@clisp.org>
19057 Add strtoll() declaration to <stdlib.h>.
19058 * lib/stdlib.in.h (strtoll): New declaration.
19059 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19061 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
19063 * modules/strtoll (Depends-on): Add stdlib.
19064 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19065 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
19067 2008-10-19 Bruno Haible <bruno@clisp.org>
19069 * modules/bcopy (Depends-on): Add strings.
19070 (Include): Specify <strings.h>.
19072 2008-10-19 Bruno Haible <bruno@clisp.org>
19074 * doc/posix-functions/atexit.texi: Update doc regarding mingw.
19076 2008-10-19 Bruno Haible <bruno@clisp.org>
19078 * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
19079 the parameter from 'errno' to 'errnum'. Fixes a compilation error on
19082 2008-10-19 Bruno Haible <bruno@clisp.org>
19084 * lib/atanl.c: Don't include isnanl.h.
19085 * lib/cosl.c: Likewise.
19086 * lib/ldexpl.c: Likewise.
19087 * lib/logl.c: Likewise.
19088 * lib/sinl.c: Likewise.
19089 * lib/sqrtl.c: Likewise.
19090 * lib/tanl.c: Likewise.
19092 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
19093 * lib/isnanf.h: Remove file.
19094 * lib/isnand.h: Remove file.
19095 * lib/isnanl.h: Remove file.
19096 * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
19097 lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
19099 * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
19100 HAVE_ISNANF, don't define it as a C macro.
19101 * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
19102 HAVE_ISNAND, don't define it as a C macro.
19103 * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
19104 HAVE_ISNANL, don't define it as a C macro.
19105 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
19107 * modules/isnanf (Files): Remove lib/isnanf.h.
19108 (Depends-on): Add math.
19109 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19110 (Include): Specify <math.h> instead of isnanf.h.
19111 * modules/isnand (Files): Remove lib/isnand.h.
19112 (Depends-on): Add math.
19113 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19114 (Include): Specify <math.h> instead of isnand.h.
19115 * modules/isnanl (Files): Remove lib/isnanl.h.
19116 (Depends-on): Add math.
19117 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19118 (Include): Specify <math.h> instead of isnanl.h.
19119 * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
19121 * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
19122 * tests/test-isnand.c: Include <math.h> instead of isnand.h.
19123 * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
19124 * NEWS: Mention the change.
19126 2008-10-18 Bruno Haible <bruno@clisp.org>
19128 Add getusershell(), setusershell(), endusershell() declarations to
19130 * lib/unistd.in.h (getusershell, setusershell, endusershell): New
19132 * lib/getusershell.c: Include unistd.h.
19133 * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
19134 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19136 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
19137 and HAVE_GETUSERSHELL.
19138 * modules/getusershell (Depends-on): Add unistd, extensions.
19139 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19140 (Include): Specify <unistd.h>.
19141 * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
19144 2008-10-18 Bruno Haible <bruno@clisp.org>
19146 Add a getloadavg() declaration to <stdlib.h>.
19147 * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
19148 getloadavg declaration.
19149 (getloadavg): New declaration.
19150 * lib/getloadavg.c: Include <stdlib.h> first.
19151 * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
19152 AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
19153 HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
19154 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
19155 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19156 * modules/getloadavg (Depends-on): Add stdlib, extensions.
19157 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19158 (Include): Specify <stdlib.h>.
19159 * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
19160 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19162 2008-10-18 Bruno Haible <bruno@clisp.org>
19164 * lib/dirchownmod.c: Don't include lchmod.h.
19166 Move the lchmod() declaration to <sys/stat.h>.
19167 * lib/lchmod.h: Remove file.
19168 * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
19169 (lchmod): New declaration, moved here from lib/lchown.h.
19170 * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
19171 AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
19172 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
19174 * modules/lchmod (Files): Remove lib/lchmod.h.
19175 (Depends-on): Add sys_stat, extensions.
19176 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19177 (Include): Specify <sys/stat.h> instead of lchmod.h.
19178 * modules/sys_stat (Depends-on): Add link-warning.
19179 (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
19180 definition of GL_LINK_WARNING.
19181 * NEWS: Mention the change.
19183 2008-10-18 Bruno Haible <bruno@clisp.org>
19185 * lib/fchdir.c: Don't include dirfd.h.
19186 * lib/fts.c: Likewise.
19187 * lib/getcwd.c: Likewise.
19188 * lib/glob.c: Likewise.
19190 Move the dirfd() declaration to <dirent.h>.
19191 * lib/dirfd.h: Remove file.
19192 * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
19193 (dirfd): New declaration.
19194 * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
19195 * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
19196 AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
19198 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
19200 * modules/dirfd (Files): Remove lib/dirfd.h.
19201 (Depends-on): Add dirent, extensions.
19202 (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
19203 (Include): Specify <dirent.h> instead of dirfd.h.
19204 * modules/dirent (Depends-on): Add link-warning.
19205 (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
19206 definition of GL_LINK_WARNING.
19207 * NEWS: Mention the change.
19209 2008-10-18 Bruno Haible <bruno@clisp.org>
19211 Move the euidaccess() declaration to <unistd.h>.
19212 * lib/euidaccess.h: Remove file.
19213 * lib/unistd.in.h (euidaccess): New declaration.
19214 * lib/euidaccess.c: Don't include euidaccess.h.
19215 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
19216 Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
19217 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
19218 and HAVE_EUIDACCESS.
19219 * modules/euidaccess (Files): Remove lib/euidaccess.h.
19220 (Depends-on): Add unistd.
19221 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19222 (Include): Specify <unistd.h> instead of euidaccess.h.
19223 * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
19225 * NEWS: Mention the change.
19227 2008-10-18 Bruno Haible <bruno@clisp.org>
19229 * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
19231 Move the getdomainname() declaration to <unistd.h>.
19232 * lib/getdomainname.h: Remove file.
19233 * lib/unistd.in.h (getdomainname): New declaration.
19234 * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
19235 * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19236 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19237 HAVE_GETDOMAINNAME.
19238 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19239 GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
19240 * modules/getdomainname (Files): Remove lib/getdomainname.h.
19241 (Depends-on): Add unistd, extensions.
19242 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19243 (Includes): Specify <unistd.h> instead of getdomainname.h.
19244 * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
19245 HAVE_GETDOMAINNAME.
19246 * NEWS: Mention the change.
19248 2008-10-18 Bruno Haible <bruno@clisp.org>
19250 * modules/dirent: New file.
19251 * m4/dirent_h.m4: New file.
19252 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
19253 Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
19254 * modules/fchdir (Files): Remove lib/dirent.in.h.
19255 (Depends-on): Add dirent.
19256 (Makefile.am): Move rules to modules/dirent.
19257 * doc/posix-headers/dirent.texi: Mention the new module.
19259 2008-10-18 Bruno Haible <bruno@clisp.org>
19261 Avoid -Wunused-parameter warnings in public gnulib header files.
19262 * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
19264 * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
19266 2008-10-18 Bruno Haible <bruno@clisp.org>
19268 * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
19269 * doc/glibc-functions/error.texi: Mention the module 'error'.
19270 * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
19271 * doc/glibc-functions/getdomainname.texi: Mention the module
19273 * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
19274 * doc/glibc-functions/getpagesize.texi: Mention the module
19276 * doc/glibc-functions/getusershell.texi: Mention the module
19278 * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
19279 * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
19280 * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
19281 * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
19282 * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
19283 * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
19284 * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
19285 * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
19286 * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
19287 * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
19288 * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
19289 * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
19290 * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
19291 * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
19293 2008-10-17 Bruno Haible <bruno@clisp.org>
19295 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
19296 HP-UX and IRIX, use -0.0L.
19297 * tests/test-ceill.c (minus_zero): Likewise.
19298 * tests/test-floorl.c (minus_zero): Likewise.
19299 * tests/test-frexpl.c (minus_zero): Likewise.
19300 * tests/test-isnan.c (minus_zerol): Likewise.
19301 * tests/test-isnanl.h (minus_zero): Likewise.
19302 * tests/test-ldexpl.c (minus_zero): Likewise.
19303 * tests/test-roundl.c (minus_zero): Likewise.
19304 * tests/test-signbit.c (minus_zerol): Likewise.
19305 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
19306 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
19307 * tests/test-truncl.c (minus_zero): Likewise.
19308 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
19309 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
19310 Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
19311 and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
19313 2008-10-17 Bruno Haible <bruno@clisp.org>
19315 Avoid gcc warnings because of #pragma GCC system_header on older gcc.
19316 * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
19317 that it gets activated only for gcc >= 3.0.
19318 * lib/dirent.in.h: Likewise.
19319 * lib/errno.in.h: Likewise.
19320 * lib/fcntl.in.h: Likewise.
19321 * lib/float.in.h: Likewise.
19322 * lib/iconv.in.h: Likewise.
19323 * lib/inttypes.in.h: Likewise.
19324 * lib/locale.in.h: Likewise.
19325 * lib/math.in.h: Likewise.
19326 * lib/netdb.in.h: Likewise.
19327 * lib/netinet_in.in.h: Likewise.
19328 * lib/search.in.h: Likewise.
19329 * lib/signal.in.h: Likewise.
19330 * lib/spawn.in.h: Likewise.
19331 * lib/stdarg.in.h: Likewise.
19332 * lib/stdint.in.h: Likewise.
19333 * lib/stdio.in.h: Likewise.
19334 * lib/stdlib.in.h: Likewise.
19335 * lib/string.in.h: Likewise.
19336 * lib/strings.in.h: Likewise.
19337 * lib/sys_file.in.h: Likewise.
19338 * lib/sys_ioctl.in.h: Likewise.
19339 * lib/sys_select.in.h: Likewise.
19340 * lib/sys_socket.in.h: Likewise.
19341 * lib/sys_stat.in.h: Likewise.
19342 * lib/sys_time.in.h: Likewise.
19343 * lib/sysexits.in.h: Likewise.
19344 * lib/time.in.h: Likewise.
19345 * lib/unistd.in.h: Likewise.
19346 * lib/wchar.in.h: Likewise.
19347 * lib/wctype.in.h: Likewise.
19348 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19350 2008-10-17 Jim Meyering <meyering@redhat.com>
19352 ignore-value: don't depend on inline module
19353 * modules/ignore-value (Depends-on): Remove 'inline'.
19354 (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
19355 Suggestion from Bruno Haible.
19357 2008-10-17 Bruno Haible <bruno@clisp.org>
19359 New implementation of condition variables for Win32.
19360 * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
19361 (gl_linked_waitqueue_t): New type.
19362 (gl_cond_t): Use it.
19363 * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
19364 (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
19365 gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
19366 (glthread_cond_init_func, glthread_cond_wait_func,
19367 glthread_cond_timedwait_func, glthread_cond_signal_func,
19368 glthread_cond_broadcast_func, glthread_cond_destroy_func):
19369 Reimplemented on the basis of gl_linked_waitqueue_t.
19370 * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
19372 (gl_rwlock_t): Update.
19373 * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
19375 2008-10-17 Simon Josefsson <simon@josefsson.org>
19377 * modules/recvfrom (Depends-on): Add dependency on getpeername.
19378 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19380 2008-10-17 Jim Meyering <meyering@redhat.com>
19382 ignore-value: new module
19383 * modules/ignore-value: New file.
19384 * lib/ignore-value.h: New file.
19385 * MODULES.html.sh (Compiler warning management): New section,
19386 just for this module. More to come.
19388 2008-10-16 Paul Eggert <eggert@cs.ucla.edu>
19390 open-safer.c: avoid 'signed and unsigned in conditional...' warning
19391 * lib/open-safer.c (open_safer): Use an "if/else" statement in place
19392 of the ternary operator. Reported by Reuben Thomas <rrt@sc3d.org>.
19394 2008-10-16 Jim Meyering <meyering@redhat.com>
19396 openat-die.c: avoid 'no previous prototype' warning
19397 * lib/openat-die.c: Include "openat.h".
19398 Reported by Reuben Thomas <rrt@sc3d.org>.
19400 2008-10-16 Simon Josefsson <simon@josefsson.org>
19402 * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
19403 * lib/netdb.in.h: Fix typo.
19404 Reported by Bruno Haible <bruno@clisp.org>
19406 * lib/netdb.in.h: Include sys/socket.h for platforms without
19407 netdb.h, to get structures like hostent on MinGW.
19408 * modules/netdb (Depends-on): Add sys_socket.
19410 2008-10-15 Simon Josefsson <simon@josefsson.org>
19412 * modules/netdb, modules/netdb-tests: New file.
19413 * m4/netdb_h.m4: New file.
19414 * lib/netdb.in.h: Add, currently just an empty file pending
19416 * tests/test-netdb.c: New file.
19417 * doc/posix-headers/netdb.texi: Mention that we replace it if
19419 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19422 2008-10-15 Simon Josefsson <simon@josefsson.org>
19424 * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
19427 2008-10-13 Bruno Haible <bruno@clisp.org>
19429 * lib/glthread/cond.c (glthread_cond_wait_func,
19430 glthread_cond_timedwait_func): Add a comment.
19432 2008-10-13 Yoann Vandoorselaere <yoann@prelude-ids.org>
19434 * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
19435 * tests/test-select.c: Likewise,
19437 2008-10-13 Bruno Haible <bruno@clisp.org>
19439 * lib/glthread/cond.c (glthread_cond_wait_func,
19440 glthread_cond_timedwait_func): Fix variable name.
19441 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19443 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
19445 fix getaddrinfo emulation for systems with struct sockaddr.sa_len
19446 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
19447 struct sockaddr.sa_len.
19448 * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
19450 2008-10-13 Simon Josefsson <simon@josefsson.org>
19452 * build-aux/pmccabe2html: Add css and css_url parameters.
19454 2008-10-12 Bruno Haible <bruno@clisp.org>
19456 * tests/test-sameacls.c (main) [AIX]: Clear type argument before
19458 Reported by Rainer Tammer <tammer@tammer.net>.
19460 2008-10-12 Bruno Haible <bruno@clisp.org>
19462 Use msvcrt aware primitives for creation/termination of Win32 threads.
19463 * lib/glthread/thread.c: Include <process.h>.
19464 (glthread_create_func): Use _beginthreadex instead of CreateThread.
19465 (wrapper_func): Update signature.
19466 (gl_thread_exit_func): Use _endthreadex instead of EndThread.
19468 2008-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
19469 Bruno Haible <bruno@clisp.org>
19471 Provide a Win32 implementation of the 'cond' module.
19472 * lib/glthread/cond.h [USE_WIN32]: New implementation.
19473 * lib/glthread/cond.c (glthread_cond_init_func,
19474 glthread_cond_wait_func, glthread_cond_timedwait_func,
19475 glthread_cond_signal_func, glthread_cond_broadcast_func,
19476 glthread_cond_destroy_func) [USE_WIN32]: New functions.
19477 * modules/cond (Dependencies): Add gettimeofday.
19479 2008-10-11 Bruno Haible <bruno@clisp.org>
19481 Make sleep work on older versions of mingw.
19482 * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
19483 only whether it exists.
19484 * doc/posix-functions/sleep.texi: Mention the problem with older
19487 2008-10-11 Bruno Haible <bruno@clisp.org>
19489 New module 'shutdown'.
19490 * modules/shutdown: New file.
19491 * lib/sys_socket.in.h (shutdown): New declaration.
19492 * lib/winsock.c (shutdown): New function.
19493 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19495 * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
19496 * doc/posix-functions/shutdown.texi: Document the new module.
19498 2008-10-11 Jim Meyering <meyering@redhat.com>
19500 * lib/fclose.c: Fix typo in comment: s/close/fclose/.
19502 2008-10-11 Bruno Haible <bruno@clisp.org>
19504 New module 'fclose'.
19505 * modules/fclose: New file.
19506 * lib/stdio.in.h (fclose): New declaration.
19507 * lib/fclose.c: New file.
19508 * m4/fclose.m4: New file.
19509 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
19511 * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
19512 * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
19514 * modules/close (Depends-on): fclose.
19515 * doc/posix-functions/fclose.texi: Mention the problem on Windows.
19517 2008-10-11 Bruno Haible <bruno@clisp.org>
19519 * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
19520 set errno and don't call _close.
19522 2008-10-10 Bruno Haible <bruno@clisp.org>
19524 * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
19525 ACL, not afterwards. Fixes test failure on Cygwin.
19527 2008-10-09 Ben Pfaff <blp@gnu.org>
19529 * build-aux/announce-gen: Fix gnulib version related part of usage
19530 message. Die with a useful error message if no tarballs are
19533 2008-10-10 Jim Meyering <meyering@redhat.com>
19535 bootstrap: use git's --depth=N option only if it's supported
19536 * build-aux/bootstrap: Work with git-1.4.4.4, which does not
19537 recognize the --depth option. Reported by Pádraig Brady.
19539 2008-10-09 Bruno Haible <bruno@clisp.org>
19541 New module 'ioctl'.
19542 * modules/ioctl: New file.
19543 * lib/sys_socket.in.h (ioctl): Remove declaration.
19544 * lib/winsock.c: Include <sys/ioctl.h>.
19545 (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
19546 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19547 gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
19548 * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
19549 * doc/posix-functions/ioctl.texi: Mention the new module.
19551 2008-10-09 Bruno Haible <bruno@clisp.org>
19553 New module 'sys_ioctl'.
19554 * lib/sys_ioctl.in.h: New file.
19555 * m4/sys_ioctl_h.m4: New file.
19556 * modules/sys_ioctl: New file.
19557 * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
19559 2008-10-09 Bruno Haible <bruno@clisp.org>
19561 * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
19562 * lib/winsock.c: Include <stdarg.h>.
19563 (rpl_ioctl): Change to second argument 'int' and then varargs.
19565 2008-10-09 Bruno Haible <bruno@clisp.org>
19567 * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
19568 when the sys_socket module is present and the system has <winsock2.h>.
19570 2008-10-09 Bruno Haible <bruno@clisp.org>
19572 * doc/posix-functions/close.texi: Mention module 'close' instead of
19573 module 'sys_socket'.
19575 2008-10-09 Bruno Haible <bruno@clisp.org>
19577 * doc/glibc-headers/sys_ioctl.texi: New file.
19578 * doc/gnulib.texi: Include it.
19580 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19581 Bruno Haible <bruno@clisp.org>
19583 Combine the two replacements of 'close'.
19584 * lib/sys_socket.in.h (close): Define to a reminder to include
19586 (_gl_close_fd_maybe_socket): New declaration.
19587 (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
19588 * lib/winsock.c (close): Remove undefinition.
19589 (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
19590 needed for the gnulib module 'close'.
19591 * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
19592 define to an error symbol or to a warning, if suitable.
19593 * lib/close.c: Include <sys/socket.h>.
19594 (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
19595 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
19596 UNISTD_H_HAVE_WINSOCK2_H.
19597 (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
19598 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19599 UNISTD_H_HAVE_WINSOCK2_H.
19600 * modules/sys_socket (Files): Add m4/unistd_h.m4.
19601 (configure.ac): Set a module indicator.
19602 (Makefile.am): Substitute GNULIB_CLOSE.
19603 * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
19604 * modules/poll-tests (Depends-on): Add close.
19605 * modules/select-tests (Depends-on): Likewise.
19607 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19608 Bruno Haible <bruno@clisp.org>
19610 New module 'close'.
19611 * modules/close: New file.
19612 * lib/unistd.in.h (close): Move declaration out of the
19613 FCHDIR_REPLACEMENT scope.
19614 (_gl_unregister_fd): New declaration.
19615 * lib/close.c: New file.
19616 * lib/fchdir.c (rpl_close): Remove function.
19617 * m4/close.m4: New file.
19618 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
19620 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
19622 * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
19624 * modules/fchdir (Depends-on): Add close.
19626 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19627 Bruno Haible <bruno@clisp.org>
19629 * lib/fcntl.in.h (open): Simplify conditionals.
19630 (_gl_register_fd): New declaration.
19631 * lib/fchdir.c (rpl_open): Remove function.
19632 * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
19634 (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
19635 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
19638 2008-10-09 Jim Meyering <meyering@redhat.com>
19640 GNUmakefile: use the more name-space-friendly "_version"
19641 * top/GNUmakefile (_dummy): Update.
19642 (_version): Rename from "version".
19644 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19645 Bruno Haible <bruno@clisp.org>
19647 * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
19649 (_gl_register_fd): New function, extracted from rpl_open.
19650 (rpl_close, rpl_closedir): Use _gl_unregister_fd.
19651 (rpl_open, rpl_opendir): Use _gl_register_fd.
19653 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19655 Fix organization of 'open' replacement.
19656 * m4/open.m4 (gl_REPLACE_OPEN): New macro.
19657 (gl_FUNC_OPEN): Use it.
19658 (gl_PREREQ_OPEN): Add a : to make the body non-empty.
19660 2008-10-08 Bruno Haible <bruno@clisp.org>
19662 * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
19664 2008-10-08 Simon Josefsson <simon@josefsson.org>
19666 * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock). The file is
19667 AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
19670 2008-10-08 Eric Blake <ebb9@byu.net>
19672 GNUmakefile: add 'make version' target
19673 * top/GNUmakefile (_curr-ver): Split version update rules...
19674 (version): ...into a target.
19676 2008-10-07 Bruno Haible <bruno@clisp.org>
19678 Use a more portable replacement expression for -0.0L.
19679 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
19680 instead of -0.0L. Fix m4 quotation.
19682 * tests/test-signbit.c: Include <float.h>.
19683 (minus_zero): New variable.
19684 (test_signbitl): Use minus_zero instead of -zero.
19685 * modules/signbit-tests (Depends-on): Add float.
19687 * tests/test-ceill.c: Include <float.h>.
19688 (zero): Remove variable.
19689 (minus_zero): New variable.
19690 (main): Use minus_zero instead of -zero.
19691 * modules/ceill-tests (Depends-on): Add float.
19693 * tests/test-floorl.c: Include <float.h>.
19694 (zero): Remove variable.
19695 (minus_zero): New variable.
19696 (main): Use minus_zero instead of -zero.
19697 * modules/floorl-tests (Depends-on): Add float.
19699 * tests/test-roundl.c: Include <float.h>.
19700 (zero): Remove variable.
19701 (minus_zero): New variable.
19702 (main): Use minus_zero instead of -zero.
19703 * modules/roundl-tests (Depends-on): Add float.
19705 * tests/test-truncl.c: Include <float.h>.
19706 (zero): Remove variable.
19707 (minus_zero): New variable.
19708 (main): Use minus_zero instead of -zero.
19709 * modules/truncl-tests (Depends-on): Add float.
19711 * tests/test-frexpl.c (zero): Remove variable.
19712 (minus_zero): New variable.
19713 (main): Use minus_zero instead of -zero.
19714 * modules/frexpl-tests (Depends-on): Add float.
19716 * tests/test-isnan.c (zerol): Remove variable.
19717 (minus_zerol): New variable.
19718 (test_long_double): Use minus_zerol instead of -zerol.
19719 * modules/isnan-tests (Depends-on): Add float.
19721 * tests/test-isnanl.h (zero): Remove variable.
19722 (minus_zero): New variable.
19723 (main): Use minus_zero instead of -zero.
19724 * modules/isnanl-nolibm-tests (Depends-on): Add float.
19725 * modules/isnanl-tests (Depends-on): Add float.
19727 * tests/test-ldexpl.c (zero): Remove variable.
19728 (minus_zero): New variable.
19729 (main): Use minus_zero instead of -zero.
19730 * modules/ldexpl-tests (Depends-on): Add float.
19732 * tests/test-snprintf-posix.h (zerol): Remove variable.
19733 (minus_zerol): New variable.
19734 (test_function): Use minus_zerol instead of -zerol.
19735 * modules/snprintf-posix-tests (Depends-on): Add float.
19736 * modules/vsnprintf-posix-tests (Depends-on): Add float.
19738 * tests/test-sprintf-posix.h (zerol): Remove variable.
19739 (minus_zerol): New variable.
19740 (test_function): Use minus_zerol instead of -zerol.
19741 * modules/sprintf-posix-tests (Depends-on): Add float.
19742 * modules/vsprintf-posix-tests (Depends-on): Add float.
19744 * tests/test-vasnprintf-posix.c (zerol): Remove variable.
19745 (minus_zerol): New variable.
19746 (test_function): Use minus_zerol instead of -zerol.
19747 * modules/vasnprintf-posix-tests (Depends-on): Add float.
19749 * tests/test-vasprintf-posix.c (zerol): Remove variable.
19750 (minus_zerol): New variable.
19751 (test_function): Use minus_zerol instead of -zerol.
19752 * modules/vasprintf-posix-tests (Depends-on): Add float.
19754 2008-10-07 Simon Josefsson <simon@josefsson.org>
19756 * MODULES.html.sh (Support for building documentation): Mention
19757 pmccabe2html. Sort entries.
19759 Add pmccabe2html module, from gnupdf.
19760 * build-aux/pmccabe.css: New file.
19761 * build-aux/pmccabe2html: New file.
19762 * m4/pmccabe2html.m4: New file.
19763 * modules/pmccabe2html: New file.
19765 2008-10-07 Richard W.M. Jones <rjones@redhat.com>
19768 * MODULES.html.sh: Add to list of modules.
19769 * lib/flock.c: flock implementation for Windows and Unix systems
19771 * doc/glibc-functions/flock.texi: Update documentation.
19772 * lib/sys_file.in.h: <sys/file.h> header file.
19773 * m4/flock.m4: M4 macros.
19774 * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
19775 * modules/flock: flock module.
19776 * modules/flock-tests: flock tests module.
19777 * modules/sys_file: sys/file.h module.
19778 * tests/test-flock.c: test suite for flock.
19780 2008-10-06 Jim Meyering <meyering@redhat.com>
19782 bootstrap: check for LT_INIT more portably still ;-)
19783 * build-aux/bootstrap: Don't rely on \>, since it's not portable.
19784 Spotted by Bruno Haible.
19786 2008-10-06 Eric Blake <ebb9@byu.net>
19788 test-signbit: avoid tripping Irix cc bug on -0.0L
19789 * tests/test-signbit.c (minus_zerol): Delete, and replace with
19790 '-zerol'. This may break on HP-UX/hppa, but at least makes the
19791 entire testsuite consistent and avoids an Irix 6.2 bug.
19793 2008-10-05 Bruno Haible <bruno@clisp.org>
19794 Jim Meyering <jim@meyering.net>
19796 Add an option for ignoring EPIPE during close_stdout.
19797 * lib/closeout.h: Include <stdbool.h>.
19798 (close_stdout_set_ignore_EPIPE): New declaration.
19799 * lib/closeout.c: Include <stdbool.h>.
19800 (ignore_EPIPE): New variable.
19801 (close_stdout_set_ignore_EPIPE): New function.
19802 (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
19803 * lib/close-stream.c (close_stream): Mention the possible EPIPE
19805 * modules/closeout (Depends-on): Add stdbool.
19807 2008-10-05 Bruno Haible <bruno@clisp.org>
19809 * modules/accept: New file.
19810 * modules/bind: New file.
19811 * modules/connect: New file.
19812 * modules/getpeername: New file.
19813 * modules/getsockname: New file.
19814 * modules/getsockopt: New file.
19815 * modules/listen: New file.
19816 * modules/recv: New file.
19817 * modules/recvfrom: New file.
19818 * modules/send: New file.
19819 * modules/sendto: New file.
19820 * modules/setsockopt: New file.
19821 * modules/socket: New file.
19822 * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
19823 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
19824 listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
19825 the particular module is requested. Add a link warning when the
19826 particular module is not requested.
19827 * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
19828 rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
19829 rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
19830 the particular module is requested.
19831 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
19832 gl_SYS_SOCKET_H_DEFAULTS): New macros.
19833 (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
19834 * modules/sys_socket (Depends-on): Add link-warning.
19835 (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
19836 GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
19837 GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
19838 GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
19840 * doc/posix-functions/accept.texi: Mention the new module 'accept'.
19841 * doc/posix-functions/bind.texi: Mention the new module 'bind'.
19842 * doc/posix-functions/connect.texi: Mention the new module 'connect'.
19843 * doc/posix-functions/getpeername.texi: Mention the new module
19845 * doc/posix-functions/getsockname.texi: Mention the new module
19847 * doc/posix-functions/getsockopt.texi: Mention the new module
19849 * doc/posix-functions/listen.texi: Mention the new module 'listen'.
19850 * doc/posix-functions/recv.texi: Mention the new module 'recv'.
19851 * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
19852 * doc/posix-functions/send.texi: Mention the new module 'send'.
19853 * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
19854 * doc/posix-functions/setsockopt.texi: Mention the new module
19856 * doc/posix-functions/socket.texi: Mention the new module 'socket'.
19857 * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
19858 listen, connect, accept.
19859 * modules/select-tests (Depends-on): Likewise.
19861 2008-10-05 Bruno Haible <bruno@clisp.org>
19863 * lib/winsock.c (strerror): Remove unused #undef.
19864 (rpl_close): Remove unused local variable.
19866 * modules/sys_socket (Depends-on); Add errno.
19868 2008-10-05 Bruno Haible <bruno@clisp.org>
19870 * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
19871 (select): Add a link warning when the 'select' module is not used.
19872 * modules/sys_select (Depends-on): Add link-warning.
19873 (Makefile.am): Substitute the definition of GL_LINK_WARNING.
19874 Suggested by Paolo Bonzini.
19876 2008-10-05 Jim Meyering <meyering@redhat.com>
19878 bootstrap: check for LT_INIT more portably
19879 * build-aux/bootstrap: Avoid using grep -E, since it's not
19880 portable enough. Suggestion from Bruno Haible.
19882 2008-10-05 Bruno Haible <bruno@clisp.org>
19884 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
19885 as being fixed by gnulib.
19887 2008-10-05 Bruno Haible <bruno@clisp.org>
19889 * modules/select-tests: New file, mostly copied from
19890 modules/sys_select-tests.
19891 * tests/test-select.c: New file, mostly copied from
19892 tests/test-sys_select.c.
19893 * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
19894 * modules/sys_select-tests (Depends-on): Remove all dependencies.
19895 (Makefile.am): Remove test_sys_select_LDADD.
19897 * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
19898 to an undefined symbol, for an error message.
19899 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
19900 (gl_SYS_SELECT_H_DEFAULTS): New macro.
19901 (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
19902 winsock-select.c here.
19903 * modules/sys_select (Files): Remove lib/winsock-select.c.
19904 (Depends-on): Remove alloca.
19905 (Makefile.am): Substitute GNULIB_SELECT.
19906 * modules/select: New file.
19907 * doc/posix-functions/select.texi: Update.
19909 2008-10-05 Bruno Haible <bruno@clisp.org>
19911 * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
19912 * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
19913 * lib/spawn_faction_addopen.c (__sysconf): Likewise.
19914 * modules/posix_spawn_file_actions_addclose (Depends-on): Add
19916 * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
19917 * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
19919 2008-10-05 Bruno Haible <bruno@clisp.org>
19921 * modules/getdtablesize-tests: New file.
19922 * tests/test-getdtablesize.c: New file.
19924 New module 'getdtablesize'.
19925 * lib/unistd.in.h (getdtablesize): New declaration.
19926 * lib/getdtablesize.c: New file.
19927 * m4/getdtablesize.m4: New file.
19928 * modules/getdtablesize: New file.
19929 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19930 GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
19931 * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
19932 HAVE_GETDTABLESIZE.
19933 * doc/glibc-functions/getdtablesize.texi: Mention the new module.
19935 2008-10-05 Bruno Haible <bruno@clisp.org>
19937 * modules/sched (Makefile.am): Fix typo.
19938 Reported by Simon Josefsson.
19940 2008-10-05 Jim Meyering <meyering@redhat.com>
19942 bootstrap: check for LT_INIT, too
19943 * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
19944 are deprecated. Suggestion from Ralf Wildenhues.
19946 2008-10-05 Bruno Haible <bruno@clisp.org>
19948 * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
19949 overriding them by ours.
19950 (POSIX_SPAWN_USEVFORK): Use the next free bit position.
19952 2008-10-05 Jim Meyering <meyering@redhat.com>
19954 bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
19955 * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
19956 obsolete AM_PROG_LIBTOOL. Spotted by Debarshi Ray <rishi@gnu.org>.
19958 2008-10-04 Bruno Haible <bruno@clisp.org>
19960 * modules/dup2 (License): Change to LGPLv2+.
19961 * modules/sleep (License): Likewise.
19962 * modules/perror (License): Likewise.
19963 * modules/fopen (License): Change to LGPLv2+, with approval by Eric
19965 * modules/signal (License): Likewise.
19966 * modules/sigprocmask (License): Likewise.
19967 * modules/raise (License): Change to LGPLv2+, with approval by Jim
19970 2008-10-04 Bruno Haible <bruno@clisp.org>
19972 * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
19973 Reported by Rainer Tammer <tammer@tammer.net>.
19975 2008-10-03 Paolo Bonzini <bonzini@gnu.org>
19976 Bruno Haible <bruno@clisp.org>
19978 * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
19979 * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
19980 * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
19982 2008-10-03 Kamil Dudka <kdudka@redhat.com>
19984 filevercmp: new module
19985 * lib/filevercmp.h: New function filevercmp comparing version strings.
19986 * lib/filevercmp.c: Implementation of filevercmp function.
19987 * modules/filevercmp: Module metadata.
19988 * tests/test-filevercmp.c: Unit test for new module.
19989 * modules/filevercmp-tests: Unit test metadata.
19990 * MODULES.html.sh: Add filevercmp module.
19992 2008-10-03 Bruno Haible <bruno@clisp.org>
19994 * lib/c-ctype.h: Add comment.
19995 Reported by Jim Meyering.
19997 2008-10-02 Bruno Haible <bruno@clisp.org>
19999 * modules/posix_spawn-internal (Depends-on): Add 'open'.
20001 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
20003 * build-aux/bootstrap: Allow renaming bootstrap, and change the
20004 name of bootstrap.conf accordingly.
20006 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
20008 * build-aux/bootstrap: Install git-merge-changelog configuration
20009 items into .gitconfig if needed.
20011 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
20013 * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
20014 git repository, and initialize/update it accordingly.
20016 2008-10-02 Richard W.M. Jones <rjones@redhat.com>
20018 * modules/fsync-tests: New file.
20019 * tests/test-fsync.c: New file.
20021 New module 'fsync'.
20022 * lib/fsync.c: New file.
20023 * m4/fsync.m4: New file.
20024 * modules/fsync: New file.
20025 * lib/unistd.in.h (fsync): New declaration.
20026 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
20027 GNULIB_FSYNC and HAVE_FSYNC.
20028 * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
20029 * MODULES.html.sh (posix_functions): Add fsync.
20030 * doc/posix-functions/fsync.texi: Mention the new module.
20032 2008-10-02 Jim Meyering <meyering@redhat.com>
20034 fts.c: sync with similar code from coreutils' remove.c
20035 * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
20036 Guard also with "#if defined __linux__", since for now at least,
20037 this code is Linux-kernel-specific.
20039 2008-10-02 Jim Meyering <meyering@redhat.com>
20042 * lib/fts.c: Remove unnecessary "defined" in cpp directive.
20043 Include <sys/vfs.h>, not <sys/statfs.h>.
20045 * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
20046 Include <sys/vfs.h>, not <sys/statfs.h>.
20048 2008-10-01 Bruno Haible <bruno@clisp.org>
20050 Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
20051 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
20052 (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
20053 * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
20054 * doc/posix-functions/posix_spawnp.texi: Likewise.
20055 * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
20056 whether posix_spawn actually works.
20057 * m4/pipe.m4 (gl_PIPE): Likewise.
20058 * modules/execute (Files): Add m4/posix_spawn.m4.
20059 * modules/pipe (Files): Add m4/posix_spawn.m4.
20060 Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
20062 2008-10-01 Jim Meyering <meyering@redhat.com>
20064 remove trailing spaces
20066 * lib/poll.c (poll): Likewise.
20067 * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
20068 * lib/winsock.c (rpl_close): Likewise.
20069 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
20070 * modules/yield: Likewise.
20071 * tests/test-poll.c (connect_to_socket, poll1): Likewise.
20072 * tests/test-sys_select.c (connect_to_socket): Likewise.
20074 fts.c: adjust a new interface to be more generally useful
20075 * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
20076 (fts_build): Adjust caller.
20078 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20080 * modules/cond-tests: New file.
20081 * tests/test-cond.c: New file.
20083 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20084 Bruno Haible <bruno@clisp.org>
20086 * modules/cond (Dependencies): Add errno, time.
20087 * lib/glthread/cond.h: Include <time.h>.
20088 (gl_cond_define, gl_cond_define_initialized): Use the same definition
20091 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20092 Bruno Haible <bruno@clisp.org>
20094 * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
20096 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20097 Bruno Haible <bruno@clisp.org>
20099 * modules/tls-tests (Depends-on): Add thread, yield.
20100 (configure.ac): Remove all checks.
20101 (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
20102 * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20103 gl_thread_self): Remove definitions. Include glthread/thread.h and
20104 glthread/yield.h instead.
20105 (test_tls): Pass an additional NULL argument to gl_thread_join.
20107 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20108 Bruno Haible <bruno@clisp.org>
20110 * modules/lock-tests (Depends-on): Add thread, yield.
20111 (configure.ac): Remove all checks.
20112 (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
20113 * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20114 gl_thread_self): Remove definitions. Include glthread/thread.h and
20115 glthread/yield.h instead.
20116 (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
20117 additional NULL argument to gl_thread_join.
20119 2008-09-30 Bruno Haible <bruno@clisp.org>
20121 Fix the Win32 implementation of the 'thread' module.
20122 * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
20124 (gl_thread_self): Invoke gl_thread_self_func.
20125 (gl_thread_self_func): New declaration.
20126 * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
20127 (do_init_self_key, init_self_key): New functions.
20128 (struct gl_thread_struct): Renamed from 'struct thread_extra'.
20129 Remove some fields.
20130 (running_threads, running_lock): Remove variables.
20131 (get_current_thread_handle): New function.
20132 (gl_thread_self_func, wrapper_func, glthread_create_func,
20133 glthread_join_func, gl_thread_exit_func): Largely rewritten and
20136 2008-09-30 Bruno Haible <bruno@clisp.org>
20138 * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
20141 2008-09-30 Jim Meyering <meyering@redhat.com>
20143 fts.m4: correct the test for statfs.f_type
20144 * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
20145 when checking for statfs.f_type.
20147 2008-09-15 Simon Josefsson <simon@josefsson.org>
20149 tests: avoid some compiler warnings
20150 * tests/test-memchr.c (main): Pass NULL indirectly.
20151 * tests/test-getdate.c (main): Remove unused variable 'ret'.
20153 2008-09-29 Ondřej Vašík <ovasik@redhat.com>
20155 getdate.y: disallow countable dayshifts like "4 yesterday ago"
20156 * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
20157 exactly specified dayshifts.
20158 (dayshift): New rule.
20159 (rel): Add dayshift.
20160 (relative_time_table) [tomorrow, yesterday, today, now]:
20161 Use tDAY_SHIFT in place of tDAY_UNIT.
20162 * tests/test-getdate.c: Add tests for now-disallowed countable
20163 dayshifts, e.g., "4 yesterday ago".
20165 2008-09-29 Bruno Haible <bruno@clisp.org>
20167 * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
20168 * tests/test-posix_spawn1.in.sh: Renamed from
20169 tests/test-posix_spawn.in.sh.
20170 * tests/test-posix_spawn2.c: New file.
20171 * tests/test-posix_spawn2.in.sh: New file.
20172 * modules/posix_spawnp-tests (Files): Update.
20173 (Makefile.am): Update. Add test-posix_spawn2 to the tests.
20175 2008-09-29 Bruno Haible <bruno@clisp.org>
20177 Propagate effects of putenv/setenv/unsetenv to child processes.
20178 * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
20179 * lib/pipe.c (create_pipe): Likewise.
20181 2008-09-29 Bruno Haible <bruno@clisp.org>
20183 Enable use of shell scripts as executables in mingw.
20184 * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
20185 run the program as a shell script.
20186 * lib/pipe.c (create_pipe): Likewise.
20187 * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
20190 2008-09-29 Eric Blake <ebb9@byu.net>
20192 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
20194 2008-08-24 Paolo Bonzini <bonzini@gnu.org>
20196 * doc/posix-functions/accept.texi: Update mingw problems.
20197 * doc/posix-functions/bind.texi: Update mingw problems.
20198 * doc/posix-functions/close.texi: Update mingw problems.
20199 * doc/posix-functions/connect.texi: Update mingw problems.
20200 * doc/posix-functions/getpeername.texi: Update mingw problems.
20201 * doc/posix-functions/getsockname.texi: Update mingw problems.
20202 * doc/posix-functions/getsockopt.texi: Update mingw problems.
20203 * doc/posix-functions/ioctl.texi: Update mingw problems.
20204 * doc/posix-functions/listen.texi: Update mingw problems.
20205 * doc/posix-functions/recv.texi: Update mingw problems.
20206 * doc/posix-functions/recvfrom.texi: Update mingw problems.
20207 * doc/posix-functions/select.texi: Update mingw problems.
20208 * doc/posix-functions/send.texi: Update mingw problems.
20209 * doc/posix-functions/sendto.texi: Update mingw problems.
20210 * doc/posix-functions/setsockopt.texi: Update mingw problems.
20211 * doc/posix-functions/socket.texi: Update mingw problems.
20213 2008-09-29 Paolo Bonzini <bonzini@gnu.org>
20214 Bruno Haible <bruno@clisp.org>
20216 * lib/sys_select.in.h: Include sys/time.h.
20217 * m4/sys_select.h.m4: Test that struct timeval is fully defined.
20218 * modules/sys_select: Depend on sys_time.
20219 * tests/test-sys_select.c: Test that sys/select.h defines struct
20222 2008-09-29 Bruno Haible <bruno@clisp.org>
20224 * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
20225 * lib/sys_select.in.h: Likewise.
20227 2008-09-29 Bruno Haible <bruno@clisp.org>
20229 * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
20231 2008-09-29 Bruno Haible <bruno@clisp.org>
20233 * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
20234 Set LIBSOCKET instead of augmenting LIBS.
20235 * modules/sockets (Link): New section.
20236 * modules/sockets-tests (test_sockets_LDADD): New variable.
20237 * modules/sys_select-tests (test_sys_select_LDADD): New variable.
20238 * modules/poll-tests (test_poll_LDADD): New variable.
20239 * NEWS: Document the change.
20241 2008-09-29 Bruno Haible <bruno@clisp.org>
20243 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
20244 * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
20245 ARPA_INET_H directly.
20246 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
20248 2008-09-28 Bruno Haible <bruno@clisp.org>
20250 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
20251 from gl_HEADER_SYS_SOCKET.
20252 (gl_HEADER_SYS_SOCKET): Invoke it.
20253 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20255 2008-09-28 Bruno Haible <bruno@clisp.org>
20257 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
20258 * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
20259 Needed on OSF/1 4.0.
20261 2008-09-28 Bruno Haible <bruno@clisp.org>
20263 Override open more carefully.
20264 * lib/open.c (orig_open): New function.
20265 (rpl_open): Use orig_open instead of open.
20266 * lib/fcntl.in.h: Add special invocation convention.
20267 * m4/open.m4 (gl_PREREQ_OPEN): New macro.
20268 (gl_FUNC_OPEN): Invoke it.
20270 Override freopen more carefully.
20271 * lib/freopen.c (orig_freopen): New function.
20272 (rpl_freopen): Use orig_freopen instead of freopen.
20273 * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
20274 (gl_FUNC_FREOPEN): Invoke it.
20276 Override fopen more carefully.
20277 * lib/fopen.c (orig_fopen): New function.
20278 (rpl_fopen): Use orig_fopen instead of fopen.
20279 * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
20280 (gl_FUNC_FOPEN): Invoke it.
20281 Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
20283 2008-09-28 Bruno Haible <bruno@clisp.org>
20285 * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
20288 2008-09-28 Bruno Haible <bruno@clisp.org>
20290 * tests/test-sigaction.c (handler, main): Disable the check whether
20291 SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
20292 glibc systems with LinuxThreads.
20294 2008-09-28 Bruno Haible <bruno@clisp.org>
20296 * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
20298 * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
20300 * lib/fcntl.in.h (open): Likewise.
20301 Reported by Rainer Tammer <tammer@tammer.net>.
20303 2008-09-28 Bruno Haible <bruno@clisp.org>
20305 * modules/posix_spawnp-tests: New file.
20306 * tests/test-posix_spawn.c: New file.
20307 * tests/test-posix_spawn.in.sh: New file.
20309 New module 'posix_spawnp'.
20310 * modules/posix_spawnp: New file.
20311 * lib/spawnp.c: New file, from GNU libc with modifications.
20312 * doc/posix-functions/posix_spawnp.texi: Mention the new module.
20314 New module 'posix_spawn'.
20315 * modules/posix_spawn: New file.
20316 * lib/spawn.c: New file, from GNU libc with modifications.
20317 * doc/posix-functions/posix_spawn.texi: Mention the new module.
20319 New module 'posix_spawnattr_destroy'.
20320 * modules/posix_spawnattr_destroy: New file.
20321 * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
20322 * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
20325 New module 'posix_spawnattr_setsigmask'.
20326 * modules/posix_spawnattr_setsigmask: New file.
20327 * lib/spawnattr_setsigmask.c: New file, from GNU libc with
20329 * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
20332 New module 'posix_spawnattr_getsigmask'.
20333 * modules/posix_spawnattr_getsigmask: New file.
20334 * lib/spawnattr_getsigmask.c: New file, from GNU libc with
20336 * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
20339 New module 'posix_spawnattr_setsigdefault'.
20340 * modules/posix_spawnattr_setsigdefault: New file.
20341 * lib/spawnattr_setdefault.c: New file, from GNU libc with
20343 * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
20346 New module 'posix_spawnattr_getsigdefault'.
20347 * modules/posix_spawnattr_getsigdefault: New file.
20348 * lib/spawnattr_getdefault.c: New file, from GNU libc with
20350 * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
20353 New module 'posix_spawnattr_setschedpolicy'.
20354 * modules/posix_spawnattr_setschedpolicy: New file.
20355 * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
20357 * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
20360 New module 'posix_spawnattr_getschedpolicy'.
20361 * modules/posix_spawnattr_getschedpolicy: New file.
20362 * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
20364 * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
20367 New module 'posix_spawnattr_setschedparam'.
20368 * modules/posix_spawnattr_setschedparam: New file.
20369 * lib/spawnattr_setschedparam.c: New file, from GNU libc with
20371 * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
20374 New module 'posix_spawnattr_getschedparam'.
20375 * modules/posix_spawnattr_getschedparam: New file.
20376 * lib/spawnattr_getschedparam.c: New file, from GNU libc with
20378 * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
20381 New module 'posix_spawnattr_setpgroup'.
20382 * modules/posix_spawnattr_setpgroup: New file.
20383 * lib/spawnattr_setpgroup.c: New file, from GNU libc with
20385 * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
20388 New module 'posix_spawnattr_getpgroup'.
20389 * modules/posix_spawnattr_getpgroup: New file.
20390 * lib/spawnattr_getpgroup.c: New file, from GNU libc with
20392 * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
20395 New module 'posix_spawnattr_setflags'.
20396 * modules/posix_spawnattr_setflags: New file.
20397 * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
20398 * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
20401 New module 'posix_spawnattr_getflags'.
20402 * modules/posix_spawnattr_getflags: New file.
20403 * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
20404 * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
20407 New module 'posix_spawnattr_init'.
20408 * modules/posix_spawnattr_init: New file.
20409 * lib/spawnattr_init.c: New file, from GNU libc with modifications.
20410 * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
20413 New module 'posix_spawn_file_actions_destroy'.
20414 * modules/posix_spawn_file_actions_destroy: New file.
20415 * lib/spawn_faction_destroy.c: New file, from GNU libc with
20417 * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
20420 New module 'posix_spawn_file_actions_addopen'.
20421 * modules/posix_spawn_file_actions_addopen: New file.
20422 * lib/spawn_faction_addopen.c: New file, from GNU libc with
20424 * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
20427 New module 'posix_spawn_file_actions_adddup2'.
20428 * modules/posix_spawn_file_actions_adddup2: New file.
20429 * lib/spawn_faction_adddup2.c: New file, from GNU libc with
20431 * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
20434 New module 'posix_spawn_file_actions_addclose'.
20435 * modules/posix_spawn_file_actions_addclose: New file.
20436 * lib/spawn_faction_addclose.c: New file, from GNU libc with
20438 * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
20441 New module 'posix_spawn_file_actions_init'.
20442 * modules/posix_spawn_file_actions_init: New file.
20443 * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
20444 * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
20447 New module 'posix_spawn-internal'.
20448 * modules/posix_spawn-internal: New file.
20449 * lib/spawn_int.h: New file, from GNU libc with modifications.
20450 * lib/spawni.c: New file, from GNU libc with modifications.
20451 * m4/posix_spawn.m4: New file.
20453 New module 'spawn'.
20454 * modules/spawn: New file.
20455 * lib/spawn.in.h: New file, from GNU libc with modifications.
20456 * m4/spawn_h.m4: New file.
20457 * doc/posix-headers/spawn.texi: Mention the new module.
20459 2008-09-28 Bruno Haible <bruno@clisp.org>
20461 * modules/sched-tests: New file.
20462 * tests/test-sched.c: New file.
20464 New module 'sched'.
20465 * modules/sched: New file.
20466 * lib/sched.in.h: New file.
20467 * m4/sched_h.m4: New file.
20468 * doc/posix-headers/sched.texi: Mention the new module.
20470 2008-09-27 Eric Blake <ebb9@byu.net>
20472 Fix previous patch, and tweak references to $0.
20473 * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
20474 (func_version, func_gnulib_dir): Don't call this program
20476 (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
20477 with using $0 in function.
20478 * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
20479 (func_fatal_error): Reuse the name the user invoked us with.
20481 2008-09-27 Bruno Haible <bruno@clisp.org>
20483 * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
20484 (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
20485 (gl_ICONV_H): Not here.
20486 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
20487 instead of assigning ICONV_H directly.
20489 * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
20490 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
20493 2008-09-27 Bruno Haible <bruno@clisp.org>
20495 * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
20496 * modules/arpa_inet (Depends-on): Add link-warning.
20497 (Makefile.am): Insert the definition of GL_LINK-WARNING.
20498 * modules/unistd (Makefile.am): Likewise.
20500 2008-09-26 Bruno Haible <bruno@clisp.org>
20502 * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
20504 (func_version): Essentially copied from gnulib-tool.
20505 (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
20506 func_readlink): Copied from gnulib-tool.
20508 2008-09-26 Bruno Haible <bruno@clisp.org>
20510 * gnulib-tool (func_version): Change directory to $gnulib_dir before
20511 invoking git-version-gen.
20513 2008-09-26 Bruno Haible <bruno@clisp.org>
20515 * posix-modules: Update to directory names changed on 2008-01-19.
20516 Remove commas in output before splitting into words. No more need to
20517 avoid 'ftruncate' since 2007-02-19.
20519 2008-09-26 Bruno Haible <bruno@clisp.org>
20521 * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
20523 2008-09-26 Bruno Haible <bruno@clisp.org>
20525 * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
20526 * modules/fwriteerror (Depends-on): Add errno.
20528 2008-09-26 Bruno Haible <bruno@clisp.org>
20530 * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
20531 * tests/test-vc-list-files-cvs.sh: Likewise.
20533 2008-09-26 Bruno Haible <bruno@clisp.org>
20535 * doc/posix-headers/sys_resource.texi: Reorder items.
20537 2008-09-26 Jim Meyering <meyering@redhat.com>
20539 fts: tweak inode comparison function
20540 * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
20541 inode numbers, as documented.
20543 fts: sort dirent entries on inode number before traversing
20544 This avoids a quadratic, seek-related performance penalty when
20545 operating on a directory containing many entries (measurable at 10k;
20546 3.5 hours at 2 million entries with a cold cache) on certain types
20547 of file systems, including ext3 and ext4, but not tmpfs.
20548 * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
20549 (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
20550 (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
20551 (fs_handles_readdir_ordered_dirents_efficiently): New function.
20552 (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
20553 (fts_build): Set the stat.st_ino member from D_INO.
20554 If it is likely to be useful, sort dirent entries on inode number.
20556 * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
20557 and the struct statfs.f_type member.
20558 * modules/fts (Depends-on): Add d-ino.
20560 2008-09-26 Bruno Haible <bruno@clisp.org>
20562 * modules/sigpipe-die (Depends-on): Add sigpipe.
20564 * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
20565 putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
20566 and GNULIB_STDIO_H_SIGPIPE are set.
20567 * lib/stdio-write.c: New file.
20568 * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
20569 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20570 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20571 REPLACE_STDIO_WRITE_FUNCS.
20572 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
20573 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20574 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20575 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
20576 * modules/stdio (Files): Add lib/stdio-write.c.
20577 (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
20578 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20579 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20580 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
20581 * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
20582 REPLACE_FPRINTF_POSIX.
20583 * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
20584 REPLACE_PRINTF_POSIX.
20585 * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
20586 REPLACE_VFPRINTF_POSIX.
20587 * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
20588 REPLACE_VPRINTF_POSIX.
20589 * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
20591 * doc/posix-functions/fputc.texi: Likewise.
20592 * doc/posix-functions/fputs.texi: Likewise.
20593 * doc/posix-functions/fwrite.texi: Likewise.
20594 * doc/posix-functions/printf.texi: Likewise.
20595 * doc/posix-functions/putc.texi: Likewise.
20596 * doc/posix-functions/putchar.texi: Likewise.
20597 * doc/posix-functions/puts.texi: Likewise.
20598 * doc/posix-functions/vfprintf.texi: Likewise.
20599 * doc/posix-functions/vprintf.texi: Likewise.
20601 * modules/safe-write (Depends-on): Add write.
20603 * modules/sigpipe-tests: New file.
20604 * tests/test-sigpipe.c: New file.
20605 * tests/test-sigpipe.sh: New file.
20607 * modules/write: New file.
20608 * lib/unistd.in.h: Include <sys/types.h>.
20609 (write): New declaration.
20610 * lib/write.c: New file.
20611 * m4/write.m4: New file.
20612 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20613 GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
20614 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
20615 GNULIB_WRITE, REPLACE_WRITE.
20616 * doc/posix-functions/write.texi: Mention the write, sigpipe modules
20617 and the SIGPIPE issue.
20619 * lib/signal.in.h (SIGPIPE): Define to a replacement value.
20620 (raise): New declaration.
20621 * lib/sigprocmask.c (SIGPIPE_handler): New variable.
20622 (ext_signal): New function.
20623 (rpl_raise): New function.
20624 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
20625 GNULIB_SIGNAL_H_SIGPIPE.
20626 * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
20627 * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
20629 * modules/sigpipe: New file.
20630 * m4/sigpipe.m4: New file.
20632 2008-09-25 Derek Price <derek@ximbiot.com>
20633 Bruno Haible <bruno@clisp.org>
20635 * gnulib-tool (func_import): Report all license incompatibilities, not
20636 just the first one.
20638 2008-09-25 Bruno Haible <bruno@clisp.org>
20640 * gnulib-tool (func_import): When computing the edits, consider not
20641 only the Makefile.ams that exist but also those that will be generated.
20643 2008-09-25 Simon Josefsson <simon@josefsson.org>
20645 * modules/sys_select-tests (Depends-on): Remove sys_select itself,
20646 fixes gnulib-tool --test warning about duplicate dependency.
20648 2008-09-25 Bruno Haible <bruno@clisp.org>
20650 * gnulib-tool: Don't ask the user to perform edits in the generated
20652 (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
20653 apply to the Makefile.am being generated.
20654 (func_emit_tests_Makefile_am): Execute edits that apply to the
20655 Makefile.am being generated.
20656 (func_import): Setup list of Makefile.am edits before emitting the
20657 Makefile.ams, not at the end.
20658 (func_create_testdir): Update.
20659 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20661 2008-09-25 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20663 * gnulib-tool (func_import): Store the --tests-base option in the
20664 comment in gnulib-cache.m4.
20666 2008-09-24 Paolo Bonzini <bonzini@gnu.org>
20668 * NEWS: Document increased portability that sys_select now provides.
20670 * lib/sys_select.in.h: Install select wrapper.
20671 * lib/sys_socket.in.h: Use more descriptive name when there is no
20673 * lib/winsock-select.c: New.
20674 * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
20675 Require gl_HEADER_SYS_SOCKET.
20676 * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
20677 * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
20678 * tests/test-sys_select.c: Add functional tests.
20680 2008-09-24 Eric Blake <ebb9@byu.net>
20682 open, fopen: close fd leak in last patch
20683 * lib/open.c (rpl_open): Close fd before returning error.
20684 * lib/fopen.c (rpl_fopen): Close fd before returning error.
20685 * doc/posix-functions/open.texi (open): Document that Irix also
20687 * doc/posix-functions/fopen.texi (fopen): Likewise.
20688 Reported by Paolo Bonzini.
20690 2008-09-24 Bruno Haible <bruno@clisp.org>
20692 Ensure that a filename ending in a slash cannot be used to access a
20694 * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
20695 to check whether it's really a directory.
20696 * lib/fopen.c: Include fcntl.h, unistd.h.
20697 (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
20699 * modules/fopen (Depends-on): Add unistd.
20700 * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
20701 * tests/test-fopen.c (main): Likewise.
20702 * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
20703 * doc/posix-functions/fopen.texi: Likewise.
20704 Reported by Eric Blake.
20706 2008-09-23 Eric Blake <ebb9@byu.net>
20708 c-stack: avoid compiler optimizations when provoking overflow
20709 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
20710 recursion harder to optimize, to ensure a stack overflow occurs.
20711 * tests/test-c-stack.c (recurse): Likewise.
20712 Borrowed from libsigsegv.
20714 c-stack: work around Irix sigaltstack bug
20715 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
20716 whether sigaltstack uses wrong end of stack_t (copied in part from
20718 * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
20719 Irix bug, without requiring an over-allocation.
20720 * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
20723 fopen: document mingw bug on directories
20724 * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
20725 not allowing a stream visiting a directory, even though reading
20726 from such a stream is not portable.
20728 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
20730 * lib/poll.c: Rewrite.
20731 * modules/poll: Depend on alloca.
20733 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
20735 * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
20736 instead define prototypes for a full set of wrappers. Ensure
20737 that Cygwin does not use the compatibility code, which is only
20739 * lib/winsock.c: New.
20740 * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
20741 * modules/sys_socket: Add lib/winsock.c.
20743 * modules/poll-tests: Add errno and perror.
20744 * tests/test-poll.c: Use ioctl, not ioctlsocket.
20746 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
20748 * tests/test-poll.c: Downgrade minimum needed Winsock version.
20750 2008-09-23 Bruno Haible <bruno@clisp.org>
20752 * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
20753 * doc/glibc-functions/*: Likewise.
20755 2008-09-23 Simon Josefsson <simon@josefsson.org>
20757 * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
20760 2008-09-22 Eric Blake <ebb9@byu.net>
20761 Bruno Haible <bruno@clisp.org>
20763 vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
20764 * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
20765 supply %A but mishandle pseudo-NaN.
20766 Reported by Simon Josefsson.
20768 2008-09-21 Bruno Haible <bruno@clisp.org>
20770 * tests/test-lock.c (main): Tweak skip message.
20771 * tests/test-tls.c (main): Likewise.
20773 2008-09-21 Bruno Haible <bruno@clisp.org>
20775 * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
20776 whether 'struct sigaction' has sa_sigaction here...
20777 (gl_PREREQ_SIG_HANDLER_H): ... not here.
20778 (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
20780 2008-09-21 Bruno Haible <bruno@clisp.org>
20782 * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
20784 (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
20785 strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
20787 (Support for obsolete systems lacking POSIX:2001): New section.
20788 (String handling <string.h>): Move strdup to the new section.
20789 Suggested by Simon Josefsson and Paolo Bonzini.
20791 2008-09-21 Bruno Haible <bruno@clisp.org>
20793 * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
20794 exponents in %e and %g results on 'long double'. Needed for mingw's
20795 improved *printf functions.
20796 * tests/test-vasprintf-posix.c (test_function): Likewise.
20797 * tests/test-snprintf-posix.h (test_function): Likewise.
20798 * tests/test-sprintf-posix.h (test_function): Likewise.
20799 Reported by Eric Blake.
20801 2008-09-21 Bruno Haible <bruno@clisp.org>
20803 * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
20804 * tests/test-sprintf-posix.h (test_function): Likewise.
20806 2008-09-21 Bruno Haible <bruno@clisp.org>
20808 * modules/getpass (Depends-on): Add strdup-posix.
20810 New module 'strdup-posix'.
20811 * modules/strdup-posix: New file.
20812 * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
20813 * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
20814 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20816 * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
20817 * doc/posix-functions/strdup.texi: Mention module strdup-posix.
20818 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20821 * modules/strdup (Depends-on): Remove malloc-posix.
20823 2008-09-20 Bruno Haible <bruno@clisp.org>
20825 * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
20828 2008-09-20 Bruno Haible <bruno@clisp.org>
20830 Ensure that wint_t gets defined on IRIX 5.3.
20831 * lib/wchar.in.h (wint_t): Define if not defined by the system.
20832 * lib/wctype.in.h (wint_t): Likewise.
20833 (__wctype_wint_t): Remove type.
20834 (isw*): Use wint_t instead of __wctype_wint_t.
20835 * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
20836 * modules/wchar (Files): Add m4/wint_t.m4.
20837 (Makefile.am): Substitute HAVE_WINT_T.
20838 * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
20839 * tests/test-wctype.c: Check that wint_t is defined.
20840 * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
20841 * doc/posix-headers/wctype.texi: Likewise.
20842 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20844 2008-09-18 Bruno Haible <bruno@clisp.org>
20846 * gnulib-tool (func_exit): Update comment.
20848 2008-09-18 Simon Josefsson <simon@josefsson.org>
20850 * modules/getaddrinfo (Depends-on): Remove strdup, this module
20851 assumes strdup exists and does not depend on strdup to return
20852 ENOMEM on out of memory conditions.
20854 2008-09-18 Bruno Haible <bruno@clisp.org>
20856 * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
20857 NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
20858 digits for the exponent.
20860 2008-09-18 Jim Meyering <meyering@redhat.com>
20861 Bruno Haible <bruno@clisp.org>
20863 * lib/vasnprintf.c (decimal_point_char): Define also if
20864 NEED_PRINTF_INFINITE_LONG_DOUBLE.
20866 2008-09-16 Bruno Haible <bruno@clisp.org>
20867 and Eric Blake <ebb9@byu.net>
20869 vasnprintf: support Irix 5.3
20870 * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
20871 that mishandle long double infinity.
20872 Reported by Tom G. Christensen.
20874 2008-09-16 Bruno Haible <bruno@clisp.org>
20876 * doc/glibc-functions/scandir.texi: Mention the function is missing on
20878 * doc/glibc-functions/alphasort.texi: Likewise.
20879 Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
20881 2008-09-16 Jim Meyering <meyering@redhat.com>
20883 posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
20884 * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
20885 a umask modification leak out of a subshell. Otherwise, the
20886 opensolaris /bin/sh would be accepted and thus cause unwarranted
20887 failures in the coreutils test suite.
20889 2008-09-16 Paolo Bonzini <bonzini@gnu.org>
20891 * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
20894 2008-09-16 Jim Meyering <meyering@redhat.com>
20896 avoid spurious test failure when library is built without ACL support
20897 * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
20898 * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
20899 * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
20900 * tests/test-copy-acl.sh: Likewise.
20902 2008-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20904 * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
20905 based on character occurrence counts.
20907 2008-09-15 Eric Blake <ebb9@byu.net>
20909 tests: avoid some compiler warnings
20910 * tests/test-memchr.c (main): Pass NULL indirectly.
20911 * tests/test-closein.c (main): Avoid unused variable.
20913 2008-09-15 Bruno Haible <bruno@clisp.org>
20915 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
20916 are missing on OpenBSD 4.0 individually.
20917 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20919 2008-09-15 Bruno Haible <bruno@clisp.org>
20921 * doc/posix-headers/errno.texi: Mention the Cygwin problem.
20922 * doc/posix-functions/strerror.texi: Mention also Cygwin.
20923 * doc/posix-functions/perror.texi: Likewise.
20924 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
20926 Reported by Eric Blake.
20928 * lib/errno.in.h: Use replacement values >= 2000.
20929 Reported by Eric Blake.
20931 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20933 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
20934 (EARLY_ABORT): Return true when the edit_count has grown too beyond the
20936 (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
20937 compareseq was aborted.
20939 2008-09-14 Bruno Haible <bruno@clisp.org>
20941 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
20943 (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
20944 (fstrcmp_bounded): Simplify result computation accordingly.
20946 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20948 * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
20949 (fstrcmp): Define in terms of fstrcmp_bounded.
20950 * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
20951 lower_bound argument.
20952 Return quickly if the result is certainly < lower_bound.
20953 * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
20955 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20957 * lib/diffseq.h (EARLY_ABORT): New macro.
20958 (compareseq): Change return type to bool. Return true when EARLY_ABORT
20961 2008-09-14 Bruno Haible <bruno@clisp.org>
20963 * modules/perror-tests: New file.
20964 * tests/test-perror.sh: New file.
20965 * tests/test-perror.c: New file.
20967 New module 'perror'.
20968 * lib/stdio.in.h (perror): New declaration.
20969 * lib/perror.c: New file.
20970 * m4/perror.m4: New file.
20971 * modules/perror: New file.
20972 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
20973 * doc/posix-functions/perror.texi: Mention the perror module.
20974 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
20976 * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
20979 2008-09-14 Bruno Haible <bruno@clisp.org>
20981 * modules/stdio (Makefile.am): Reorder to match the order in
20983 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20985 2008-09-13 Bruno Haible <bruno@clisp.org>
20987 * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
20989 2008-09-13 Bruno Haible <bruno@clisp.org>
20991 Extend strerror to cover the added errno values.
20992 * lib/strerror.c: Include errno.h and winsock2.h if it exists.
20993 (rpl_strerror): Provide error messages for the added errno values and
20994 for the WSA* values.
20995 * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
20996 (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
20998 (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
20999 * modules/strerror (Depends-on): Add errno.
21000 * doc/posix-functions/strerror.texi: Document the change.
21001 * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
21004 2008-09-13 Bruno Haible <bruno@clisp.org>
21006 * modules/EOVERFLOW: Remove file.
21007 * m4/eoverflow.m4: Remove file.
21008 * modules/EOVERFLOW-tests: Remove file.
21009 * tests/test-EOVERFLOW.c: Remove file.
21010 * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
21011 * modules/ftell (Depends-on): Likewise.
21012 * modules/getdelim (Depends-on): Likewise.
21013 * modules/getugroups (Depends-on): Likewise.
21014 * modules/poll (Depends-on): Likewise.
21015 * modules/snprintf (Depends-on): Likewise.
21016 * modules/sprintf-posix (Depends-on): Likewise.
21017 * modules/vasnprintf (Depends-on): Likewise.
21018 * modules/vasprintf (Depends-on): Likewise.
21019 * modules/vfprintf-posix (Depends-on): Likewise.
21020 * modules/vsnprintf (Depends-on): Likewise.
21021 * modules/vsprintf-posix (Depends-on): Likewise.
21022 * modules/xvasprintf (Depends-on): Likewise.
21023 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21024 * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
21025 * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
21026 * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
21027 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21028 * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
21029 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
21030 * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
21031 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21032 * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
21033 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
21034 * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
21035 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21036 * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
21037 * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
21038 * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
21039 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21040 * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
21041 * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
21042 * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
21043 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21044 * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
21045 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
21046 * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
21047 * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
21048 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21049 * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
21050 * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
21051 * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
21052 * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
21053 * MODULES.html.sh: Remove EOVERFLOW.
21054 * NEWS: Mention the change.
21056 2008-09-13 Bruno Haible <bruno@clisp.org>
21058 * modules/errno-tests: New file.
21059 * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
21061 * lib/errno.in.h: New file.
21062 * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
21063 * modules/errno: New file.
21064 * doc/posix-headers/errno.texi: Update documentation.
21065 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
21067 2008-09-13 Bruno Haible <bruno@clisp.org>
21069 * tests/test-poll.c: Use #if for native Windows, rather than testing
21072 2008-09-13 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21073 Bruno Haible <bruno@clisp.org>
21075 * lib/glob.c: Don't include <pwd.h> on native Windows.
21076 (WINDOWS32): New macro.
21077 (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
21079 2008-09-13 Bruno Haible <bruno@clisp.org>
21081 * lib/glthread/cond.h [USE_SOLARIS_THREADS]
21082 (ETIMEDOUT): Remove macro.
21083 (glthread_cond_timedwait_multithreaded): New declaration.
21084 (glthread_cond_timedwait): Use it.
21085 * lib/glthread/cond.c [USE_SOLARIS_THREADS]
21086 (glthread_cond_timedwait_multithreaded): New function.
21088 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
21090 * modules/poll-tests: Do not check for io.h.
21091 * tests/test-poll.c: Check for __MSVCRT__ instead.
21093 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
21095 * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
21096 * modules/poll-tests: Add inet_pton, stdbool, sockets.
21097 * tests/test-poll.c: Use them. Use _pipe on Windows.
21099 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
21101 * modules/poll-tests: New.
21102 * tests/test-poll.c: New.
21104 2008-09-12 Eric Blake <ebb9@byu.net>
21106 frexp: test for NetBSD failure on -0.0
21107 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
21108 not all, bugs from NetBSD 3.0 have been fixed.
21109 * doc/posix-functions/frexp.texi (frexp): Document bug.
21110 Reported by Thomas Klausner.
21112 signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
21113 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
21115 Reported by Jonathan C. Patschke <jp@centtech.com>.
21117 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21119 * lib/glthread/cond.h: Use dummy implementation also if
21122 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21124 * modules/fnmatch-posix (License): Change to LGPLv2+.
21125 * modules/fnmatch-gnu (License): Likewise.
21127 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21129 * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
21131 2008-09-11 Jim Meyering <meyering@redhat.com>
21133 * users.txt: Add gtk-vnc.
21135 2008-09-08 Simon Josefsson <simon@josefsson.org>
21137 * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
21140 * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
21141 required for 16-bit and 8-bit rotates.
21142 * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
21143 rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
21144 UINT8_MAX instead of hard-coded constants.
21145 Suggested by Paul Eggert.
21147 2008-09-07 Bruno Haible <bruno@clisp.org>
21149 * tests/test-striconveh.c (main): Check behaviour when converting from
21152 Make striconveh work better with stateful encodings.
21153 * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
21154 that iconv does not increment the inptr when returning -1/EINVAL.
21156 2008-09-07 Bruno Haible <bruno@clisp.org>
21158 * build-aux/config.rpath: Update according to libtool-2.2.6.
21159 * build-aux/config.libpath: Likewise.
21161 2008-09-06 Bruno Haible <bruno@clisp.org>
21163 * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
21164 * lib/freadptr.c (freadptr): Likewise.
21165 * lib/freadseek.c (freadptrinc): Likewise.
21166 Reported by Simon Josefsson.
21168 2008-09-06 Bruno Haible <bruno@clisp.org>
21170 * modules/freadptr (License): Change to LGPLv2+.
21171 * modules/freadseek (License): Likewise.
21172 Suggested by Eric Blake.
21174 * modules/memchr2 (License): Change to LGPLv2+.
21175 Approved by Eric Blake.
21177 2008-09-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21178 Bruno Haible <bruno@clisp.org>
21180 Make gnulib-tool work with native 'sed' on AIX.
21181 * gnulib-tool (sed_noop): New variable.
21182 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
21183 func_add_or_update, func_create_testdir): Use it to initialize sed
21185 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21187 2008-09-04 Albert Chin <bug-gnulib@mlists.thewrittenword.com>
21188 Bruno Haible <bruno@clisp.org>
21190 * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
21191 also works after #include directives.
21193 2008-09-04 Ondřej Vašík <ovasik@redhat.com>
21195 getdate.y: reject an out-of-range timezone value
21196 * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
21197 the range [-24...+24]. When specified with only one or two digits,
21198 * tests/test-getdate.c: Tests for the fix.
21199 * doc/getdate.texi: Document this change.
21201 2008-09-03 Bruno Haible <bruno@clisp.org>
21203 * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
21205 2008-09-02 Simon Josefsson <simon@josefsson.org>
21207 * lib/bitrotate.h (rotl64, rotr64): Add. Suggested by Bruce Korb
21208 <bruce.korb@gmail.com> with ideas from Ben Pfaff
21209 <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
21210 Blake <ebb9@byu.net>.
21212 * tests/test-bitrotate.c: Add more test vectors.
21214 2008-09-02 Eric Blake <ebb9@byu.net>
21216 vasnprintf-posix: handle large precision via %.*d
21217 * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
21218 when handling it ourselves.
21219 * tests/test-vasnprintf-posix.c (test_function): Add test.
21220 * tests/test-snprintf-posix.h (test_function): Likewise.
21221 * tests/test-sprintf-posix.h (test_function): Likewise.
21222 * tests/test-vasprintf-posix.c (test_function): Likewise.
21223 Reported by Alain Guibert.
21225 2008-09-01 Eric Blake <ebb9@byu.net>
21227 c-stack: make configure-time check more robust
21228 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
21229 successful sigaction call.
21230 Reported by Tom G. Christensen.
21232 2008-09-01 Bruno Haible <bruno@clisp.org>
21234 New module 'findprog-lgpl'.
21235 * modules/findprog-lgpl: New file.
21236 * lib/findprog-lgpl.c: New file.
21237 * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
21238 also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
21239 to decide whether to use strdup or xstrdup, concatenated_filename or
21240 xconcatenated_filename.
21242 2008-09-01 Bruno Haible <bruno@clisp.org>
21244 Split module 'concat-filename' into 'concat-filename' (LGPL) and
21245 'xconcat-filename' (GPL).
21246 * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
21247 (License): Change to LGPLv2+.
21248 * modules/xconcat-filename: New file.
21249 * lib/concat-filename.h (concatenated_filename): Change specification.
21250 (xconcatenated_filename): New declaration.
21251 * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
21252 (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
21254 * lib/xconcat-filename.c: New file.
21255 * NEWS: Mention the change.
21256 * lib/findprog.c: Include concat-filename.h, not filename.h.
21257 (find_in_path): Use xconcatenated_filename instead of
21258 concatenated_filename.
21259 * lib/javacomp.c: Include concat-filename.h, not filename.h.
21260 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
21261 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
21262 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
21263 is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
21264 instead of concatenated_filename.
21265 * lib/javaexec.c: Include concat-filename.h, not filename.h.
21266 (execute_java_class): Use xconcatenated_filename instead of
21267 concatenated_filename.
21268 * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
21269 * modules/javacomp (Depends-on): Likewise.
21270 * modules/javaexec (Depends-on): Likewise.
21272 2008-09-01 Bruno Haible <bruno@clisp.org>
21274 Split module 'filename' into 'filename' and 'concat-filename'.
21275 * modules/filename: Keep only lib/filename.h.
21276 (License): Change to LGPLv2+.
21277 * modules/concat-filename: New file, extracted from modules/filename.
21278 * lib/filename.h (concatenated_filename): Remove declaration.
21279 * lib/concat-filename.h: New file, extracted from lib/filename.h.
21280 * lib/concat-filename.c: Include concat-filename.h.
21281 * NEWS: Mention the change.
21283 2008-09-01 Simon Josefsson <simon@josefsson.org>
21285 * lib/bitrotate.h (rotl8, rotr8): Add.
21287 * modules/bitrotate (configure.ac): Need
21288 AC_REQUIRE([AC_C_INLINE]).
21289 (Description): Mention stdint.h. Reported by Bruno Haible
21292 * lib/bitrotate.h (rotr16, rotl16): Fix mask value. Reported by
21293 Paolo Bonzini <bonzini@gnu.org>.
21295 2008-08-31 Bruno Haible <bruno@clisp.org>
21297 Assume Solaris specific bi-arch conventions on Solaris systems.
21298 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
21299 mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
21300 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
21301 work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
21302 like acl_libdirstem.
21303 (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
21305 * NEWS: Mention the change.
21306 Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
21308 2008-08-31 Jim Meyering <meyering@redhat.com>
21310 * lib/strftime.h: Add comments describing the two added arguments.
21312 remove duplicate #include directives
21313 * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
21314 * lib/putenv.c: Remove duplicate #include <stdlib.h>.
21316 2008-08-31 Bruno Haible <bruno@clisp.org>
21318 New module 'sigpipe-die'.
21319 * modules/sigpipe-die: New file.
21320 * lib/sigpipe-die.h: New file.
21321 * lib/sigpipe-die.c: New file.
21322 * MODULES.html.sh (Signal handling): Add sigpipe-die.
21324 2008-08-31 Bruno Haible <bruno@clisp.org>
21326 Don't override previously installed signal handlers.
21327 * lib/fatal-signal.c (saved_sigactions): New variable.
21328 (uninstall_handlers): Reset the signal to the saved handler, not
21329 to SIG_DFL (except when ignored).
21330 (install_handlers): Save the previous handlers.
21332 2008-08-30 Bruno Haible <bruno@clisp.org>
21334 * gnulib-tool (func_reset_sigpipe): New function.
21335 (func_get_automake_snippet, func_modules_transitive_closure,
21336 func_import): Invoke it before a join command that reads from stdin,
21337 to avoid "echo: write error: Broken pipe" error messages on stderr.
21338 Reported by Sam Steingold <sds@gnu.org>.
21340 2008-08-30 Bruno Haible <bruno@clisp.org>
21342 * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
21343 Code copied from m4/open.m4.
21344 * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
21345 access and the filename ends in a slash. Code copied from lib/open.c.
21346 * doc/posix-functions/fopen.texi: Document bug with trailing slash.
21347 * tests/test-fopen.c (main): Check against bug with trailing slash.
21349 2008-08-29 Bruno Haible <bruno@clisp.org>
21351 Avoid some "gcc -pedantic" warnings.
21352 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
21353 * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
21354 * lib/dirent.in.h: Likewise.
21355 * lib/fcntl.in.h: Likewise.
21356 * lib/float.in.h: Likewise.
21357 * lib/iconv.in.h: Likewise.
21358 * lib/inttypes.in.h: Likewise.
21359 * lib/locale.in.h: Likewise.
21360 * lib/math.in.h: Likewise.
21361 * lib/netinet_in.in.h: Likewise.
21362 * lib/search.in.h: Likewise.
21363 * lib/signal.in.h: Likewise.
21364 * lib/stdarg.in.h: Likewise.
21365 * lib/stdint.in.h: Likewise.
21366 * lib/stdio.in.h: Likewise.
21367 * lib/stdlib.in.h: Likewise.
21368 * lib/string.in.h: Likewise.
21369 * lib/strings.in.h: Likewise.
21370 * lib/sys_select.in.h: Likewise.
21371 * lib/sys_socket.in.h: Likewise.
21372 * lib/sys_stat.in.h: Likewise.
21373 * lib/sys_time.in.h: Likewise.
21374 * lib/sysexits.in.h: Likewise.
21375 * lib/time.in.h: Likewise.
21376 * lib/unistd.in.h: Likewise.
21377 * lib/wchar.in.h: Likewise.
21378 * lib/wctype.in.h: Likewise.
21379 * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
21380 * modules/fchdir (Makefile.am): Likewise.
21381 * modules/fcntl (Makefile.am): Likewise.
21382 * modules/float (Makefile.am): Likewise.
21383 * modules/iconv_open (Makefile.am): Likewise.
21384 * modules/inttypes (Makefile.am): Likewise.
21385 * modules/locale (Makefile.am): Likewise.
21386 * modules/math (Makefile.am): Likewise.
21387 * modules/netinet_in (Makefile.am): Likewise.
21388 * modules/search (Makefile.am): Likewise.
21389 * modules/signal (Makefile.am): Likewise.
21390 * modules/stdarg (Makefile.am): Likewise.
21391 * modules/stdint (Makefile.am): Likewise.
21392 * modules/stdio (Makefile.am): Likewise.
21393 * modules/stdlib (Makefile.am): Likewise.
21394 * modules/string (Makefile.am): Likewise.
21395 * modules/strings (Makefile.am): Likewise.
21396 * modules/sys_select (Makefile.am): Likewise.
21397 * modules/sys_socket (Makefile.am): Likewise.
21398 * modules/sys_stat (Makefile.am): Likewise.
21399 * modules/sys_time (Makefile.am): Likewise.
21400 * modules/sysexits (Makefile.am): Likewise.
21401 * modules/time (Makefile.am): Likewise.
21402 * modules/unistd (Makefile.am): Likewise.
21403 * modules/wchar (Makefile.am): Likewise.
21404 * modules/wctype (Makefile.am): Likewise.
21405 Reported by Reuben Thomas <rrt@sc3d.org>.
21407 2008-08-29 Bruno Haible <bruno@clisp.org>
21409 * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
21412 2008-08-29 Simon Josefsson <simon@josefsson.org>
21414 * MODULES.html.sh (Misc): Add bitrotate.
21416 * modules/bitrotate: New file.
21418 * lib/bitrotate.h: New file.
21420 * modules/bitrotate-tests: New file.
21422 * tests/test-bitrotate.c: New file.
21424 * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
21425 on the bitrotate module.
21427 * lib/arctwo.c: Use new bitrotate module.
21429 2008-08-29 Jim Meyering <meyering@redhat.com>
21431 bootstrap: merge changes from coreutils
21432 * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
21433 of copied files. Remove a kludge, now that this is fixed.
21434 * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
21435 * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
21436 * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
21438 2008-08-29 Bruno Haible <bruno@clisp.org>
21440 * MODULES.html.sh: Remove --cvs-urls option.
21442 2008-08-28 Jose E. Marchesi <jemarch@gnu.org> (tiny change)
21444 maint.mk: adjust to file name change
21445 * top/maint.mk: s/Makefile.cfg/cfg.mk/.
21447 2008-08-28 Jim Meyering <meyering@redhat.com>
21449 * modules/getndelim2 (License): Relicense to LGPLv2+.
21450 Approved by Richard Stallman for the version of 1995, and by
21451 Paul Eggert, Bruno Haible, Eric Blake for their contributions.
21453 2008-08-27 Paolo Bonzini <bonzini@gnu.org>
21455 * lib/getdelim.c (flockfile, funlockfile): Make all of them
21456 dummy if one is not available. Do not touch them if
21457 USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
21458 (getc_maybe_unlocked): New.
21459 * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
21461 2008-08-26 Eric Blake <ebb9@byu.net>
21463 doc/INSTALL: resync from autoconf
21464 * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
21465 (INSTALL_PRELUDE): Delete; this is done more efficiently by
21467 * install.texi [!autoconf]: ...here. Resync from autoconf.
21468 * INSTALL: Regenerate.
21469 * INSTALL.ISO: New file.
21470 * INSTALL.UTF-8: Likewise.
21472 2008-08-26 Jim Meyering <meyering@redhat.com>
21474 GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
21475 * top/GNUmakefile (_is-dist-target, _is-install-target): Make
21476 these definitions conditional, so that they may be overridden, too.
21478 2008-08-26 Bruno Haible <bruno@clisp.org>
21480 Generate INSTALL file variants with prettier quotes.
21481 * doc/Makefile (INSTALL_PRELUDE): New macro.
21483 (INSTALL.ISO, INSTALL.UTF-8): New rules.
21485 2008-08-26 Bruno Haible <bruno@clisp.org>
21487 Run makeinfo in an English locale.
21488 * doc/Makefile (MAKEINFO): New variable.
21490 2008-08-26 Bruno Haible <bruno@clisp.org>
21492 * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
21493 Suggested by Eric Blake.
21495 2008-08-25 Bruno Haible <bruno@clisp.org>
21497 * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
21499 2008-08-25 Eric Blake <ebb9@byu.net>
21501 c-stack: test that stack overflow can be caught
21502 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
21503 that platform allows handling stack overflow; at least OS/2 EMX
21504 has sigaltstack, but crashes before transferring control to
21505 handler on stack overflow.
21506 * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
21507 check for HAVE_STACK_OVERFLOW_HANDLING.
21508 Reported by Elbert Pol.
21510 2008-08-25 Bruno Haible <bruno@clisp.org>
21512 * doc/posix-functions/strftime.texi: Fix description of strftime
21515 2008-08-24 Bruno Haible <bruno@clisp.org>
21517 * tests/uniwidth/test-uc_width2.c: New file.
21518 * tests/uniwidth/test-uc_width2.sh: New file.
21519 * modules/uniwidth/width-tests (Files): Add the new files.
21520 (TESTS): Add uniwidth/test-uc_width2.sh.
21521 (TESTS_ENVIRONMENT): New variable.
21522 (check_PROGRAMS): Add test-uc_width2.
21523 (test_uc_width2_SOURCES): New variable.
21525 Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
21526 * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
21528 Reported by Alexander V. Lukyanov <lav@netis.ru>.
21530 2008-08-22 Eric Blake <ebb9@byu.net>
21532 test-lock, test-tls: mention why a test is skipped
21533 * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
21535 * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
21537 count-one-bits: relax license
21538 * modules/count-one-bits (License): Relicense to LGPLv2+.
21539 Suggested by Ludovic Courtès, approved by Ben Pfaff.
21541 2008-08-22 Andreas Schwab <schwab@suse.de>
21543 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
21544 Remove spurious space in assignment.
21546 2008-08-21 Simon Josefsson <simon@josefsson.org>
21548 * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC. Reported by
21549 Paul Eggert <eggert@CS.UCLA.EDU>.
21551 2008-08-20 Paolo Bonzini <bonzini@gnu.org>
21553 * modules/gettext: Add m4/threadlib.m4.
21555 2008-08-19 Eric Blake <ebb9@byu.net>
21557 test-c-stack: fix compilation failure on FreeBSD 5.0
21558 * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
21559 headers before <sys/resource.h>.
21560 * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
21562 Reported by Nelson H. F. Beebe.
21564 strverscmp: migrate from "strverscmp.h" to <string.h>
21565 * modules/string (Makefile.am): Add new hooks.
21566 * modules/strverscmp (Files): Remove strverscmp.h.
21567 (Depends-on): Add string.
21568 (configure.ac): Add indicator.
21569 (Include): Mention new header.
21570 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
21572 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
21574 * lib/strverscmp.h: Delete.
21575 * lib/string.in.h (strverscmp): Provide declaration, when needed.
21576 * tests/test-strverscmp.c (includes): Adjust client.
21577 * lib/check-version.c (includes): Likewise.
21578 * NEWS: Document the change.
21580 strverscmp: add unit test
21581 * modules/strverscmp-tests: New file.
21582 * tests/test-strverscmp.c: Likewise.
21584 2008-08-19 Simon Josefsson <simon@josefsson.org>
21586 * lib/gc-gnulib.c: Indentation cleanup. Add some comments
21587 regarding Windows crypto stuff, from Mono.
21589 2008-08-19 Adam Strzelecki <ono@java.pl> (tiny change)
21591 * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT. Try to use Intel CSP
21592 if present, for intel RND. Return error on failures.
21594 2008-08-18 Ben Pfaff <blp@gnu.org>
21596 gitlog-to-changelog: give better diagnostic for failed pipe-open
21597 * build-aux/gitlog-to-changelog: Improve error message: suggest
21598 that the version of Git may be too old.
21600 2008-08-18 Simon Josefsson <simon@josefsson.org>
21602 * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity. Use
21603 ISO 8601 format. Suggested by Greg Troxel <gdt@ir.bbn.com>.
21605 2008-08-18 Bruno Haible <bruno@clisp.org>
21607 * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
21610 2008-08-18 Bruno Haible <bruno@clisp.org>
21612 * lib/glthread/threadlib.c: Include <pthread.h>.
21614 2008-08-18 Bruno Haible <bruno@clisp.org>
21616 * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
21617 glthread_recursive_lock_* macros.
21618 * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
21621 2008-08-18 Bruno Haible <bruno@clisp.org>
21623 * lib/glthread/thread.c: Avoid forcing a context switch right after
21626 2008-08-17 Bruno Haible <bruno@clisp.org>
21628 * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
21629 * lib/glthread/thread.h: Provide Win32 specific implementation.
21630 * modules/thread (Files): Add lib/glthread/thread.c.
21631 (Depends-on): Add lock.
21632 (Makefile.am): Add glthread/thread.c to lib_SOURCES.
21634 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21636 New module 'yield'.
21637 * modules/yield: New file.
21638 * lib/glthread/yield.h: New file.
21639 * m4/yield.m4: New file.
21640 * MODULES.html.sh (Multithreading): Add yield.
21642 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21644 New module 'thread'.
21645 * modules/thread: New file.
21646 * lib/glthread/thread.h: New file.
21647 * m4/thread.m4: New file.
21648 * MODULES.html.sh (Multithreading): Add thread.
21650 2008-08-17 Bruno Haible <bruno@clisp.org>
21652 * lib/glthread/lock.h: Include <stdlib.h> always.
21653 * lib/glthread/tls.h: Likewise.
21654 * lib/glthread/cond.h: Likewise.
21656 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21659 * modules/cond: New file.
21660 * lib/glthread/cond.h: New file.
21661 * lib/glthread/cond.c: New file.
21662 * m4/cond.m4: New file.
21663 * MODULES.html.sh (Multithreading): Add cond.
21665 2008-08-16 Eric Blake <ebb9@byu.net>
21667 c-stack: fix regression on Irix 5.3 from 2008-06-21
21668 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
21670 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
21671 (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
21672 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
21673 * modules/signal (Makefile.am): Use the value.
21674 * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
21675 && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
21676 * doc/posix-headers/signal.texi (signal.h): Document this
21678 * doc/posix-functions/sigaction.texi (sigaction): Likewise.
21679 Reported by Tom G. Christensen.
21681 2008-08-17 Bruno Haible <bruno@clisp.org>
21683 New module 'threadlib'.
21684 * modules/threadlib: New file.
21685 * lib/glthread/threadlib.c: New file, extracted from
21686 lib/glthread/lock.c.
21687 * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
21689 * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
21690 gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
21691 * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
21693 (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
21694 (gl_DISABLE_THREADS): Remove macro.
21695 * modules/lock (Files): Remove build-aux/config.rpath.
21696 (Depends-on): Remove havelib. Add threadlib.
21697 (configure.ac-early): Remove section.
21698 * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
21699 * modules/tls (Depends-on): Remove lock. Add threadlib.
21700 (Link): New section, copied from threadlib.
21701 * MODULES.html.sh (Multithreading): Add threadlib.
21703 2008-08-14 Bruno Haible <bruno@clisp.org>
21705 * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
21706 glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
21707 glthread_rwlock_unlock, glthread_rwlock_destroy,
21708 glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
21709 glthread_recursive_lock_destroy): Define as macros always.
21710 * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
21711 glthread_lock_lock.
21712 (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
21713 (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
21714 (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
21715 (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
21716 (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
21717 (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
21718 (glthread_recursive_lock_lock_func): Renamed from
21719 glthread_recursive_lock_lock.
21720 (glthread_recursive_lock_unlock_func): Renamed from
21721 glthread_recursive_lock_unlock.
21722 (glthread_recursive_lock_destroy_func): Renamed from
21723 glthread_recursive_lock_destroy.
21725 2008-08-14 Bruno Haible <bruno@clisp.org>
21727 * lib/glthread/lock.h: Renamed from lib/lock.h.
21728 * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
21729 * lib/glthread/tls.h: Renamed from lib/tls.h.
21730 * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
21731 * lib/fstrcmp.c: Update includes.
21732 * lib/strsignal.c: Update includes.
21733 * modules/lock (Files, Makefile.am): Update.
21734 (Include): Change to "glthread/lock.h".
21735 * modules/tls (Files, Makefile.am): Update.
21736 (Include): Change to "glthread/tls.h".
21737 * tests/test-lock.c: Update includes.
21738 * tests/test-tls.c: Update includes.
21739 * NEWS: Mention the renamed header files.
21741 2008-08-11 Jim Meyering <meyering@redhat.com>
21743 * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
21745 2008-08-11 Eric Blake <ebb9@byu.net>
21747 test-c-stack: avoid C99-ism
21748 * tests/test-c-stack.c (main): Fix whitespace, move declaration
21750 Reported by Alain Guibert.
21752 2008-08-10 Jim Meyering <meyering@redhat.com>
21754 ensure that return value of uinttostr et al are not ignored
21755 * lib/inttostr.h (__GNUC_PREREQ): Define.
21756 (__attribute_warn_unused_result__): Define.
21757 (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
21759 2008-08-07 Paolo Bonzini <bonzini@gnu.org>
21761 * lib/lock.c (glthread_recursive_lock_init_multithreaded)
21762 [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
21764 2008-08-07 Jim Meyering <meyering@redhat.com>
21766 * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
21768 * modules/mkstemp (License): Relicense under LGPLv2+.
21769 * modules/tempname (License): Likewise.
21771 2008-08-06 Bruno Haible <bruno@clisp.org>
21773 * lib/poll.c (poll): Further micro-optimization.
21775 2008-08-06 Jim Meyering <meyering@redhat.com>
21777 inet_pton.c: use locale-independent tolower
21778 * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
21779 (inet_pton6): Use c_tolower rather than tolower.
21780 * modules/inet_pton (Depends-on): Add c-ctype.
21782 2008-08-06 Paolo Bonzini <bonzini@gnu.org>
21784 * lib/poll.c (poll): Avoid division when timeout is 0, cache
21785 _SC_OPEN_MAX, avoid repeated access to errno. Check for nfd < 0.
21787 2008-08-06 Jim Meyering <meyering@redhat.com>
21789 * modules/inet_pton (License): Relicense under LGPLv2+.
21791 2008-08-03 Bruno Haible <bruno@clisp.org>
21793 Additional non-aborting API for lock and tls.
21794 * lib/lock.h: Include <errno.h>.
21795 (glthread_lock_init): New macro/function.
21796 (gl_lock_init): Define as wrapper around glthread_lock_init.
21797 (glthread_lock_lock): New macro/function.
21798 (gl_lock_lock): Define as wrapper around glthread_lock_lock.
21799 (glthread_lock_unlock): New macro/function.
21800 (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
21801 (glthread_lock_destroy): New macro/function.
21802 (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
21803 (glthread_rwlock_init): New macro/function.
21804 (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
21805 (glthread_rwlock_rdlock): New macro/function.
21806 (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
21807 (glthread_rwlock_wrlock): New macro/function.
21808 (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
21809 (glthread_rwlock_unlock): New macro/function.
21810 (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
21811 (glthread_rwlock_destroy): New macro/function.
21812 (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
21813 (glthread_recursive_lock_init): New macro/function.
21814 (gl_recursive_lock_init): Define as wrapper around
21815 glthread_recursive_lock_init.
21816 (glthread_recursive_lock_lock): New macro/function.
21817 (gl_recursive_lock_lock): Define as wrapper around
21818 glthread_recursive_lock_lock.
21819 (glthread_recursive_lock_unlock): New macro/function.
21820 (gl_recursive_lock_unlock): Define as wrapper around
21821 glthread_recursive_lock_unlock.
21822 (glthread_recursive_lock_destroy): New macro/function.
21823 (gl_recursive_lock_destroy): Define as wrapper around
21824 glthread_recursive_lock_destroy.
21825 (glthread_once): New macro/function.
21826 (gl_once): Define as wrapper around glthread_once.
21827 Update function declarations.
21828 * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
21829 glthread_rwlock_init. Return error code.
21830 (glthread_rwlock_rdlock_multithreaded): Renamed from
21831 glthread_rwlock_rdlock. Return error code.
21832 (glthread_rwlock_wrlock_multithreaded): Renamed from
21833 glthread_rwlock_wrlock. Return error code.
21834 (glthread_rwlock_unlock_multithreaded): Renamed from
21835 glthread_rwlock_unlock. Return error code.
21836 (glthread_rwlock_destroy_multithreaded): Renamed from
21837 glthread_rwlock_destroy. Return error code.
21838 (glthread_recursive_lock_init_multithreaded): Renamed from
21839 glthread_recursive_lock_init. Return error code.
21840 (glthread_recursive_lock_lock_multithreaded): Renamed from
21841 glthread_recursive_lock_lock. Return error code.
21842 (glthread_recursive_lock_unlock_multithreaded): Renamed from
21843 glthread_recursive_lock_unlock. Return error code.
21844 (glthread_recursive_lock_destroy_multithreaded): Renamed from
21845 glthread_recursive_lock_destroy. Return error code.
21846 (glthread_once_call): Make static.
21847 (glthread_once_multithreaded): Renamed from glthread_once.
21848 * lib/tls.h: Include <errno.h>.
21849 (glthread_tls_key_init): New macro/function.
21850 (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
21851 (glthread_tls_set): New macro/function.
21852 (gl_tls_set): Define as wrapper around glthread_tls_set.
21853 (glthread_tls_key_destroy): New macro/function.
21854 (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
21855 Update function declarations.
21856 * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
21858 Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21860 2008-08-04 Eric Blake <ebb9@byu.net>
21862 gnumakefile: use space, not TAB, outside of targets
21863 * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
21865 2008-08-02 Jim Meyering <meyering@redhat.com>
21867 getdate.y: avoid locale-dependent date parsing failure
21868 In Turkish locales, getdate would fail to recognize keywords
21869 containing a lowercase "i". The solution is not to rely on
21870 locale-sensitive case-conversion.
21871 * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
21872 (lookup_word): Use c_toupper in place of toupper.
21873 (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
21874 Reported by Vefa Bicakci <bicave@superonline.com> in
21875 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
21876 * modules/getdate (Depends-on): Add c-ctype.
21878 2008-08-02 Bruno Haible <bruno@clisp.org>
21880 * gnulib-tool (func_import): When updating or creating a .gitignore
21881 file, prepend each added line with a slash, and ignore leading slashes
21882 from the existing lines.
21883 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
21885 2008-08-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21887 Portability fix for GNU make 3.79.1.
21888 * top/GNUmakefile: Avoid 'else COND', which older GNU make
21889 versions do not understand.
21891 2008-08-01 Bruno Haible <bruno@clisp.org>
21893 Work around bug of HP-UX 10.20 cc with -0.0 literal.
21894 * tests/test-isnanf.h (zero): New variable.
21895 (main): Avoid literal -0.0f.
21896 * tests/test-isnand.h (zero): New variable.
21897 (main): Avoid literal -0.0.
21898 * tests/test-isnanl.h (zero): New variable.
21899 (main): Avoid literal -0.0L.
21900 * tests/test-isnan.c (zerof, zerod, zerol): New variables.
21901 (test_float, test_double, test_long_double): Avoid literals -0.0f,
21903 * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
21904 (test_signbitd): Avoid literal -0.0.
21905 (test_signbitl): Avoid literal -0.0L.
21906 * tests/test-ceilf1.c (zero): New variable.
21907 (main): Avoid literal -0.0f.
21908 * tests/test-ceill.c (zero): New variable.
21909 (main): Avoid literal -0.0L.
21910 * tests/test-floorf1.c (zero): New variable.
21911 (main): Avoid literal -0.0f.
21912 * tests/test-floorl.c (zero): New variable.
21913 (main): Avoid literal -0.0L.
21914 * tests/test-roundf1.c (zero): New variable.
21915 (main): Avoid literal -0.0f.
21916 * tests/test-round1.c (zero): New variable.
21917 (main): Avoid literal -0.0.
21918 * tests/test-roundl.c (zero): New variable.
21919 (main): Avoid literal -0.0L.
21920 * tests/test-truncf1.c (zero): New variable.
21921 (main): Avoid literal -0.0f.
21922 * tests/test-trunc1.c (zero): New variable.
21923 (main): Avoid literal -0.0.
21924 * tests/test-truncl.c (zero): New variable.
21925 (main): Avoid literal -0.0L.
21926 * tests/test-frexp.c (zero): New variable.
21927 (main): Avoid literal -0.0.
21928 * tests/test-frexpl.c (zero): New variable.
21929 (main): Avoid literal -0.0L.
21930 * tests/test-ldexpl.c (zero): New variable.
21931 (main): Avoid literal -0.0L.
21932 * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
21933 (zerod, zerol): New variables.
21934 (test_function): Avoid literals -0.0, -0.0L.
21935 * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
21936 (zerod, zerol): New variables.
21937 (test_function): Avoid literals -0.0, -0.0L.
21938 * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
21939 (zerod, zerol): New variables.
21940 (test_function): Avoid literals -0.0, -0.0L.
21941 * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
21942 (zerod, zerol): New variables.
21943 (test_function): Avoid literals -0.0, -0.0L.
21944 * tests/test-strtod.c (zero): New variable.
21945 (main): Avoid literal -0.0.
21946 Reported by Jonathan C. Patschke <jp@centtech.com>.
21948 2008-07-31 Jim Meyering <meyering@redhat.com>
21950 sha256.h: correct definition of SHA224_DIGEST_SIZE
21951 * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
21952 Reported by Paulie Pena IV <paulie4@gmail.com>.
21953 Define as 224 / 8, rather than as a literal.
21954 (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
21955 * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
21956 (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
21958 2008-07-31 Bruno Haible <bruno@clisp.org>
21960 * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
21961 on HP-UX 10.20 with "cc -Ae". Fix second conditional.
21962 Reported by Jonathan Patschke <jp@centtech.com>.
21964 2008-07-31 Bruno Haible <bruno@clisp.org>
21966 * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
21967 Reported by Paolo Bonzini <bonzini@gnu.org>.
21969 2008-07-30 Eric Blake <ebb9@byu.net>
21971 test-strtod: allow compilation without -lm
21972 * tests/test-strtod.c (main): Avoid link dependence on fabs.
21973 Reported by Dennis Clarke <blastwave@gmail.com>.
21975 2008-07-28 Jim Meyering <meyering@redhat.com>
21977 bootstrap: work also when there are no .po files in po/
21978 * build-aux/bootstrap (update_po_files): Complete the change
21979 that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
21981 2008-07-27 Jim Meyering <meyering@redhat.com>
21983 * users.txt: Add zile.
21985 2008-07-26 Ben Pfaff <blp@gnu.org>
21987 Add missing dependencies on new m4/exponent[fdl].m4 files.
21988 * modules/isnanf-nolibm: Add m4/exponentf.m4.
21989 * modules/isnand-nolibm: Add m4/exponentd.m4.
21990 * modules/isnanl-nolibm: Add m4/exponentl.m4.
21991 * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
21992 m4/isnan[fdl].m4, because the macros actually used moved.
21993 Reported by Jim Meyering.
21995 2008-07-14 Ben Pfaff <blp@gnu.org>
21998 * lib/isinf.c: New file.
21999 * lib/math.in.h: Define isinf macro if we have decided to replace
22001 * m4/isinf.m4: New file.
22002 * m4/math_h.m4: Initialize and substitute variables for isinf
22004 * modules/isinf: New file.
22005 * modules/isinf-tests: New file.
22006 * modules/math: Add substitutions for new module.
22007 * tests/test-isinf.c: New file.
22008 * doc/posix-functions/isinf.texi: Mention new module.
22009 * MODULES.html.sh: Mention new module.
22011 2008-07-14 Ben Pfaff <blp@gnu.org>
22013 Factor out some macros for use by additional modules.
22014 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
22016 * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
22018 * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
22020 * m4/exponentf.m4: New file.
22021 * m4/exponentd.m4: New file.
22022 * m4/exponentl.m4: New file.
22023 * modules/isnanf: Use new file m4/exponentf.m4.
22024 * modules/isnand: Use new file m4/exponentd.m4.
22025 * modules/isnanl: Use new file m4/exponentl.m4.
22027 2008-07-23 Ulrich Drepper <drepper@redhat.com>
22029 mktime.c: normalize tp->tm_isdst value to -1/0/1.
22030 * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
22031 Reported by Michael Ringe <Michael.Ringe@gmx.de> in
22032 <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
22034 * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
22035 readlink on platforms without PATH_MAX.
22037 2008-07-21 Eric Blake <ebb9@byu.net>
22039 Warn, not fail, on stale version.
22040 * top/GNUmakefile (_curr-ver): Tone down previous patch.
22042 Don't allow installation with stale devel version number.
22043 * top/GNUmakefile (_is-install-target): New macro.
22044 (_curr-ver): Forbid installation with stale version number.
22046 2008-07-20 Bruno Haible <bruno@clisp.org>
22048 * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
22050 * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
22052 2008-07-20 Bruno Haible <bruno@clisp.org>
22054 * lib/c-stack.h (c_stack_action): Add documentation.
22055 * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
22057 2008-07-20 Bruno Haible <bruno@clisp.org>
22059 * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
22060 * modules/readlink (License): Likewise.
22062 2008-07-17 Eric Blake <ebb9@byu.net>
22064 * modules/c-stack (Link): Fix typo.
22066 Make c-stack use libsigsegv, when available.
22067 * modules/c-stack (Depends-on): Add libsigsegv.
22068 * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
22070 * lib/c-stack.c (SIGSTKSZ): Define fallback.
22071 (segv_handler, overflow_handler, c_stack_action)
22072 [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
22073 implementation when libsigsegv is available, but only when using
22074 the library is necessary.
22075 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
22076 comment, explaining why XSI check fails on Linux.
22077 (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
22078 * tests/test-c-stack2.sh: Tweak skip message.
22079 * NEWS: Document new link-time requirements.
22081 2008-07-16 Eric Blake <ebb9@byu.net>
22083 c-stack: Expose false positives when not using libsigsegv.
22084 * modules/c-stack-tests (Files): Expand test.
22085 * tests/test-c-stack.c (main): Add means to conditionally trigger
22086 non-overflow SIGSEGV.
22087 * tests/test-c-stack2.sh: New file.
22089 2008-07-14 Bruno Haible <bruno@clisp.org>
22091 * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
22092 Reported by Eric Blake.
22094 2008-07-14 Sam Steingold <sds@gnu.org>
22095 Bruno Haible <bruno@clisp.org>
22097 New module libsigsegv.
22098 * modules/libsigsegv: New file.
22099 * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
22101 * MODULES.html.sh (Signal handling): New section.
22103 2008-07-14 Bruno Haible <bruno@clisp.org>
22105 * modules/unictype/ctype-* (Description): Add the word "function".
22106 Improves the resulting doc in MODULES.html.
22108 2008-07-12 Ben Pfaff <blp@gnu.org>
22110 Add longlong module.
22111 * modules/longlong: New file.
22113 2008-07-12 Bruno Haible <bruno@clisp.org>
22115 * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
22118 2008-07-10 Ben Pfaff <blp@gnu.org>
22121 * doc/posix-functions/isnan.texi: Mention new module.
22122 * lib/math.in.h: Define isnan macro if we have decided to replace
22124 * m4/isnan.m4: New file.
22125 * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
22126 macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
22128 (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
22130 * m4/math_h.m4: Initialize and substitute variables for isnan
22132 * modules/isnan: New file.
22133 * modules/isnan-tests: New file.
22134 * modules/math: Add substitutions for new module.
22135 * tests/test-isnan.c: New file.
22136 * MODULES.html.sh: Mention new module.
22138 2008-07-10 Ben Pfaff <blp@gnu.org>
22141 * lib/isnanf.m4: New file.
22142 * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
22143 (gl_HAVE_ISNANF_IN_LIBM): New macro.
22144 (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
22145 gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
22146 * modules/isnanf: New file.
22147 * modules/isnanf-tests: New file.
22148 * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
22150 * tests/test-isnanf-nolibm.c: factored most of its contents into
22151 new file tests/test-isnanf.h.
22152 * tests/test-isnanf.h: New file.
22153 * tests/test-isnanf.c: New file.
22154 * MODULES.html.sh: Mention new module.
22155 * doc/glibc-functions/isnanf.texi: Mention new module.
22157 2008-07-10 Ben Pfaff <blp@gnu.org>
22160 * lib/isnand.h: New file.
22161 * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
22162 (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
22163 gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
22164 functionality also.
22165 (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
22166 gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
22167 (gl_HAVE_ISNAND_IN_LIBM): New macro.
22168 * modules/isnand: New file.
22169 * modules/isnand-tests: New file.
22170 * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
22172 * tests/test-isnand-nolibm.c: factored most of its contents into
22173 new file tests/test-isnand.h.
22174 * tests/test-isnand.h: New file.
22175 * tests/test-isnand.c: New file.
22176 * MODULES.html.sh: Mention new module.
22178 2008-07-10 Ben Pfaff <blp@gnu.org>
22180 * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
22181 * lib/isnand.h: Rename lib/isnand-nolibm.h.
22182 * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
22183 * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
22184 * modules/isnanf-nolibm: Update references to renamed files.
22185 * modules/isnand-nolibm: Likewise.
22186 * modules/isnanf-nolibm-tests: Likewise.
22187 * modules/isnand-nolibm-tests: Likewise.
22188 * lib/frexp.c: Likewise.
22189 * lib/isfinite.c: Likewise.
22190 * lib/signbitd.c: Likewise.
22191 * lib/signbitf.c: Likewise.
22192 * lib/vasnprintf.c: Likewise.
22193 * tests/test-ceilf1.c: Likewise.
22194 * tests/test-ceilf2.c: Likewise.
22195 * tests/test-floorf1.c: Likewise.
22196 * tests/test-floorf2.c: Likewise.
22197 * tests/test-frexp.c: Likewise.
22198 * tests/test-round1.c: Likewise.
22199 * tests/test-round2.c: Likewise.
22200 * tests/test-roundf1.c: Likewise.
22201 * tests/test-strtod.c: Likewise.
22202 * tests/test-trunc1.c: Likewise.
22203 * tests/test-trunc2.c: Likewise.
22204 * tests/test-truncf1.c: Likewise.
22205 * tests/test-truncf2.c: Likewise.
22206 * NEWS: Mention the renamed header files.
22208 2008-07-11 Jim Meyering <meyering@redhat.com>
22210 vc-list-files: make the last-resort awk code more portable
22211 * build-aux/vc-list-files: Don't rely on awk's "sub" command.
22212 /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
22213 does not support it.
22215 2008-07-10 Eric Blake <ebb9@byu.net>
22217 Work with tar's bootstrap.
22218 * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
22219 where LIBSOURCES_DIR contains .#bootmp but must not be treated as
22222 2008-07-09 Jim Meyering <meyering@redhat.com>
22224 posix-shell.m4: fix typo that made this test malfunction
22225 * m4/posix-shell.m4: Remove capitalization in variable name.
22227 2008-07-08 Bruno Haible <bruno@clisp.org>
22229 * m4/onceonly.m4: Update comments.
22230 Reported by Ben Pfaff <blp@cs.stanford.edu>.
22232 2008-07-04 Jim Meyering <meyering@redhat.com>
22234 * users.txt: Add vc-dwim.
22235 (bison, coreutils): Use the gitweb URL.
22237 2008-07-03 Jim Meyering <meyering@redhat.com>
22239 * users.txt: Add libffcall. From Sam Steingold.
22241 2008-07-03 Ondřej Vašík <ovasik@redhat.com>
22243 getdate.y: do not ignore TZ with relative day, month or year offset
22244 * lib/getdate.y (get_date): Move the tz-handling block to follow the
22245 relative-date-handling, since otherwise, the latter would clobber the
22246 sole output (an updated Start value) of the tz-handling block.
22247 * tests/test-getdate.c: Tests for the fix
22249 2008-07-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22251 Recognize 'foo_LIBRARIES += libgnu.a'.
22252 * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
22253 makefile snippet has already specified an installation location,
22256 2008-07-02 Ondřej Vašík <ovasik@redhat.com>
22258 getdate.y: factor out common actions
22259 * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
22260 Use them in place of open-coded actions.
22262 2008-07-01 Simon Josefsson <simon@josefsson.org>
22264 Add self-test for getdate module.
22265 * modules/getdate-tests: New file.
22266 * tests/test-getdate.c: New file.
22268 2008-06-29 Bruno Haible <bruno@clisp.org>
22270 * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
22272 Reported by Sylvain Beucler <beuc@beuc.net>.
22274 2008-06-29 Bruno Haible <bruno@clisp.org>
22276 * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
22277 * m4/gnulib-tool.m4: Update to match current gnulib-tool.
22279 2008-06-29 Bruno Haible <bruno@clisp.org>
22281 * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
22283 Reported by Sylvain Beucler <beuc@beuc.net>.
22285 2008-06-26 Jim Meyering <meyering@redhat.com>
22287 make several modules depend on the "open" module
22288 This provides slightly increased consistency when opening-for-write
22289 the name of a non-directory spelled with a trailing slash.
22290 * modules/chdir-safer: Likewise.
22291 * modules/chown: Likewise.
22292 * modules/clean-temp: Likewise.
22293 * modules/copy-file: Likewise.
22294 * modules/fchdir: Likewise.
22295 * modules/fcntl-safer: Likewise.
22296 * modules/pipe: Likewise.
22297 * modules/utime: Likewise.
22298 Prompted by Eric Blake and Bruno Haible.
22300 2008-06-24 Andreas Schwab <schwab@suse.de>
22302 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
22303 literals can be used as initializers for global variables.
22305 2008-06-23 Eric Blake <ebb9@byu.net>
22307 Make gnulib-cache.m4 easier to diff.
22308 * gnulib-tool (func_import): Allow newlines when reading cached
22309 gl_MODULES, and generate newlines when creating gnulib-cache.m4.
22311 2008-06-23 Bruno Haible <bruno@clisp.org>
22313 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
22314 (gl_PREREQ_SIGPROCMASK): Don't invoke it.
22315 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
22316 m4/signalblocking.m4.
22317 (gl_PREREQ_SIGACTION): Don't invoke it.
22318 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
22319 gl_PREREQ_SIG_HANDLER_H.
22320 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22321 Don't check for sigaction here.
22323 2008-06-23 Bruno Haible <bruno@clisp.org>
22325 * lib/fatal-signal.c (fatal_signal_handler): Update comment.
22326 (install_handlers): Don't set the SA_RESETHAND flag.
22328 2008-06-23 Bruno Haible <bruno@clisp.org>
22330 * m4/sigaction.m4: Comment fixes.
22331 * lib/signal.in.h: Likewise.
22333 2008-06-23 Eric Blake <ebb9@byu.net>
22336 * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
22338 Avoid SA_ namespace.
22339 * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
22340 Reported by Ralf Wildenhues.
22342 Avoid test failure due to SA_RESTORER.
22343 * tests/test-sigaction.c (SA_MASK): New macro.
22344 (main): Avoid failing due to extension flags being set.
22345 Reported by Jim Meyering.
22347 Revert use of sig-handler.h in sigprocmask.c.
22348 * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
22349 it requires the existence of struct sigaction.
22350 * lib/sigprocmask.c (handler_t): Restore typedef.
22351 (rpl_signal, old_handlers): Use local type.
22353 2008-06-22 Bruno Haible <bruno@clisp.org>
22355 * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
22357 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22359 2008-06-22 Bruno Haible <bruno@clisp.org>
22361 * doc/posix-functions/siginterrupt.texi: Move note.
22363 * lib/signal.in.h (SA_RESTART): New macro.
22364 * lib/sigaction.c: Update comment.
22366 * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
22368 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
22369 (gl_PREREQ_SIGPROCMASK): Invoke it.
22370 * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
22372 * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
22374 * lib/sigprocmask.c: Update a comment.
22376 2008-06-21 Eric Blake <ebb9@byu.net>
22378 Use sigaction module rather than signal().
22379 * modules/c-stack (Depends-on): Add sigaction.
22380 * modules/fatal-signal (Depends-on): Likewise.
22381 * modules/nanosleep (Depends-on): Likewise.
22382 * modules/sigprocmask (Files): Add sig-handler.h.
22383 * modules/sigaction (Files): Likewise.
22384 * lib/sig-handler.h (get_handler): New file, suggested by Paul
22386 * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
22387 (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
22388 * lib/fatal-signal.c (uninstall_handlers, install_handlers)
22389 (init_fatal_signals): Likewise.
22390 * lib/nanosleep.c (rpl_nanosleep): Likewise.
22391 (siginterrupt): Delete fallback.
22392 * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
22394 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
22397 New module sigaction, for mingw.
22398 * modules/sigaction: New module...
22399 * modules/sigaction-tests: ...and its test.
22400 * m4/sigaction.m4: New file.
22401 * lib/sigaction.c: Likewise.
22402 * tests/test-sigaction.c: Likewise.
22403 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
22404 * modules/signal (Makefile.am): Likewise.
22405 * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
22407 * doc/posix-headers/signal.texi (signal.h): Mention provided
22409 * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
22410 that sigaction is preferable.
22411 * doc/posix-functions/sigaction.texi (sigaction): Mention new
22413 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22416 Improve robustness of sigprocmask by overriding signal.
22417 * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
22419 * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
22420 (SIGKILL, SIGSTOP): Provide fallbacks.
22421 (rpl_signal): Implement.
22422 (old_handlers, blocked_set): Mark volatile, since sigprocmask and
22423 signal can be called inside handlers.
22425 Fix nanosleep module on mingw.
22426 * modules/nanosleep (Depends-on): Add sys_select.
22427 * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
22429 Fix licensing of sigprocmask.
22430 * modules/raise (License): Relicense as LGPL.
22432 2008-06-21 Bruno Haible <bruno@clisp.org>
22434 * lib/propername.c (proper_name_utf8): Don't use the transliterated
22435 result if it contains question marks.
22436 Reported by Michael Geng <linux@michaelgeng.de>.
22438 2008-06-19 Bruno Haible <bruno@clisp.org>
22441 * doc/gnulib.texi: Include updated-stamp.texi.
22442 * doc/Makefile (GNULIB_TEXI_FILES): New variable.
22443 (updated-stamp.texi): New rule.
22444 (gnulib.info): Depend on it.
22445 * doc/.gitignore: Add updated-stamp.texi.
22446 Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
22448 2008-06-19 Bruno Haible <bruno@clisp.org>
22450 * doc/Makefile (gnulib.info): Update and simplify dependencies.
22451 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22453 2008-06-19 Eric Blake <ebb9@byu.net>
22455 Fix VPATH 'make dist' with GNU make and non-VCS tarball.
22456 * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
22457 Reported by Stepan Kasal.
22459 2008-06-18 Bruno Haible <bruno@clisp.org>
22461 * lib/fatal-signal.c (init_fatal_signals): Add comment.
22462 Reported by Eric Blake.
22464 2008-06-18 Eric Blake <ebb9@byu.net>
22466 Work around cygwin 1.5.25 strsignal bug.
22467 * tests/test-strsignal.c: Allow for const char *.
22468 * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
22470 2008-06-18 Simon Josefsson <simon@josefsson.org>
22472 * users.txt: Update URL to article and add author/date
22475 2008-06-17 Bruno Haible <bruno@clisp.org>
22477 New macro gl_DISABLE_THREADS.
22478 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
22479 if the user did not pass --enable-threads or --disable-threads option.
22480 (gl_DISABLE_THREADS): New macro.
22481 Reported by Eric Blake <ebb9@byu.net>.
22483 2008-06-17 Bruno Haible <bruno@clisp.org>
22485 * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
22486 when the macro ignores it.
22487 Based on a patch by Eric Blake <ebb9@byu.net>.
22489 2008-06-17 Bruno Haible <bruno@clisp.org>
22491 * modules/tls (License): Change to LGPLv2+.
22492 Reported by Eric Blake.
22494 2008-06-17 Eric Blake <ebb9@byu.net>
22496 Simplify c-stack prerequisites.
22497 * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
22498 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
22499 no longer requires <ucontext.h> to exist. Optimize setrlimit
22501 (gl_PREREQ_C_STACK): Remove check for unused getcontext and
22504 Move c-stack test into testsuite.
22505 * modules/c-stack-tests: New file.
22506 * lib/c-stack.c [DEBUG]: Move test program...
22507 * tests/test-c-stack.c: ...into this new file. Skip rather than
22508 fail test if sigaltstack is lacking.
22509 * tests/test-c-stack.sh: New driver file.
22511 2008-06-16 Eric Blake <ebb9@byu.net>
22513 Use raise module consistently.
22514 * modules/fatal-signal (Depends-on): Add raise.
22515 * modules/sigprocmask (Depends-on): Likewise.
22516 * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
22517 * lib/sigprocmask.c (sigprocmask): Likewise.
22518 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22519 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
22521 Fix compliance bug in sigpending.
22522 * lib/sigprocmask.c (sigpending): Return pending array via
22523 parameter, not return value.
22525 2008-06-14 Eric Blake <ebb9@byu.net>
22527 Improve obstack-printf test code.
22528 * tests/test-obstack-printf.c (test_function): Fix comment, and
22529 simplify usage of obstack_* in macros. Add a test for coverage.
22530 Reported by Bruno Haible.
22532 2008-06-14 Bruno Haible <bruno@clisp.org>
22534 * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
22535 array size as a constant, not as a const variable.
22536 * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
22537 AC_USE_SYSTEM_EXTENSIONS.
22538 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
22539 Test whether the obstack_printf function actually exists.
22540 * modules/obstack-printf (Depends-on): Add extensions.
22541 (Include): Remove obstack.h.
22542 * modules/obstack-printf-posix (Depends-on): Add extensions.
22543 (Include): Remove obstack.h.
22545 2008-06-13 Eric Blake <ebb9@byu.net>
22547 Add obstack-printf and obstack-printf-posix modules.
22548 * modules/obstack-printf: New file.
22549 * modules/obstack-printf-posix: Likewise.
22550 * MODULES.html.sh (Misc): Mention them.
22551 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
22553 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
22555 * modules/stdio (Makefile.am): Accomodate new modules.
22556 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22557 * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
22559 * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
22561 * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
22562 (gl_REPLACE_OBSTACK_PRINTF): New macros
22563 * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
22564 * tests/test-obstack-printf.c: New file.
22565 * modules/obstack-printf-tests: Likewise.
22566 * modules/obstack-printf-posix-tests: Likewise.
22568 2008-06-11 Bruno Haible <bruno@clisp.org>
22570 * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
22571 * lib/open.c: Include errno.h.
22572 (open): Fail when attempting to write to a file that has a trailing
22574 * tests/test-open.c (main): Test against trailing slash bug.
22575 * doc/posix-functions/open.texi: Mention the trailing slash bug.
22577 2008-06-10 Bruno Haible <bruno@clisp.org>
22579 * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
22580 for $? to work inside the trap command, with various /bin/sh-s.
22581 * tests/test-vc-list-files-cvs.sh: Likewise.
22583 2008-06-10 Bruno Haible <bruno@clisp.org>
22585 * lib/acl-internal.h: Don't include gettext.h here.
22586 * lib/set-mode-acl.c: Include gettext.h here.
22587 * lib/copy-acl.c: Likewise.
22589 2008-06-10 Bruno Haible <bruno@clisp.org>
22591 * lib/wait-process.h (wait_subprocess): Add termsigp argument.
22592 * lib/wait-process.c (wait_subprocess): Likewise.
22593 * lib/execute.h (execute): Add termsigp argument.
22594 * lib/execute.c (execute): Likewise.
22595 * lib/csharpcomp.c (compile_csharp_using_pnet,
22596 compile_csharp_using_mono, compile_csharp_using_sscli): Update.
22597 * lib/csharpexec.c (execute_csharp_using_pnet,
22598 execute_csharp_using_mono, execute_csharp_using_sscli): Update.
22599 * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
22600 compile_using_javac, compile_using_jikes, is_envjavac_gcj,
22601 is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
22602 is_jikes_present): Update.
22603 * lib/javaexec.c (execute_java_class): Update.
22604 * lib/javaversion.c (execute_and_read_line): Update.
22605 * NEWS: Document the changes.
22606 Reported by Eric Blake.
22608 2008-06-10 Eric Blake <ebb9@byu.net>
22610 Add missing include.
22611 * tests/test-strstr.c (includes): Add <signal.h>.
22612 * tests/test-strcasestr.c (includes): Likewise.
22613 * tests/test-memmem.c (includes): Likewise.
22615 2008-06-10 Bruno Haible <bruno@clisp.org>
22617 * lib/wait-process.c (wait_subprocess): Add an assertion.
22619 2008-06-10 Bruno Haible <bruno@clisp.org>
22621 * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
22623 2008-06-10 Bruno Haible <bruno@clisp.org>
22625 * tests/test-memmem.c (main): Reset SIGALRM to default handling before
22627 * tests/test-strcasestr.c (main): Likewise.
22628 * tests/test-strstr.c (main): Likewise.
22630 2008-06-09 Bruno Haible <bruno@clisp.org>
22632 Work around the Solaris 10 ACE ACLs ABI change.
22633 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
22634 declare if ACL_NO_TRIVIAL is present.
22635 (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
22636 NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
22637 NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
22638 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
22639 define if ACL_NO_TRIVIAL is present.
22640 (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
22641 and use the current ABI.
22642 (file_has_acl): Use same #if condition as elsewhere.
22643 * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
22644 in use, and use the current ABI.
22645 * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
22646 Reported by Jim Meyering.
22648 2008-06-09 Eric Blake <ebb9@byu.net>
22650 Work around environments that (stupidly) ignore SIGALRM.
22651 * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
22652 before using alarm().
22653 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22654 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22655 Reported by Ian Beckwith <ianb@erislabs.net>.
22657 Produce autobuild blurb earlier in log.
22658 * modules/autobuild (configure.ac-early): Move AB_INIT here.
22660 2008-06-09 Jim Meyering <meyering@redhat.com>
22661 and Ondřej Vašík <ovasik@redhat.com>
22663 utimens.c: correct kernel bug work-around
22664 Ondřej Vašík found that the invalid return value of 280 indicates
22665 failure, not success, and the kernel bug we're trying to work
22666 around affects not just the utimensat call, but also the fallback
22668 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
22670 [HAVE_FUTIMENS]: Use the same work-around, here.
22672 2008-06-09 Jim Meyering <meyering@redhat.com>
22674 add more guards around definition of ACE_-related code
22675 * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
22676 ALLOW and ACE_OWNER are also defined.
22678 2008-06-08 Bruno Haible <bruno@clisp.org>
22680 * lib/acl-internal.h: Add me as co-author.
22681 * lib/file-has-acl.c: Likewise.
22682 * lib/set-mode-acl.c: Likewise.
22683 * lib/copy-acl.c: Likewise.
22685 2008-06-08 Bruno Haible <bruno@clisp.org>
22687 Add support for AIX ACLs.
22688 * lib/acl-internal.h (acl_nontrivial): New declaration.
22689 * lib/file-has-acl.c (acl_nontrivial): New function.
22690 (file_has_acl): Add implementation using AIX 4 ACL API.
22691 * lib/set-mode-acl.c (qset_acl): Likewise.
22692 * lib/copy-acl.c (qcopy_acl): Likewise.
22694 2008-06-08 Bruno Haible <bruno@clisp.org>
22696 Add support for HP-UX ACLs.
22697 * lib/acl-internal.h (acl_nontrivial): New declaration.
22698 * lib/file-has-acl.c (acl_nontrivial): New function.
22699 (file_has_acl): Add implementation using HP-UX 11 ACL API.
22700 * lib/set-mode-acl.c (qset_acl): Likewise.
22701 * lib/copy-acl.c (qcopy_acl): Likewise.
22703 2008-06-08 Bruno Haible <bruno@clisp.org>
22705 Add support for Cygwin ACLs.
22706 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
22707 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
22708 the chmod_or_fchmod call.
22709 * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
22711 2008-06-08 Bruno Haible <bruno@clisp.org>
22713 Fix bug with setuid modes in Solaris 10+ code.
22714 * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
22715 succeeded, when the mode contains some special bits.
22717 2008-06-08 Bruno Haible <bruno@clisp.org>
22719 Add support for Solaris 7..10 ACLs.
22720 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
22722 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
22724 (file_has_acl): Add implementation using Solaris 7..10 ACL API.
22725 * lib/set-mode-acl.c (qset_acl): Likewise.
22726 * lib/copy-acl.c (qcopy_acl): Likewise.
22728 2008-06-08 Bruno Haible <bruno@clisp.org>
22730 * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
22732 * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
22733 (acl_access_nontrivial): Remove MacOS X case.
22734 (file_has_acl): Use acl_extended_nontrivial.
22735 * lib/copy-acl.c (qcopy_acl): Likewise.
22737 2008-06-08 Bruno Haible <bruno@clisp.org>
22739 * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
22741 2008-06-08 Jim Meyering <meyering@redhat.com>
22743 * modules/acl (Maintainer): Add Bruno Haible.
22745 2008-06-07 Bruno Haible <bruno@clisp.org>
22747 Improve support for Tru64 ACLs.
22748 * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
22751 2008-06-07 Bruno Haible <bruno@clisp.org>
22753 Add support for MacOS X ACLs.
22754 * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
22755 ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
22756 * lib/set-mode-acl.c (qset_acl): Likewise.
22757 * lib/copy-acl.c (qcopy_acl): Likewise.
22759 2008-06-07 Bruno Haible <bruno@clisp.org>
22761 Fix memory leak introduced on 2008-05-22.
22762 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
22765 2008-06-07 Bruno Haible <bruno@clisp.org>
22767 * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
22768 to construct an empty ACL.
22770 2008-06-07 Bruno Haible <bruno@clisp.org>
22772 * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
22774 * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
22776 2008-06-07 Bruno Haible <bruno@clisp.org>
22778 * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
22779 * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
22781 2008-06-07 Bruno Haible <bruno@clisp.org>
22783 * doc/posix-functions/_setjmp.texi: Explain the use of this function
22784 regardless of POSIX.
22785 * doc/posix-functions/_longjmp.texi: Likewise.
22786 * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
22787 SystemV platform in this case.
22789 2008-06-06 Eric Blake <ebb9@byu.net>
22791 Document abort() bugs.
22792 * doc/posix-functions/abort.texi (abort): Mention anomalies.
22794 * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
22795 * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
22797 * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
22798 siglongjmp, but only as a macro.
22799 * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
22801 * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
22803 Tweak documentation to cover cygwin argz bugs.
22804 * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
22805 argz bug fix; no code change needed since no cygwin releases
22806 occurred between the last fix and the bug being tested.
22807 * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
22808 module and recently fixed cygwin bugs.
22809 * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
22810 * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
22811 * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
22812 * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
22813 * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
22815 * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
22816 * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
22817 * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
22818 * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
22819 * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
22820 * doc/glibc-functions/argz_stringify.texi (argz_stringify):
22823 Avoid gcc warning on cygwin.
22824 * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
22825 !ACL_NO_TRIVIAL]: Avoid unused variable.
22827 2008-06-05 Eric Blake <ebb9@byu.net>
22829 Be tolerant of UNKNOWN version in gnulib-tool test dir.
22830 * top/GNUmakefile (_dummy): Warn rather than reconfigure if
22831 git-version-gen fails to come up with a version.
22832 Reported by Simon Josefsson.
22834 2008-06-05 Jim Meyering <meyering@redhat.com>
22835 Paul Eggert <eggert@cs.ucla.edu>
22837 utimens.c: work around a probable Linux kernel bug
22838 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
22839 appears to be a kernel bug that causes utimensat to return 280
22840 instead of 0, indicating success.
22842 2008-06-04 Bruno Haible <bruno@clisp.org>
22844 * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
22847 2008-06-04 Bruno Haible <bruno@clisp.org>
22849 * lib/acl-internal.h (acl_access_nontrivial): New declaration.
22850 * lib/file-has-acl.c (acl_access_nontrivial): New function.
22851 (file_has_acl): Use it. Save errno afterwards.
22852 * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
22854 2008-06-03 Bruno Haible <bruno@clisp.org>
22856 * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
22857 draft code. Simplify #ifs.
22858 * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
22859 Put Solaris code after POSIX-draft code. Fix comments regarding
22860 Solaris 10, HP-UX. Mention Cygwin.
22861 * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
22863 2008-06-03 Eric Blake <ebb9@byu.net>
22865 Provide fallback for older kernels.
22866 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
22867 Provide runtime fallback if kernel lacks support.
22868 Reported by Mike Frysinger.
22870 2008-06-02 Bruno Haible <bruno@clisp.org>
22872 * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
22875 2008-06-02 Bruno Haible <bruno@clisp.org>
22877 * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
22878 * lib/copy-acl.c (qcopy_acl): Update comment.
22880 2008-06-02 Bruno Haible <bruno@clisp.org>
22882 * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
22885 2008-06-02 Bruno Haible <bruno@clisp.org>
22887 * tests/test-file-has-acl.sh: Use different code for Cygwin.
22888 * tests/test-set-mode-acl.sh: Likewise.
22889 * tests/test-copy-acl.sh: Likewise.
22890 * tests/test-copy-file.sh: Likewise.
22892 2008-06-02 Bruno Haible <bruno@clisp.org>
22894 * tests/test-file-has-acl.sh: Remove unused code.
22896 2008-06-01 Bruno Haible <bruno@clisp.org>
22898 * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
22899 (copy_acl): Just a wrapper around qcopy_acl that emits the error
22901 * lib/set-mode-acl.c (qset_acl): Document return value precisely.
22903 2008-06-01 Bruno Haible <bruno@clisp.org>
22905 * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
22906 tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
22907 needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
22909 * modules/acl-tests (configure.ac): Remove tests now contained in
22912 2008-06-02 Jim Meyering <meyering@redhat.com>
22914 announce-gen: use a better key-server host name
22915 * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
22916 it may be more consistently reliable. Suggested by Werner Koch
22917 in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
22919 2008-06-01 Bruno Haible <bruno@clisp.org>
22921 * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
22922 Reported by Voroskoi Andras <voroskoi@gmail.com>.
22924 2008-06-01 Voroskoi Andras <voroskoi@gmail.com> (tiny change)
22926 * lib/stdio-impl.h [__DragonFly__]: Fix typo.
22928 2008-06-01 Bruno Haible <bruno@clisp.org>
22931 * tests/test-file-has-acl.sh: New file.
22932 * tests/test-file-has-acl.c: New file.
22933 * tests/test-set-mode-acl.sh: New file.
22934 * tests/test-set-mode-acl.c: New file.
22935 * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
22936 * tests/test-copy-acl.c: New file.
22937 * modules/acl-tests: New file, based on modules/copy-file-tests.
22938 * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
22939 (Depends-on): Add acl-tests.
22940 (configure.ac): Remove checks.
22941 (Makefile.am): Don't create test-sameacls program here any more.
22943 2008-06-01 Bruno Haible <bruno@clisp.org>
22945 * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
22946 * tests/test-sameacls.c: Include progname.h.
22947 (main): Invoke set_program_name. Portability fixes for MacOS X,
22950 2008-06-01 Bruno Haible <bruno@clisp.org>
22952 * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
22954 Reported by VOROSKOI Andras <voroskoi@gmail.com>.
22956 2008-06-01 Bruno Haible <bruno@clisp.org>
22958 * modules/rpmatch (Depends-on): Add strdup.
22960 2008-06-01 Bruno Haible <bruno@clisp.org>
22962 * lib/pipe.c: Include unistd-safer.h.
22963 (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
22964 * modules/pipe (Depends-on): Add unistd-safer.
22966 2008-05-30 Simon Josefsson <simon@josefsson.org>
22968 * modules/autobuild (configure.ac): Call AB_INIT.
22970 2008-05-30 Simon Josefsson <simon@josefsson.org>
22972 * tests/test-getaddrinfo.c: Don't print debug messages by default.
22973 Suggested by Bruno Haible <bruno@clisp.org>.
22975 2008-05-30 Simon Josefsson <simon@josefsson.org>
22977 * tests/test-base64.c: Cast size_t to unsigned long when invoking
22978 printf. Use %lu instead of %d. Reported by Bruno Haible
22981 2008-05-29 Eric Blake <ebb9@byu.net>
22983 Prefer new POSIX 200x interfaces over futimesat.
22984 * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
22985 * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
22987 [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
22989 2008-05-28 Bruno Haible <bruno@clisp.org>
22991 * modules/stpcpy (License): Change to LGPLv2+.
22992 Requested by David Lutterkort <dlutter@redhat.com>.
22994 2008-05-27 Bruno Haible <bruno@clisp.org>
22996 * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
22998 Reported by Jose E. Marchesi <jemarch@gnu.org>.
23000 2008-05-27 Bruno Haible <bruno@clisp.org>
23002 * modules/iconv_open (Link): New section, from module 'iconv'.
23003 * modules/striconv (Link): Likewise.
23004 * modules/striconveh (Link): Likewise.
23005 * modules/xstriconv (Link): Likewise.
23006 * modules/unicodeio (Link): Likewise.
23007 * modules/propername (Link): Likewise.
23008 Reported by Jim Meyering.
23010 2008-05-26 Jim Meyering <meyering@redhat.com>
23012 sha256: do not artificially restrict buffer length to be < 2^32
23013 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
23014 uint32_t to size_t.
23015 * lib/sha256.c (sha256_conclude_ctx): Change type of a local
23018 avoid unaligned access errors, e.g., on sparc
23019 * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
23020 direct access through a possibly-unaligned uint64* pointer.
23021 * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
23022 direct access through a possibly-unaligned uint32* pointer.
23023 Prompted by this patch from Tom "spot" Callaway:
23024 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
23026 sha512.c: fix typo in comment
23027 * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
23029 2008-05-25 Bruno Haible <bruno@clisp.org>
23031 * lib/set-mode-acl.c: Renamed from lib/acl.c.
23032 * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
23033 (Makefile.am): Update lib_SOURCES.
23035 2008-05-25 Bruno Haible <bruno@clisp.org>
23037 * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
23039 2008-05-25 Jim Meyering <meyering@redhat.com>
23041 useless-if-before-free: freed expr may have white-space differences
23042 * build-aux/useless-if-before-free: Recognize cases in which the
23043 freed expression differs from the tested one in embedded white
23044 space, e.g., if (p[i + 1]) free(p[i+1]). Correct thinko in prev:
23045 $1 was used, so we can't make any regexp shy. Improved tests now
23048 useless-if-before-free: accept white space in the expression.
23049 * build-aux/useless-if-before-free: For now, any white space
23050 in the expression must be identical in the free argument.
23052 useless-if-before-free: efficiency tweak
23053 * build-aux/useless-if-before-free: Make the expression-matching
23055 Make the *outer* regexp shy, not the expr-matching one.
23057 update code-in-comment to accept cast of free arg
23058 * build-aux/useless-if-before-free: Update regexp.
23060 2008-05-25 Bruno Haible <bruno@clisp.org>
23062 * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
23063 * modules/copy-file-tests (Files, Makefile.am): Update.
23064 * tests/test-copy-file.c (func_test_copy): Update.
23066 2008-05-24 Andreas Färber <andreas.faerber@web.de> (tiny change)
23068 * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
23070 2008-05-23 Bruno Haible <bruno@clisp.org>
23072 Improve support for ACLs on OSF/1.
23073 * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
23074 Remove fallback for unknown flavors of ACLs.
23076 2008-05-22 Bruno Haible <bruno@clisp.org>
23078 Add support for ACLs on OSF/1.
23079 * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
23081 (acl_free_text): New macro fallback.
23082 * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
23084 * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
23085 acl_free_text function. Require AC_C_INLINE.
23087 2008-05-22 Bruno Haible <bruno@clisp.org>
23089 Make copy_acl work on MacOS X 10.5.
23090 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
23091 (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
23092 * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
23093 If MODE_INSIDE_ACL, don't assume that every system has the same text
23094 representation for ACLs as FreeBSD.
23095 * lib/copy-acl.c (copy_acl): Add support for platforms with
23097 * lib/file-has-acl.c (file_has_acl): Likewise.
23098 * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
23099 FreeBSD, MacOS X, or IRIX, respectively.
23101 2008-05-22 Bruno Haible <bruno@clisp.org>
23103 * lib/acl.h: Don't include <sys/acl.h>.
23104 (GETACLCNT): Move fallback to lib/acl-internal.h.
23105 * lib/acl-internal.h: Include <sys/acl.h> here.
23106 (GETACLCNT): New macro fallback, moved here from lib/acl.h.
23108 2008-05-22 Bruno Haible <bruno@clisp.org>
23110 Split off copy_acl function to separate file.
23111 * lib/copy-acl.c: New file, extracted from lib/acl.c.
23112 * lib/acl.c (copy_acl): Moved function to separate file.
23113 * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
23114 * modules/acl (Files): Add lib/copy-acl.c.
23115 (Makefiles.am): Augment lib_SOURCES.
23117 2008-05-22 Bruno Haible <bruno@clisp.org>
23119 * modules/copy-file-tests: New file.
23120 * tests/test-copy-file.sh: New file.
23121 * tests/test-copy-file.c: New file.
23122 * tests/test-copy-file-sameacls.c: New file.
23124 2008-05-22 Eric Blake <ebb9@byu.net>
23127 * tests/test-memcmp.c (main): Pass NULL indirectly.
23129 2008-05-21 Bruno Haible <bruno@clisp.org>
23131 Add reference doc about ACLs.
23132 * doc/acl-resources.txt: New file.
23133 * doc/acl-cygwin.txt: New file.
23135 2008-05-21 Bruno Haible <bruno@clisp.org>
23137 Avoid one more warning from gcc.
23138 * lib/vasnprintf.c (IF_LINT): Update comments.
23139 (VASNPRINTF): Use it also for the 'prefix' array initializer.
23141 2008-05-21 Jim Meyering <meyering@redhat.com>
23143 avoid a warning from gcc
23144 * lib/vasnprintf.c (IF_LINT): Define.
23145 (scale10_round_decimal_long_double):
23146 Use it to avoid a "may be used uninitialized" warning.
23147 (scale10_round_decimal_double): Likewise.
23149 2008-05-21 Simon Josefsson <simon@josefsson.org>
23151 * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
23154 2008-05-20 Bruno Haible <bruno@clisp.org>
23156 * tests/test-memcmp.c (main): Test also the sign of the result. Test
23157 against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
23159 2008-05-20 Simon Josefsson <simon@josefsson.org>
23161 * modules/memcmp-tests: New file.
23162 * tests/test-memcmp.c: New file.
23164 2008-05-19 Bruno Haible <bruno@clisp.org>
23166 * modules/propername (Notice, configure.ac): Put quoted "..." into
23168 * lib/propername.h: Update comments accordingly.
23169 Reported by Eric Blake.
23171 2008-05-19 Martin Lambers <marlam@marlam.de> (tiny change)
23173 * modules/getpass-gnu (Depends-on): Add fseeko.
23175 2008-05-19 Simon Josefsson <simon@josefsson.org>
23177 * modules/base64-tests: New file.
23179 2008-05-19 Bo Borgerson <gigabo@gmail.com>
23181 * lib/base64.c (base64_decode_ctx): If a decode context structure
23182 was passed in use it to ignore newlines. If a context structure
23183 was _not_ passed in, continue to treat newlines as garbage (this
23184 is the historical behavior). Formerly base64_decode.
23185 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
23186 takes a decode context structure.
23187 * lib/base64.h (base64_decode): Macro for four-argument calls.
23188 (base64_decode_alloc): Likewise.
23189 * lib/base64.c (base64_decode_ctx): If a decode context structure
23190 was passed in use it to ignore newlines. If a context structure
23191 was _not_ passed in, continue to treat newlines as garbage (this
23192 is the historical behavior). Formerly base64_decode.
23193 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
23194 takes a decode context structure.
23195 * lib/base64.h (base64_decode): Macro for four-argument calls.
23196 (base64_decode_alloc): Likewise.
23198 2008-05-19 Jim Meyering <meyering@redhat.com>
23200 avoid a warning from gcc
23201 * lib/trim.c (IF_LINT): Define.
23202 (trim2): Use it to avoid a "may be used uninitialized" warning.
23205 * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
23207 2008-05-19 Bruno Haible <bruno@clisp.org>
23209 * doc/glibc-functions/getpass.texi: Document limits of other
23212 2008-05-19 Simon Josefsson <simon@josefsson.org>
23213 Bruno Haible <bruno@clisp.org>
23215 * doc/glibc-functions/getpass.texi: Document gnulib implementation.
23217 2008-05-18 Bruno Haible <bruno@clisp.org>
23219 * modules/propername: New file, from GNU gettext.
23220 * lib/propername.h: New file, from GNU gettext.
23221 * lib/propername.c: New file, from GNU gettext.
23222 * MODULES.html.sh (Internationalization functions): Add propername.
23224 2008-05-16 Jim Meyering <meyering@redhat.com>
23225 Bruno Haible <bruno@clisp.org>
23227 Avoid some warnings from "gcc -Wshadow".
23228 * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
23230 2008-05-15 Eric Blake <ebb9@byu.net>
23232 Extend previous patch to cygwin 1.7.0.
23233 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
23234 fast implementation in cygwin >= 1.7.0.
23235 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23236 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23238 2008-05-15 Bruno Haible <bruno@clisp.org>
23240 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
23241 implementation in glibc >= 2.9.
23242 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23243 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23245 2008-05-15 Bruno Haible <bruno@clisp.org>
23247 * MODULES.html.sh (Internationalization functions): Remove linebreak.
23248 (Unicode string functions): Add unilbrk/*.
23249 Reported by Karl Berry.
23251 2008-05-15 Eric Blake <ebb9@byu.net>
23253 Fix violation of <stdbool.h> replacement in regex.
23254 * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
23255 * lib/regexec.c (re_search_internal): Likewise.
23256 Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
23258 2008-05-15 Jim Meyering <meyering@redhat.com>
23260 avoid distracting test output when git or cvs is not found
23261 * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
23262 * tests/test-vc-list-files-git.sh: Likewise.
23264 2008-05-15 Eric Blake <ebb9@byu.net>
23266 Glibc finally accepted the memmem speedup code, bugzilla #5514.
23267 * doc/glibc-functions/memmem.texi (memmem): Mention last broken
23269 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
23270 * doc/posix-functions/strstr.texi (strstr): Likewise.
23271 * lib/str-two-way.h (MAX): Sychronize with glibc.
23273 2008-05-15 Paolo Bonzini <bonzini@gnu.org>
23275 * lib/regcomp.c (optimize_utf8): Add a note on why we test
23277 (calc_first): Initialize constraint field.
23278 (duplicate_node_closure): Use it instead of special casing ANCHORS.
23280 (duplicate_node): Merge constraint field for all node types.
23281 (calc_eclosure_iter): Look at constraint field for all node types.
23282 * lib/regex_internal.c (create_cd_newstate): Don't look at
23285 2008-05-14 Bruno Haible <bruno@clisp.org>
23287 Help GCC to do better code generation.
23288 * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
23289 * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
23290 * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
23291 (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
23292 Declare with attribute 'malloc' if supported.
23294 2008-05-14 Lasse Collin <lasse.collin@tukaani.org>
23296 use "echo STR|wc -c" rather than unportable "expr length STR"
23297 * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
23298 OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
23300 2008-05-14 Jim Meyering <meyering@redhat.com>
23302 use dd ibs=$n count=1 ... rather than less-portable head -c$n
23303 * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
23304 by Solaris 10's /bin/head or by the one from HP-UX 11.x.
23305 Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
23308 2008-05-14 Eric Blake <ebb9@byu.net>
23310 Avoid quadratic growth in gl_LIBSOURCES.
23311 * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
23312 Suggested by Bruno Haible.
23315 * modules/xmemdup0-tests: New file.
23316 * tests/test-xmemdup0.c: Likewise.
23318 2008-05-13 Eric Blake <ebb9@byu.net>
23320 Split xmemdup0 into its own module.
23321 * modules/xmemdup0: New file.
23322 * lib/xmemdup0.h: Likewise.
23323 * lib/xmemdup0.c: Likewise.
23324 * MODULES.html.sh (Memory management functions): Add xmemdup0.
23325 * lib/xalloc.h (xmemdup0): Remove.
23326 * lib/xmalloc.c (xmemdup0): Likewise.
23328 2008-05-13 Eric Blake <ebb9@byu.net>
23329 Bruno Haible <bruno@clisp.org>
23331 Reduce number of forks required during autoconf.
23332 * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
23333 and gl_LIBSOURCES_DIR.
23334 (func_emit_initmacro_end): Use them here in a single m4_syscmd...
23335 (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
23336 m4_syscmd per file.
23337 <m4_foreach_w>: Move...
23338 * m4/gnulib-common.m4 (m4_foreach_w): ...here.
23340 2008-05-13 Eric Blake <ebb9@byu.net>
23342 * gnulib-tool: Fix various comment typos.
23344 2008-05-12 Bruno Haible <bruno@clisp.org>
23346 Tailor the linebreaking algorithm.
23347 * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
23349 2008-05-12 Bruno Haible <bruno@clisp.org>
23351 Update to Unicode 5.0.0.
23352 * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
23353 LBP_JV, LBP_JT. Redistribute values.
23354 (unilbrk_table): Change size.
23355 * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
23356 Unicode TR#14 rev. 22.
23357 * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
23358 LBP_JV, LBP_JT. Redistribute values.
23359 (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
23360 (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
23362 * lib/unilbrk/lbrkprop1.h: Regenerated.
23363 * lib/unilbrk/lbrkprop2.h: Regenerated.
23364 * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
23365 Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
23366 * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
23368 * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
23370 * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
23372 * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23373 * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23374 * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
23375 * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
23376 * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
23377 * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
23379 2008-05-11 Bruno Haible <bruno@clisp.org>
23381 * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
23383 2008-05-11 Bruno Haible <bruno@clisp.org>
23385 * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
23386 * modules/unilbrk/gen-lbrk: New file.
23388 2008-05-11 Bruno Haible <bruno@clisp.org>
23390 * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
23391 * m4/sha512.m4 (gl_SHA512): Likewise.
23393 2008-05-11 Jim Meyering <meyering@redhat.com>
23395 New modules: crypto/sha256, crypto/sha512 (from coreutils)
23396 * modules/crypto/sha256: New file.
23397 * modules/crypto/sha512: Likewise.
23398 * lib/sha256.c: Likewise.
23399 * lib/sha256.h: Likewise.
23400 * lib/sha512.c: Likewise.
23401 * lib/sha512.h: Likewise.
23402 * lib/u64.h: Likewise.
23403 * m4/sha256.m4: Likewise.
23404 * m4/sha512.m4: Likewise.
23405 * MODULES.html.sh (Cryptographic computations (low-level)): List them.
23407 2008-05-10 Bruno Haible <bruno@clisp.org>
23409 * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
23410 (Input/Output <stdio.h>): Add xprintf.
23411 (Signal handling <signal.h>): Add strsignal.
23412 (Cryptographic computations (high-level)): Add crypto/gc-camellia.
23413 (Core language properties): Add func.
23414 (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
23415 (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
23417 (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
23418 (Input/output): New section.
23419 (File system functions): Add openat-die, stat-macros.
23420 (Networking functions): Add sockets.
23421 (Unicode string functions): Add unictype/*.
23422 (Support for building libraries and executables): Add gperf.
23423 (Support for building documentation): Add agpl-3.0.
23424 (Misc): Add nocrash.
23426 2008-05-10 Bruno Haible <bruno@clisp.org>
23428 * modules/unictype/gen-ctype: New file.
23430 2008-05-10 Jim Meyering <meyering@redhat.com>
23432 Make chdir-safer.c more efficient on a system with no symlinks.
23433 * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
23434 also if ELOOP is zero. Suggested by Bruno Haible.
23436 Make chdir-safer.c slightly safer.
23437 * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
23438 not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
23440 Avoid compile failure on systems without ELOOP (like mingw).
23441 * lib/chdir-safer.c (ELOOP): Define if not already defined.
23442 Reported by Bruno Haible.
23444 2008-05-10 Bruno Haible <bruno@clisp.org>
23446 * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
23447 (is_utf8_encoding): Use a case-insensitive comparison.
23448 * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
23451 2008-05-10 Bruno Haible <bruno@clisp.org>
23453 * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
23454 (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
23455 * lib/unilbrk/ulc-common.h (iconv_string_length,
23456 iconv_string_keeping_offsets): Remove declarations.
23457 * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
23458 Don't include <iconv.h>, streq.h, xsize.h.
23459 (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
23461 * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
23462 <iconv.h>, streq.h, xsize.h.
23463 (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
23465 * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
23466 * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
23467 uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
23468 * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
23470 2008-05-10 Bruno Haible <bruno@clisp.org>
23472 * modules/unilbrk/ulc-width-linebreaks-tests: New file.
23473 * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
23475 * modules/unilbrk/u32-width-linebreaks-tests: New file.
23476 * tests/unilbrk/test-u32-width-linebreaks.c: New file.
23478 * modules/unilbrk/u16-width-linebreaks-tests: New file.
23479 * tests/unilbrk/test-u16-width-linebreaks.c: New file.
23481 * modules/unilbrk/u8-width-linebreaks-tests: New file.
23482 * tests/unilbrk/test-u8-width-linebreaks.c: New file.
23484 * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
23485 * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
23487 * modules/unilbrk/u32-possible-linebreaks-tests: New file.
23488 * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
23490 * modules/unilbrk/u16-possible-linebreaks-tests: New file.
23491 * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
23493 * modules/unilbrk/u8-possible-linebreaks-tests: New file.
23494 * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
23496 2008-05-10 Bruno Haible <bruno@clisp.org>
23498 Split up 'linebreak' module.
23499 * lib/unilbrk.h: New file, based on lib/linebreak.h.
23500 * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
23501 * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
23503 * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
23504 * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
23505 * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
23507 * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
23509 * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
23511 * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
23512 * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
23513 * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
23515 * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
23517 * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
23519 * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
23521 * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
23523 * modules/unilbrk/base: New file.
23524 * modules/unilbrk/tables: New file.
23525 * modules/unilbrk/u8-possible-linebreaks: New file.
23526 * modules/unilbrk/u16-possible-linebreaks: New file.
23527 * modules/unilbrk/u32-possible-linebreaks: New file.
23528 * modules/unilbrk/ulc-common: New file.
23529 * modules/unilbrk/ulc-possible-linebreaks: New file.
23530 * modules/unilbrk/u8-width-linebreaks: New file.
23531 * modules/unilbrk/u16-width-linebreaks: New file.
23532 * modules/unilbrk/u32-width-linebreaks: New file.
23533 * modules/unilbrk/ulc-width-linebreaks: New file.
23534 * lib/linebreak.h: Remove file.
23535 * lib/linebreak.c: Remove file.
23536 * m4/linebreak.m4: Remove file.
23537 * modules/linebreak: Remove file.
23538 * NEWS: Mention the changes.
23540 2008-05-09 Eric Blake <ebb9@byu.net>
23543 * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
23545 * lib/xmalloc.c (xmemdup0): New C implementation.
23547 2008-05-08 Bruno Haible <bruno@clisp.org>
23549 * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
23551 2008-05-07 Eric Blake <ebb9@byu.net>
23553 Support cross-compilation of <wctype.h>.
23554 * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
23557 2008-05-06 Soren Hansen <soren@ubuntu.com> (tiny change)
23559 * build-aux/vc-list-files: Add support for bzr.
23561 2008-05-03 Jim Meyering <meyering@redhat.com>
23563 avoid failed assertion with tight malloc
23564 * tests/test-getndelim2.c: Correct an off-by-one assertion.
23566 2008-05-03 Simon Josefsson <simon@josefsson.org>
23568 * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
23569 are needed from arpa/inet.h.
23570 * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
23571 Reported by Bruno Haible.
23573 2008-05-02 Jim Meyering <meyering@redhat.com>
23575 avoid compilation error on FreeBSD 6
23576 * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
23578 2008-05-01 Jim Meyering <meyering@redhat.com>
23580 useless-if-before-free: correct --help's exit status description
23581 * build-aux/useless-if-before-free (usage): Like grep, exit 0
23582 for one or more matches, etc. Reported by Bruno Haible.
23584 vc-list-files: make the stand-alone gnulib test work
23585 * modules/vc-list-files-tests (configure.ac):
23586 Define and AC_SUBST abs_aux_dir.
23587 (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
23588 $(abs_top_srcdir) to each script and having each of them
23589 duplicate the work of setting PATH, set PATH here, using
23590 the new variable, abs_aux_dir instead.
23591 * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
23592 * tests/test-vc-list-files-git.sh: Likewise.
23593 Reported by Bruno Haible.
23595 2008-05-01 Bruno Haible <bruno@clisp.org>
23597 * lib/getndelim2.c (getndelim2): Fix newsize computation during
23598 reallocation. Rename 'done' to 'found_delimiter'.
23600 2008-05-01 Jim Meyering <meyering@redhat.com>
23602 vc-list-files: accommodate /bin/sh like the one from Solaris 10
23603 * build-aux/vc-list-files: Use `...`, not $(...).
23605 2008-04-30 Jim Meyering <meyering@redhat.com>
23607 add tests for vc-list-files
23608 * modules/vc-list-files-tests: New module.
23609 * tests/test-vc-list-files-cvs.sh: New file.
23610 * tests/test-vc-list-files-git.sh: New file.
23612 avoid a warning from gcc
23613 * lib/getndelim2.c (IF_LINT): Define.
23614 (getndelim2): Use it to avoid a "may be used uninitialized" warning.
23616 vc-list-files: work properly with build-aux/cvsu, too
23617 * build-aux/vc-list-files: Hoist the "./"-removing code to apply
23618 to all cvs-based clauses.
23620 vc-list-files: work properly in the CVS+awk case, too
23621 * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
23623 vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
23624 * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
23625 take more than one file argument, so . Add quotes, just in case $dir
23626 ever contains a shell meta-character. Prompted by Soren Hansen in
23627 <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
23629 2008-04-29 Eric Blake <ebb9@byu.net>
23631 Optimize getndelim2 to use block operations when possible.
23632 * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
23633 freadseek, and memchr2.
23634 * lib/getndelim2.c (getndelim2): Use them for block reads.
23636 2008-04-29 Bruno Haible <bruno@clisp.org>
23638 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
23639 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23640 * modules/inet_ntop (Depends-on): Add extensions.
23641 * modules/inet_pton (Depends-on): Likewise.
23642 Reported by Simon Josefsson.
23644 2008-04-29 Jim Meyering <meyering@redhat.com>
23646 When the is more than one match in a block, match all of them.
23647 * build-aux/useless-if-before-free: Iterate through each block
23648 until there are no more matches.
23650 Fix broken useless-if-before-free script.
23651 * build-aux/useless-if-before-free: Fix typo: missing "?" after
23652 the expression to match cast of argument to free-like function.
23654 2008-04-29 Eric Blake <ebb9@byu.net>
23657 * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
23659 2008-04-29 Jim Meyering <meyering@redhat.com>
23661 Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
23662 * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
23663 by gnulib to exist and to declare e.g., inet_ntop.
23664 Don't include "inet_ntop.h", now removed.
23666 * m4/arpa_inet_h.m4: Remove trailing blanks.
23668 2008-04-29 Eric Blake <ebb9@byu.net>
23670 Silence valgrind on safe reads beyond potential array bounds.
23671 * lib/rawmemchr.valgrind: New file.
23672 * lib/strchrnul.valgrind: Likewise.
23673 * modules/rawmemchr (Files): Distribute new file.
23674 * modules/strchrnul (Files): Likewise.
23675 Suggested by Bruno Haible.
23677 2008-04-29 Bruno Haible <bruno@clisp.org>
23679 * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
23680 (inet_ntop, inet_pton): Change portability warning's wording.
23681 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
23682 Invoke gl_CHECK_NEXT_HEADERS.
23683 (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
23684 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
23686 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23687 * modules/arpa_inet (Description): No longer only for systems that
23689 (Depends-on): Add include_next.
23690 (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
23693 2008-04-29 Jim Meyering <meyering@redhat.com>
23695 * modules/mkdir (License): Re-license as LGPLv2+.
23697 2008-04-29 Bruno Haible <bruno@clisp.org>
23699 * modules/rawmemchr (Maintainer): Set to Eric.
23700 * modules/strchrnul (Maintainer): Likewise.
23702 2008-04-29 Simon Josefsson <simon@josefsson.org>
23704 * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
23705 HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
23707 * modules/arpa_inet (arpa/inet.h): Use them.
23709 2008-04-28 Eric Blake <ebb9@byu.net>
23712 * modules/getndelim2-tests: New file.
23713 * tests/test-getndelim2.c: Likewise.
23714 * lib/getndelim2.c (getndelim2): Never return 0. Lock the
23716 * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
23718 * MODULES.html.sh: Document new module.
23720 2008-04-20 Bruno Haible <bruno@clisp.org>
23722 * lib/c-stack.c (die): Use raise.
23723 * modules/c-stack (Depends-on): Add raise.
23725 2008-04-28 Bruno Haible <bruno@clisp.org>
23727 Expect rpmatch to be declared.
23728 * lib/yesno.c (rpmatch): Remove declaration.
23731 * lib/stdlib.in.h (rpmatch): New declaration.
23732 * lib/rpmatch.c: Include <stdlib.h> first.
23733 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
23734 gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
23735 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
23737 * modules/rpmatch (Depends-on): Add stdlib, extensions.
23738 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23739 (Include): Set to <stdlib.h>.
23740 * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
23742 * NEWS: Document the change.
23744 2008-04-28 Bruno Haible <bruno@clisp.org>
23746 Change rpmatch to use nl_langinfo when appropriate.
23747 * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
23749 (localized_pattern): New function/macro.
23750 (try): Remove match, nomatch arguments. Copy the pattern into safe
23751 memory before caching it.
23752 (rpmatch): Use localized_pattern. Add translator comments.
23753 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
23754 Suggested by Eric Blake.
23755 * modules/rpmatch (Depends-on): Add stdbool.
23757 2008-04-28 Eric Blake <ebb9@byu.net>
23759 Add rawmemchr module, matching glibc.
23760 * modules/string (Makefile.am): New indicator.
23761 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
23762 * lib/string.in.h (rawmemchr): Declare when appropriate.
23763 * modules/rawmemchr: New file.
23764 * m4/rawmemchr.m4: Likewise.
23765 * lib/rawmemchr.c: Likewise.
23766 * modules/rawmemchr-tests: Likewise.
23767 * tests/test-rawmemchr.c: Likewise.
23768 * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
23770 * modules/strchrnul (Depends-on): Add rawmemchr.
23771 * lib/strchrnul.c (strchrnul): Optimize a corner case.
23773 Whitespace cleanup.
23774 * tests/test-strchrnul.c: Reindent.
23775 * lib/strchrnul.c: Likewise.
23777 Optimize and test strchrnul.
23778 * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
23779 * modules/strchrnul-tests: New file.
23780 * tests/test-strchrnul.c: Likewise.
23782 Remove intprops dependency.
23783 * modules/memchr (Depends-on): Remove intprops.
23784 * modules/memrchr (Depends-on): Likewise.
23785 * modules/memchr2 (Depends-on): Likewise.
23786 * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
23787 * lib/memrchr.c (__memrchr): Likewise.
23788 * lib/memrchr2.c (memchr2): Likewise.
23789 Reported by Simon Josefsson.
23791 2008-04-28 Simon Josefsson <simon@josefsson.org>
23793 * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
23794 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23796 2008-04-28 Simon Josefsson <simon@josefsson.org>
23798 * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
23800 * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
23802 * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
23804 * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
23806 [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
23808 * m4/inet_pton.m4: Don't check for header files.
23810 * m4/inet_ntop.m4: Don't check for header files.
23812 2008-04-28 Simon Josefsson <simon@josefsson.org>
23814 * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
23815 * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
23816 trigger for cygwin).
23817 Reported by Bruno Haible <bruno@clisp.org>.
23819 2008-04-28 Bruno Haible <bruno@clisp.org>
23821 * doc/posix-functions/strdup.texi: Mention mingw problem.
23823 2008-04-27 Bruno Haible <bruno@clisp.org>
23825 * modules/stat-time-tests (Depends-on): Add sleep.
23826 * tests/test-stat-time.c (force_unlink): New function.
23828 (test_mtime): Remove the ctime related tests.
23829 (test_ctime): New function, containing the ctime related tests.
23830 (main): Call test_ctime, except on native Windows platforms.
23832 2008-04-27 Bruno Haible <bruno@clisp.org>
23834 * lib/rpmatch.c (rpmatch): Add some comments.
23835 Reported by James Youngman <jay@gnu.org>.
23837 2008-04-27 Bruno Haible <bruno@clisp.org>
23839 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
23842 2008-04-27 Bruno Haible <bruno@clisp.org>
23844 Make test-yesno.sh work on mingw.
23845 * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
23846 * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
23847 (main): Set stdin to binary mode.
23848 * modules/yesno-tests (Depends-on): Add binary-io.
23850 2008-04-27 Bruno Haible <bruno@clisp.org>
23852 Fix 'isfinite' on x86, x86_64, ia64 platforms.
23853 * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
23854 argument that lie outside the IEEE 854 domain.
23855 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
23856 (gl_ISFINITE): Use it.
23857 * doc/posix-functions/isfinite.texi: Document the fixed bugs.
23859 2008-04-27 Bruno Haible <bruno@clisp.org>
23861 Allow local renaming in config.h.
23862 * lib/memrchr.c (memrchr): Don't undefine outside libc.
23864 2008-04-27 Bruno Haible <bruno@clisp.org>
23866 * lib/memchr.c (__memchr): Change type of 'i'.
23867 * lib/memchr2.c (memchr2): Likewise.
23869 2008-04-26 Eric Blake <ebb9@byu.net>
23870 and Bruno Haible <bruno@clisp.org>
23872 Optimize and test memrchr.
23873 * modules/memrchr (Depends-on): Add intprops.
23874 * lib/memrchr.c (__memrchr): Avoid false positives in loop.
23875 * modules/memrchr-tests: New file.
23876 * tests/test-memrchr.c: New file.
23878 2008-04-26 Bruno Haible <bruno@clisp.org>
23880 Add tentative support for DragonFly BSD.
23881 * lib/stdio-impl.h: Add macros for DragonFly BSD.
23882 * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
23884 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
23885 restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
23886 * lib/fpurge.c (fpurge): Likewise.
23887 * lib/freadable.c (freaadable): Likewise.
23888 * lib/freadahead.c (freadahead): Likewise.
23889 * lib/freading.c (freading): Likewise.
23890 * lib/freadptr.c (freadptr): Likewise.
23891 * lib/freadseek.c (freadptrinc): Likewise.
23892 * lib/fseeko.c (fseeko): Likewise.
23893 * lib/fseterr.c (fseterr): Likewise.
23894 * lib/fwritable.c (fwritable): Likewise.
23895 * lib/fwriting.c (fwriting): Likewise.
23897 2008-04-26 Bruno Haible <bruno@clisp.org>
23899 * lib/stdio-impl.h: New file.
23900 * lib/fbufmode.c: Include stdio-impl.h.
23901 (fbufmode): Use fp_, remove redundant #defines.
23902 * lib/fflush.c: Include stdio-impl.h.
23903 (clear_ungetc_buffer): Remove redundant #defines.
23904 * lib/fpurge.c: Include stdio-impl.h.
23905 (fpurge): Remove redundant #defines.
23906 * lib/freadable.c: Include stdio-impl.h.
23907 (freadable): Remove redundant #defines.
23908 * lib/freadahead.c: Include stdio-impl.h.
23909 (freadahead): Remove redundant #defines.
23910 * lib/freading.c: Include stdio-impl.h.
23911 (freading): Remove redundant #defines.
23912 * lib/freadptr.c: Include stdio-impl.h.
23913 (freadptr): Remove redundant #defines.
23914 * lib/freadseek.c: Include stdio-impl.h.
23915 (freadptrinc): Remove redundant #defines.
23916 * lib/fseeko.c: Include stdio-impl.h.
23917 (rpl_fseeko): Remove redundant #defines.
23918 * lib/fseterr.c: Include stdio-impl.h.
23919 (fseterr): Remove redundant #defines.
23920 * lib/fwritable.c: Include stdio-impl.h.
23921 (fwritable: Remove redundant #defines.
23922 * lib/fwriting.c: Include stdio-impl.h.
23923 (fwriting): Remove redundant #defines.
23924 * modules/fbufmode (Files): Add lib/stdio-impl.h.
23925 * modules/fflush (Files): Likewise.
23926 * modules/fpurge (Files): Likewise.
23927 * modules/freadable (Files): Likewise.
23928 * modules/freadahead (Files): Likewise.
23929 * modules/freading (Files): Likewise.
23930 * modules/freadptr (Files): Likewise.
23931 * modules/freadseek (Files): Likewise.
23932 * modules/fseeko (Files): Likewise.
23933 * modules/fseterr (Files): Likewise.
23934 * modules/fwritable (Files): Likewise.
23935 * modules/fwriting (Files): Likewise.
23937 2008-04-26 Bruno Haible <bruno@clisp.org>
23939 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
23940 restore_seek_optimization, update_fpos_cache): New functions, extracted
23942 (rpl_fflush): Use them.
23943 * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
23944 (gl_REPLACE_FFLUSH): Use it.
23946 2008-04-26 Bruno Haible <bruno@clisp.org>
23948 * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
23950 * tests/test-xstrtoimax.sh: Likewise.
23951 * tests/test-xstrtoumax.sh: Likewise.
23952 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23954 2008-04-26 Bruno Haible <bruno@clisp.org>
23956 * modules/memchr-tests: New file.
23957 * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
23959 2008-04-26 Eric Blake <ebb9@byu.net>
23960 Bruno Haible <bruno@clisp.org>
23962 * lib/memchr.c: Include intprops.h.
23963 (__memchr): Optimize parallel detection of matching bytes. Rename local
23964 variables. Add explanatory comments.
23966 2008-04-26 Bruno Haible <bruno@clisp.org>
23968 Fix module 'memchr', broken since 2000-10-28.
23969 * lib/memchr.c: Outside glibc, define memchr, not __memchr.
23971 2008-04-26 Bruno Haible <bruno@clisp.org>
23973 * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
23976 2008-04-25 Eric Blake <ebb9@byu.net>
23978 Use native fstatat on cygwin 1.7.0.
23979 * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
23982 2008-04-23 Eric Blake <ebb9@byu.net>
23984 Improve memchr2 performance.
23985 * lib/memchr2.c (memchr2): Further optimize parallel detection of
23987 * modules/memchr2 (Depends-on): Use intprops.h.
23989 2008-04-23 Simon Josefsson <simon@josefsson.org>
23991 * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
23992 an inline function instead of a CPP macro. Patch by Ben Pfaff
23993 <blp@cs.stanford.edu>.
23995 2008-04-23 Simon Josefsson <simon@josefsson.org>
23997 * lib/arpa_inet.in.h: New file.
23999 * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
24000 (Makefile.am): Sed in substitute header file.
24002 * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
24003 gl_ARPA_INET_MODULE_INDICATOR. Use them.
24005 * modules/inet_ntop (configure.ac): Use
24006 gl_ARPA_INET_MODULE_INDICATOR.
24008 * modules/inet_pton (configure.ac): Use
24009 gl_ARPA_INET_MODULE_INDICATOR.
24011 2008-04-22 Jim Meyering <meyering@redhat.com>
24013 * modules/verify (License): Re-license as LGPLv2+.
24015 2008-04-22 Simon Josefsson <simon@josefsson.org>
24017 * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
24018 parameter to void* as per POSIX standard (MinGW uses char*).
24020 2008-04-21 Bruno Haible <bruno@clisp.org>
24022 * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24023 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
24024 Define to replacements if REPLACE_ISWCNTRL is 1.
24025 * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
24026 If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
24027 * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
24028 * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
24030 * doc/posix-functions/iswalpha.texi: Likewise.
24031 * doc/posix-functions/iswblank.texi: Likewise.
24032 * doc/posix-functions/iswcntrl.texi: Likewise.
24033 * doc/posix-functions/iswdigit.texi: Likewise.
24034 * doc/posix-functions/iswgraph.texi: Likewise.
24035 * doc/posix-functions/iswlower.texi: Likewise.
24036 * doc/posix-functions/iswprint.texi: Likewise.
24037 * doc/posix-functions/iswpunct.texi: Likewise.
24038 * doc/posix-functions/iswspace.texi: Likewise.
24039 * doc/posix-functions/iswupper.texi: Likewise.
24040 * doc/posix-functions/iswxdigit.texi: Likewise.
24041 Reported by Alain Guibert.
24043 2008-04-21 Bruno Haible <bruno@clisp.org>
24045 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
24046 Patch by Alain Guibert.
24048 2008-04-21 Bruno Haible <bruno@clisp.org>
24050 Fix test failures on mingw.
24051 * tests/test-xstrtol.c (print_no_progname): New function.
24052 (main): Install it in error_print_progname hook.
24053 * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
24054 * tests/test-xstrtoimax.sh: Likewise.
24055 * tests/test-xstrtoumax.sh: Likewise.
24057 2008-04-21 Bruno Haible <bruno@clisp.org>
24059 Fix test failure on mingw.
24060 * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
24062 2008-04-21 Bruno Haible <bruno@clisp.org>
24064 * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
24065 Actually assign a value.
24067 2008-04-20 Bruno Haible <bruno@clisp.org>
24069 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
24071 * lib/canonicalize.c (canonicalize_file_name): Elide if the
24072 'canonicalize-lgpl' module is also used.
24073 * lib/canonicalize-lgpl.c: Undo last change.
24074 * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
24076 2008-04-20 Bruno Haible <bruno@clisp.org>
24078 * lib/mkdir.c (mkdir): Undefine after the includes, not right after
24079 config.h. Provide _mkdir based fallback for mingw.
24080 * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
24081 if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
24082 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
24083 gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
24084 rather than defining mkdir in config.h.
24085 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
24086 (gl_SYS_STAT_H_DEFAULTS): New macro.
24087 (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
24088 HAVE_IO_H any more.
24089 * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
24090 HAVE_DECL_MKDIR and HAVE_IO_H.
24092 2008-04-20 Bruno Haible <bruno@clisp.org>
24094 * lib/isapipe.c: Port to native Windows platforms.
24096 2008-04-20 Bruno Haible <bruno@clisp.org>
24098 * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
24100 2008-04-21 Eric Blake <ebb9@byu.net>
24102 Work around preprocessors that don't handle UINTMAX_MAX.
24103 * lib/memchr2.c (memchr2): Avoid embedded #if.
24104 Reported by Alain Guibert, fix suggested by Bruno Haible.
24106 2008-04-21 Simon Josefsson <simon@josefsson.org>
24108 * doc/posix-functions/strftime.texi (strftime): Explain better
24109 Windows incompatibility. Suggested by Micah Cowan
24110 <micah@cowan.name>.
24112 2008-04-20 Bruno Haible <bruno@clisp.org>
24114 * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
24117 2008-04-20 Bruno Haible <bruno@clisp.org>
24119 Fix test failure on platforms with non-GNU iconv.
24120 * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
24121 (U_TO_U8): Use it, rather than u16_to_u8.
24122 * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
24123 units at the end of the input string.
24124 * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
24126 2008-04-20 Bruno Haible <bruno@clisp.org>
24128 * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
24129 when the resulting length is 0.
24130 * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
24132 2008-04-20 Bruno Haible <bruno@clisp.org>
24134 * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
24136 * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
24138 2008-04-20 Bruno Haible <bruno@clisp.org>
24140 * tests/test-tsearch.c (main): Don't use initstate if it is missing.
24141 * modules/tsearch-tests (configure.ac): Test for initstate function.
24143 2008-04-20 Bruno Haible <bruno@clisp.org>
24145 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
24146 for nlink_t if missing.
24147 * tests/test-sys_stat.c: Check the existence of the nlink_t type.
24149 2008-04-19 Bruno Haible <bruno@clisp.org>
24151 Work around snprintf bug on Linux libc5.
24152 * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
24153 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
24155 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24156 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
24158 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
24159 * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
24160 * modules/snprintf (Files): Add m4/printf.m4.
24161 * modules/vsnprintf (Files): Likewise.
24162 * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
24163 * doc/posix-functions/vsnprintf.texi: Likewise.
24165 2008-04-19 Bruno Haible <bruno@clisp.org>
24167 * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
24168 from 0.0058 to less than 10^-7.
24170 2008-04-19 Bruno Haible <bruno@clisp.org>
24172 Fix rounding when a precision is given.
24173 * lib/vasnprintf.c (is_borderline): New function.
24174 (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
24176 * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
24178 * tests/test-vasprintf-posix.c (test_function): Likewise.
24179 * tests/test-snprintf-posix.h (test_function): Likewise.
24180 * tests/test-sprintf-posix.h (test_function): Likewise.
24181 * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
24182 * tests/test-printf-posix.h (test_function): Likewise.
24183 * tests/test-printf-posix.output: Update.
24184 Reported by John Darrington <john@darrington.wattle.id.au> via
24185 Ben Pfaff <blp@cs.stanford.edu>.
24187 2008-04-18 Simon Josefsson <simon@josefsson.org>
24189 * doc/posix-functions/strftime.texi (strftime): Clarify platform.
24190 Suggested by Bruno Haible <bruno@clisp.org>.
24192 2008-04-17 Bruno Haible <bruno@clisp.org>
24194 * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
24195 gl_recursive_lock_destroy): Provide no-op definitions for the dummy
24197 Patch by Bruce Merry <bmerry@gmail.com>.
24199 2008-04-17 Simon Josefsson <simon@josefsson.org>
24201 * doc/posix-functions/strftime.texi (strftime): Mention that %e
24202 doesn't work under Windows.
24204 2008-04-16 Bruno Haible <bruno@clisp.org>
24206 * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
24208 (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
24209 SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
24210 SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
24211 SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
24212 SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
24213 SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
24214 SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
24216 (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
24217 Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
24218 Northern Sotho, Uighur.
24220 2008-04-16 Bruno Haible <bruno@clisp.org>
24222 * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
24223 (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
24224 (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
24225 Reported by Daniel Bergström <daniel@octocode.com>.
24227 2007-12-25 KJK::Hyperion <hackbunny@reactos.com>
24228 Bruno Haible <bruno@clisp.org>
24230 * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
24232 (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
24233 New functions, mostly extracted from gl_locale_name_default.
24234 (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
24236 2008-04-16 Eric Blake <ebb9@byu.net>
24238 Adjust strtod detection to catch glibc 2.7 bug.
24239 * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
24240 Reported by John Gatewood Ham.
24242 2008-04-16 Bruno Haible <bruno@clisp.org>
24244 Add tentative support for Linux libc5.
24245 * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
24246 * lib/fpurge.c (fpurge): Likewise.
24247 * lib/freadable.c (freadable): Likewise.
24248 * lib/freadahead.c (freadahead): Likewise.
24249 * lib/freading.c (freading): Likewise.
24250 * lib/freadptr.c (freadptr): Likewise.
24251 * lib/freadseek.c (freadptrinc): Likewise.
24252 * lib/fseeko.c (rpl_fseeko): Likewise.
24253 * lib/fseterr.c (fseterr): Likewise.
24254 * lib/fwritable.c (fwritable): Likewise.
24255 * lib/fwriting.c (fwriting): Likewise.
24256 Reported by Alain Guibert <alguibert+bts@free.fr>.
24258 2008-04-15 Bruno Haible <bruno@clisp.org>
24260 * modules/mathl (configure.ac): Define module indicator.
24262 2008-04-15 Bruno Haible <bruno@clisp.org>
24264 * lib/logl.c (logl): Remove unused variables.
24266 2008-04-15 Bruno Haible <bruno@clisp.org>
24268 * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
24271 2008-04-15 Bruno Haible <bruno@clisp.org>
24273 * lib/trim.c (trim2): Fix argument of isspace() macro.
24275 2008-04-15 Paolo Bonzini <bonzini@gnu.org>
24277 * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
24279 * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
24281 2008-04-14 Bruno Haible <bruno@clisp.org>
24283 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
24284 AC_LANG_PROGRAM argument.
24285 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
24286 * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
24287 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24288 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24289 * m4/math_h.m4 (gl_MATH_H): Likewise.
24290 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
24291 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24292 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
24293 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
24294 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24295 * m4/regex.m4 (gl_REGEX): Likewise.
24296 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
24297 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
24298 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24299 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
24300 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
24301 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24302 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24303 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24305 2008-04-14 Jim Meyering <meyering@redhat.com>
24307 test-strtod: fix typos: s/abs/fabs/
24308 * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
24310 2008-04-13 Bruno Haible <bruno@clisp.org>
24312 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
24313 * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
24314 module is also used and while not building the reloc-wrapper.
24316 2008-04-13 Bruno Haible <bruno@clisp.org>
24318 * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
24320 2008-04-13 Bruno Haible <bruno@clisp.org>
24322 Fix AIX compilation failure introduced on 2008-04-02.
24323 * tests/test-frexp.c (exp): Undefine before redefining.
24324 * tests/test-frexpl.c (exp): Likewise.
24326 2008-04-13 Bruno Haible <bruno@clisp.org>
24328 Work around a HP-UX stdio bug.
24329 * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
24330 * tests/test-ftello.c (main): Likewise.
24331 * doc/posix-functions/ftell.texi: Mention HP-UX bug.
24332 * doc/posix-functions/ftello.texi: Likewise.
24334 2008-04-13 Bruno Haible <bruno@clisp.org>
24336 Make test-signbit pass on HP-UX/hppa.
24337 * tests/test-signbit.c (minus_zerol): New variable.
24338 (test_signbitl): Use it.
24340 2008-04-13 Bruno Haible <bruno@clisp.org>
24342 Make truncl work on OSF/1 4.0.
24343 * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
24344 Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
24345 * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
24346 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
24348 * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
24350 * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
24352 2008-04-13 Bruno Haible <bruno@clisp.org>
24354 * lib/unictype.h: Remove trailing comma from enumeration definitions.
24356 2008-04-13 Bruno Haible <bruno@clisp.org>
24358 * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
24359 expression, so as to avoid HP-UX 11 cc compiler bug.
24361 2008-04-13 Bruno Haible <bruno@clisp.org>
24363 * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
24365 2008-04-13 Bruno Haible <bruno@clisp.org>
24367 * lib/git-merge-changelog.c: Remove empty declaration outside of
24370 2008-04-13 Bruno Haible <bruno@clisp.org>
24372 * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
24374 2008-04-13 Bruno Haible <bruno@clisp.org>
24376 * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
24377 * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
24378 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
24379 also if it exists but lacks definitions of the SHUT_* macros.
24380 * modules/sys_socket (Description): Update.
24381 Reported by Elbert Pol <e.pol@chello.nl>.
24383 2008-04-13 Bruno Haible <bruno@clisp.org>
24385 * lib/localcharset.c (OS2): Don't redefine if already defined.
24386 Reported by Elbert Pol <e.pol@chello.nl>.
24388 2008-04-13 Bruno Haible <bruno@clisp.org>
24390 * lib/binary-io.h [__EMX__]: Include <io.h>.
24391 Reported by Elbert Pol <e.pol@chello.nl>.
24393 2008-04-12 Bruno Haible <bruno@clisp.org>
24395 * lib/fpucw.h: Enable the definitions also for x86_64.
24396 Needed for NetBSD/x86_64.
24397 Reported by Thomas Klausner <tk@giga.or.at>.
24399 2008-04-12 Bruno Haible <bruno@clisp.org>
24401 * tests/test-strtod.c: Include isnand.h.
24402 (main): Use isnand instead of isnan.
24403 Reported by Jim Meyering.
24405 2008-04-12 Bruno Haible <bruno@clisp.org>
24407 * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
24408 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
24410 2008-04-12 Jim Meyering <meyering@redhat.com>
24412 * m4/math_h.m4 (gl_MATH_H): Fix typos.
24414 2008-04-12 Bruno Haible <bruno@clisp.org>
24416 * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
24417 Reported by Elbert Pol <e.pol@chello.nl>.
24419 2008-04-12 Eric Blake <ebb9@byu.net>
24421 Work around Solaris 10 math.h bug.
24422 * m4/math_h.m4 (gl_MATH_H): Check for bug.
24423 (gl_MATH_H_DEFAULTS): Set up default.
24424 * modules/math (Makefile.am): Replace new indicators.
24425 * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
24426 * tests/test-math.c (main): Test this.
24427 * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
24428 * doc/posix-headers/math.texi (math.h): Mention bug.
24429 Reported by Nelson H. F. Beebe and Jim Meyering.
24431 2008-04-11 Bruno Haible <bruno@clisp.org>
24433 Adapt to future versions of Apple GCC.
24434 * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
24435 Reported by Peter O'Gorman <peter@pogma.com>.
24437 2008-04-11 Bruno Haible <bruno@clisp.org>
24439 * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
24441 2008-04-11 Bruno Haible <bruno@clisp.org>
24443 * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
24445 * modules/getaddrinfo-tests (Makefile.am): Define
24446 test_getaddrinfo_LDADD.
24448 2008-04-11 Bruno Haible <bruno@clisp.org>
24450 * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
24451 (init): Fix syntax error.
24452 * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
24455 2008-04-11 Bruno Haible <bruno@clisp.org>
24457 * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
24458 * modules/glob (Depends-on): Add stdbool.
24460 2008-04-11 Bruno Haible <bruno@clisp.org>
24462 * lib/trim.c: Include <string.h>.
24464 2008-04-11 Eric Blake <ebb9@byu.net>
24466 Avoid compile failure on OS/2.
24467 * lib/regex_internal.h (internal_function): Disable optimization
24468 on OS/2 (__EMX__), where it caused compiler error.
24469 Reported by Elbert Pol.
24471 2008-04-11 Bruno Haible <bruno@clisp.org>
24473 Flush the standard error stream before aborting. Needed on mingw.
24474 * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
24475 * tests/test-array_list.c (ASSERT): Likewise.
24476 * tests/test-array_oset.c (ASSERT): Likewise.
24477 * tests/test-avltree_list.c (ASSERT): Likewise.
24478 * tests/test-avltree_oset.c (ASSERT): Likewise.
24479 * tests/test-avltreehash_list.c (ASSERT): Likewise.
24480 * tests/test-binary-io.c (ASSERT): Likewise.
24481 * tests/test-byteswap.c (ASSERT): Likewise.
24482 * tests/test-c-ctype.c (ASSERT): Likewise.
24483 * tests/test-c-strcasecmp.c (ASSERT): Likewise.
24484 * tests/test-c-strcasestr.c (ASSERT): Likewise.
24485 * tests/test-c-strncasecmp.c (ASSERT): Likewise.
24486 * tests/test-c-strstr.c (ASSERT): Likewise.
24487 * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
24488 * tests/test-canonicalize.c (ASSERT): Likewise.
24489 * tests/test-carray_list.c (ASSERT): Likewise.
24490 * tests/test-ceilf1.c (ASSERT): Likewise.
24491 * tests/test-ceilf2.c (ASSERT): Likewise.
24492 * tests/test-ceill.c (ASSERT): Likewise.
24493 * tests/test-count-one-bits.c (ASSERT): Likewise.
24494 * tests/test-fbufmode.c (ASSERT): Likewise.
24495 * tests/test-fflush2.c (ASSERT): Likewise.
24496 * tests/test-floorf1.c (ASSERT): Likewise.
24497 * tests/test-floorf2.c (ASSERT): Likewise.
24498 * tests/test-floorl.c (ASSERT): Likewise.
24499 * tests/test-fopen.c (ASSERT): Likewise.
24500 * tests/test-fpending.c (ASSERT): Likewise.
24501 * tests/test-fprintf-posix.c (ASSERT): Likewise.
24502 * tests/test-fpurge.c (ASSERT): Likewise.
24503 * tests/test-freadable.c (ASSERT): Likewise.
24504 * tests/test-freadahead.c (ASSERT): Likewise.
24505 * tests/test-freading.c (ASSERT): Likewise.
24506 * tests/test-freadptr.c (ASSERT): Likewise.
24507 * tests/test-freadptr2.c (ASSERT): Likewise.
24508 * tests/test-freadseek.c (ASSERT): Likewise.
24509 * tests/test-freopen.c (ASSERT): Likewise.
24510 * tests/test-frexp.c (ASSERT): Likewise.
24511 * tests/test-frexpl.c (ASSERT): Likewise.
24512 * tests/test-fseek.c (ASSERT): Likewise.
24513 * tests/test-fseeko.c (ASSERT): Likewise.
24514 * tests/test-fstrcmp.c (ASSERT): Likewise.
24515 * tests/test-ftell.c (ASSERT): Likewise.
24516 * tests/test-ftello.c (ASSERT): Likewise.
24517 * tests/test-func.c (ASSERT): Likewise.
24518 * tests/test-fwritable.c (ASSERT): Likewise.
24519 * tests/test-fwriting.c (ASSERT): Likewise.
24520 * tests/test-getdelim.c (ASSERT): Likewise.
24521 * tests/test-getline.c (ASSERT): Likewise.
24522 * tests/test-i-ring.c (ASSERT): Likewise.
24523 * tests/test-iconv-utf.c (ASSERT): Likewise.
24524 * tests/test-iconv.c (ASSERT): Likewise.
24525 * tests/test-isfinite.c (ASSERT): Likewise.
24526 * tests/test-isnand.c (ASSERT): Likewise.
24527 * tests/test-isnanf.c (ASSERT): Likewise.
24528 * tests/test-isnanl.h (ASSERT): Likewise.
24529 * tests/test-ldexpl.c (ASSERT): Likewise.
24530 * tests/test-linked_list.c (ASSERT): Likewise.
24531 * tests/test-linkedhash_list.c (ASSERT): Likewise.
24532 * tests/test-localename.c (ASSERT): Likewise.
24533 * tests/test-lseek.c (ASSERT): Likewise.
24534 * tests/test-mbscasecmp.c (ASSERT): Likewise.
24535 * tests/test-mbscasestr1.c (ASSERT): Likewise.
24536 * tests/test-mbscasestr2.c (ASSERT): Likewise.
24537 * tests/test-mbscasestr3.c (ASSERT): Likewise.
24538 * tests/test-mbscasestr4.c (ASSERT): Likewise.
24539 * tests/test-mbschr.c (ASSERT): Likewise.
24540 * tests/test-mbscspn.c (ASSERT): Likewise.
24541 * tests/test-mbsncasecmp.c (ASSERT): Likewise.
24542 * tests/test-mbspbrk.c (ASSERT): Likewise.
24543 * tests/test-mbspcasecmp.c (ASSERT): Likewise.
24544 * tests/test-mbsrchr.c (ASSERT): Likewise.
24545 * tests/test-mbsspn.c (ASSERT): Likewise.
24546 * tests/test-mbsstr1.c (ASSERT): Likewise.
24547 * tests/test-mbsstr2.c (ASSERT): Likewise.
24548 * tests/test-mbsstr3.c (ASSERT): Likewise.
24549 * tests/test-memchr2.c (ASSERT): Likewise.
24550 * tests/test-memmem.c (ASSERT): Likewise.
24551 * tests/test-open.c (ASSERT): Likewise.
24552 * tests/test-printf-frexp.c (ASSERT): Likewise.
24553 * tests/test-printf-frexpl.c (ASSERT): Likewise.
24554 * tests/test-printf-posix.c (ASSERT): Likewise.
24555 * tests/test-quotearg.c (ASSERT): Likewise.
24556 * tests/test-rbtree_list.c (ASSERT): Likewise.
24557 * tests/test-rbtree_oset.c (ASSERT): Likewise.
24558 * tests/test-rbtreehash_list.c (ASSERT): Likewise.
24559 * tests/test-round1.c (ASSERT): Likewise.
24560 * tests/test-roundf1.c (ASSERT): Likewise.
24561 * tests/test-roundl.c (ASSERT): Likewise.
24562 * tests/test-signbit.c (ASSERT): Likewise.
24563 * tests/test-sleep.c (ASSERT): Likewise.
24564 * tests/test-snprintf-posix.c (ASSERT): Likewise.
24565 * tests/test-snprintf.c (ASSERT): Likewise.
24566 * tests/test-sprintf-posix.c (ASSERT): Likewise.
24567 * tests/test-stat-time.c (ASSERT): Likewise.
24568 * tests/test-strcasestr.c (ASSERT): Likewise.
24569 * tests/test-strerror.c (ASSERT): Likewise.
24570 * tests/test-striconv.c (ASSERT): Likewise.
24571 * tests/test-striconveh.c (ASSERT): Likewise.
24572 * tests/test-striconveha.c (ASSERT): Likewise.
24573 * tests/test-strsignal.c (ASSERT): Likewise.
24574 * tests/test-strstr.c (ASSERT): Likewise.
24575 * tests/test-strtod.c (ASSERT): Likewise.
24576 * tests/test-trunc1.c (ASSERT): Likewise.
24577 * tests/test-trunc2.c (ASSERT): Likewise.
24578 * tests/test-truncf1.c (ASSERT): Likewise.
24579 * tests/test-truncf2.c (ASSERT): Likewise.
24580 * tests/test-truncl.c (ASSERT): Likewise.
24581 * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
24582 * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
24583 * tests/test-vasnprintf.c (ASSERT): Likewise.
24584 * tests/test-vasprintf-posix.c (ASSERT): Likewise.
24585 * tests/test-vasprintf.c (ASSERT): Likewise.
24586 * tests/test-vfprintf-posix.c (ASSERT): Likewise.
24587 * tests/test-vprintf-posix.c (ASSERT): Likewise.
24588 * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
24589 * tests/test-vsnprintf.c (ASSERT): Likewise.
24590 * tests/test-vsprintf-posix.c (ASSERT): Likewise.
24591 * tests/test-wcwidth.c (ASSERT): Likewise.
24592 * tests/test-xfprintf-posix.c (ASSERT): Likewise.
24593 * tests/test-xprintf-posix.c (ASSERT): Likewise.
24594 * tests/test-xvasprintf.c (ASSERT): Likewise.
24595 * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
24596 * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
24597 * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
24598 * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
24599 * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
24600 * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
24601 * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
24602 * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
24603 * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
24604 * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
24605 * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
24606 * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
24607 * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
24608 * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
24609 * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
24610 * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
24611 * tests/unictype/test-block_list.c (ASSERT): Likewise.
24612 * tests/unictype/test-block_of.c (ASSERT): Likewise.
24613 * tests/unictype/test-block_test.c (ASSERT): Likewise.
24614 * tests/unictype/test-categ_and.c (ASSERT): Likewise.
24615 * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
24616 * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
24617 * tests/unictype/test-categ_name.c (ASSERT): Likewise.
24618 * tests/unictype/test-categ_none.c (ASSERT): Likewise.
24619 * tests/unictype/test-categ_of.c (ASSERT): Likewise.
24620 * tests/unictype/test-categ_or.c (ASSERT): Likewise.
24621 * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
24622 * tests/unictype/test-combining.c (ASSERT): Likewise.
24623 * tests/unictype/test-decdigit.c (ASSERT): Likewise.
24624 * tests/unictype/test-digit.c (ASSERT): Likewise.
24625 * tests/unictype/test-mirror.c (ASSERT): Likewise.
24626 * tests/unictype/test-numeric.c (ASSERT): Likewise.
24627 * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
24628 * tests/unictype/test-pr_test.c (ASSERT): Likewise.
24629 * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
24630 * tests/unictype/test-scripts.c (ASSERT): Likewise.
24631 * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
24632 * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
24633 * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
24634 * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
24635 * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
24636 * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
24637 * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
24638 * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
24639 * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
24640 * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
24641 * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
24642 * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
24643 * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
24644 * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
24645 * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
24646 * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
24647 * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
24648 * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
24649 * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
24650 * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
24651 * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
24652 * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
24653 * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
24654 * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
24655 * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
24656 * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
24657 * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
24658 * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
24659 * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
24660 * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
24661 * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
24662 * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
24663 * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
24664 * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
24665 * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
24666 * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
24667 * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
24668 Reported by Eric Blake.
24670 2008-04-11 Bruno Haible <bruno@clisp.org>
24672 * lib/wchar.in.h: Tweak comment.
24674 2008-04-11 Bruno Haible <bruno@clisp.org>
24676 Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
24677 * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
24679 * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
24681 2008-04-11 Bruno Haible <bruno@clisp.org>
24683 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
24685 2008-04-11 Simon Josefsson <simon@josefsson.org>
24687 * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
24688 of attempting to use non-existing /dev/*random. Based on patch
24689 from Adam Strzelecki <ono@java.pl> in
24690 <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
24692 2008-04-08 Bruno Haible <bruno@clisp.org>
24694 Add tentative support for emx+gcc.
24695 * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
24696 * lib/fpurge.c (fpurge): Likewise.
24697 * lib/freadable.c (freadable): Likewise.
24698 * lib/freadahead.c (freadahead): Likewise.
24699 * lib/freading.c (freading): Likewise.
24700 * lib/freadptr.c (freadptr): Likewise.
24701 * lib/freadseek.c (freadptrinc): Likewise.
24702 * lib/fseeko.c (rpl_fseeko): Likewise.
24703 * lib/fseterr.c (fseterr): Likewise.
24704 * lib/fwritable.c (fwritable): Likewise.
24705 * lib/fwriting.c (fwriting): Likewise.
24706 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
24708 2008-04-09 Eric Blake <ebb9@byu.net>
24710 Avoid some autoconf warnings.
24711 * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
24712 * m4/acl.m4 (gl_FUNC_ACL): Likewise.
24713 * m4/afs.m4 (gl_AFS): Likewise.
24714 * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
24715 * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
24716 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24717 * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
24718 (gl_INTEGER_TYPE_SUFFIX): Likewise.
24719 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
24720 (AC_CHECK_DECLS_ONCE): Likewise.
24722 * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
24723 gnulib-tool requires autoconf 2.59 or better.
24724 * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
24726 2008-04-08 Eric Blake <ebb9@byu.net>
24728 Use 'git describe --match' if present (added in git 1.5.5).
24729 * build-aux/git-version-gen: Limit result to tags that match 'v*'
24732 2008-04-08 Bruno Haible <bruno@clisp.org>
24734 Add tentative support for OpenServer.
24735 * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
24737 * lib/fpurge.c (fpurge): Likewise.
24738 * lib/freadable.c (freadable): Likewise.
24739 * lib/freadahead.c (freadahead): Likewise.
24740 * lib/freading.c (freading): Likewise.
24741 * lib/freadptr.c (freadptr): Likewise.
24742 * lib/freadseek.c (freadptrinc): Likewise.
24743 * lib/fseeko.c (rpl_fseeko): Likewise.
24744 * lib/fseterr.c (fseterr): Likewise.
24745 * lib/fwritable.c (fwritable): Likewise.
24746 * lib/fwriting.c (fwriting): Likewise.
24747 Reported by Roger Cornelius <rac@tenzing.org> and
24748 Brian K. White <brian@aljex.com>.
24750 2008-04-06 Jim Meyering <meyering@redhat.com>
24752 * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
24754 2008-04-06 Bruno Haible <bruno@clisp.org>
24756 Avoid possible error with non-ASCII bytes in UTF-8 locales.
24757 * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
24758 * tests/test-printf-posix.sh: Likewise.
24759 * tests/test-vfprintf-posix.sh: Likewise.
24760 * tests/test-vprintf-posix.sh: Likewise.
24761 * tests/test-xprintf-posix.sh: Likewise.
24763 2008-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24765 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
24766 hide error from 'ls', needed on OS/2.
24767 Report by Elbert Pol <elbert.pol@gmail.com>.
24769 2008-04-04 Eric Blake <ebb9@byu.net>
24771 Make test-fseeko.c failures meaningful.
24772 * tests/test-fseeko.c: Print line number on failure.
24773 * tests/test-fseek.c: Likewise.
24774 Reported by Nelson H. F. Beebe.
24776 Improve strtod bug detection check.
24777 * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
24778 required for Solaris 10.
24779 Reported by Bob Friesenhahn and Nelson H. F. Beebe.
24781 2008-04-04 Bruno Haible <bruno@clisp.org>
24783 * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
24786 2008-04-03 Eric Blake <ebb9@byu.net>
24788 Ensure sane .version contents.
24789 * top/GNUmakefile (_dummy): Also delete .version when rebuilding
24791 * build-aux/git-version-gen: Improve documentation.
24793 Make GNU make output nicer.
24794 * top/GNUmakefile [!_have-Makefile]: Add dependency on
24795 MAKECMDGOALS to enforce message for all command line targets. Set
24796 srcdir for use in maint.mk.
24798 Another maintainer tweak.
24799 * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
24800 a target that regenerates version.
24802 2008-04-03 Jim Meyering <meyering@redhat.com>
24804 vc-list-files: don't cause coreutils "make po-check" failure
24805 * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
24807 2008-04-03 Eric Blake <ebb9@byu.net>
24809 Allow VPATH usage of vc-list-files.
24810 * build-aux/vc-list-files (scriptversion): Add timestamp.
24811 (options): Add --help, --version, -C.
24812 (CVS): Support installed cvsu.
24814 2008-04-02 Bruno Haible <bruno@clisp.org>
24816 Avoid some "statement with no effect" warnings from gcc.
24817 * tests/test-wctype.c (main): Explicitly ignore unused values.
24818 Reported by Jim Meyering.
24820 2008-04-02 Jim Meyering <meyering@redhat.com>
24822 Avoid some warnings from "gcc -Wshadow".
24823 * tests/test-frexp.c (exp): Define to a different identifier.
24824 * tests/test-frexpl.c (exp): Likewise.
24826 2008-04-03 Jim Meyering <meyering@redhat.com>
24828 bootstrap: remove dangling *.[ch] symlinks from lib
24829 * build-aux/bootstrap [dangling symlink removal]: Move find's
24830 -depth option to precede all others, to avoid a warning.
24831 Remove *.[ch] files too, and from "$source_base" (usually lib/).
24833 2008-04-02 Bruno Haible <bruno@clisp.org>
24835 Avoid some warnings from "gcc -Wshadow".
24836 * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
24837 * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
24838 * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
24839 * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
24840 Reported by Jim Meyering.
24842 2008-04-01 Bruno Haible <bruno@clisp.org>
24844 Fix test to work on IRIX 6.5 with cc.
24845 * tests/test-math.c (numeric_equal): New function.
24848 2008-04-01 Bruno Haible <bruno@clisp.org>
24850 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
24852 2008-04-01 Bruno Haible <bruno@clisp.org>
24854 * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
24855 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24856 * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
24857 (Depends-on): Remove math.
24859 * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
24860 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24861 * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
24862 (Depends-on): Remove math.
24864 * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
24865 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24866 * modules/snprintf-posix-tests (Files): Add tests/nan.h.
24867 (Depends-on): Remove math.
24868 * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
24869 (Depends-on): Remove math.
24871 * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
24872 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24873 * modules/sprintf-posix-tests (Files): Add tests/nan.h.
24874 (Depends-on): Remove math.
24875 * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
24876 (Depends-on): Remove math.
24878 * tests/test-round1.c: Include nan.h.
24879 (main): Use NaNd instead of NAN.
24880 * modules/round-tests (Files): Add tests/nan.h.
24882 * tests/test-trunc1.c: Include nan.h.
24883 (main): Use NaNd instead of NAN.
24884 * modules/trunc-tests (Files): Add tests/nan.h.
24886 * tests/test-roundf1.c: Include nan.h.
24887 (main): Use NaNf instead of NAN.
24888 * modules/roundf-tests (Files): Add tests/nan.h.
24890 * tests/test-truncf1.c: Include nan.h.
24891 (main): Use NaNf instead of NAN.
24892 * modules/truncf-tests (Files): Add tests/nan.h.
24894 * tests/test-ceilf1.c: Include nan.h.
24895 (main): Use NaNf instead of NAN.
24896 * modules/ceilf-tests (Files): Add tests/nan.h.
24898 * tests/test-floorf1.c: Include nan.h.
24899 (main): Use NaNf instead of NAN.
24900 * modules/floorf-tests (Files): Add tests/nan.h.
24902 * tests/test-isnanf.c: Include nan.h instead of <math.h>.
24903 (main): Use NaNf instead of NAN.
24904 * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
24906 * tests/test-isnand.c: Include nan.h instead of <math.h>.
24907 (main): Use NaNd instead of NAN.
24908 * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
24910 * tests/test-frexp.c: Include nan.h.
24911 (main): Use NaNd instead of NAN.
24912 * modules/frexp-tests (Files): Add tests/nan.h.
24914 * lib/isnan.c: Don't include <math.h>.
24915 (FUNC): Don't use NAN macro.
24916 * modules/isnand-nolibm (Depends-on): Remove math.
24917 * modules/isnanf-nolibm (Depends-on): Remove math.
24918 * modules/isnanl (Depends-on): Remove math.
24919 * modules/isnanl-nolibm (Depends-on): Remove math.
24921 * tests/nan.h: New file.
24923 2008-04-01 Eric Blake <ebb9@byu.net>
24926 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
24927 values to be the right type.
24929 For now, cater to gnulib strtod inaccuracies.
24930 * tests/test-strtod.c (main): Allow 1-ulp error on expected
24931 fractional results. While not as nice from a QoI perspective, it
24932 is a quicker patch than correctly implementing decimal to binary
24935 2008-03-31 Eric Blake <ebb9@byu.net>
24937 Guarantee a definition of NAN.
24938 * lib/math.in.h (NAN): Define if missing.
24939 * tests/test-math.c (main): Test it.
24940 * doc/posix-headers/math.texi (math.h): Document this.
24941 * lib/isnan.c (rpl_isnand): Use it.
24942 * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
24943 * tests/test-floorf1.c (NaN): Likewise.
24944 * tests/test-frexp.c (NaN): Likewise.
24945 * tests/test-isnand.c (NaN): Likewise.
24946 * tests/test-isnanf.c (NaN): Likewise.
24947 * tests/test-round1.c (NaN): Likewise.
24948 * tests/test-roundf1.c (NaN): Likewise.
24949 * tests/test-snprintf-posix.h (NaN): Likewise.
24950 * tests/test-sprintf-posix.h (NaN): Likewise.
24951 * tests/test-trunc1.c (NaN): Likewise.
24952 * tests/test-truncf1.c (NaN): Likewise.
24953 * tests/test-vasnprintf-posix.c (NaN): Likewise.
24954 * tests/test-vasprintf-posix.c (NaN): Likewise.
24955 * modules/isnand-nolibm (Depends-on): Add math.
24956 * modules/isnanf-nolibm (Depends-on): Likewise.
24957 * modules/isnanl (Depends-on): Likewise.
24958 * modules/isnanl-nolibm (Depends-on): Likewise.
24959 * modules/snprintf-posix-tests (Depends-on): Likewise.
24960 * modules/sprintf-posix-tests (Depends-on): Likewise.
24961 * modules/vsnprintf-posix-tests (Depends-on): Likewise.
24962 * modules/vsprintf-posix-tests (Depends-on): Likewise.
24963 * modules/vasnprintf-posix-tests (Depends-on): Likewise.
24964 * modules/vasprintf-posix-tests (Depends-on): Likewise.
24966 2008-03-31 Bruno Haible <bruno@clisp.org>
24968 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
24969 * doc/posix-functions/strtod.texi: Likewise.
24971 2008-03-31 Bruno Haible <bruno@clisp.org>
24973 * tests/test-strtod.c (main): Don't use C99 syntax.
24975 2008-03-31 Bruno Haible <bruno@clisp.org>
24977 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
24978 Reported by Eric Blake.
24980 2008-03-31 Jim Meyering <meyering@redhat.com>
24982 Don't compare actual signbit return values.
24983 * tests/test-strtod.c (main): Rather, compare only their
24984 zero/non-zero nature.
24986 2008-03-31 Eric Blake <ebb9@byu.net>
24988 More strtod documentation.
24989 * doc/posix-functions/strtod.texi (strtod): Interpret more test
24990 failures as distinct bugs.
24992 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
24994 * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
24995 Problem reported by Erik Benada in
24996 <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
24998 2008-03-30 Bruno Haible <bruno@clisp.org>
25000 * tests/test-strtod.c: Add comments about which assertion fails on which
25002 * doc/posix-functions/strtod.texi: Add info about many more platforms.
25004 2008-03-30 Eric Blake <ebb9@byu.net>
25006 Test signbit behavior on zeros.
25007 * tests/test-signbit.c (test_signbitf): Add tests for zero.
25008 (test_signbitd, test_signbitl): Likewise.
25010 More strtod touchups.
25011 * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
25012 sign of negative underflow, for now. Use .5, not .1.
25013 * doc/posix-functions/strtod.texi (strtod): Mention these
25015 Reported by Jim Meyering.
25017 2008-03-30 Bruno Haible <bruno@clisp.org>
25019 * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
25020 from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
25022 2008-03-30 Bruno Haible <bruno@clisp.org>
25024 Avoid failure when attempting to return empty iconv results on some
25026 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
25027 allocation, don't report ENOMEM when the resulting string is empty.
25029 2008-03-30 Bruno Haible <bruno@clisp.org>
25031 Fix buffer overrun.
25032 * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
25033 Don't consider the width for tmp_length. Check count against tmp_length
25034 before doing the padding. Ensure enough allocation during padding.
25036 2008-03-30 Eric Blake <ebb9@byu.net>
25039 * lib/strtod.c (strtod): Avoid compiler warnings.
25040 Reported by Jim Meyering.
25042 2008-03-30 Bruno Haible <bruno@clisp.org>
25044 * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
25045 * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
25046 * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
25047 * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
25048 * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
25049 * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
25050 * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
25051 * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
25053 * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
25054 * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
25055 * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
25056 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
25057 * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
25058 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
25059 * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
25060 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
25062 * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
25063 * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
25064 * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
25065 * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
25066 * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
25067 * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
25068 * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
25069 * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
25071 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
25072 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
25074 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
25075 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
25077 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
25078 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
25080 * lib/vsprintf.c (EOVERFLOW): Remove fallback.
25081 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
25082 * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
25084 * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
25085 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
25086 * modules/vsnprintf (Depends-on): Add EOVERFLOW.
25088 * lib/vfprintf.c (EOVERFLOW): Remove fallback.
25089 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
25090 * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
25092 * lib/vasprintf.c (EOVERFLOW): Remove fallback.
25093 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
25094 * modules/vasprintf (Depends-on): Add EOVERFLOW.
25096 * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
25097 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
25098 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
25099 * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
25100 (Depends-on): Add EOVERFLOW.
25101 * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
25102 (Depends-on): Add EOVERFLOW.
25103 * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25104 (Depends-on): Add EOVERFLOW.
25105 * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25106 (Depends-on): Add EOVERFLOW.
25107 * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25108 (Depends-on): Add EOVERFLOW.
25109 * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25110 (Depends-on): Add EOVERFLOW.
25111 * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25112 (Depends-on): Add EOVERFLOW.
25113 * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25114 (Depends-on): Add EOVERFLOW.
25116 * lib/sprintf.c (EOVERFLOW): Remove fallback.
25117 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
25118 * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
25120 * lib/snprintf.c (EOVERFLOW): Remove fallback.
25121 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
25122 * modules/snprintf (Depends-on): Add EOVERFLOW.
25124 * lib/poll.c (EOVERFLOW): Remove fallback.
25125 * modules/poll (Depends-on): Add EOVERFLOW.
25127 * lib/getugroups.c (EOVERFLOW): Remove fallback.
25128 * modules/getugroups (Depends-on): Add EOVERFLOW.
25130 * lib/getdelim.c (EOVERFLOW): Remove fallback.
25131 * modules/getdelim (Depends-on): Add EOVERFLOW.
25133 * lib/ftell.c (EOVERFLOW): Remove fallback.
25134 * modules/ftell (Depends-on): Add EOVERFLOW.
25136 * lib/fprintf.c (EOVERFLOW): Remove fallback.
25137 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
25138 * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
25140 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
25142 * modules/EOVERFLOW-tests: New file.
25143 * tests/test-EOVERFLOW.c: New file.
25145 * modules/EOVERFLOW: New file.
25146 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
25148 2008-03-30 Bruno Haible <bruno@clisp.org>
25150 Fix bug introduced on 2007-06-10.
25151 * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
25152 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
25154 2008-03-30 Bruno Haible <bruno@clisp.org>
25156 Improve freadseek's efficiency after ungetc.
25157 * lib/freadseek.c: Include freadahead.h.
25158 (freadptrinc): New function, extracted from freadseek.
25159 (freadseek): Use it in a loop. Use freadahead to determine the number
25160 of loop iterations.
25161 * modules/freadseek (Depends-on): Add freadahead.
25162 (configure.ac): Require AC_C_INLINE.
25164 2008-03-30 Bruno Haible <bruno@clisp.org>
25166 * lib/freadseek.c (freadseek): Don't ignore the return value of
25169 2008-03-29 Eric Blake <ebb9@byu.net>
25171 Add hex float support.
25172 * modules/strtod (Depends-on): Add c-ctype.
25173 (Link): Mention POW_LIB.
25174 * lib/strtod.c (strtod): Recognize hex floats. Don't allow
25175 whitespace between 'e' and exponent.
25176 * tests/test-strtod.c (main): Enable hex float tests.
25177 * doc/posix-functions/strtod.texi (strtod): Document what gnulib
25180 Document various strtod bugs, with some fixes.
25181 * doc/posix-functions/strtod.texi (strtod): Document bugs with
25182 "-0x", "inf", "nan", and hex constants.
25183 * doc/posix-functions/atof.texi (atof): Likewise.
25184 * modules/stdlib (Makefile.am): Support strtod.
25185 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
25186 * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
25187 detect additional strtod bugs.
25188 * lib/stdlib.in.h (rpl_strtod): Add declarations.
25189 * lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
25190 bool where appropriate. Parse 'inf' and 'nan'.
25191 * tests/test-strtod.c: New file.
25192 * modules/strtod (Depends-on): Add stdbool, stdlib.
25193 (configure.ac): Turn on module indicator.
25194 * modules/strtod-tests: New module.
25196 2008-03-29 Eric Blake <ebb9@byu.net>
25198 Fix ftell on mingw.
25199 * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
25200 * modules/ftell-tests (Depends-on): Add binary-io.
25201 * modules/ftello-tests (Depends-on): Likewise.
25202 * tests/test-ftell.c (main): Enhance test to cover behavior after
25203 ungetc. Enforce binary mode.
25204 * tests/test-ftello.c (main): Likewise.
25206 Pass test-freadseek on cygwin.
25207 * modules/freadseek (Depends-on): Use freadptr, not freadahead.
25208 * lib/freadseek.c (freadseek): Don't increment beyond bounds of
25211 * tests/test-fflush2.c (main): Fix typo.
25213 2008-03-29 Bruno Haible <bruno@clisp.org>
25215 * tests/test-fflush2.c (main): Temporarily disable the contents of
25217 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
25218 Reported by Eric Blake.
25220 2008-03-28 Simon Josefsson <simon@josefsson.org>
25222 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
25223 (GC_SHA224_DIGEST_SIZE): Add.
25225 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
25226 (gc_hash_digest_length): Likewise.
25227 (gc_hash_buffer): Likewise.
25229 2008-03-25 Bruno Haible <bruno@clisp.org>
25231 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
25232 detail which gettext release to use.
25233 Reported by Simon Josefsson.
25235 2008-03-26 Jim Meyering <meyering@redhat.com>
25237 gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
25238 * modules/gnumakefile (clean-GNUmakefile): Also, use
25239 test ... && ... || : syntax rather than if-then ... fi.
25241 gnumakefile: Don't double-quote-expand $(VPATH) value.
25242 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
25244 2008-03-24 Eric Blake <ebb9@byu.net>
25246 Alter GNUmakefile to install into top directory.
25247 * modules/maintainer-makefile: Split, and add dependency...
25248 * modules/gnumakefile: to this new module.
25249 * build-aux/GNUmakefile: Move...
25250 * top/GNUmakefile: ...here.
25251 * build-aux/maint.mk: Move...
25252 * top/maint.mk: ...here.
25253 * MODULES.html.sh (Support for maintaining...): Document new
25256 2008-03-23 Bruno Haible <bruno@clisp.org>
25258 * gnulib-tool: New options --vc-files, --no-vc-files.
25259 (func_usage): Document them.
25260 (vc_files): New variable.
25261 (func_import): Consider vc_files.
25262 (func_create_testdir): Set vc_files to empty.
25263 Suggested by Jim Meyering and Karl Berry.
25265 2008-03-23 Bruno Haible <bruno@clisp.org>
25267 Fix regex compilation error on HP-UX 11.
25268 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
25269 * modules/regex (Files): Add m4/mbstate_t.m4.
25270 Reported by Ton Voon <ton.voon@altinity.com>.
25272 2008-03-23 Bruno Haible <bruno@clisp.org>
25274 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
25276 2008-03-23 Eric Blake <ebb9@byu.net>
25277 Bruno Haible <bruno@clisp.org>
25279 Install files from top/ in the destination directory.
25280 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
25281 augmentation also for the files from top/.
25282 (func_import, func_create_testdir): Rewrite file names:
25283 top/filename -> filename.
25285 2008-03-23 Bruno Haible <bruno@clisp.org>
25287 Tweak "gnulib --version" output.
25288 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
25290 2008-03-23 Bruno Haible <bruno@clisp.org>
25292 Tweak "gnulib --version" output.
25293 * gnulib-tool (func_version): Use date of last commit to ChangeLog,
25294 rather than contents of ChangeLog, when possible.
25296 2008-03-21 Eric Blake <ebb9@byu.net>
25298 More --version tweaks.
25299 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
25300 date of last ChangeLog entry.
25302 2008-03-21 Jim Meyering <meyering@redhat.com>
25304 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
25306 2008-03-20 Eric Blake <ebb9@byu.net>
25309 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
25311 2008-03-20 Simon Josefsson <simon@josefsson.org>
25313 * build-aux/GNUmakefile: Make git-version-gen optional. Add
25314 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
25316 2008-03-20 Eric Blake <ebb9@byu.net>
25318 Sync GNUmakefile with coreutils.
25319 * build-aux/GNUmakefile (have-Makefile): Rename...
25320 (_have-Makefile): ...to this, for namespace consideration.
25321 (GNUmakefile.cfg): Include, if present.
25322 (_autoreconf): Define a default.
25323 (_is-dist-target): New rule for rebuilds to pick up intra-release
25325 (maint-cfg.mk): Rename...
25326 (cfg.mk): ...to this.
25328 2008-03-18 Jim Meyering <meyering@redhat.com>
25330 New script and module: mktempd
25331 * MODULES.html.sh (maint+release support): Add mktempd.
25332 * build-aux/mktempd: New file.
25333 * modules/mktempd: New file.
25335 2008-03-15 Jim Meyering <meyering@redhat.com>
25338 * lib/sha1.c, lib/md5.c: 63 != ~63.
25339 Reported by Andreas Schwab.
25341 sha1.c, md5.c: Hoist a redundant expression.
25342 * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
25343 "ctx->buflen" only once, before calling *_process_block.
25344 * lib/md5.c (md5_process_bytes): Likewise.
25346 2008-03-14 Eric Blake <ebb9@byu.net>
25348 Bump copyright year in files generated by gnulib-tool.
25349 * gnulib-tool (func_emit_copyright_notice): Extract copyright from
25350 gnulib-tool, rather than hard-coding it.
25352 Fix 'gnulib-tool --version' output to work with git.
25353 * gnulib-tool (func_gnulib_dir): New function, extracted from...
25354 (startup): ...here.
25355 (func_version): Use it to invoke git-version-gen, rather than
25356 relying on CVS keyword expansion. Modernize wording.
25357 (cvsdatestamp, last_checkin_date, version): Kill unused
25360 2008-03-12 Jim Meyering <meyering@redhat.com>
25362 Recognize optional cast of the argument to free.
25363 * build-aux/useless-if-before-free: Update regexps.
25365 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
25367 2008-03-11 Bruno Haible <bruno@clisp.org>
25369 Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
25370 by a single package.
25371 * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
25372 (AC_LIB_LINKFLAGS_BODY): Use the information stored by
25373 AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
25374 Reported by Sam Steingold <sds@gnu.org>.
25376 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
25378 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
25381 2008-03-11 Bruno Haible <bruno@clisp.org>
25383 Avoid conflicts between local macro definitions.
25384 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
25385 AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
25387 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
25388 Bruno Haible <bruno@clisp.org>
25390 Make va_copy work with some version of xlc on AIX 5.1.
25391 * lib/stdarg.in.h: New file.
25392 * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
25393 On AIX, use a <stdarg.h> file substitute.
25394 * modules/stdarg (Files): Add lib/stdarg.in.h.
25395 (Depends-on): Add include_next.
25396 (Makefile.am): Build a stdarg.h substitute if requested.
25397 * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
25399 2008-03-10 Bruno Haible <bruno@clisp.org>
25401 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
25402 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25403 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
25405 2008-03-10 Bruno Haible <bruno@clisp.org>
25407 * modules/stdlib (Depends-on): Add include_next, remove
25410 2008-03-09 Bruno Haible <bruno@clisp.org>
25412 * lib/freadahead.h (freadahead): Document more precisely.
25413 * lib/freadahead.c (freadahead): When an ungetc is in effect, return
25414 the sum of both buffer sizes.
25415 * tests/test-freadahead.c (main): Also test behaviour after ungetc.
25416 * NEWS: Document the change.
25418 2008-03-09 Bruno Haible <bruno@clisp.org>
25420 Extend freadptr to return also the buffer size.
25421 * lib/freadptr.h (freadptr): Add sizep argument.
25422 * lib/freadptr.c: Include freadptr.h, not freadahead.h.
25423 (freadptr): Add sizep argument. Determine buffer size like freadahead
25425 * tests/test-freadptr.c: Don't include freadahead.h.
25426 (main): Adapt for new calling convention of freadptr.
25427 * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
25428 * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
25429 * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
25430 tests/test-freadptr2.sh.
25431 (Depends): Remove freadahead.
25432 (TESTS): Add test-freadptr2.sh.
25433 (check_PROGRAMS): Add test-freadptr2.
25435 2008-03-09 Bruno Haible <bruno@clisp.org>
25437 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
25438 Report and solution by Simon Josefsson.
25440 2008-03-06 Bruno Haible <bruno@clisp.org>
25442 Make fflush after ungetc work on BSD platforms.
25443 * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
25444 * tests/test-fflush2.c: New file.
25445 * tests/test-fflush2.sh: New file.
25446 * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
25447 tests/test-fflush2.c.
25448 (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
25449 * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
25451 2008-03-06 Eric Blake <ebb9@byu.net>
25453 Likewise for ftello.
25454 * modules/ftello (Dependencies): Add extensions.
25455 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
25457 2008-03-06 Bruno Haible <bruno@clisp.org>
25459 * modules/fseeko (Dependencies): Add extensions.
25460 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
25461 Needed on glibc systems.
25463 2008-03-06 Bruno Haible <bruno@clisp.org>
25465 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
25467 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25469 2008-03-06 Bruno Haible <bruno@clisp.org>
25471 * users.txt: Add libgnupdf.
25473 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
25475 * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
25476 (Header File Substitutes, Function Substitutes,
25477 Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
25478 (Build robot for gnulib): Fix typo.
25480 2008-03-06 Bruno Haible <bruno@clisp.org>
25482 * doc/gnulib-tool.texi (VCS Issues): Small updates.
25483 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25485 2008-03-06 Bruno Haible <bruno@clisp.org>
25487 * doc/func.texi: New file, extracted from doc/gnulib.texi.
25488 * doc/gnulib.texi: Include it.
25490 2008-03-06 Simon Josefsson <simon@josefsson.org>
25492 * modules/func (License): Change license to unlimited; there was
25493 no LGPL parts in the module anyway.
25495 2008-03-06 Simon Josefsson <simon@josefsson.org>
25497 * modules/__func__: Renamed to modules/func.
25498 * modules/__func__-tests: Renamed to modules/func-tests.
25499 * tests/test-__func__.c: Renamed to tests/test-func.c.
25500 * m4/__func__.m4: Renamed to m4/func.m4.
25501 * doc/gnulib.texi (__func__): Section renamed to func.
25502 Suggested by Eric Blake <ebb9@byu.net>.
25504 2008-03-06 Simon Josefsson <simon@josefsson.org>
25506 * doc/gnulib.texi (__func__): Use C99 terminology when talking
25507 about __func__. Make example self-contained. Suggested by Eric
25508 Blake <ebb9@byu.net>.
25510 * tests/test-__func__.c (main): Avoid extraneous () around __func.
25511 Suggested by Eric Blake <ebb9@byu.net>.
25513 2008-03-06 Simon Josefsson <simon@josefsson.org>
25515 * modules/__func__: New file.
25516 * modules/__func__-tests: New file.
25517 * tests/test-__func__.c: New file.
25518 * m4/__func__.m4: New file.
25519 * doc/gnulib.texi (__func__): Document __func__ module.
25521 2008-03-05 Simon Josefsson <simon@josefsson.org>
25523 * modules/byteswap (License): Re-license as LGPLv2+.
25525 2008-03-05 Simon Josefsson <simon@josefsson.org>
25527 * doc/Makefile: Add pdf target.
25529 2008-03-05 Simon Josefsson <simon@josefsson.org>
25531 * modules/inline (License): Use 'unlimited', since there are only
25532 *.m4 files in this module.
25534 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
25535 Bruno Haible <bruno@clisp.org>
25537 Add support for HP C 7.1 on OpenVMS 8.3.
25538 * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
25540 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
25542 Update VMS specifics.
25543 * lib/getopt.c [VMS]: Remove include of unixlib.h.
25545 2008-03-02 Jim Meyering <meyering@redhat.com>
25547 Remove the last dependency on the "free" module.
25548 * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
25549 Reported by Bob Proulx.
25551 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
25553 Remove useless "if" tests before free. Deprecate "free" module.
25554 * doc/posix-functions/free.texi: Mention that this
25555 module is no longer useful.
25556 * modules/free (Notice): Say this module is obsolete.
25557 * modules/readutmp (Depends-on): Remove free.
25558 * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
25559 * lib/putenv.c (putenv): Likewise.
25560 * lib/gc-gnulib.c (gc_cipher_close): Likewise.
25561 * lib/getaddrinfo.c (freeaddrinfo): Likewise.
25562 * tests/test-c-strcasestr.c (main): Likewise.
25563 * tests/test-c-strstr.c (main): Likewise.
25564 * tests/test-mbscasestr1.c (main): Likewise.
25565 * tests/test-mbscasestr2.c (main): Likewise.
25566 * tests/test-mbsstr1.c (main): Likewise.
25567 * tests/test-mbsstr2.c (main): Likewise.
25568 * tests/test-memmem.c (main): Likewise.
25569 * tests/test-strcasestr.c (main): Likewise.
25570 * tests/test-striconv.c (main): Likewise.
25571 * tests/test-striconveh.c (main): Likewise.
25572 * tests/test-striconveha.c (main): Likewise.
25573 * tests/test-strstr.c (main): Likewise.
25575 * build-aux/git-version-gen: Adjust a comment and the Usage string.
25577 bootstrap: sync from coreutils again
25578 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
25580 2008-03-01 Jim Meyering <meyering@redhat.com>
25582 bootstrap: sync from coreutils
25583 * build-aux/bootstrap (update_po_files): Copy a .po file into place
25584 also when the target doesn't exist.
25586 2008-03-01 Eric Blake <ebb9@byu.net>
25588 Fix bugs in last patch.
25589 * lib/memchr2.c (memchr2): Fix typo.
25590 * tests/test-memchr2.c: Test previous bug, and don't use GNU
25592 Reported by Bruce Korb.
25594 New module 'memchr2'.
25595 * modules/memchr2: New file.
25596 * modules/memchr2-tests: Likewise.
25597 * lib/memchr2.h: Likewise.
25598 * lib/memchr2.c: Likewise, based on memchr.c.
25599 * tests/test-memchr2.c: New test.
25600 * MODULES.html.sh (String handling): Add memchr2.
25602 2008-02-29 Bruno Haible <bruno@clisp.org>
25604 * modules/freadseek-tests: New file.
25605 * tests/test-freadseek.sh: New file.
25606 * tests/test-freadseek.c: New file.
25608 New module 'freadseek'.
25609 * modules/freadseek: New file.
25610 * lib/freadseek.h: New file.
25611 * lib/freadseek.c: New file.
25612 * MODULES.html.sh (File stream based Input/Output): Add freadseek.
25614 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
25616 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
25619 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
25620 program_invocation_name and program_invocation_short_name are
25623 2008-02-28 Bruno Haible <bruno@clisp.org>
25625 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
25626 * tests/test-freadptr.sh: Also test non-seekable stdin.
25628 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
25630 * build-aux/bootstrap (source_base, m4_base)
25631 (doc_base, tests_base): New variables.
25632 (gnulib_tool_options): Do not hardcode base directories, use
25633 the above variables instead.
25635 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
25637 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
25639 2008-02-28 Bruno Haible <bruno@clisp.org>
25641 * modules/freadptr-tests: New file.
25642 * tests/test-freadptr.sh: New file.
25643 * tests/test-freadptr.c: New file.
25645 New module 'freadptr'.
25646 * modules/freadptr: New file.
25647 * lib/freadptr.h: New file.
25648 * lib/freadptr.c: New file.
25649 * MODULES.html.sh (File stream based Input/Output): Add freadptr.
25651 2008-02-26 Karl Berry <karl@freefriends.org>
25654 * libltdl/argz.c (argz_add, argz_count): New functions.
25655 * libltdl/argz.in.h: Declare them.
25656 Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
25658 2008-02-22 Bruno Haible <bruno@clisp.org>
25660 * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
25661 is a pointer type. Needed for HP-UX 10.
25662 * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
25663 * doc/posix-functions/gmtime_r.texi: Likewise.
25664 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
25666 2008-02-24 Bruno Haible <bruno@clisp.org>
25668 * modules/environ-tests: New file.
25669 * tests/test-environ.c: New file.
25671 New module 'environ'.
25672 * modules/environ: New file.
25673 * lib/unistd.in.h (environ): New declaration.
25674 * m4/environ.m4: New file.
25675 (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
25677 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
25679 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
25681 * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
25682 wrong claim that 'environ' is missing on some systems.
25683 * modules/execute (Depends-on): Add environ.
25684 * lib/execute.c (environ): Remove fallback declaration.
25685 * modules/pipe (Depends-on): Add environ.
25686 * lib/pipe.c (environ): Remove fallback declaration.
25687 * modules/setenv (Depends-on): Add environ.
25688 * lib/setenv.c (environ): Remove fallback declaration.
25689 * modules/unsetenv (Depends-on): Add environ.
25690 * lib/unsetenv.c (environ): Remove fallback declaration.
25691 * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
25693 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
25694 (gl_PREREQ_UNSETENV): Likewise.
25696 2008-02-24 Bruno Haible <bruno@clisp.org>
25698 * doc/posix-functions/environ.texi: Document the MacOS X problem.
25700 2008-02-20 Bob Proulx <bob@proulx.com>
25702 Enable use of older two part flavor 'git describe'.
25703 * build-aux/git-version-gen: If using the older two part flavor of
25704 git version then recreate the third part now present in the
25705 newer three part flavor of git describe.
25707 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
25709 * lib/fts.c (fts_build): Typo correction to comment.
25711 2008-02-17 Bruno Haible <bruno@clisp.org>
25713 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
25714 generating no-op conflicts.
25716 2008-02-17 Bruno Haible <bruno@clisp.org>
25719 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
25720 result_entries, rather than an index-based loop.
25722 2008-02-17 Bruno Haible <bruno@clisp.org>
25725 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
25727 (entry_create): New function.
25728 (entry_hashcode): Use the cached hashcode if possible.
25729 (read_changelog_file, try_split_merged_entry): Use entry_create.
25731 2008-02-17 Bruno Haible <bruno@clisp.org>
25733 Speed up from O(n^2) to O(n) for long ChangeLog files.
25734 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
25735 (read_changelog_file): Change implementation of entries_reversed list
25737 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
25739 2008-02-17 Bruno Haible <bruno@clisp.org>
25741 New option --split-merged-entry.
25742 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
25743 (find_paragraph_end, try_split_merged_entry): New functions.
25744 (long_options): Add option --split-merged-entry.
25745 (usage): Document option --split-merged-entry.
25746 (main): Implement option --split-merged-entry.
25747 Reported by Eric Blake.
25749 2008-02-17 Bruno Haible <bruno@clisp.org>
25751 * lib/git-merge-changelog.c: Include c-strstr.h.
25752 (main): Support the "git pull --rebase" situation.
25753 * modules/git-merge-changelog (Depends-on): Add c-strstr.
25754 Reported by Eric Blake.
25756 2008-02-16 Eric Blake <ebb9@byu.net>
25758 Avoid doubling \ in common case of "c-maybe" quoting style.
25759 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
25760 eliding outer quotes.
25761 * lib/quotearg.h: Document this.
25762 * tests/test-quotearg.c (result_strings, inputs, results_g)
25763 (flag_results, locale_results): Test it by adding a new string to
25765 (compare_strings): Test new string.
25767 2008-02-13 Eric Blake <ebb9@byu.net>
25769 Avoid trigraph quoting in default output.
25770 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
25771 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
25772 unless explicitly requested.
25773 * tests/test-quotearg.c (flag_results, main): Add additional tests.
25775 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
25777 Don't rely on signed integer overflowing to negative value.
25778 * lib/getugroups.c (getugroups): Include <limits.h>.
25779 Instead, compare against INT_MAX, and increment only if the test passes.
25781 2008-02-13 Jim Meyering <meyering@redhat.com>
25782 and Eric Blake <ebb9@byu.net>
25784 Avoid shadowing warning and compile errors on Linux.
25785 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
25786 forwarding macros on Linux.
25787 (dcgettext): Define a stub, for Linux.
25788 (results_g, main): Avoid warnings.
25790 2008-02-12 Eric Blake <ebb9@byu.net>
25792 Silence warning in last patch.
25793 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
25795 Quotearg part 4: add tests, fix c-maybe colon quoting.
25796 * lib/quotearg.h: Improve documentation.
25797 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
25798 escapes when adding outer quotes. When quoting trigraphs, use
25799 valid C notation. When quoting NUL, omit extra characters if next
25800 character is not digit. Alter prototype.
25801 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
25803 * modules/quotearg-tests: New module.
25804 * tests/test-quotearg.c: New test.
25806 2008-02-07 Eric Blake <ebb9@byu.net>
25808 Quotearg part 3: add flag to control outer quote elision.
25809 * lib/quotearg.h (c_maybe_quoting_style): New style.
25810 (enum quoting_flags): Better documentation of flags.
25811 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
25813 (quotearg_buffer_restyled): Handle new flag to elide outer
25816 Quotearg part 2: add flag that can control NUL elision.
25817 * lib/quotearg.h (set_quoting_flags): New prototype.
25818 * lib/quotearg.c (struct quoting_options): Add flag field.
25819 (set_quoting_flags): New function.
25820 (quotearg_buffer_restyled): Add flags parameter.
25821 (quotearg_alloc_mem): Set the flag if length cannot be returned.
25822 (quotearg_n_options): Set the flag, since length cannot be
25824 (quoting_options_from_style): Default flags correctly.
25826 Quotearg part 1: more wrappers, restore quotearg_char state.
25827 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
25828 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
25829 (quotearg_colon_mem): New wrappers.
25830 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
25831 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
25833 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
25834 (quotearg_colon_mem): New functions.
25836 2008-02-11 Bruno Haible <bruno@clisp.org>
25838 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
25839 library in the current directory: it does not work with parallel make.
25840 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25842 2008-02-11 Bruno Haible <bruno@clisp.org>
25844 * .gitattributes: New file.
25846 2008-02-11 Jim Meyering <meyering@redhat.com>
25848 useless-if-before-free: Fix reversed exit values.
25849 * build-aux/useless-if-before-free: Use correct values
25850 for EXIT_MATCH and EXIT_NO_MATCH.
25852 * build-aux/useless-if-before-free: Close stdout carefully.
25854 2008-02-10 Bruno Haible <bruno@clisp.org>
25856 New module 'git-merge-changelog'.
25857 * modules/git-merge-changelog: New file.
25858 * lib/git-merge-changelog.c: New file.
25860 2008-02-10 Jim Meyering <meyering@redhat.com>
25862 useless-if-before-free: New option: --list (-l).
25864 useless-if-before-free: Don't exit immediately upon open failure.
25865 * build-aux/useless-if-before-free: Exit 2 for errors.
25866 Upon failure to open a file, don't exit immediately.
25867 Rather, just warn and continue with any remaining files.
25869 2008-02-10 Bruno Haible <bruno@clisp.org>
25871 New abstract list operation 'node_set_value'.
25872 * lib/gl_list.h (gl_list_node_set_value): New function.
25873 (struct gl_list_implementation): New field node_set_value.
25874 * lib/gl_list.c (gl_list_node_set_value): New function.
25875 * lib/gl_array_list.c (gl_array_node_set_value): New function.
25876 (gl_array_list_implementation): Update.
25877 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
25878 (gl_carray_list_implementation): Update.
25879 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
25880 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
25881 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
25882 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
25883 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
25884 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
25885 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
25887 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
25888 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
25889 (gl_sublist_list_implementation): Update.
25891 2008-02-10 Bruno Haible <bruno@clisp.org>
25893 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
25894 Needed when ELEMENT is #defined to 'some_type *'.
25896 2008-02-10 Jim Meyering <meyering@redhat.com>
25898 New script and module: useless-if-before-free
25899 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
25900 * build-aux/useless-if-before-free: New file.
25901 * modules/useless-if-before-free: New file.
25903 * build-aux/gitlog-to-changelog: Use committer date, not author date.
25905 xstrtol_error: Fix typo.
25906 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
25907 s/exit_failure/exit_status/.
25909 2008-02-09 Jim Meyering <meyering@redhat.com>
25911 New script and module: gitlog-to-changelog
25912 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
25913 * modules/gitlog-to-changelog: New file.
25914 * build-aux/gitlog-to-changelog: New file.
25916 2008-02-08 Jim Meyering <meyering@redhat.com>
25918 Avoid two "parameter unused" warnings.
25919 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
25922 Use "git COMMAND", not "git-COMMAND".
25923 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
25924 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
25925 * build-aux/git-version-gen: Use "git status", not "git-status".
25927 2008-02-07 Bruno Haible <bruno@clisp.org>
25929 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
25930 Avoids a crash on Windows Vista.
25931 Reported by Adam Strzelecki <ono@java.pl> via
25932 Simon Josefsson <simon@josefsson.org>.
25934 2008-02-06 Bruno Haible <bruno@clisp.org>
25936 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
25937 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
25938 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
25939 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
25940 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25941 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25942 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
25943 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
25944 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25945 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25946 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25947 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25948 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25949 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25950 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25951 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
25953 * tests/test-snprintf-posix.h (test_function): Likewise.
25954 * tests/test-sprintf-posix.h (test_function): Likewise.
25955 * tests/test-vasprintf-posix.c (test_function): Likewise.
25956 * doc/posix-functions/fprintf.texi: Update.
25957 * doc/posix-functions/printf.texi: Update.
25958 * doc/posix-functions/snprintf.texi: Update.
25959 * doc/posix-functions/sprintf.texi: Update.
25960 * doc/posix-functions/vfprintf.texi: Update.
25961 * doc/posix-functions/vprintf.texi: Update.
25962 * doc/posix-functions/vsnprintf.texi: Update.
25963 * doc/posix-functions/vsprintf.texi: Update.
25964 Reported by Peter Fales <psfales@alcatel-lucent.com>.
25966 2008-02-06 Bruno Haible <bruno@clisp.org>
25968 Fix bug introduced on 2008-01-26.
25969 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
25971 2008-02-06 Bruno Haible <bruno@clisp.org>
25973 Fix bug introduced on 2007-06-10.
25974 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
25975 !NEED_PRINTF_FLAG_ZERO.
25977 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
25979 getloadavg: use libperfstat on AIX5
25980 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
25982 2008-02-03 Bruno Haible <bruno@clisp.org>
25984 * lib/diffseq.h: Add comments about required #includes.
25985 Reported by Michael Biggs <gnulib@doubleplum.net>.
25987 2008-02-01 Bruno Haible <bruno@clisp.org>
25989 * users.txt: Add gnuit.
25991 2008-01-31 Bruno Haible <bruno@clisp.org>
25993 * lib/md4.c (set_uint32): Mark as inline.
25994 * lib/md5.c (set_uint32): Likewise.
25995 * lib/sha1.c (set_uint32): Likewise.
25996 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
25997 * m4/md5.m4 (gl_MD5): Likewise.
25998 * m4/sha1.m4 (gl_SHA1): Likewise.
26000 2008-01-31 Jim Meyering <meyering@redhat.com>
26002 Use "sizeof VAR", rather than a literal "4".
26003 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
26004 * lib/md4.c (md4_read_ctx): Likewise.
26005 * lib/sha1.c (sha1_read_ctx): Likewise.
26007 2008-01-31 Simon Josefsson <simon@josefsson.org>
26009 * tests/test-sha1.c: New file, based on test-md5.c.
26011 * modules/crypto/sha1-tests: New file.
26013 2008-01-31 Simon Josefsson <simon@josefsson.org>
26015 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
26017 2008-01-31 Jim Meyering <meyering@redhat.com>
26019 Prefer "sizeof v" over the equivalent "4".
26020 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
26021 * lib/md5.c (set_uint32): Likewise.
26022 * lib/sha1.c (set_uint32): Likewise.
26024 2008-01-31 Simon Josefsson <simon@josefsson.org>
26026 * lib/sha1.c (set_uint32): Mark function as static.
26028 2008-01-31 Simon Josefsson <simon@josefsson.org>
26030 md2: clarify comments to say that alignment is not required.
26031 * lib/md2.h: Remove warning about alignment in comment.
26032 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
26033 never been required.
26035 2008-01-31 Simon Josefsson <simon@josefsson.org>
26037 md4: adapt alignment constraint fix from sha1.
26038 * lib/md4.c (set_uint32): New function, from sha1.c
26039 (md4_read_ctx): Use it.
26040 (md4_finish_ctx): Doc fix.
26041 * lib/md4.h: Doc fix.
26043 2008-01-31 Simon Josefsson <simon@josefsson.org>
26045 md5: adapt alignment constraint fix from sha1.
26046 * lib/md5.c (set_uint32): New function, from sha1.c
26047 (md5_read_ctx): Use it.
26048 (md5_finish_ctx): Doc fix.
26049 * lib/md5.h: Doc fix.
26051 2008-01-30 Peter Palfrader <weasel@debian.org>
26053 sha1: remove the result buffer alignment constraint
26054 * lib/sha1.c (set_uint32): New function.
26055 (sha1_read_ctx): Rewrite to remove the result buffer alignment
26057 (sha1_finish_ctx): Remove comment warning about alignment constraint.
26058 * lib/sha1.h: Likewise.
26060 2008-01-30 Andreas Schwab <schwab@suse.de>
26061 Bruno Haible <bruno@clisp.org>
26063 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
26064 correct definition of LDBL_MIN_EXP.
26066 2008-01-30 Karl Berry <karl@gnu.org>
26068 * config/srclist-update: try to preserve x bit on updates.
26069 * config/srclistvars.sh: update for karl.
26071 2008-01-29 Jim Meyering <meyering@redhat.com>
26073 vasnprintf.c: Avoid warning about unused label
26074 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
26075 "overflow" label definition and associated code with the
26076 same cpp condition that guards the sole use of that label.
26078 2008-01-26 Bruno Haible <bruno@clisp.org>
26080 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
26081 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
26082 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
26083 * lib/isnanl-nolibm.h (isnanl): Likewise.
26084 Reported by Paul Eggert <eggert@cs.ucla.edu>.
26086 2008-01-26 Bruno Haible <bruno@clisp.org>
26088 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
26089 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
26091 2008-01-26 Bruno Haible <bruno@clisp.org>
26093 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
26094 GCC >= 4.0 built-in.
26095 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
26097 2008-01-26 Bruno Haible <bruno@clisp.org>
26099 Rename isnan, applicable to 'double' only, to isnand.
26100 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
26101 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
26102 (configure.ac): Update.
26103 (Include): Replace "isnan.h" with "isnand.h".
26104 * m4/isnand.m4: Renamed from m4/isnan.m4.
26105 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
26106 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
26107 instead of isnan.c.
26108 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
26109 instead of HAVE_ISNAN_IN_LIBC.
26110 (isnand): Renamed from isnan.
26111 * lib/isnand.c: New file.
26112 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
26113 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
26114 (Makefile.am): Update.
26115 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
26116 Include isnand.h instead of isnan.h.
26117 (main): Test isnand instead of isnan.
26118 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
26120 * modules/frexp (Depends-on): Likewise.
26121 * modules/frexp-tests (Depends-on): Likewise.
26122 * modules/frexp-nolibm (Depends-on): Likewise.
26123 * modules/frexp-nolibm-tests (Depends-on): Likewise.
26124 * modules/isfinite (Depends-on): Likewise.
26125 * modules/round-tests (Depends-on): Likewise.
26126 * modules/signbit (Depends-on): Likewise.
26127 * modules/signbit-tests (Depends-on): Likewise.
26128 * modules/snprintf-posix (Depends-on): Likewise.
26129 * modules/sprintf-posix (Depends-on): Likewise.
26130 * modules/trunc-tests (Depends-on): Likewise.
26131 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26132 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26133 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26134 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26135 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26136 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26137 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26138 * modules/vasnprintf-posix (Depends-on): Likewise.
26139 * modules/vasprintf-posix (Depends-on): Likewise.
26140 * modules/vfprintf-posix (Depends-on): Likewise.
26141 * modules/vsnprintf-posix (Depends-on): Likewise.
26142 * modules/vsprintf-posix (Depends-on): Likewise.
26143 * lib/frexp.c: Include isnand.h instead of isnan.h.
26144 (ISNAN): Set to isnand instead of isnan.
26145 * lib/isfinite.c: Include isnand.h instead of isnan.h.
26146 (gl_isfinited): Use isnand instead of isnan.
26147 * lib/signbitd.c: Include isnand.h instead of isnan.h.
26148 (gl_signbitd): Use isnand instead of isnan.
26149 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
26150 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
26151 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
26152 (main): Use isnand instead of isnan.
26153 * tests/test-round1.c: Include isnand.h.
26154 (main): Use isnand instead of isnan.
26155 * tests/test-round2.c: Include isnand.h instead of isnan.h.
26156 (ISNAN): Set to isnand instead of isnan.
26157 * tests/test-trunc1.c: Include isnand.h.
26158 (main): Use isnand instead of isnan.
26159 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
26160 (equal): Use isnand instead of isnan.
26161 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
26163 * NEWS: Mention the change.
26165 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
26166 Bruno Haible <bruno@clisp.org>
26168 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
26169 the GCC builtins for signbits are present and set
26170 REPLACE_SIGNBIT_USING_GCC if so.
26171 * lib/math.in.h (signbit): Define using GCC builtins if
26172 REPLACE_SIGNBIT_USING_GCC is set.
26173 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
26174 REPLACE_SIGNBIT_USING_GCC.
26175 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
26177 2008-01-25 Jim Meyering <meyering@redhat.com>
26179 Prefer <config.h> over "config.h". See autoconf doc for explanation.
26180 * lib/poll.c: Include <config.h>, not "config.h".
26181 * tests/test-getaddrinfo.c: Likewise.
26183 2008-01-25 Simon Josefsson <simon@josefsson.org>
26185 * modules/sockets-tests: New file.
26187 2008-01-24 Simon Josefsson <simon@josefsson.org>
26189 * modules/sockets: New module, can be used to call WSA_Startup and
26190 WSA_Cleanup when needed.
26192 * lib/sockets.h, lib/sockets.c: New files.
26194 * m4/sockets.m4: New file.
26196 * tests/test-sockets.c: New file.
26198 2008-01-19 Bruno Haible <bruno@clisp.org>
26200 * doc/posix-headers: Renamed from doc/headers.
26201 * doc/posix-functions: Renamed from doc/functions.
26202 * doc/gnulib.texi: Update.
26204 2008-01-19 Bruno Haible <bruno@clisp.org>
26206 * doc/glibc-functions/strcasestr.texi: Include contents of
26207 doc/functions/strcasestr.texi, fixing the list of platforms.
26208 * doc/functions/strcasestr.texi: Remove file.
26210 2008-01-19 Bruno Haible <bruno@clisp.org>
26212 * doc/glibc-functions/memmem.texi: Include contents of
26213 doc/functions/memmem.texi.
26214 * doc/functions/memmem.texi: Remove file.
26216 2008-01-18 Bruno Haible <bruno@clisp.org>
26218 * doc/glibc-functions/*.texi: New files.
26219 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
26220 to use the new files.
26222 2008-01-17 Bruno Haible <bruno@clisp.org>
26224 * tests/test-gethostname.c (main): Fix printf statement.
26226 2008-01-17 Simon Josefsson <simon@josefsson.org>
26228 * modules/gethostname-tests: New file.
26230 * tests/test-gethostname.c: New file.
26232 2008-01-17 Simon Josefsson <simon@josefsson.org>
26234 * lib/gethostname.c: Include string.h unconditionally, strncpy is
26235 used by the UNAME case. Reported by Bruno Haible
26238 2008-01-17 Eric Blake <ebb9@byu.net>
26240 Convert c-strcasestr to be more efficient.
26241 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
26242 (Depends-on): Add c-strcase, remove malloca, strnlen.
26243 * tests/test-c-strcasestr.c (main): Enhance test.
26244 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
26246 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
26248 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
26249 Use it in creating po/Makevars.
26251 2008-01-15 Simon Josefsson <simon@josefsson.org>
26253 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
26254 Applications that requires it should initialize libgcrypt
26257 2008-01-16 Simon Josefsson <simon@josefsson.org>
26259 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
26261 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
26263 Fix problem with getdate on mingw32 reported by Simon Josefsson
26264 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
26265 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
26266 tzname", when deciding whether to declare tzname.
26267 * lib/strftime.c (tzname): Likewise.
26269 2008-01-15 Bruno Haible <bruno@clisp.org>
26271 Work around a MacOS X 10.5 bug in frexpl().
26272 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
26273 * doc/functions/frexpl.texi: Document the bug.
26274 Reported by Elias Pipping <pipping@gentoo.org>.
26276 2008-01-14 Eric Blake <ebb9@byu.net>
26278 Touch up previous patch.
26279 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
26280 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
26282 Convert strcasestr module to use Two-Way algorithm.
26283 * modules/strcasestr-simple: New module, based on the old
26284 strcasestr, but with Two-Way rather than KMP.
26285 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
26286 * lib/string.in.h (rpl_strcasestr): Declare.
26287 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
26289 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
26290 * modules/string (Makefile.am): Support strcasestr.
26291 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
26292 * modules/strcasestr-tests (Depends-on): Check for alarm.
26293 * tests/test-strcasestr.c: Augment test.
26294 * lib/str-two-way.h: Clean up stray macro.
26295 * NEWS: Document new module.
26296 * MODULES.html.sh (string handling): Likewise.
26297 * doc/functions/strcasestr.texi: New file.
26298 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
26299 here, since it is not a POSIX function.
26301 2008-01-14 Colin Watson <cjwatson@debian.org>
26302 Bruno Haible <bruno@clisp.org>
26304 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
26305 works fine; if not, set REPLACE_STRSIGNAL.
26306 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
26307 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26309 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
26310 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
26311 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
26313 2008-01-14 Bruno Haible <bruno@clisp.org>
26315 * modules/strsignal (Include): Change to <string.h>.
26317 2008-01-14 Colin Watson <cjwatson@debian.org>
26319 * modules/argp (Notice): Add a notice recommending to change
26321 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
26323 2008-01-13 Colin Watson <cjwatson@debian.org>
26325 * modules/strsignal-tests: New file.
26326 * tests/test-strsignal.c: New file.
26328 * lib/strsignal.c: New file, from glibc with modifications.
26329 * lib/siglist.h: New file, from glibc with modifications.
26330 * lib/string.in.h (strsignal): New declaration.
26331 * m4/strsignal.m4: New file.
26332 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26333 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
26334 * modules/strsignal: New file.
26335 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
26336 HAVE_DECL_STRSIGNAL.
26338 2008-01-13 Bruno Haible <bruno@clisp.org>
26340 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
26341 locale encoding is not ASCII. Needed for OpenBSD 4.0.
26342 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
26343 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26345 2008-01-13 Bruno Haible <bruno@clisp.org>
26347 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
26348 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
26349 * lib/argp.h (__attribute__): Likewise.
26350 * lib/c-stack.c (__attribute__): Likewise.
26351 * lib/error.h (__attribute__): Likewise.
26352 * lib/fts.c (__attribute__): Likewise.
26353 * lib/openat.h (__attribute__): Likewise.
26354 * lib/stdio.in.h (__attribute__): Likewise.
26355 * lib/string.in.h (__attribute__): Likewise.
26356 * lib/utimens.c (__attribute__): Likewise.
26357 * lib/vasnprintf.h (__attribute__): Likewise.
26358 * lib/xalloc.h (__attribute__): Likewise.
26359 * lib/xprintf.h (__attribute__): Likewise.
26360 * lib/xstrtol.h (__attribute__): Likewise.
26361 * lib/xvasprintf.h (__attribute__): Likewise.
26363 2008-01-12 Bruno Haible <bruno@clisp.org>
26365 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
26366 * doc/glibc-headers/a.out.texi: New file.
26367 * doc/glibc-headers/aliases.texi: New file.
26368 * doc/glibc-headers/alloca.texi: New file.
26369 * doc/glibc-headers/ar.texi: New file.
26370 * doc/glibc-headers/argp.texi: New file.
26371 * doc/glibc-headers/argz.texi: New file.
26372 * doc/glibc-headers/byteswap.texi: New file.
26373 * doc/glibc-headers/crypt.texi: New file.
26374 * doc/glibc-headers/endian.texi: New file.
26375 * doc/glibc-headers/envz.texi: New file.
26376 * doc/glibc-headers/err.texi: New file.
26377 * doc/glibc-headers/error.texi: New file.
26378 * doc/glibc-headers/execinfo.texi: New file.
26379 * doc/glibc-headers/fpu_control.texi: New file.
26380 * doc/glibc-headers/fstab.texi: New file.
26381 * doc/glibc-headers/fts.texi: New file.
26382 * doc/glibc-headers/getopt.texi: New file.
26383 * doc/glibc-headers/ieee754.texi: New file.
26384 * doc/glibc-headers/ifaddrs.texi: New file.
26385 * doc/glibc-headers/libintl.texi: New file.
26386 * doc/glibc-headers/mcheck.texi: New file.
26387 * doc/glibc-headers/mntent.texi: New file.
26388 * doc/glibc-headers/obstack.texi: New file.
26389 * doc/glibc-headers/paths.texi: New file.
26390 * doc/glibc-headers/printf.texi: New file.
26391 * doc/glibc-headers/pty.texi: New file.
26392 * doc/glibc-headers/resolv.texi: New file.
26393 * doc/glibc-headers/shadow.texi: New file.
26394 * doc/glibc-headers/sysexits.texi: New file.
26395 * doc/glibc-headers/ttyent.texi: New file.
26397 2008-01-12 Jim Meyering <meyering@redhat.com>
26399 announce-gen: emit Gnulib's git-based version string.
26400 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
26401 New option --gnulib-version=V, where V is expected to be
26402 the output of running git describe in the gnulib directory.
26403 (get_tool_versions): Request feedback on xdelta. I suspect it's
26404 not useful, and plan to stop publishing an xdelta file with each
26407 * build-aux/announce-gen: Also check for lzma-compressed files.
26409 2008-01-11 Bruno Haible <bruno@clisp.org>
26411 * tests/test-memmem.c (main): Increase maximum allowed time.
26412 * tests/test-strstr.c (main): Likewise.
26414 2008-01-11 Bruno Haible <bruno@clisp.org>
26416 * doc/functions/memmem.texi: Add more precisions about platforms.
26417 * doc/functions/strstr.texi: Likewise.
26419 2008-01-10 Eric Blake <ebb9@byu.net>
26421 * m4/strstr.m4: Delete cruft from copy-n-paste.
26422 Reported by Bruno Haible.
26424 2008-01-10 Bruno Haible <bruno@clisp.org>
26426 Make c-strstr rely on strstr.
26427 * lib/c-strstr.c: Don't include str-kmp.h.
26428 (c_strstr): Define in terms of strstr.
26429 * modules/c-strstr (Files): Remove lib/str-kmp.h.
26430 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
26432 2008-01-10 Bruno Haible <bruno@clisp.org>
26434 * doc/gnulib.texi (String Functions in C Locale): New section.
26435 * doc/c-ctype.texi: New file.
26436 * doc/c-strcase.texi: New file.
26437 * doc/c-strcaseeq.texi: New file.
26438 * doc/c-strcasestr.texi: New file.
26439 * doc/c-strstr.texi: New file.
26440 * doc/c-strtod.texi: New file.
26441 * doc/c-strtold.texi: New file.
26443 2008-01-10 Eric Blake <ebb9@byu.net>
26445 * lib/relocatable.h: Fix a comment.
26447 2008-01-10 Eric Blake <ebb9@byu.net>
26449 Share two-way algorithm.
26450 * lib/str-two-way.h: New file, merged from...
26451 * lib/memmem.c: ...here...
26452 * lib/strstr.c: ...and here.
26453 * modules/memmem (Files): Use it.
26454 * modules/strstr (Files): Likewise.
26456 Avoid quadratic strstr implementations.
26457 * lib/strstr.c: New file.
26458 * m4/strstr.m4: Likewise.
26459 * modules/strstr: Likewise.
26460 * modules/strstr-tests: Likewise.
26461 * tests/test-strstr.c: Likewise.
26462 * lib/string.in.h (rpl_strstr): Declare.
26463 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
26464 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
26465 * modules/string (Makefile.am): Likewise.
26466 * MODULES.html.sh (string handling): Mention new module.
26467 * doc/functions/strstr.texi (strstr): Document the bug.
26469 2008-01-10 Bruno Haible <bruno@clisp.org>
26471 * lib/relocatable.h (relocate): State whether result is freshly
26473 * lib/relocatable.c (relocate): Return a freshly allocated string
26474 instead of a pointer to a privately held string.
26475 Reported by Sylvain Beucler <beuc@gnu.org>.
26477 2008-01-10 Colin Watson <cjwatson@debian.org>
26479 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
26480 s/S_ISNLK/S_ISLNK/.
26482 2008-01-09 Bruno Haible <bruno@clisp.org>
26484 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
26486 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
26487 if it's only a guess.
26488 * modules/memmem: Simplify by depending on memmem-simple.
26490 2008-01-09 Bruno Haible <bruno@clisp.org>
26492 Work around OpenBSD 4.0 tdelete() bug.
26493 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
26494 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
26495 macros and don't redefine the enum values.
26496 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
26497 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
26498 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
26500 2008-01-09 Bruno Haible <bruno@clisp.org>
26502 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
26503 (main): Don't perform the tests if setlocale did not install a UTF-8
26504 locale. Needed on OpenBSD 4.0.
26505 * modules/wcwidth-tests (Depends-on): Add localcharset.
26507 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
26509 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
26510 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
26511 * NEWS: announce this.
26512 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
26514 2008-01-09 Simon Josefsson <simon@josefsson.org>
26515 and Eric Blake <ebb9@byu.net>
26517 Add memmem-simple module.
26518 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
26519 (gl_FUNC_MEMMEM): Separate performance from presence checks.
26520 * modules/memmem-simple: New file.
26521 * modules/memmem (Description): Tweak.
26522 * MODULES.html.sh (string handling): Mention new module.
26523 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
26524 addressed by memmem-simple.
26525 * NEWS: Document the difference.
26527 2008-01-09 Eric Blake <ebb9@byu.net>
26529 Give gcc some memmem optimization hints.
26530 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
26531 (strcasestr): Declare as pure.
26532 * modules/memmem (Maintainer): Claim my implementation.
26534 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26536 Support AIX 6.1 and higher.
26537 * build-aux/config.libpath: Likewise.
26538 * build-aux/config.rpath: Likewise.
26540 2008-01-08 Jim Meyering <meyering@redhat.com>
26541 Bruno Haible <bruno@clisp.org>
26543 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
26544 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
26545 Reported by Peter Fales in
26546 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
26548 2008-01-08 Bruno Haible <bruno@clisp.org>
26550 * modules/unictype/category-of (Depends-on): Add
26551 unictype/category-none.
26552 * modules/unictype/category-and-tests (Depends-on): Add
26553 unictype/category-{L,N,Lu,Nd}.
26554 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
26555 * modules/unictype/category-or-tests (Depends-on): Add
26556 unictype/category-{L,N}.
26557 * modules/unictype/category-name-tests (Depends-on): Add
26558 unictype/category-{Z,Nl}.
26559 Reported by Simon Josefsson.
26561 2008-01-08 Bruno Haible <bruno@clisp.org>
26563 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
26565 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
26566 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
26567 Reported by Peter Miller <millerp@canb.auug.org.au>.
26569 2008-01-08 Eric Blake <ebb9@byu.net>
26571 Rewrite memmem to guarantee linear complexity without malloc.
26572 * lib/memmem.c (memmem): Use Two-Way rather than
26573 Knuth-Morris-Pratt, to allow O(1) space usage.
26574 (critical_factorization, two_way_short_needle)
26575 (two_way_long_needle): New functions.
26576 (knuth_morris_pratt): Delete.
26577 * modules/memmem (Depends-on): No longer need malloca or stdbool.
26579 * tests/test-memmem.c (main): Add tests for periodic needle and
26580 sublinear performance.
26581 * doc/functions/memmem.texi (memmem): Document other deficiencies
26582 in cygwin and older glibc.
26584 2008-01-08 Bruno Haible <bruno@clisp.org>
26586 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
26589 2008-01-08 Mike Frysinger <vapier@gentoo.org>
26591 Add a configure time option: --disable-acl.
26592 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
26593 AC_ARG_ENABLE(acl).
26595 2008-01-06 Simon Josefsson <simon@josefsson.org>
26597 * tests/test-localename.c: Don't include obsolete "setenv.h".
26599 * modules/localename-tests (Depends-on): Need unsetenv.
26601 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26603 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
26605 2008-01-06 Colin Watson <cjwatson@debian.org>
26607 * users.txt: Add man-db.
26609 2008-01-07 Bruno Haible <bruno@clisp.org>
26611 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
26612 previous section name.
26614 2008-01-07 Bruno Haible <bruno@clisp.org>
26616 * lib/progname.c (set_program_name): Don't strip off a leading
26617 "lt-" prefix outside a .libs directory.
26618 Suggested by Paul Eggert.
26620 2008-01-01 Sylvain Beucler <beuc@gnu.org>
26621 Bruno Haible <bruno@clisp.org>
26623 Improve memory cleanup in 'relocatable' module.
26624 * lib/relocatable.h (compute_curr_prefix): Change return type to
26626 * lib/relocatable.c (compute_curr_prefix): Change return type to
26627 'char *'. Free curr_installdir after use.
26628 (relocate): Free curr_prefix_better after use.
26629 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
26631 2008-01-01 Bruno Haible <bruno@clisp.org>
26633 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
26634 failure on older glibc systems.
26635 Reported by Peter Fales <psfales@alcatel-lucent.com>.
26637 2008-01-05 Eric Blake <ebb9@byu.net>
26639 Avoid quadratic system memmem.
26640 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
26641 Reported by Ralf Wildenhues.
26643 Fix memmem test for mingw.
26644 * modules/memmem-tests (configure.ac): Check for alarm.
26645 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
26647 * doc/functions/memmem.texi: New file.
26648 * doc/gnulib.texi (Function Substitutes): Add memmem.
26649 Reported by Bruno Haible.
26651 2008-01-04 Bruno Haible <bruno@clisp.org>
26653 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
26654 Require gl_HEADER_STRINGS_H_DEFAULTS, not
26655 gl_HEADER_STRING_H_DEFAULTS.
26657 2008-01-04 Eric Blake <ebb9@byu.net>
26659 Shorten duration of memmem test.
26660 * tests/test-memmem.c (main): Use alarm to declare failure if test
26661 is taking too long.
26662 Reported by Ralf Wildenhues.
26664 2007-12-21 Simon Josefsson <simon@josefsson.org>
26666 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
26667 string, needed by strerror.
26669 2008-01-03 Colin Watson <cjwatson@debian.org>
26670 Bruno Haible <bruno@clisp.org>
26672 * doc/gnulib-tool.texi (Localization): New section.
26674 2008-01-02 Bruno Haible <bruno@clisp.org>
26676 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
26677 variables to 'unsigned char *' type.
26678 Reported by Paul Eggert.
26680 2008-01-02 Jim Meyering <jim@meyering.net>
26682 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
26684 2007-12-31 Jim Meyering <jim@meyering.net>
26686 Avoid use of private FTS type name.
26687 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
26689 2007-12-30 Karl Berry <karl@gnu.org>
26691 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
26692 work around defect in Texinfo and/or the standalone Info browser.
26694 2007-12-30 Bruno Haible <bruno@clisp.org>
26696 Unify 5 copies of the KMP code.
26697 * lib/str-kmp.h: New file.
26698 * lib/c-strcasestr.c: Include str-kmp.h.
26699 (knuth_morris_pratt): Remove function.
26700 (c_strcasestr): Update.
26701 * lib/c-strstr.c: Include str-kmp.h.
26702 (knuth_morris_pratt): Remove function.
26703 (c_strcasestr): Update.
26704 * lib/mbscasestr.c: Include str-kmp.h.
26705 (knuth_morris_pratt_unibyte): Remove function.
26706 * lib/mbsstr.c: Include str-kmp.h.
26707 (knuth_morris_pratt_unibyte): Remove function.
26708 * lib/strcasestr.c: Include str-kmp.h.
26709 (knuth_morris_pratt): Remove function.
26710 (strcasestr): Update.
26711 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
26712 * modules/c-strstr (Files): Likewise.
26713 * modules/mbscasestr (Files): Likewise.
26714 * modules/mbsstr (Files): Likewise.
26715 * modules/strcasestr (Files): Likewise.
26716 Suggested by Paul Eggert.
26718 2007-12-30 Bruno Haible <bruno@clisp.org>
26720 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
26723 2007-12-30 Bruno Haible <bruno@clisp.org>
26725 * lib/xmalloca.h: Include xalloc.h.
26726 (xnmalloca): New macro.
26728 2007-12-30 Bruno Haible <bruno@clisp.org>
26730 * lib/malloca.h (nmalloca): New macro.
26731 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
26732 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
26733 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
26734 knuth_morris_pratt_multibyte): Likewise.
26735 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
26736 knuth_morris_pratt_multibyte): Likewise.
26737 * lib/memmem.c (knuth_morris_pratt): Likewise.
26738 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
26740 2007-12-25 Bruno Haible <bruno@clisp.org>
26742 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
26743 * lib/glob.c: Don't include openat.h.
26744 (link_exists2_p): Add back the code that deals with the
26745 !GLOB_ALTDIRFUNC case.
26746 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
26747 let it do the filename concatenation.
26748 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
26749 * modules/glob (Depends-on): Remove openat.
26751 2007-12-31 Bruno Haible <bruno@clisp.org>
26753 * modules/dirfd (License): Change to LGPLv2+.
26754 Approved by Jim Meyering.
26756 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
26758 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
26759 when multiplying M by sizeof (size_t).
26761 2007-12-10 Martin Lambers <marlam@marlam.de>
26763 Override getpagesize on mingw.
26764 * lib/getpagesize.c: New file.
26765 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
26766 * modules/getpagesize (Files): Add lib/getpagesize.c.
26767 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
26768 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26769 REPLACE_GETPAGESIZE.
26770 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
26772 2007-12-25 Bruno Haible <bruno@clisp.org>
26774 * modules/localcharset (Notice): New field.
26775 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
26776 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
26778 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
26779 Bruno Haible <bruno@clisp.org>
26781 Avoid using the syntax symbol() in formatted documentation.
26782 * MODULES.html.sh (func_module): When replacing symbol() with a
26783 hyperlink, remove the parentheses. Show an error if some remain.
26784 Recognize and render the '...' syntax.
26785 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
26786 Rework. Add paragraph about GCC's inlining.
26787 * doc/alloca.texi: Likewise.
26788 * doc/error.texi: Remove parentheses from symbol reference.
26789 * doc/gnulib-intro.texi: Likewise.
26790 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
26791 * modules/fnmatch (Description): Reword to say "the ... function".
26792 * modules/full-read (Description): Likewise.
26793 * modules/full-write (Description): Likewise.
26794 * modules/safe-read (Description): Likewise.
26795 * modules/safe-write (Description): Likewise.
26796 * modules/strchrnul (Description): Likewise.
26797 * modules/trim (Description): Likewise.
26798 * modules/error (Description): Remove parentheses from symbol
26800 * modules/verror (Description): Likewise.
26801 Reported by Karl Berry.
26803 2007-12-25 Bruno Haible <bruno@clisp.org>
26805 Fixup after 2007-10-16 commit.
26806 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
26808 2007-12-24 Bruno Haible <bruno@clisp.org>
26810 Make --enable-relocatable work with DESTDIR.
26811 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
26812 to compute installdir from destprog.
26813 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
26814 also set the RELOC_DESTDIR variable.
26815 Reported by Левашев Иван <octagram@bluebottle.com>.
26817 2007-12-24 Bruno Haible <bruno@clisp.org>
26819 Fix link error due to xalloc_die().
26820 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
26822 * lib/relocwrapper.c: Update comments.
26823 * build-aux/install-reloc: Remove xreadlink.c from file list.
26824 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
26826 Reported by Левашев Иван <octagram@bluebottle.com>.
26828 2007-12-24 Bruno Haible <bruno@clisp.org>
26830 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
26831 * lib/setenv.h: Remove file.
26832 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
26834 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
26835 (Depends-on): Add stdlib.
26836 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
26838 (Include): Replace setenv.h with <stdlib.h>.
26839 * modules/unsetenv: New file.
26840 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
26841 * lib/unsetenv.c: Include <stdlib.h> first.
26842 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
26843 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
26844 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
26845 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
26846 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
26847 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
26848 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
26849 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
26850 * doc/functions/unsetenv.texi: Update.
26851 * modules/xsetenv (Depends-on): Add unsetenv.
26852 * modules/getdate (Depends-on): Likewise.
26853 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
26854 * lib/xsetenv.c: Don't include setenv.h.
26855 * lib/getdate.y: Likewise.
26856 * lib/relocwrapper.c: Likewise.
26857 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
26858 (Depends-on): Add stdlib.
26859 * NEWS: Mention the changes.
26860 Reported by Левашев Иван <octagram@bluebottle.com>.
26862 2007-12-23 Bruno Haible <bruno@clisp.org>
26864 * lib/memmem.c (memmem): Use lowercase variable names. Tab
26867 2007-12-23 Bruno Haible <bruno@clisp.org>
26869 * lib/c-strcasestr.c: Add more comments.
26870 * lib/c-strstr.c: Likewise.
26871 * lib/mbscasestr.c: Likewise.
26872 * lib/mbsstr.c: Likewise.
26873 * lib/strcasestr.c: Likewise.
26874 * lib/memmem.c: Likewise.
26876 2007-12-23 Bruno Haible <bruno@clisp.org>
26878 * tests/test-memmem.c: Include <string.h> first.
26880 2007-12-22 Bruno Haible <bruno@clisp.org>
26882 * gnulib-tool (func_create_testdir): Change $auxdir while generating
26883 the contents of $testsbase.
26884 Reported by Ralf Wildenhues.
26886 2007-12-22 Bruno Haible <bruno@clisp.org>
26888 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
26889 two variables local_ldadd_before, local_ldadd_last.
26891 2007-12-20 Eric Blake <ebb9@byu.net>
26893 Work around circular library issue when cross-compiling.
26894 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
26895 that progname.o does not need to pull in rpl_memcmp.
26897 2007-12-19 Eric Blake <ebb9@byu.net>
26899 Fix memmem to avoid O(n^2) worst-case complexity.
26900 * lib/memmem.c (knuth_morris_pratt): New function.
26901 (memmem): Use it if first few naive iterations fail.
26902 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
26903 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
26904 * modules/memchr (License): Likewise.
26905 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
26907 * tests/test-memmem.c: Rewrite, borrowing ideas from
26908 test-mbsstr1.c; the old version wouldn't even compile!
26909 * modules/memmem-tests: New file.
26910 * lib/string.in.h (rpl_memmem): Add declaration.
26911 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
26912 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
26915 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
26917 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
26918 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
26919 before any system include files, and undef after them all. This
26920 should fix a problem on VMS reported by John E. Malmberg in
26921 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
26923 2007-12-17 Eric Blake <ebb9@byu.net>
26925 Revert addition of verify, for BSD/OS.
26926 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
26927 can't handle large files, for the sake of obsolete platforms.
26928 * modules/fseeko (Depends-on): Remove verify.
26929 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
26930 * doc/functions/ftello.texi (ftello): Likewise.
26931 * doc/functions/fgetpos.texi (fgetpos): Likewise.
26932 Reported by Larry Jones.
26934 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
26936 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
26937 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
26939 2007-12-17 Jim Meyering <meyering@redhat.com>
26941 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
26942 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
26943 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
26944 * modules/getcwd (Depends-on): Add openat.
26945 Reported by Petr Salinger.
26947 2007-12-17 Bruno Haible <bruno@clisp.org>
26949 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
26950 avoid a segmentation fault of the configure test on x86_64 systems.
26952 2007-12-15 Jim Meyering <meyering@redhat.com>
26954 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
26956 2007-12-13 Eric Blake <ebb9@byu.net>
26958 Another fseek test.
26959 * tests/test-fseek.c (main): Also test ungetc handling.
26960 * tests/test-fseeko.c (main): Likewise.
26961 * modules/fseeko (Depends-on): Add verify.
26962 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
26964 Reported by Larry Jones.
26966 Fix fseeko on mingw.
26967 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
26970 Beef up fseek tests.
26971 * tests/test-fseek.c (main): Also test eof handling.
26972 * tests/test-fseeko.c (main): Likewise.
26973 Reported by Larry Jones.
26975 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
26977 Fix fseeko on BSD-based platforms.
26978 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
26981 2007-12-12 Eric Blake <ebb9@byu.net>
26983 Allow circular dependency of separate libtests.a
26984 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
26987 2007-12-11 Eric Blake <ebb9@byu.net>
26989 Fix bug with -0.0L in previous patch.
26990 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
26991 * tests/test-isnan.c (main): Also test on zeroes.
26992 * tests/test-isnanf.c (main): Likewise.
26993 * tests/test-isnanl.h (main): Likewise.
26995 Detect pseudo-denormals on x86 even when cross-compiling.
26996 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
26997 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
26998 invalid bit patterns that happen to satisfy ==.
27000 Avoid link failures with separate libtests.a.
27001 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
27002 last, to satisfy circular dependencies.
27004 2007-12-11 Eric Blake <ebb9@byu.net>
27005 and Bruno Haible <bruno@clisp.org>
27007 Fix OpenBSD 4.0 <float.h> handling of long double.
27008 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
27009 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
27010 * doc/headers/float.texi (float.h): Document OpenBSD bug.
27012 2007-12-11 Jim Meyering <meyering@redhat.com>
27014 * users.txt: Add libvirt.
27016 Support versions of autoconf prior to 2.59c.
27017 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
27018 if it is not already defined.
27020 2007-12-09 Bruno Haible <bruno@clisp.org>
27022 Let 'gnulib-tool --import' collect sources needed for the tests in
27023 tests/ rather than in lib/.
27024 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
27025 argument. If true, add rules to generate libtests.a, and put libtests.a
27026 into $(LDADD). Consider source files in subdirectories and set
27028 (func_emit_initmacro_start, func_emit_initmacro_end,
27029 func_emit_initmacro_done): Pass all arguments explicitly.
27030 (func_import): Determine two module lists main_modules,
27031 testsrelated_modules. Determine use_libtests. Determine two variables
27032 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
27033 instead of just sed_transform_lib_file. Determine two variables
27034 main_files and testsrelated_files. Compute 'files' as the union of
27035 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
27036 func_add_or_update. In the generated gnulib-comp.m4, collect the
27037 object files for tests/ in different variables than those for lib/.
27038 Substitute LIBTESTS_LIBDEPS.
27039 (func_create_testdir): Combine the uses_subdirs results from
27040 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
27042 2007-12-09 Bruno Haible <bruno@clisp.org>
27044 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
27045 the build-aux directory.
27047 2007-12-09 Bruno Haible <bruno@clisp.org>
27049 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
27050 introduced on 2006-09-09.
27052 2007-12-07 Jim Meyering <meyering@redhat.com>
27054 Let these macros work also with autoconf-2.59.
27055 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
27056 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
27057 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27059 2007-12-06 Jim Meyering <meyering@redhat.com>
27061 Avoid a configure-time syntax error in gl_FUNC_ACL.
27062 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
27063 function in each branch, before testing the cache variable.
27065 2007-12-04 Eric Blake <ebb9@byu.net>
27067 Make scripts executable.
27068 * build-aux/config.guess: Add execute permissions.
27069 * build-aux/config.sub: Likewise.
27070 * build-aux/gendocs.sh: Likewise.
27072 Fix frexp on mingw.
27073 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
27075 * doc/functions/frexp.texi (frexp): Document the bug.
27077 Make cygwin fseeko check more reliable.
27078 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
27079 version numbers, rather than unrelated feature check.
27080 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
27081 * doc/functions/ftello.texi (ftello): Likewise.
27082 Reported by Bruno Haible.
27084 * m4/strerror.m4: Bump version number.
27086 2007-12-03 Bruno Haible <bruno@clisp.org>
27088 * doc/functions/mprotect.texi: Mention the mingw problem.
27090 2007-12-03 Eric Blake <ebb9@byu.net>
27092 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
27093 REPLACE_STRERROR is initialized before this macro.
27095 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
27097 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
27098 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
27099 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
27100 put -lsec in even for programs other than 'ls'. This fixes a problem
27101 for gettext reported by Bruno Haible in
27102 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
27103 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
27104 Add support for Solaris 10. This isn't efficient, but should get the
27107 2007-12-03 James Youngman <jay@gnu.org>
27109 * doc/regexprops-generic.texi: change "an close-group" to "a
27110 close-group" and "illegal" to "not allowed".
27112 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27114 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
27115 pr_byname.h. Needed for the rare case when the maintainer has done
27116 "make maintainer-clean" in the source directory and then attempts a
27117 build outside the source directory.
27118 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
27121 2007-12-02 Martin Lambers <marlam@marlam.de>
27122 Bruno Haible <bruno@clisp.org>
27124 * lib/getpagesize.h: Remove file.
27125 * lib/unistd.in.h: Include declaration of getpagesize here.
27126 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
27127 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
27129 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
27130 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27131 * modules/getpagesize (Files): Remove lib/getpagesize.h.
27132 (Depends-on): Add unistd.
27133 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27134 (Include): Use <unistd.h> instead of getpagesize.h.
27135 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
27136 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27137 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
27138 gl_GETPAGESIZE invocation, already handled by module dependency.
27139 * lib/pagealign_alloc.c: Don't include getpagesize.h.
27141 2007-12-02 Bruno Haible <bruno@clisp.org>
27143 * modules/strings-tests: New file.
27144 * tests/test-strings.c: New file.
27146 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
27147 * lib/strings.in.h: New file.
27148 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
27149 * m4/strings_h.m4: New file.
27150 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
27151 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
27152 * modules/strings: New file.
27153 * modules/string (Makefile.am): Update.
27154 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
27155 Reported by Karl Berry.
27157 2007-12-01 Eric Blake <ebb9@byu.net>
27159 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
27160 accomodate fix in cygwin 1.5.25.
27162 2007-12-01 Jim Meyering <meyering@redhat.com>
27164 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
27165 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
27166 that would inhibit utf8-optimization of a regexp containing line-
27167 or buffer-anchors, e.g., `^', `$'.
27169 2007-11-30 Bruno Haible <bruno@clisp.org>
27171 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
27172 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
27173 glthread_recursive_lock_init.
27174 * lib/lock.c (glthread_recursive_lock_init)
27175 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
27176 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27178 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
27180 New function qset_acl, like set_acl but with syscall semantics.
27181 * lib/acl.h (qset_acl): New decl.
27182 * lib/acl.c (qset_acl): New function.
27183 (set_acl): Use new function. Use more-consistent diagnostics.
27185 2007-11-28 Jim Meyering <meyering@redhat.com>
27187 * modules/physmem (License): Change from GPL to LGPLv2+.
27189 2007-11-26 Bruno Haible <bruno@clisp.org>
27191 * lib/vasnprintf.c (decode_long_double): Don't abort if the
27192 'long double' type has excess precision.
27193 Reported by Jim Meyering in
27194 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
27196 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27198 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
27199 Sync from <http://gnu.org/licenses>.
27200 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
27201 with license text from same location.
27202 * doc/maintain.texi, doc/standards.texi: Sync from
27203 <http://savannah.gnu.org/projects/gnustandards>.
27205 2007-11-22 Ondřej Vašík <ovasik@redhat.com>
27206 and Jim Meyering <meyering@redhat.com>
27208 Adjust getdate' grammar to accept a slightly more regular language.
27209 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
27210 Before, the former was rejected.
27211 * lib/getdate.y (digits_to_date_time): New function, factored
27213 (number): ...here. Just call digits_to_date_time.
27214 (hybrid): New non-terminal to handle an <unsigned number,
27215 signed relative offset> sequence consistently.
27217 2007-11-18 Jim Meyering <meyering@redhat.com>
27219 Pull my changes from coreutils:
27220 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
27221 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
27222 use of $gnulib_tool_option_extras, so that it's separated from the
27223 preceding argument.
27225 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
27226 * build-aux/bootstrap (cp_mark_as_generated): Create any required
27227 parent destination directories before copying a file into place.
27229 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
27231 bootstrap: work also with 4-argument variant of AC_INIT
27232 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
27234 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
27236 Port test-getaddrinfo to Solaris.
27237 Problem reported by Bruno Haible in
27238 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
27239 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
27240 explanation of setting 'hints'.
27241 Don't reject an implementation merely because it returns EAI_SERVICE.
27242 (EAI_SERVICE): Define to 0 if not defined.
27244 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
27246 The license of gnu-make and posix-shell is now "GPLed build tool".
27247 * modules/gnu-make (License): Likewise.
27248 * modules/posix-shell (License): Likewise.
27250 New module posix-shell, for determining a POSIX shell
27251 or perhaps something that is close enough to a POSIX shell.
27252 * m4/posix-shell.m4: New file.
27253 * modules/posix-shell: New file.
27255 * MODULES.html.sh: Mention new module.
27257 New module gnu-make, for determining whether we're using GNU Make.
27258 * m4/gnu-make.m4: New file.
27259 * modules/gnu-make: New file.
27260 * MODULES.html.sh: Mention new module.
27262 2007-11-14 Jim Meyering <meyering@redhat.com>
27264 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
27265 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
27266 use this macro to create a function _definition_.
27267 Remove useless "#undef ARGMATCH_DIE".
27269 2007-11-14 Bruno Haible <bruno@clisp.org>
27271 * lib/config.charset: Update for OpenBSD 4.1.
27272 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
27274 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
27276 Document 64-bit #if problems in stdint.texi.
27277 * doc/headers/stdint.texi (stdint.h): Mention problems with
27278 64-bit-#if, and how to work around them.
27280 Don't insist on 'long long int' support in the preprocessor. It
27281 breaks too many things. For example, PRIdMAX still uses a 'long
27282 long int' format with the latest Sun compiler, even though
27283 HAVE_LONG_LONG_INT isn't defined due to that compiler's
27284 preprocessor problem. This causes the latest coreutils to dump
27285 core on Solaris 10 sparc with the Sun C compiler.
27286 Instead, fix the 2007-10-16 problem in a different way, by evaluating
27287 the troublesome expressions at configure-time, not at #if-time.
27288 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
27290 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
27291 compile-time C checks, done at 'configure'-time.
27292 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
27293 * modules/inttypes (Makefile): Substitute the new symbols that
27294 gl_INTTYPES_H now generates.
27295 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
27297 2007-11-12 Bruno Haible <bruno@clisp.org>
27299 Tests for Unicode character classification functions.
27301 * modules/unictype/bidicategory-byname-tests: New file.
27302 * modules/unictype/bidicategory-name-tests: New file.
27303 * modules/unictype/bidicategory-of-tests: New file.
27304 * modules/unictype/bidicategory-test-tests: New file.
27305 * modules/unictype/block-list-tests: New file.
27306 * modules/unictype/block-of-tests: New file.
27307 * modules/unictype/block-test-tests: New file.
27308 * modules/unictype/category-C-tests: New file.
27309 * modules/unictype/category-Cc-tests: New file.
27310 * modules/unictype/category-Cf-tests: New file.
27311 * modules/unictype/category-Cn-tests: New file.
27312 * modules/unictype/category-Co-tests: New file.
27313 * modules/unictype/category-Cs-tests: New file.
27314 * modules/unictype/category-L-tests: New file.
27315 * modules/unictype/category-Ll-tests: New file.
27316 * modules/unictype/category-Lm-tests: New file.
27317 * modules/unictype/category-Lo-tests: New file.
27318 * modules/unictype/category-Lt-tests: New file.
27319 * modules/unictype/category-Lu-tests: New file.
27320 * modules/unictype/category-M-tests: New file.
27321 * modules/unictype/category-Mc-tests: New file.
27322 * modules/unictype/category-Me-tests: New file.
27323 * modules/unictype/category-Mn-tests: New file.
27324 * modules/unictype/category-N-tests: New file.
27325 * modules/unictype/category-Nd-tests: New file.
27326 * modules/unictype/category-Nl-tests: New file.
27327 * modules/unictype/category-No-tests: New file.
27328 * modules/unictype/category-P-tests: New file.
27329 * modules/unictype/category-Pc-tests: New file.
27330 * modules/unictype/category-Pd-tests: New file.
27331 * modules/unictype/category-Pe-tests: New file.
27332 * modules/unictype/category-Pf-tests: New file.
27333 * modules/unictype/category-Pi-tests: New file.
27334 * modules/unictype/category-Po-tests: New file.
27335 * modules/unictype/category-Ps-tests: New file.
27336 * modules/unictype/category-S-tests: New file.
27337 * modules/unictype/category-Sc-tests: New file.
27338 * modules/unictype/category-Sk-tests: New file.
27339 * modules/unictype/category-Sm-tests: New file.
27340 * modules/unictype/category-So-tests: New file.
27341 * modules/unictype/category-Z-tests: New file.
27342 * modules/unictype/category-Zl-tests: New file.
27343 * modules/unictype/category-Zp-tests: New file.
27344 * modules/unictype/category-Zs-tests: New file.
27345 * modules/unictype/category-and-not-tests: New file.
27346 * modules/unictype/category-and-tests: New file.
27347 * modules/unictype/category-byname-tests: New file.
27348 * modules/unictype/category-name-tests: New file.
27349 * modules/unictype/category-none-tests: New file.
27350 * modules/unictype/category-of-tests: New file.
27351 * modules/unictype/category-or-tests: New file.
27352 * modules/unictype/category-test-withtable-tests: New file.
27353 * modules/unictype/combining-class-tests: New file.
27354 * modules/unictype/ctype-alnum-tests: New file.
27355 * modules/unictype/ctype-alpha-tests: New file.
27356 * modules/unictype/ctype-blank-tests: New file.
27357 * modules/unictype/ctype-cntrl-tests: New file.
27358 * modules/unictype/ctype-digit-tests: New file.
27359 * modules/unictype/ctype-graph-tests: New file.
27360 * modules/unictype/ctype-lower-tests: New file.
27361 * modules/unictype/ctype-print-tests: New file.
27362 * modules/unictype/ctype-punct-tests: New file.
27363 * modules/unictype/ctype-space-tests: New file.
27364 * modules/unictype/ctype-upper-tests: New file.
27365 * modules/unictype/ctype-xdigit-tests: New file.
27366 * modules/unictype/decimal-digit-tests: New file.
27367 * modules/unictype/digit-tests: New file.
27368 * modules/unictype/mirror-tests: New file.
27369 * modules/unictype/numeric-tests: New file.
27370 * modules/unictype/property-alphabetic-tests: New file.
27371 * modules/unictype/property-ascii-hex-digit-tests: New file.
27372 * modules/unictype/property-bidi-arabic-digit-tests: New file.
27373 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
27374 * modules/unictype/property-bidi-block-separator-tests: New file.
27375 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
27376 * modules/unictype/property-bidi-common-separator-tests: New file.
27377 * modules/unictype/property-bidi-control-tests: New file.
27378 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
27379 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
27380 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
27381 * modules/unictype/property-bidi-european-digit-tests: New file.
27382 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
27383 * modules/unictype/property-bidi-left-to-right-tests: New file.
27384 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
27385 * modules/unictype/property-bidi-other-neutral-tests: New file.
27386 * modules/unictype/property-bidi-pdf-tests: New file.
27387 * modules/unictype/property-bidi-segment-separator-tests: New file.
27388 * modules/unictype/property-bidi-whitespace-tests: New file.
27389 * modules/unictype/property-byname-tests: New file.
27390 * modules/unictype/property-combining-tests: New file.
27391 * modules/unictype/property-composite-tests: New file.
27392 * modules/unictype/property-currency-symbol-tests: New file.
27393 * modules/unictype/property-dash-tests: New file.
27394 * modules/unictype/property-decimal-digit-tests: New file.
27395 * modules/unictype/property-default-ignorable-code-point-tests: New file.
27396 * modules/unictype/property-deprecated-tests: New file.
27397 * modules/unictype/property-diacritic-tests: New file.
27398 * modules/unictype/property-extender-tests: New file.
27399 * modules/unictype/property-format-control-tests: New file.
27400 * modules/unictype/property-grapheme-base-tests: New file.
27401 * modules/unictype/property-grapheme-extend-tests: New file.
27402 * modules/unictype/property-grapheme-link-tests: New file.
27403 * modules/unictype/property-hex-digit-tests: New file.
27404 * modules/unictype/property-hyphen-tests: New file.
27405 * modules/unictype/property-id-continue-tests: New file.
27406 * modules/unictype/property-id-start-tests: New file.
27407 * modules/unictype/property-ideographic-tests: New file.
27408 * modules/unictype/property-ids-binary-operator-tests: New file.
27409 * modules/unictype/property-ids-trinary-operator-tests: New file.
27410 * modules/unictype/property-ignorable-control-tests: New file.
27411 * modules/unictype/property-iso-control-tests: New file.
27412 * modules/unictype/property-join-control-tests: New file.
27413 * modules/unictype/property-left-of-pair-tests: New file.
27414 * modules/unictype/property-line-separator-tests: New file.
27415 * modules/unictype/property-logical-order-exception-tests: New file.
27416 * modules/unictype/property-lowercase-tests: New file.
27417 * modules/unictype/property-math-tests: New file.
27418 * modules/unictype/property-non-break-tests: New file.
27419 * modules/unictype/property-not-a-character-tests: New file.
27420 * modules/unictype/property-numeric-tests: New file.
27421 * modules/unictype/property-other-alphabetic-tests: New file.
27422 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
27423 * modules/unictype/property-other-grapheme-extend-tests: New file.
27424 * modules/unictype/property-other-id-continue-tests: New file.
27425 * modules/unictype/property-other-id-start-tests: New file.
27426 * modules/unictype/property-other-lowercase-tests: New file.
27427 * modules/unictype/property-other-math-tests: New file.
27428 * modules/unictype/property-other-uppercase-tests: New file.
27429 * modules/unictype/property-paired-punctuation-tests: New file.
27430 * modules/unictype/property-paragraph-separator-tests: New file.
27431 * modules/unictype/property-pattern-syntax-tests: New file.
27432 * modules/unictype/property-pattern-white-space-tests: New file.
27433 * modules/unictype/property-private-use-tests: New file.
27434 * modules/unictype/property-punctuation-tests: New file.
27435 * modules/unictype/property-quotation-mark-tests: New file.
27436 * modules/unictype/property-radical-tests: New file.
27437 * modules/unictype/property-sentence-terminal-tests: New file.
27438 * modules/unictype/property-soft-dotted-tests: New file.
27439 * modules/unictype/property-space-tests: New file.
27440 * modules/unictype/property-terminal-punctuation-tests: New file.
27441 * modules/unictype/property-test-tests: New file.
27442 * modules/unictype/property-titlecase-tests: New file.
27443 * modules/unictype/property-unassigned-code-value-tests: New file.
27444 * modules/unictype/property-unified-ideograph-tests: New file.
27445 * modules/unictype/property-uppercase-tests: New file.
27446 * modules/unictype/property-variation-selector-tests: New file.
27447 * modules/unictype/property-white-space-tests: New file.
27448 * modules/unictype/property-xid-continue-tests: New file.
27449 * modules/unictype/property-xid-start-tests: New file.
27450 * modules/unictype/property-zero-width-tests: New file.
27451 * modules/unictype/scripts-tests: New file.
27452 * modules/unictype/syntax-c-ident-tests: New file.
27453 * modules/unictype/syntax-c-whitespace-tests: New file.
27454 * modules/unictype/syntax-java-ident-tests: New file.
27455 * modules/unictype/syntax-java-whitespace-tests: New file.
27456 * tests/unictype/test-bidi_byname.c: New file.
27457 * tests/unictype/test-bidi_name.c: New file.
27458 * tests/unictype/test-bidi_of.c: New file.
27459 * tests/unictype/test-bidi_test.c: New file.
27460 * tests/unictype/test-block_list.c: New file.
27461 * tests/unictype/test-block_of.c: New file.
27462 * tests/unictype/test-block_test.c: New file.
27463 * tests/unictype/test-categ_and.c: New file.
27464 * tests/unictype/test-categ_and_not.c: New file.
27465 * tests/unictype/test-categ_byname.c: New file.
27466 * tests/unictype/test-categ_name.c: New file.
27467 * tests/unictype/test-categ_none.c: New file.
27468 * tests/unictype/test-categ_of.c: New file.
27469 * tests/unictype/test-categ_or.c: New file.
27470 * tests/unictype/test-categ_test_withtable.c: New file.
27471 * tests/unictype/test-combining.c: New file.
27472 * tests/unictype/test-decdigit.c: New file.
27473 * tests/unictype/test-digit.c: New file.
27474 * tests/unictype/test-mirror.c: New file.
27475 * tests/unictype/test-numeric.c: New file.
27476 * tests/unictype/test-pr_byname.c: New file.
27477 * tests/unictype/test-pr_test.c: New file.
27478 * tests/unictype/test-predicate-part1.h: New file.
27479 * tests/unictype/test-predicate-part2.h: New file.
27480 * tests/unictype/test-scripts.c: New file.
27481 * tests/unictype/test-sy_c_ident.c: New file.
27482 * tests/unictype/test-sy_java_ident.c: New file.
27484 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
27486 * tests/unictype/test-categ_Cc.c: Likewise.
27487 * tests/unictype/test-categ_Cf.c: Likewise.
27488 * tests/unictype/test-categ_Cn.c: Likewise.
27489 * tests/unictype/test-categ_Co.c: Likewise.
27490 * tests/unictype/test-categ_Cs.c: Likewise.
27491 * tests/unictype/test-categ_L.c: Likewise.
27492 * tests/unictype/test-categ_Ll.c: Likewise.
27493 * tests/unictype/test-categ_Lm.c: Likewise.
27494 * tests/unictype/test-categ_Lo.c: Likewise.
27495 * tests/unictype/test-categ_Lt.c: Likewise.
27496 * tests/unictype/test-categ_Lu.c: Likewise.
27497 * tests/unictype/test-categ_M.c: Likewise.
27498 * tests/unictype/test-categ_Mc.c: Likewise.
27499 * tests/unictype/test-categ_Me.c: Likewise.
27500 * tests/unictype/test-categ_Mn.c: Likewise.
27501 * tests/unictype/test-categ_N.c: Likewise.
27502 * tests/unictype/test-categ_Nd.c: Likewise.
27503 * tests/unictype/test-categ_Nl.c: Likewise.
27504 * tests/unictype/test-categ_No.c: Likewise.
27505 * tests/unictype/test-categ_P.c: Likewise.
27506 * tests/unictype/test-categ_Pc.c: Likewise.
27507 * tests/unictype/test-categ_Pd.c: Likewise.
27508 * tests/unictype/test-categ_Pe.c: Likewise.
27509 * tests/unictype/test-categ_Pf.c: Likewise.
27510 * tests/unictype/test-categ_Pi.c: Likewise.
27511 * tests/unictype/test-categ_Po.c: Likewise.
27512 * tests/unictype/test-categ_Ps.c: Likewise.
27513 * tests/unictype/test-categ_S.c: Likewise.
27514 * tests/unictype/test-categ_Sc.c: Likewise.
27515 * tests/unictype/test-categ_Sk.c: Likewise.
27516 * tests/unictype/test-categ_Sm.c: Likewise.
27517 * tests/unictype/test-categ_So.c: Likewise.
27518 * tests/unictype/test-categ_Z.c: Likewise.
27519 * tests/unictype/test-categ_Zl.c: Likewise.
27520 * tests/unictype/test-categ_Zp.c: Likewise.
27521 * tests/unictype/test-categ_Zs.c: Likewise.
27522 * tests/unictype/test-ctype_alnum.c: Likewise.
27523 * tests/unictype/test-ctype_alpha.c: Likewise.
27524 * tests/unictype/test-ctype_blank.c: Likewise.
27525 * tests/unictype/test-ctype_cntrl.c: Likewise.
27526 * tests/unictype/test-ctype_digit.c: Likewise.
27527 * tests/unictype/test-ctype_graph.c: Likewise.
27528 * tests/unictype/test-ctype_lower.c: Likewise.
27529 * tests/unictype/test-ctype_print.c: Likewise.
27530 * tests/unictype/test-ctype_punct.c: Likewise.
27531 * tests/unictype/test-ctype_space.c: Likewise.
27532 * tests/unictype/test-ctype_upper.c: Likewise.
27533 * tests/unictype/test-ctype_xdigit.c: Likewise.
27534 * tests/unictype/test-decdigit.h: Likewise.
27535 * tests/unictype/test-digit.h: Likewise.
27536 * tests/unictype/test-numeric.h: Likewise.
27537 * tests/unictype/test-pr_alphabetic.c: Likewise.
27538 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
27539 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
27540 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
27541 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
27542 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
27543 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
27544 * tests/unictype/test-pr_bidi_control.c: Likewise.
27545 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
27546 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
27547 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
27548 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
27549 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
27550 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
27551 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
27552 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
27553 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
27554 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
27555 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
27556 * tests/unictype/test-pr_combining.c: Likewise.
27557 * tests/unictype/test-pr_composite.c: Likewise.
27558 * tests/unictype/test-pr_currency_symbol.c: Likewise.
27559 * tests/unictype/test-pr_dash.c: Likewise.
27560 * tests/unictype/test-pr_decimal_digit.c: Likewise.
27561 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
27562 * tests/unictype/test-pr_deprecated.c: Likewise.
27563 * tests/unictype/test-pr_diacritic.c: Likewise.
27564 * tests/unictype/test-pr_extender.c: Likewise.
27565 * tests/unictype/test-pr_format_control.c: Likewise.
27566 * tests/unictype/test-pr_grapheme_base.c: Likewise.
27567 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
27568 * tests/unictype/test-pr_grapheme_link.c: Likewise.
27569 * tests/unictype/test-pr_hex_digit.c: Likewise.
27570 * tests/unictype/test-pr_hyphen.c: Likewise.
27571 * tests/unictype/test-pr_id_continue.c: Likewise.
27572 * tests/unictype/test-pr_id_start.c: Likewise.
27573 * tests/unictype/test-pr_ideographic.c: Likewise.
27574 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
27575 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
27576 * tests/unictype/test-pr_ignorable_control.c: Likewise.
27577 * tests/unictype/test-pr_iso_control.c: Likewise.
27578 * tests/unictype/test-pr_join_control.c: Likewise.
27579 * tests/unictype/test-pr_left_of_pair.c: Likewise.
27580 * tests/unictype/test-pr_line_separator.c: Likewise.
27581 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
27582 * tests/unictype/test-pr_lowercase.c: Likewise.
27583 * tests/unictype/test-pr_math.c: Likewise.
27584 * tests/unictype/test-pr_non_break.c: Likewise.
27585 * tests/unictype/test-pr_not_a_character.c: Likewise.
27586 * tests/unictype/test-pr_numeric.c: Likewise.
27587 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
27588 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
27589 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
27590 * tests/unictype/test-pr_other_id_continue.c: Likewise.
27591 * tests/unictype/test-pr_other_id_start.c: Likewise.
27592 * tests/unictype/test-pr_other_lowercase.c: Likewise.
27593 * tests/unictype/test-pr_other_math.c: Likewise.
27594 * tests/unictype/test-pr_other_uppercase.c: Likewise.
27595 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
27596 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
27597 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
27598 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
27599 * tests/unictype/test-pr_private_use.c: Likewise.
27600 * tests/unictype/test-pr_punctuation.c: Likewise.
27601 * tests/unictype/test-pr_quotation_mark.c: Likewise.
27602 * tests/unictype/test-pr_radical.c: Likewise.
27603 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
27604 * tests/unictype/test-pr_soft_dotted.c: Likewise.
27605 * tests/unictype/test-pr_space.c: Likewise.
27606 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
27607 * tests/unictype/test-pr_titlecase.c: Likewise.
27608 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
27609 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
27610 * tests/unictype/test-pr_uppercase.c: Likewise.
27611 * tests/unictype/test-pr_variation_selector.c: Likewise.
27612 * tests/unictype/test-pr_white_space.c: Likewise.
27613 * tests/unictype/test-pr_xid_continue.c: Likewise.
27614 * tests/unictype/test-pr_xid_start.c: Likewise.
27615 * tests/unictype/test-pr_zero_width.c: Likewise.
27616 * tests/unictype/test-sy_c_whitespace.c: Likewise.
27617 * tests/unictype/test-sy_java_whitespace.c: Likewise.
27619 2007-11-12 Bruno Haible <bruno@clisp.org>
27621 Unicode character classification functions.
27622 * lib/unictype.h: New file.
27623 * modules/unictype/base: New file.
27624 * modules/unictype/category-L: New file.
27625 * modules/unictype/category-Lu: New file.
27626 * modules/unictype/category-Ll: New file.
27627 * modules/unictype/category-Lt: New file.
27628 * modules/unictype/category-Lm: New file.
27629 * modules/unictype/category-Lo: New file.
27630 * modules/unictype/category-M: New file.
27631 * modules/unictype/category-Mn: New file.
27632 * modules/unictype/category-Mc: New file.
27633 * modules/unictype/category-Me: New file.
27634 * modules/unictype/category-N: New file.
27635 * modules/unictype/category-Nd: New file.
27636 * modules/unictype/category-Nl: New file.
27637 * modules/unictype/category-No: New file.
27638 * modules/unictype/category-P: New file.
27639 * modules/unictype/category-Pc: New file.
27640 * modules/unictype/category-Pd: New file.
27641 * modules/unictype/category-Ps: New file.
27642 * modules/unictype/category-Pe: New file.
27643 * modules/unictype/category-Pi: New file.
27644 * modules/unictype/category-Pf: New file.
27645 * modules/unictype/category-Po: New file.
27646 * modules/unictype/category-S: New file.
27647 * modules/unictype/category-Sm: New file.
27648 * modules/unictype/category-Sc: New file.
27649 * modules/unictype/category-Sk: New file.
27650 * modules/unictype/category-So: New file.
27651 * modules/unictype/category-Z: New file.
27652 * modules/unictype/category-Zs: New file.
27653 * modules/unictype/category-Zl: New file.
27654 * modules/unictype/category-Zp: New file.
27655 * modules/unictype/category-C: New file.
27656 * modules/unictype/category-Cc: New file.
27657 * modules/unictype/category-Cf: New file.
27658 * modules/unictype/category-Cs: New file.
27659 * modules/unictype/category-Co: New file.
27660 * modules/unictype/category-Cn: New file.
27661 * modules/unictype/category-or: New file.
27662 * modules/unictype/category-of: New file.
27663 * modules/unictype/category-test: New file.
27664 * modules/unictype/category-test-withtable: New file.
27665 * modules/unictype/category-byname: New file.
27666 * modules/unictype/category-none: New file.
27667 * modules/unictype/category-and: New file.
27668 * modules/unictype/category-and-not: New file.
27669 * modules/unictype/category-name: New file.
27670 * modules/unictype/combining-class: New file.
27671 * modules/unictype/category-all: New file.
27672 * modules/unictype/bidicategory-all: New file.
27673 * modules/unictype/bidicategory-byname: New file.
27674 * modules/unictype/bidicategory-name: New file.
27675 * modules/unictype/bidicategory-of: New file.
27676 * modules/unictype/bidicategory-test: New file.
27677 * modules/unictype/decimal-digit: New file.
27678 * modules/unictype/digit: New file.
27679 * modules/unictype/numeric: New file.
27680 * modules/unictype/mirror: New file.
27681 * modules/unictype/property-white-space: New file.
27682 * modules/unictype/property-alphabetic: New file.
27683 * modules/unictype/property-other-alphabetic: New file.
27684 * modules/unictype/property-not-a-character: New file.
27685 * modules/unictype/property-default-ignorable-code-point: New file.
27686 * modules/unictype/property-other-default-ignorable-code-point: New
27688 * modules/unictype/property-deprecated: New file.
27689 * modules/unictype/property-logical-order-exception: New file.
27690 * modules/unictype/property-variation-selector: New file.
27691 * modules/unictype/property-private-use: New file.
27692 * modules/unictype/property-unassigned-code-value: New file.
27693 * modules/unictype/property-uppercase: New file.
27694 * modules/unictype/property-other-uppercase: New file.
27695 * modules/unictype/property-lowercase: New file.
27696 * modules/unictype/property-other-lowercase: New file.
27697 * modules/unictype/property-titlecase: New file.
27698 * modules/unictype/property-soft-dotted: New file.
27699 * modules/unictype/property-id-start: New file.
27700 * modules/unictype/property-other-id-start: New file.
27701 * modules/unictype/property-id-continue: New file.
27702 * modules/unictype/property-other-id-continue: New file.
27703 * modules/unictype/property-xid-start: New file.
27704 * modules/unictype/property-xid-continue: New file.
27705 * modules/unictype/property-pattern-white-space: New file.
27706 * modules/unictype/property-pattern-syntax: New file.
27707 * modules/unictype/property-join-control: New file.
27708 * modules/unictype/property-grapheme-base: New file.
27709 * modules/unictype/property-grapheme-extend: New file.
27710 * modules/unictype/property-other-grapheme-extend: New file.
27711 * modules/unictype/property-grapheme-link: New file.
27712 * modules/unictype/property-bidi-control: New file.
27713 * modules/unictype/property-bidi-left-to-right: New file.
27714 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
27715 * modules/unictype/property-bidi-arabic-right-to-left: New file.
27716 * modules/unictype/property-bidi-european-digit: New file.
27717 * modules/unictype/property-bidi-eur-num-separator: New file.
27718 * modules/unictype/property-bidi-eur-num-terminator: New file.
27719 * modules/unictype/property-bidi-arabic-digit: New file.
27720 * modules/unictype/property-bidi-common-separator: New file.
27721 * modules/unictype/property-bidi-block-separator: New file.
27722 * modules/unictype/property-bidi-segment-separator: New file.
27723 * modules/unictype/property-bidi-whitespace: New file.
27724 * modules/unictype/property-bidi-non-spacing-mark: New file.
27725 * modules/unictype/property-bidi-boundary-neutral: New file.
27726 * modules/unictype/property-bidi-pdf: New file.
27727 * modules/unictype/property-bidi-embedding-or-override: New file.
27728 * modules/unictype/property-bidi-other-neutral: New file.
27729 * modules/unictype/property-hex-digit: New file.
27730 * modules/unictype/property-ascii-hex-digit: New file.
27731 * modules/unictype/property-ideographic: New file.
27732 * modules/unictype/property-unified-ideograph: New file.
27733 * modules/unictype/property-radical: New file.
27734 * modules/unictype/property-ids-binary-operator: New file.
27735 * modules/unictype/property-ids-trinary-operator: New file.
27736 * modules/unictype/property-zero-width: New file.
27737 * modules/unictype/property-space: New file.
27738 * modules/unictype/property-non-break: New file.
27739 * modules/unictype/property-iso-control: New file.
27740 * modules/unictype/property-format-control: New file.
27741 * modules/unictype/property-dash: New file.
27742 * modules/unictype/property-hyphen: New file.
27743 * modules/unictype/property-punctuation: New file.
27744 * modules/unictype/property-line-separator: New file.
27745 * modules/unictype/property-paragraph-separator: New file.
27746 * modules/unictype/property-quotation-mark: New file.
27747 * modules/unictype/property-sentence-terminal: New file.
27748 * modules/unictype/property-terminal-punctuation: New file.
27749 * modules/unictype/property-currency-symbol: New file.
27750 * modules/unictype/property-math: New file.
27751 * modules/unictype/property-other-math: New file.
27752 * modules/unictype/property-paired-punctuation: New file.
27753 * modules/unictype/property-left-of-pair: New file.
27754 * modules/unictype/property-combining: New file.
27755 * modules/unictype/property-composite: New file.
27756 * modules/unictype/property-decimal-digit: New file.
27757 * modules/unictype/property-numeric: New file.
27758 * modules/unictype/property-diacritic: New file.
27759 * modules/unictype/property-extender: New file.
27760 * modules/unictype/property-ignorable-control: New file.
27761 * modules/unictype/property-test: New file.
27762 * modules/unictype/property-byname: New file.
27763 * modules/unictype/property-all: New file.
27764 * modules/unictype/scripts: New file.
27765 * modules/unictype/scripts-all: New file.
27766 * modules/unictype/block-of: New file.
27767 * modules/unictype/block-test: New file.
27768 * modules/unictype/block-list: New file.
27769 * modules/unictype/block-all: New file.
27770 * modules/unictype/syntax-c-whitespace: New file.
27771 * modules/unictype/syntax-java-whitespace: New file.
27772 * modules/unictype/syntax-c-ident: New file.
27773 * modules/unictype/syntax-java-ident: New file.
27774 * modules/unictype/ctype-alnum: New file.
27775 * modules/unictype/ctype-alpha: New file.
27776 * modules/unictype/ctype-cntrl: New file.
27777 * modules/unictype/ctype-digit: New file.
27778 * modules/unictype/ctype-graph: New file.
27779 * modules/unictype/ctype-lower: New file.
27780 * modules/unictype/ctype-print: New file.
27781 * modules/unictype/ctype-punct: New file.
27782 * modules/unictype/ctype-space: New file.
27783 * modules/unictype/ctype-upper: New file.
27784 * modules/unictype/ctype-xdigit: New file.
27785 * modules/unictype/ctype-blank: New file.
27786 * lib/unictype/bidi_byname.c: New file.
27787 * lib/unictype/bidi_name.c: New file.
27788 * lib/unictype/bidi_of.c: New file.
27789 * lib/unictype/bidi_test.c: New file.
27790 * lib/unictype/bitmap.h: New file.
27791 * lib/unictype/block_test.c: New file.
27792 * lib/unictype/blocks.c: New file.
27793 * lib/unictype/categ_C.c: New file.
27794 * lib/unictype/categ_Cc.c: New file.
27795 * lib/unictype/categ_Cf.c: New file.
27796 * lib/unictype/categ_Cn.c: New file.
27797 * lib/unictype/categ_Co.c: New file.
27798 * lib/unictype/categ_Cs.c: New file.
27799 * lib/unictype/categ_L.c: New file.
27800 * lib/unictype/categ_Ll.c: New file.
27801 * lib/unictype/categ_Lm.c: New file.
27802 * lib/unictype/categ_Lo.c: New file.
27803 * lib/unictype/categ_Lt.c: New file.
27804 * lib/unictype/categ_Lu.c: New file.
27805 * lib/unictype/categ_M.c: New file.
27806 * lib/unictype/categ_Mc.c: New file.
27807 * lib/unictype/categ_Me.c: New file.
27808 * lib/unictype/categ_Mn.c: New file.
27809 * lib/unictype/categ_N.c: New file.
27810 * lib/unictype/categ_Nd.c: New file.
27811 * lib/unictype/categ_Nl.c: New file.
27812 * lib/unictype/categ_No.c: New file.
27813 * lib/unictype/categ_P.c: New file.
27814 * lib/unictype/categ_Pc.c: New file.
27815 * lib/unictype/categ_Pd.c: New file.
27816 * lib/unictype/categ_Pe.c: New file.
27817 * lib/unictype/categ_Pf.c: New file.
27818 * lib/unictype/categ_Pi.c: New file.
27819 * lib/unictype/categ_Po.c: New file.
27820 * lib/unictype/categ_Ps.c: New file.
27821 * lib/unictype/categ_S.c: New file.
27822 * lib/unictype/categ_Sc.c: New file.
27823 * lib/unictype/categ_Sk.c: New file.
27824 * lib/unictype/categ_Sm.c: New file.
27825 * lib/unictype/categ_So.c: New file.
27826 * lib/unictype/categ_Z.c: New file.
27827 * lib/unictype/categ_Zl.c: New file.
27828 * lib/unictype/categ_Zp.c: New file.
27829 * lib/unictype/categ_Zs.c: New file.
27830 * lib/unictype/categ_and.c: New file.
27831 * lib/unictype/categ_and_not.c: New file.
27832 * lib/unictype/categ_byname.c: New file.
27833 * lib/unictype/categ_name.c: New file.
27834 * lib/unictype/categ_none.c: New file.
27835 * lib/unictype/categ_of.c: New file.
27836 * lib/unictype/categ_or.c: New file.
27837 * lib/unictype/categ_test.c: New file.
27838 * lib/unictype/combining.c: New file.
27839 * lib/unictype/ctype_alnum.c: New file.
27840 * lib/unictype/ctype_alpha.c: New file.
27841 * lib/unictype/ctype_blank.c: New file.
27842 * lib/unictype/ctype_cntrl.c: New file.
27843 * lib/unictype/ctype_digit.c: New file.
27844 * lib/unictype/ctype_graph.c: New file.
27845 * lib/unictype/ctype_lower.c: New file.
27846 * lib/unictype/ctype_print.c: New file.
27847 * lib/unictype/ctype_punct.c: New file.
27848 * lib/unictype/ctype_space.c: New file.
27849 * lib/unictype/ctype_upper.c: New file.
27850 * lib/unictype/ctype_xdigit.c: New file.
27851 * lib/unictype/decdigit.c: New file.
27852 * lib/unictype/digit.c: New file.
27853 * lib/unictype/identsyntaxmap.h: New file.
27854 * lib/unictype/mirror.c: New file.
27855 * lib/unictype/numeric.c: New file.
27856 * lib/unictype/pr_alphabetic.c: New file.
27857 * lib/unictype/pr_ascii_hex_digit.c: New file.
27858 * lib/unictype/pr_bidi_arabic_digit.c: New file.
27859 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
27860 * lib/unictype/pr_bidi_block_separator.c: New file.
27861 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
27862 * lib/unictype/pr_bidi_common_separator.c: New file.
27863 * lib/unictype/pr_bidi_control.c: New file.
27864 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
27865 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
27866 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
27867 * lib/unictype/pr_bidi_european_digit.c: New file.
27868 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
27869 * lib/unictype/pr_bidi_left_to_right.c: New file.
27870 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
27871 * lib/unictype/pr_bidi_other_neutral.c: New file.
27872 * lib/unictype/pr_bidi_pdf.c: New file.
27873 * lib/unictype/pr_bidi_segment_separator.c: New file.
27874 * lib/unictype/pr_bidi_whitespace.c: New file.
27875 * lib/unictype/pr_byname.c: New file.
27876 * lib/unictype/pr_byname.gperf: New file.
27877 * lib/unictype/pr_combining.c: New file.
27878 * lib/unictype/pr_composite.c: New file.
27879 * lib/unictype/pr_currency_symbol.c: New file.
27880 * lib/unictype/pr_dash.c: New file.
27881 * lib/unictype/pr_decimal_digit.c: New file.
27882 * lib/unictype/pr_default_ignorable_code_point.c: New file.
27883 * lib/unictype/pr_deprecated.c: New file.
27884 * lib/unictype/pr_diacritic.c: New file.
27885 * lib/unictype/pr_extender.c: New file.
27886 * lib/unictype/pr_format_control.c: New file.
27887 * lib/unictype/pr_grapheme_base.c: New file.
27888 * lib/unictype/pr_grapheme_extend.c: New file.
27889 * lib/unictype/pr_grapheme_link.c: New file.
27890 * lib/unictype/pr_hex_digit.c: New file.
27891 * lib/unictype/pr_hyphen.c: New file.
27892 * lib/unictype/pr_id_continue.c: New file.
27893 * lib/unictype/pr_id_start.c: New file.
27894 * lib/unictype/pr_ideographic.c: New file.
27895 * lib/unictype/pr_ids_binary_operator.c: New file.
27896 * lib/unictype/pr_ids_trinary_operator.c: New file.
27897 * lib/unictype/pr_ignorable_control.c: New file.
27898 * lib/unictype/pr_iso_control.c: New file.
27899 * lib/unictype/pr_join_control.c: New file.
27900 * lib/unictype/pr_left_of_pair.c: New file.
27901 * lib/unictype/pr_line_separator.c: New file.
27902 * lib/unictype/pr_logical_order_exception.c: New file.
27903 * lib/unictype/pr_lowercase.c: New file.
27904 * lib/unictype/pr_math.c: New file.
27905 * lib/unictype/pr_non_break.c: New file.
27906 * lib/unictype/pr_not_a_character.c: New file.
27907 * lib/unictype/pr_numeric.c: New file.
27908 * lib/unictype/pr_other_alphabetic.c: New file.
27909 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
27910 * lib/unictype/pr_other_grapheme_extend.c: New file.
27911 * lib/unictype/pr_other_id_continue.c: New file.
27912 * lib/unictype/pr_other_id_start.c: New file.
27913 * lib/unictype/pr_other_lowercase.c: New file.
27914 * lib/unictype/pr_other_math.c: New file.
27915 * lib/unictype/pr_other_uppercase.c: New file.
27916 * lib/unictype/pr_paired_punctuation.c: New file.
27917 * lib/unictype/pr_paragraph_separator.c: New file.
27918 * lib/unictype/pr_pattern_syntax.c: New file.
27919 * lib/unictype/pr_pattern_white_space.c: New file.
27920 * lib/unictype/pr_private_use.c: New file.
27921 * lib/unictype/pr_punctuation.c: New file.
27922 * lib/unictype/pr_quotation_mark.c: New file.
27923 * lib/unictype/pr_radical.c: New file.
27924 * lib/unictype/pr_sentence_terminal.c: New file.
27925 * lib/unictype/pr_soft_dotted.c: New file.
27926 * lib/unictype/pr_space.c: New file.
27927 * lib/unictype/pr_terminal_punctuation.c: New file.
27928 * lib/unictype/pr_test.c: New file.
27929 * lib/unictype/pr_titlecase.c: New file.
27930 * lib/unictype/pr_unassigned_code_value.c: New file.
27931 * lib/unictype/pr_unified_ideograph.c: New file.
27932 * lib/unictype/pr_uppercase.c: New file.
27933 * lib/unictype/pr_variation_selector.c: New file.
27934 * lib/unictype/pr_white_space.c: New file.
27935 * lib/unictype/pr_xid_continue.c: New file.
27936 * lib/unictype/pr_xid_start.c: New file.
27937 * lib/unictype/pr_zero_width.c: New file.
27938 * lib/unictype/scripts.c: New file.
27939 * lib/unictype/sy_c_ident.c: New file.
27940 * lib/unictype/sy_c_whitespace.c: New file.
27941 * lib/unictype/sy_java_ident.c: New file.
27942 * lib/unictype/sy_java_whitespace.c: New file.
27944 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
27946 * lib/unictype/blocks.h: Likewise.
27947 * lib/unictype/categ_C.h: Likewise.
27948 * lib/unictype/categ_Cc.h: Likewise.
27949 * lib/unictype/categ_Cf.h: Likewise.
27950 * lib/unictype/categ_Cn.h: Likewise.
27951 * lib/unictype/categ_Co.h: Likewise.
27952 * lib/unictype/categ_Cs.h: Likewise.
27953 * lib/unictype/categ_L.h: Likewise.
27954 * lib/unictype/categ_Ll.h: Likewise.
27955 * lib/unictype/categ_Lm.h: Likewise.
27956 * lib/unictype/categ_Lo.h: Likewise.
27957 * lib/unictype/categ_Lt.h: Likewise.
27958 * lib/unictype/categ_Lu.h: Likewise.
27959 * lib/unictype/categ_M.h: Likewise.
27960 * lib/unictype/categ_Mc.h: Likewise.
27961 * lib/unictype/categ_Me.h: Likewise.
27962 * lib/unictype/categ_Mn.h: Likewise.
27963 * lib/unictype/categ_N.h: Likewise.
27964 * lib/unictype/categ_Nd.h: Likewise.
27965 * lib/unictype/categ_Nl.h: Likewise.
27966 * lib/unictype/categ_No.h: Likewise.
27967 * lib/unictype/categ_P.h: Likewise.
27968 * lib/unictype/categ_Pc.h: Likewise.
27969 * lib/unictype/categ_Pd.h: Likewise.
27970 * lib/unictype/categ_Pe.h: Likewise.
27971 * lib/unictype/categ_Pf.h: Likewise.
27972 * lib/unictype/categ_Pi.h: Likewise.
27973 * lib/unictype/categ_Po.h: Likewise.
27974 * lib/unictype/categ_Ps.h: Likewise.
27975 * lib/unictype/categ_S.h: Likewise.
27976 * lib/unictype/categ_Sc.h: Likewise.
27977 * lib/unictype/categ_Sk.h: Likewise.
27978 * lib/unictype/categ_Sm.h: Likewise.
27979 * lib/unictype/categ_So.h: Likewise.
27980 * lib/unictype/categ_Z.h: Likewise.
27981 * lib/unictype/categ_Zl.h: Likewise.
27982 * lib/unictype/categ_Zp.h: Likewise.
27983 * lib/unictype/categ_Zs.h: Likewise.
27984 * lib/unictype/categ_of.h: Likewise.
27985 * lib/unictype/combining.h: Likewise.
27986 * lib/unictype/ctype_alnum.h: Likewise.
27987 * lib/unictype/ctype_alpha.h: Likewise.
27988 * lib/unictype/ctype_blank.h: Likewise.
27989 * lib/unictype/ctype_cntrl.h: Likewise.
27990 * lib/unictype/ctype_digit.h: Likewise.
27991 * lib/unictype/ctype_graph.h: Likewise.
27992 * lib/unictype/ctype_lower.h: Likewise.
27993 * lib/unictype/ctype_print.h: Likewise.
27994 * lib/unictype/ctype_punct.h: Likewise.
27995 * lib/unictype/ctype_space.h: Likewise.
27996 * lib/unictype/ctype_upper.h: Likewise.
27997 * lib/unictype/ctype_xdigit.h: Likewise.
27998 * lib/unictype/decdigit.h: Likewise.
27999 * lib/unictype/digit.h: Likewise.
28000 * lib/unictype/mirror.h: Likewise.
28001 * lib/unictype/numeric.h: Likewise.
28002 * lib/unictype/pr_alphabetic.h: Likewise.
28003 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
28004 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
28005 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
28006 * lib/unictype/pr_bidi_block_separator.h: Likewise.
28007 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
28008 * lib/unictype/pr_bidi_common_separator.h: Likewise.
28009 * lib/unictype/pr_bidi_control.h: Likewise.
28010 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
28011 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
28012 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
28013 * lib/unictype/pr_bidi_european_digit.h: Likewise.
28014 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
28015 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
28016 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
28017 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
28018 * lib/unictype/pr_bidi_pdf.h: Likewise.
28019 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
28020 * lib/unictype/pr_bidi_whitespace.h: Likewise.
28021 * lib/unictype/pr_combining.h: Likewise.
28022 * lib/unictype/pr_composite.h: Likewise.
28023 * lib/unictype/pr_currency_symbol.h: Likewise.
28024 * lib/unictype/pr_dash.h: Likewise.
28025 * lib/unictype/pr_decimal_digit.h: Likewise.
28026 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
28027 * lib/unictype/pr_deprecated.h: Likewise.
28028 * lib/unictype/pr_diacritic.h: Likewise.
28029 * lib/unictype/pr_extender.h: Likewise.
28030 * lib/unictype/pr_format_control.h: Likewise.
28031 * lib/unictype/pr_grapheme_base.h: Likewise.
28032 * lib/unictype/pr_grapheme_extend.h: Likewise.
28033 * lib/unictype/pr_grapheme_link.h: Likewise.
28034 * lib/unictype/pr_hex_digit.h: Likewise.
28035 * lib/unictype/pr_hyphen.h: Likewise.
28036 * lib/unictype/pr_id_continue.h: Likewise.
28037 * lib/unictype/pr_id_start.h: Likewise.
28038 * lib/unictype/pr_ideographic.h: Likewise.
28039 * lib/unictype/pr_ids_binary_operator.h: Likewise.
28040 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
28041 * lib/unictype/pr_ignorable_control.h: Likewise.
28042 * lib/unictype/pr_iso_control.h: Likewise.
28043 * lib/unictype/pr_join_control.h: Likewise.
28044 * lib/unictype/pr_left_of_pair.h: Likewise.
28045 * lib/unictype/pr_line_separator.h: Likewise.
28046 * lib/unictype/pr_logical_order_exception.h: Likewise.
28047 * lib/unictype/pr_lowercase.h: Likewise.
28048 * lib/unictype/pr_math.h: Likewise.
28049 * lib/unictype/pr_non_break.h: Likewise.
28050 * lib/unictype/pr_not_a_character.h: Likewise.
28051 * lib/unictype/pr_numeric.h: Likewise.
28052 * lib/unictype/pr_other_alphabetic.h: Likewise.
28053 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
28054 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
28055 * lib/unictype/pr_other_id_continue.h: Likewise.
28056 * lib/unictype/pr_other_id_start.h: Likewise.
28057 * lib/unictype/pr_other_lowercase.h: Likewise.
28058 * lib/unictype/pr_other_math.h: Likewise.
28059 * lib/unictype/pr_other_uppercase.h: Likewise.
28060 * lib/unictype/pr_paired_punctuation.h: Likewise.
28061 * lib/unictype/pr_paragraph_separator.h: Likewise.
28062 * lib/unictype/pr_pattern_syntax.h: Likewise.
28063 * lib/unictype/pr_pattern_white_space.h: Likewise.
28064 * lib/unictype/pr_private_use.h: Likewise.
28065 * lib/unictype/pr_punctuation.h: Likewise.
28066 * lib/unictype/pr_quotation_mark.h: Likewise.
28067 * lib/unictype/pr_radical.h: Likewise.
28068 * lib/unictype/pr_sentence_terminal.h: Likewise.
28069 * lib/unictype/pr_soft_dotted.h: Likewise.
28070 * lib/unictype/pr_space.h: Likewise.
28071 * lib/unictype/pr_terminal_punctuation.h: Likewise.
28072 * lib/unictype/pr_titlecase.h: Likewise.
28073 * lib/unictype/pr_unassigned_code_value.h: Likewise.
28074 * lib/unictype/pr_unified_ideograph.h: Likewise.
28075 * lib/unictype/pr_uppercase.h: Likewise.
28076 * lib/unictype/pr_variation_selector.h: Likewise.
28077 * lib/unictype/pr_white_space.h: Likewise.
28078 * lib/unictype/pr_xid_continue.h: Likewise.
28079 * lib/unictype/pr_xid_start.h: Likewise.
28080 * lib/unictype/pr_zero_width.h: Likewise.
28081 * lib/unictype/scripts.h: Likewise.
28082 * lib/unictype/scripts_byname.gperf: Likewise.
28083 * lib/unictype/sy_c_ident.h: Likewise.
28084 * lib/unictype/sy_c_whitespace.h: Likewise.
28085 * lib/unictype/sy_java_ident.h: Likewise.
28086 * lib/unictype/sy_java_whitespace.h: Likewise.
28088 * lib/unictype/Makefile: New file.
28089 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
28091 * lib/unictype/3level.h: New file, copied from glibc.
28092 * lib/unictype/3levelbit.h: New file.
28094 2007-11-11 Bruno Haible <bruno@clisp.org>
28096 * modules/gperf: New file.
28097 * modules/iconv_open (Depends-on): Add it.
28098 (Makefile.am): Remove the GPERF definition.
28100 2007-11-11 Bruno Haible <bruno@clisp.org>
28102 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
28103 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
28105 2007-11-11 Bruno Haible <bruno@clisp.org>
28107 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
28108 (usage): Remove function.
28110 2007-11-11 Bruno Haible <bruno@clisp.org>
28112 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
28113 gl_FUNC_CEILF_LIBS.
28114 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
28116 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
28117 gl_FUNC_CEILL_LIBS.
28118 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
28119 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
28120 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
28122 2007-11-11 Bruno Haible <bruno@clisp.org>
28124 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
28125 roundf were declared but do not exist on functions.
28126 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
28127 roundl were declared but do not exist on functions.
28128 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
28129 HAVE_FLOORL_AND_CEILL, respectively.
28130 Needed for Sun C on Solaris 10.
28132 2007-11-11 Bruno Haible <bruno@clisp.org>
28134 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
28135 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
28136 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
28137 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
28138 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
28139 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
28140 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
28142 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
28143 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
28144 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
28145 of HAVE_DECL_ROUND*.
28146 * modules/math (Makefile.am): Update.
28148 2007-11-10 Bruno Haible <bruno@clisp.org>
28150 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
28151 ptrdiff_t as m4/intl.m4.
28153 2007-11-10 Jim Meyering <meyering@redhat.com>
28155 Avoid link failure for the argmatch test.
28156 * tests/test-argmatch.c (usage): Define function to avoid a link
28157 failure: argmatch_die requires a usage function.
28159 2007-11-09 Bruno Haible <bruno@clisp.org>
28161 * doc/functions/snprintf.texi: Mention BeOS deficiency.
28162 * doc/functions/vsnprintf.texi: Likewise.
28163 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
28164 with a size argument < 2.
28166 2007-11-09 Bruno Haible <bruno@clisp.org>
28168 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
28169 buffer. Fixes an inefficiency introduced on 2007-11-03.
28171 2007-11-09 Bruno Haible <bruno@clisp.org>
28173 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
28174 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
28176 2007-11-08 Jim Meyering <meyering@redhat.com>
28178 Change cache variable name prefix "jm_" to "gl_" everywhere.
28179 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
28180 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
28181 * m4/uptime.m4: s/gl_/jm_/
28183 2007-11-07 Bruno Haible <bruno@clisp.org>
28185 Update to GNU gettext 0.17.
28186 * m4/intl.m4: Update to GNU gettext 0.17.
28187 * m4/po.m4: Likewise.
28188 * modules/gettext (Files): Remove m4/ulonglong.m4.
28189 (configure.ac): Require gettext infrastructure from version 0.17.
28191 2007-11-06 Bruno Haible <bruno@clisp.org>
28193 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
28194 symbolic values are not defined in a public header.
28195 * lib/freadable.c (freadable) [QNX]: Likewise.
28196 * lib/freadahead.c (freadahead) [QNX]: Likewise.
28197 * lib/freading.c (freading) [QNX]: Likewise.
28198 * lib/fseterr.c (fseterr) [QNX]: Likewise.
28199 * lib/fwritable.c (fwritable) [QNX]: Likewise.
28200 * lib/fwriting.c (fwriting) [QNX]: Likewise.
28201 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
28202 Reported by Alain Magloire.
28204 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
28206 2007-11-05 Bruno Haible <bruno@clisp.org>
28208 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
28209 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
28210 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
28211 Reported by Eric Blake.
28213 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28214 Bruno Haible <bruno@clisp.org>
28216 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
28217 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
28218 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
28219 (malloc): Undefine also before including <stdlib.h>.
28220 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
28221 Needed on OSF/1 4.0.
28223 2007-11-05 Jim Meyering <meyering@redhat.com>
28225 git-version-gen: sync from coreutils.
28226 * build-aux/git-version-gen: Add comments.
28227 Change the first '-' to '.' in the snapshot version string,
28228 e.g., 6.9-377-08144 -> 6.9.377-08144
28229 Remove first parameter.
28230 Don't declare a version "-dirty" merely because a time
28233 2007-11-04 Bruno Haible <bruno@clisp.org>
28235 * lib/lock.h: Protect all macro definitions containing an 'if'
28236 statement through a "do { ... } while (0)".
28237 * lib/tls.h: Likewise.
28239 2007-11-04 Bruno Haible <bruno@clisp.org>
28241 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
28243 2007-11-04 Bruno Haible <bruno@clisp.org>
28245 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
28246 * modules/fprintf-posix (Depends-on): Add nocrash.
28247 * modules/snprintf-posix (Depends-on): Likewise.
28248 * modules/sprintf-posix (Depends-on): Likewise.
28249 * modules/vasnprintf-posix (Depends-on): Likewise.
28250 * modules/vasprintf-posix (Depends-on): Likewise.
28251 * modules/vfprintf-posix (Depends-on): Likewise.
28252 * modules/vsnprintf-posix (Depends-on): Likewise.
28253 * modules/vsprintf-posix (Depends-on): Likewise.
28254 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28255 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28256 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28257 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28258 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28259 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28260 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28262 2007-11-04 Bruno Haible <bruno@clisp.org>
28264 * modules/nocrash: New file.
28265 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
28266 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
28268 2007-11-04 Bruno Haible <bruno@clisp.org>
28270 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
28271 precision handling.
28272 * tests/test-vasprintf-posix.c (test_function): Likewise.
28273 * tests/test-snprintf-posix.h (test_function): Likewise.
28274 * tests/test-sprintf-posix.h (test_function): Likewise.
28276 Fix *printf behaviour for large precisions on mingw and BeOS.
28277 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
28278 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
28279 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
28280 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28281 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28282 gl_PRINTF_PRECISION and test its result. Invoke
28283 gl_PREREQ_VASNPRINTF_PRECISION.
28284 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28285 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28286 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28287 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28288 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28289 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28290 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28291 * doc/functions/fprintf.texi: Update.
28292 * doc/functions/printf.texi: Update.
28293 * doc/functions/snprintf.texi: Update.
28294 * doc/functions/sprintf.texi: Update.
28295 * doc/functions/vfprintf.texi: Update.
28296 * doc/functions/vprintf.texi: Update.
28297 * doc/functions/vsnprintf.texi: Update.
28298 * doc/functions/vsprintf.texi: Update.
28300 2007-11-04 Bruno Haible <bruno@clisp.org>
28302 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
28304 2007-11-04 Bruno Haible <bruno@clisp.org>
28306 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
28307 Reported by Sylvain Beucler <beuc@gnu.org>.
28309 2007-11-03 Bruno Haible <bruno@clisp.org>
28311 * tests/test-fprintf-posix2.sh: New file.
28312 * tests/test-fprintf-posix2.c: New file.
28313 * modules/fprintf-posix-tests (Files): Add them.
28314 (TESTS): Add test-fprintf-posix2.sh.
28315 (configure.ac): Check for getrlimit and setrlimit.
28316 (check_PROGRAMS): Add test-fprintf-posix2.
28318 * tests/test-printf-posix2.sh: New file.
28319 * tests/test-printf-posix2.c: New file.
28320 * modules/printf-posix-tests (Files): Add them.
28321 (TESTS): Add test-printf-posix2.sh.
28322 (configure.ac): Check for getrlimit and setrlimit.
28323 (check_PROGRAMS): Add test-printf-posix2.
28325 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
28326 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
28327 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
28328 (decode_double): New function, copied from decode_long_double.
28329 (scale10_round_decimal_decoded): New function, extracted from
28330 scale10_round_decimal_long_double.
28331 (scale10_round_decimal_long_double): Use it.
28332 (scale10_round_decimal_double): New function.
28333 (floorlog10): New function.
28334 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
28335 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
28336 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28337 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28338 gl_PRINTF_ENOMEM and test its result. Invoke
28339 gl_PREREQ_VASNPRINTF_ENOMEM.
28340 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28341 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28342 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28343 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28344 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28345 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28346 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28347 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
28348 * modules/snprintf-posix (Depends-on): Likewise.
28349 * modules/sprintf-posix (Depends-on): Likewise.
28350 * modules/vasnprintf-posix (Depends-on): Likewise.
28351 * modules/vasprintf-posix (Depends-on): Likewise.
28352 * modules/vfprintf-posix (Depends-on): Likewise.
28353 * modules/vsnprintf-posix (Depends-on): Likewise.
28354 * modules/vsprintf-posix (Depends-on): Likewise.
28355 * doc/functions/fprintf.texi: Update.
28356 * doc/functions/printf.texi: Update.
28357 * doc/functions/snprintf.texi: Update.
28358 * doc/functions/sprintf.texi: Update.
28359 * doc/functions/vfprintf.texi: Update.
28360 * doc/functions/vprintf.texi: Update.
28361 * doc/functions/vsnprintf.texi: Update.
28362 * doc/functions/vsprintf.texi: Update.
28364 2007-11-03 Bruno Haible <bruno@clisp.org>
28366 * modules/frexp-nolibm-tests: New file.
28368 * modules/frexp-nolibm: New file.
28369 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
28371 2007-11-03 Bruno Haible <bruno@clisp.org>
28373 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
28374 value is C99 compliant.
28375 Needed for OSF/1 5.1.
28377 2007-11-03 Bruno Haible <bruno@clisp.org>
28379 Fix out-of-memory handling of vasnprintf.
28380 * lib/printf-parse.c: Include <errno.h>.
28381 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
28382 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
28385 2007-11-02 Eric Blake <ebb9@byu.net>
28387 Fix tests on cygwin.
28388 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
28390 2007-11-01 Bruno Haible <bruno@clisp.org>
28392 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
28394 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
28395 needed for POSIX compatibility.
28397 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
28399 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
28400 for compatibility with GNU.
28402 2007-11-01 Bruno Haible <bruno@clisp.org>
28404 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
28405 (putenv): Renamed from rpl_putenv. Change argument type from
28406 'const char *' to 'char *'.
28407 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
28408 of defining putenv in config.h, just set REPLACE_PUTENV.
28409 * modules/putenv (Depends-on): Add stdlib.
28410 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28411 (Include): Use <stdlib.h>.
28412 * lib/stdlib.in.h (putenv): New declaration.
28413 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
28415 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
28417 Needed for MacOS X 10.5.0.
28418 Reported by Peter O'Gorman <peter@pogma.com>.
28420 2007-11-01 Jim Meyering <meyering@redhat.com>
28422 Treat an empty date string exactly like "0".
28423 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
28424 if the remaining date string (to be parsed) is empty, use "0".
28425 Reported by Mischa Molhoek and discussed in this thread:
28426 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
28428 2007-10-31 Bruno Haible <bruno@clisp.org>
28430 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
28431 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
28432 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
28433 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
28434 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
28435 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
28437 2007-10-31 Bruno Haible <bruno@clisp.org>
28439 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
28440 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
28441 (AC_TYPE_LONG_LONG_INT): Use it.
28442 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
28444 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
28446 * modules/stdint (Files): Remove m4/ulonglong.m4.
28447 * modules/strtoull (Files): Use m4/longlong.m4 instead of
28449 * modules/strtoumax (Files): Likewise.
28451 2007-10-30 Bruno Haible <bruno@clisp.org>
28453 * modules/xvasprintf-posix: New file.
28454 Suggested by Eric Blake.
28456 2007-10-30 Bruno Haible <bruno@clisp.org>
28458 * modules/xprintf-posix-tests: New file.
28459 * tests/test-xprintf-posix.sh: New file.
28460 * tests/test-xprintf-posix.c: New file.
28461 * tests/test-xfprintf-posix.c: New file.
28463 * modules/xprintf-posix: New file.
28465 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28467 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
28468 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
28469 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
28471 2007-10-29 Bruno Haible <bruno@clisp.org>
28473 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
28474 contain the special marker '_cv_'.
28475 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
28476 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
28477 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
28478 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
28479 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
28480 Reported by Ralf Wildenhues.
28482 2007-10-29 Bruno Haible <bruno@clisp.org>
28484 * gnulib-tool (func_import): When --lgpl is not specified, set
28485 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
28487 Reported by Simon Josefsson.
28489 2007-10-28 Bruno Haible <bruno@clisp.org>
28491 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
28492 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
28493 HAVE_DECL_ISFINITE.
28494 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
28495 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
28496 HAVE_DECL_ISFINITE.
28498 2007-10-28 Bruno Haible <bruno@clisp.org>
28500 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
28501 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
28503 2007-10-28 Bruno Haible <bruno@clisp.org>
28505 Fix link errors with Sun C 5.0 on Solaris 10.
28506 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
28507 function is declared but not present in the compiler's libm.
28508 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
28509 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
28510 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
28511 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
28512 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
28513 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
28514 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
28515 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
28516 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
28517 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
28518 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
28521 2007-10-28 Bruno Haible <bruno@clisp.org>
28523 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
28524 gl_FUNC_FLOORL. Cache the result.
28525 (gl_FUNC_FLOORL): Use it.
28526 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
28527 gl_FUNC_CEILL. Cache the result.
28528 (gl_FUNC_CEILL): Use it.
28530 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
28531 gl_FUNC_FLOOR. Cache the result.
28532 (gl_FUNC_FLOOR): Use it.
28533 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
28534 gl_FUNC_CEIL. Cache the result.
28535 (gl_FUNC_CEIL): Use it.
28537 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
28538 gl_FUNC_FLOORF. Cache the result.
28539 (gl_FUNC_FLOORF): Use it.
28540 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
28541 gl_FUNC_CEILF. Cache the result.
28542 (gl_FUNC_CEILF): Use it.
28544 2007-10-28 Bruno Haible <bruno@clisp.org>
28546 * gnulib-tool: Allow specifying the LGPL version number through
28547 --lgpl=2 or --lgpl=3.
28548 (func_usage): Document --lgpl with argument.
28549 Handle --lgpl=... arguments.
28550 (func_import): Recognize also gl_LGPL calls with an argument. When
28551 --lgpl=2 is used and the module's license is just LGPL, report an
28552 error. Set sed_transform_lib_file according to the lgpl variable. In
28553 the generated files, use --lgpl or gl_LGPL invocations with argument,
28555 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
28557 * doc/gnulib-tool.texi (Modified imports): Update explanation of
28560 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28561 Bruno Haible <bruno@clisp.org>
28563 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
28564 (u16_uctomb_aux): Likewise.
28565 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
28567 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
28569 2007-10-28 Bruno Haible <bruno@clisp.org>
28571 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
28572 Invoke AM_GETTEXT_OPTION if it exists.
28573 * modules/vasprintf: Likewise.
28574 * modules/verror: Likewise.
28575 * modules/xprintf: Likewise.
28576 * modules/xvasprintf: Likewise.
28578 2007-10-27 Ben Pfaff <blp@gnu.org>
28580 * lib/math.in.h: Define isfinite macro and prototypes for
28581 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
28583 * m4/math_h.m4: New substitutions for isfinite module.
28584 * lib/isfinite.c: New file.
28585 * m4/isfinite.m4: New file.
28586 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
28587 * modules/isfinite: New file.
28588 * modules/isfinite-tests: New file.
28589 * tests/tests-isfinite.c: New file.
28590 * doc/functions/isfinite.texi: Mention isfinite module.
28591 * MODULES.html.sh: Mention new module.
28593 2007-10-27 Ben Pfaff <blp@gnu.org>
28595 Ralf Wildenhues reported that Tru64 4.0D declares the round
28596 functions but does not have definitions.
28597 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
28598 cannot be found in any library, set the output variable to
28599 "missing" instead of "".
28600 * m4/round.m4: Also use our substitute if we cannot find round in
28601 any library, even if it is declared.
28602 * m4/roundf.m4: Likewise for roundf.
28603 * m4/roundl.m4: Likewise for roundl.
28604 * lib/math.in.h: Undefine roundf, round, roundl before defining
28605 their replacements, to allow for hypothetical systems where these
28606 may be defined as macros but not available in libraries.
28608 2007-10-27 Bruno Haible <bruno@clisp.org>
28610 * doc/gnulib.texi: Invoke @firstparagraphindent.
28611 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
28613 (Source changes): New section.
28615 2007-10-26 Bruno Haible <bruno@clisp.org>
28617 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
28618 borrowed from autoconf.
28620 2007-10-26 Bruno Haible <bruno@clisp.org>
28622 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
28623 strerror returned the empty string. Needed on HP-UX 11.00.
28625 2007-10-24 Micah Cowan <micah@cowan.name>
28627 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
28628 * build-aux/bootstrap: Remove support for now-unnecessary option,
28629 --cvs-user, and envvars CVS_USER, CVS_RSH.
28631 2007-10-24 Jim Meyering <meyering@redhat.com>
28633 Avoid diagnostics from sha1sum when there is no cached checksum.
28634 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
28635 if the po.s1 file hasn't been created yet.
28637 * build-aux/bootstrap: Sync from coreutils:
28638 2007-10-24 Jim Meyering <meyering@redhat.com>
28639 Get gnulib from the git repository, not from an obsolete cvs one.
28640 * build-aux/bootstrap: Suggestion from Micah Cowan.
28641 2007-10-04 Jim Meyering <jim@meyering.net>
28642 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
28643 (update_po_files): Work also when there are no .po files in po/.
28645 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
28647 * README: Append ".git" to git and cg examples.
28648 Problem reported by Benoit Sigoure.
28650 2007-10-23 Micah Cowan <micah@cowan.name>
28652 * users.txt: Add wget.
28654 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28656 Fix linking of some unistdio tests on FreeBSD.
28657 * modules/unistdio/u16-vsnprintf-tests
28658 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
28659 * modules/unistdio/u16-vsprintf-tests
28660 (test_u16_vsnprintf1_LDADD): Likewise.
28661 * modules/unistdio/u32-vsnprintf-tests
28662 (test_u32_vsnprintf1_LDADD): Likewise.
28663 * modules/unistdio/u32-vsprintf-tests
28664 (test_u32_vsprintf1_LDADD): Likewise.
28665 * modules/unistdio/u8-vsnprintf-tests
28666 (test_u8_vsnprintf1_LDADD): Likewise.
28667 * modules/unistdio/u8-vsprintf-tests
28668 (test_u8_vsprintf1_LDADD): Likewise.
28669 * modules/unistdio/ulc-vsnprintf-tests
28670 (test_ulc_vsnprintf1_LDADD): Likewise.
28671 * modules/unistdio/ulc-vsprintf-tests
28672 (test_ulc_vsprintf1_LDADD): Likewise.
28674 Fix linking of some uniconv tests on FreeBSD.
28675 * modules/uniconv/u16-conv-from-enc-tests
28676 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
28677 * modules/uniconv/u16-conv-to-enc-tests
28678 (test_u16_conv_to_enc_LDADD): Likewise.
28679 * modules/uniconv/u16-strconv-from-enc-tests
28680 (test_u16_strconv_from_enc_LDADD): Likewise.
28681 * modules/uniconv/u16-strconv-to-enc-tests
28682 (test_u16_strconv_to_enc_LDADD): Likewise.
28683 * modules/uniconv/u32-conv-from-enc-tests
28684 (test_u32_conv_from_enc_LDADD): Likewise.
28685 * modules/uniconv/u32-conv-to-enc-tests
28686 (test_u32_conv_to_enc_LDADD): Likewise.
28687 * modules/uniconv/u32-strconv-from-enc-tests
28688 (test_u32_strconv_from_enc_LDADD): Likewise.
28689 * modules/uniconv/u32-strconv-to-enc-tests
28690 (test_u32_strconv_to_enc_LDADD): Likewise.
28691 * modules/uniconv/u8-conv-from-enc-tests
28692 (test_u8_conv_from_enc_LDADD): Likewise.
28693 * modules/uniconv/u8-conv-to-enc-tests
28694 (test_u8_conv_to_enc_LDADD): Likewise.
28695 * modules/uniconv/u8-strconv-from-enc-tests
28696 (test_u8_strconv_from_enc_LDADD): Likewise.
28697 * modules/uniconv/u8-strconv-to-enc-tests
28698 (test_u8_strconv_to_enc_LDADD): Likewise.
28700 2007-10-22 Bruno Haible <bruno@clisp.org>
28702 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
28705 2007-10-22 Eric Blake <ebb9@byu.net>
28707 Tweak x*printf documentation.
28708 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
28709 variable name and comments.
28710 Suggested by Bruno Haible.
28712 2007-10-22 Bruno Haible <bruno@clisp.org>
28714 * lib/acl.c (copy_acl): Fix file name in comment.
28716 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
28718 Fix Tru64 problem with stdbool.h.
28719 * lib/stdbool.in.h (false, true):
28720 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
28721 Don't declare as an enum in this situation; it runs afoul of Tru64.
28722 Problem reported by Steven M. Schweda in
28723 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
28725 2007-10-22 Eric Blake <ebb9@byu.net>
28727 Also wrap vf?printf.
28728 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
28729 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
28730 (xvprintf, xvfprintf): New functions.
28732 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28734 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
28735 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
28737 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
28738 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
28740 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
28742 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
28745 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28748 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
28749 Undef `sys' after including sys/table.h, for Tru64 4.0D.
28751 * tests/test-i-ring.c: Work for C89.
28753 2007-10-22 Bruno Haible <bruno@clisp.org>
28755 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
28756 -1u, in preprocessor expression, so that we don't test for the bug
28757 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
28758 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
28760 2007-10-22 Eric Blake <ebb9@byu.net>
28762 * tests/test-yesno.sh: Silence stderr during test.
28764 2007-10-22 Simon Josefsson <simon@josefsson.org>
28766 * modules/crypto/gc-camellia: New file.
28768 * m4/gc-camellia.m4: New file.
28770 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
28772 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
28774 2007-10-22 Simon Josefsson <simon@josefsson.org>
28776 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
28777 --help to stdout. Reported by sms@antinode.org (Steven
28780 2007-10-22 Simon Josefsson <simon@josefsson.org>
28782 * users.txt: Fix link to libksba.
28784 2007-10-21 Ben Pfaff <blp@gnu.org>
28786 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
28787 round.c roundf implementation that depends on floorf and ceilf to
28788 be tested unconditionally.
28790 2007-10-21 Ben Pfaff <blp@gnu.org>
28792 * m4/check-libm-func.m4: Removed.
28793 * m4/check-math-lib.m4: New file.
28794 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
28795 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
28796 definition and lack of AC_LIBOBJ([roundf]).
28797 * m4/roundl.m4: Ditto, and similarly for roundl.
28798 * modules/round: Reference new m4 file.
28799 * modules/roundf: Ditto.
28800 * modules/roundl: Ditto.
28801 * tests/test-round2.c (main): Use ROUND instead of round.
28802 Bug report from Bruno Haible.
28804 2007-10-21 Bruno Haible <bruno@clisp.org>
28806 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
28809 2007-10-21 Bruno Haible <bruno@clisp.org>
28811 * tests/test-wcwidth.c (main): Allow negative result for some control
28814 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
28815 Needed on OSF/1 5.1.
28817 2007-10-21 Bruno Haible <bruno@clisp.org>
28819 * tests/test-floorf1.c: Include isnanf.h.
28820 (main): Use isnanf() instead of isnan().
28821 * tests/test-ceilf1.c: Include isnanf.h.
28822 (main): Use isnanf() instead of isnan().
28823 * tests/test-truncf1.c: Include isnanf.h.
28824 (main): Use isnanf() instead of isnan().
28825 * tests/test-roundf1.c: Include isnanf.h.
28826 (main): Use isnanf() instead of isnan().
28828 2007-10-21 Eric Blake <ebb9@byu.net>
28830 * users.txt: Update URL for m4.
28832 2007-10-21 Bruno Haible <bruno@clisp.org>
28834 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
28836 2007-10-21 Bruno Haible <bruno@clisp.org>
28838 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
28839 Git's management files if the CVS files are not present.
28841 2007-10-20 Bruno Haible <bruno@clisp.org>
28843 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
28846 2007-10-20 Ben Pfaff <blp@gnu.org>
28848 * lib/math.in.h: Declare round, roundf, roundl if we are providing
28850 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
28851 * lib/round.c: New file.
28852 * lib/roundf.c: New file.
28853 * lib/roundl.c: New file.
28854 * m4/round.m4: New file.
28855 * m4/roundf.m4: New file.
28856 * m4/roundl.m4: New file.
28857 * m4/check-libm-func-m4: New file.
28858 * modules/math: Replace round, roundf, roundl related @VARS@ in
28860 * modules/round: New file.
28861 * modules/round-tests: New file.
28862 * modules/roundf: New file.
28863 * modules/roundf-tests: New file.
28864 * modules/roundl: New file.
28865 * modules/roundl-tests: New file.
28866 * tests/test-round1.c: New file.
28867 * tests/test-round2.c: New file.
28868 * tests/test-roundf1.c: New file.
28869 * tests/test-roundf2.c: New file.
28870 * tests/test-roundl.c: New file.
28871 * doc/functions/round.texi: Mention round module.
28872 * doc/functions/roundf.texi: Mention roundf module.
28873 * doc/functions/roundl.texi: Mention roundl module.
28874 * MODULES.html.sh: Mention new modules.
28875 Thanks to Bruno Haible for suggestions.
28877 2007-10-20 Jim Meyering <meyering@redhat.com>
28879 * lib/xprintf.c: Include <config.h> unconditionally.
28881 Change xprintf's license to GPL.
28882 * modules/xprintf (License): s/LGPL/GPL/, since this module
28883 depends on modules (exit and exitfail) which are GPL.
28884 Suggestion from Bruno Haible.
28887 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
28888 Use a clearer diagnostic.
28889 Patch from Bruno Haible.
28891 2007-10-20 Bruno Haible <bruno@clisp.org>
28893 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
28894 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
28895 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28897 2007-10-20 Bruno Haible <bruno@clisp.org>
28899 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
28900 precision in the comparison result > x - 1 or similar.
28901 * tests/test-ceilf2.c (correct_result_p): Likewise.
28902 * tests/test-truncf2.c (correct_result_p): Likewise.
28903 * tests/test-trunc2.c (correct_result_p): Likewise.
28904 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28906 2007-10-20 Bruno Haible <bruno@clisp.org>
28908 * modules/ceil: New file.
28909 * m4/ceil.m4: New file.
28910 * doc/functions/ceil.texi: Mention the 'ceil' module.
28912 2007-10-20 Bruno Haible <bruno@clisp.org>
28914 * modules/floor: New file.
28915 * m4/floor.m4: New file.
28916 * doc/functions/floor.texi: Mention the 'floor' module.
28918 2007-10-20 Bruno Haible <bruno@clisp.org>
28920 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
28922 * modules/floorf-tests (Depends-on): Likewise.
28923 * modules/truncf-tests (Depends-on): Likewise.
28924 * modules/trunc-tests (Depends-on): Likewise.
28925 Reported by Ben Pfaff.
28927 2007-10-19 Jim Meyering <meyering@redhat.com>
28929 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
28930 Don't bother testing specific errno values. Just test ferror.
28932 New module: xprintf
28933 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
28935 2007-10-19 Bruno Haible <bruno@clisp.org>
28937 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
28939 * modules/javaexec (Makefile.am): Likewise.
28940 * modules/relocatable-prog (Makefile.am): Likewise.
28941 Suggested by Jim Meyering.
28943 2007-10-18 Bruno Haible <bruno@clisp.org>
28945 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
28946 Reported by Jim Meyering.
28948 2007-10-18 Eric Blake <ebb9@byu.net>
28950 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
28952 2007-10-18 Bruno Haible <bruno@clisp.org>
28954 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
28955 the format string into writable memory. Needed in Fortify conditions.
28957 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
28958 Bruno Haible <bruno@clisp.org>
28960 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
28961 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
28962 * modules/trim (Depends-on): Add mbchar.
28963 (configure.ac): Add gl_FUNC_MBRTOWC.
28964 (Makefile.am): Augment lib_SOURCES.
28966 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
28968 Modify glob.c to use fstatat and dirfd, to simplify it.
28969 Suggested by Eric Blake.
28970 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
28971 Don't include <stdbool.h>; not used.
28972 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
28973 (link_exists_p): Simplify implementation, since we can now assume
28975 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
28977 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28979 * gnulib-tool (func_get_dependencies): Fix sed script to
28982 2007-10-17 Bruno Haible <bruno@clisp.org>
28984 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
28985 allow locale names without encoding suffix.
28986 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
28987 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28989 2007-10-16 Bruno Haible <bruno@clisp.org>
28991 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
28992 * lib/getgroups.c (getgroups): Likewise.
28993 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
28995 2007-10-16 Bruno Haible <bruno@clisp.org>
28997 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
28998 * modules/malloc-posix (License): Likewise.
28999 * modules/realloc-posix (License): Likewise.
29000 * modules/calloc-posix (License): Likewise.
29001 * modules/intprops (License): Change from GPL to LGPL, with
29002 Paul Eggert's approval.
29004 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
29006 Merge glibc changes into lib/glob.c.
29008 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
29009 2007-10-15 04:59:03 UTC. Here are the changes:
29011 2007-10-14 Ulrich Drepper <drepper@redhat.com>
29013 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
29015 * lib/glob.c: Add some branch prediction throughout.
29017 2007-10-07 Ulrich Drepper <drepper@redhat.com>
29020 * lib/glob.c (glob): Recognize patterns starting \/.
29022 2007-02-14 Jakub Jelinek <jakub@redhat.com>
29025 * lib/glob.c (attribute_hidden): Define if not defined.
29026 (glob): Unescape dirname, filename or username when needed and not
29027 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
29028 is NULL. Handle unescaped [ in pattern without closing ].
29029 Don't pass GLOB_CHECK down to recursive glob for directories.
29030 (__glob_pattern_type): New function.
29031 (__glob_pattern_p): Implement using __glob_pattern_type.
29032 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
29033 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
29034 Remove unreachable code.
29036 2006-09-30 Ulrich Drepper <drepper@redhat.com>
29038 * lib/glob.c (glob_in_dir): Add some comments and asserts to
29039 explain why there are no leaks.
29041 2006-09-25 Jakub Jelinek <jakub@redhat.com>
29044 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
29045 time, rather allocate increasingly bigger arrays of pointers, if
29046 possible with alloca, if too large with malloc.
29048 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
29050 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
29051 Problem reported by H.Merijn Brand in
29052 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
29053 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
29054 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
29056 2007-10-15 Bruno Haible <bruno@clisp.org>
29058 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
29059 with explicit rpl_ prefix.
29060 * lib/fopen.c (fopen): Likewise.
29061 * lib/freopen.c (freopen): Likewise.
29062 * lib/iconv.c (iconv): Likewise.
29063 * lib/iconv_close.c (iconv_close): Likewise.
29065 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29067 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
29069 2007-10-15 Bruno Haible <bruno@clisp.org>
29071 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
29072 <stddef.h> instead of <stdlib.h> since we only need NULL.
29073 Reported by Ben Pfaff <blp@cs.stanford.edu>.
29075 2007-10-15 Bruno Haible <bruno@clisp.org>
29077 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
29078 Replace paragraph talking about LIBOBJS.
29079 Reported by Colin Watson <cjwatson@debian.org>.
29081 2007-10-15 Bruno Haible <bruno@clisp.org>
29083 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
29084 <stdlib.h> before using NULL.
29086 2007-10-15 Simon Josefsson <simon@josefsson.org>
29088 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
29089 Reported by Albert Chin <china@thewrittenword.com>.
29091 2007-10-14 Bruno Haible <bruno@clisp.org>
29093 * modules/iconv_open-utf-tests: New file.
29094 * tests/test-iconv-utf.c: New file.
29096 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
29097 * modules/iconv_open-utf: New file.
29098 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
29099 (iconv, iconv_close): New declarations.
29100 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
29102 (iconv_open): Add special handling of conversion between UTF-8 and
29103 UTF-{16,32}{BE,LE}.
29104 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
29105 * lib/iconv_close.c: New file.
29106 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
29107 gl_FUNC_ICONV_OPEN.
29108 (gl_FUNC_ICONV_OPEN): Use it.
29109 (gl_FUNC_ICONV_OPEN_UTF): New macro.
29110 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
29111 and REPLACE_ICONV_UTF.
29112 * modules/iconv_open (Depends-on): Add c-strcase.
29113 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
29115 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
29117 2007-10-13 Albert Chin <china@thewrittenword.com>
29118 Bruno Haible <bruno@clisp.org>
29120 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
29121 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
29123 2007-10-13 Bruno Haible <bruno@clisp.org>
29125 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
29126 defined, use the ISO C99 inline semantics.
29127 * lib/argp.h (ARGP_EI): Likewise.
29129 2007-10-13 Bruno Haible <bruno@clisp.org>
29131 Handle 'inline' change in gcc 4.3.0.
29132 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
29133 argp_fmtstream_write, argp_fmtstream_set_lmargin,
29134 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
29135 argp_fmtstream_point): Disable 'extern' declaration if the function
29136 definition is going to be provided inline.
29137 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
29138 semantics, not the ISO C99 inline semantics.
29139 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
29140 'extern' declaration if the function definition is going to be provided
29142 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
29143 the GNU C inline semantics, not the ISO C99 inline semantics. With
29144 GCC 4.2, avoid a warning.
29146 2007-10-13 Bruno Haible <bruno@clisp.org>
29148 * lib/freading.h (freading): Enable the use of __freading for
29150 * lib/freading.c (freading): Likewise.
29152 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
29154 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
29155 "warning: C99 inline functions are not supported; using GNU89".
29157 2007-10-12 Bruno Haible <bruno@clisp.org>
29159 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
29161 * tests/test-ceilf2.c: New file.
29162 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
29164 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
29165 * modules/ceilf-tests: Update.
29167 2007-10-12 Bruno Haible <bruno@clisp.org>
29169 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
29171 * tests/test-floorf2.c: New file.
29172 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
29174 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
29175 * modules/floorf-tests: Update.
29177 2007-10-12 Bruno Haible <bruno@clisp.org>
29179 * tests/test-trunc2.c: New file.
29180 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
29182 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
29183 * modules/trunc-tests: Update.
29185 2007-10-12 Bruno Haible <bruno@clisp.org>
29187 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
29189 * tests/test-truncf2.c: New file.
29190 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
29192 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
29193 * modules/truncf-tests: Update.
29195 2007-10-11 Eric Blake <ebb9@byu.net>
29197 Don't claim strerror is broken on Interix.
29198 * doc/functions/strerror.texi (strerror): Known broken systems are
29199 now Solaris 8, and not Interix.
29200 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
29201 Interix on cross-compile.
29202 Reported by Martin Koeppe in
29203 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
29205 2007-10-11 Bruno Haible <bruno@clisp.org>
29207 * modules/i-ring-tests: New file.
29208 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
29211 2007-10-11 Bruno Haible <bruno@clisp.org>
29213 * modules/filenamecat-tests: New file.
29214 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
29215 * lib/filenamecat.c: Remove test code.
29217 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
29219 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
29221 * lib/strerror.c: Include <string.h> always, to test interface,
29222 and to remove the need for the dummy.
29223 Include intprops.h to compute width instead of doing it ourselves
29224 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
29225 (strerror): Define it to return NULL if there's no system strerror.
29226 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
29227 Omit !HAVE_STRERROR code. We don't need to worry about supporting
29228 ancient pre-strerror Unix systems well any more. Saying "unknown
29229 system error" is enough.
29230 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
29231 simpler strerror.c implementation.
29232 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
29233 Simplify the tests to reflect the simpler strerror implementation.
29234 * modules/strerror (Depends-on): Add intprops.
29236 2007-10-09 Eric Blake <ebb9@byu.net>
29238 Silence test-fpending.
29239 * modules/fpending-tests (Files): Add wrapper script.
29240 * tests/test-fpending.sh: New file.
29242 2007-10-09 Bruno Haible <bruno@clisp.org>
29244 * MODULES.html.sh (func_module): Don't create a hyperlink for
29245 function names like 'printf_frexp'.
29246 (Misc): Add crc, memxor.
29247 (Characteristics of floating types): New section.
29248 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
29249 isnanf-nolibm, signbit, trunc, truncf, truncl.
29250 (Enhancements for ISO C 99 functions): New subsection Input/output.
29251 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
29252 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
29253 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
29254 (Compatibility checks for POSIX:2001 functions): Add clock-time.
29255 (Enhancements for POSIX:2001 functions): Add chdir-long.
29256 (File system functions): Add areadlink, chdir-safer, read-file.
29257 Remove cycle-check.
29258 (File system as inode set): New section.
29259 (Date and time): Add gethrxtime.
29260 (Multithreading): Add openmp.
29261 (Internationalization functions): Add localename.
29262 (Unicode string functions): Add unistr/u*-mbsnlen.
29263 (Support for maintaining and releasing projects): Add git-version-gen.
29264 (Lone files): Remove directories.
29266 2007-10-08 Ben Pfaff <blp@gnu.org>
29268 * lib/xmalloca.h: Fix typo in comment.
29270 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
29272 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
29273 when avoiding problems with integer overflow. Use a portable test
29276 2007-10-08 Simon Josefsson <simon@josefsson.org>
29278 * modules/dummy (License): Change to LGPLv2+.
29279 * modules/float (License): Likewise
29280 * modules/realloc (License): Likewise
29281 * modules/stdlib (License): Likewise
29283 2007-10-07 Bruno Haible <bruno@clisp.org>
29285 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
29286 * floor.c (TWO_MANT_DIG): Likewise.
29287 * ceil.c (TWO_MANT_DIG): Likewise.
29288 Reported by Ben Pfaff.
29290 2007-10-07 Bruno Haible <bruno@clisp.org>
29292 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
29293 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
29294 * lib/frexp.c (FUNC): Likewise.
29295 * lib/printf-frexp.h (printf_frexp): Likewise.
29296 * lib/printf-frexpl.h (printf_frexpl): Likewise.
29297 * lib/printf-frexp.c (FUNC): Likewise.
29298 Suggested by Jim Meyering.
29300 2007-10-07 Jim Meyering <meyering@redhat.com>
29302 Make xnanosleep's integer overflow test more robust.
29303 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
29304 so that gcc-4.3.0 doesn't optimize away this test for overflow.
29306 2007-10-07 Bruno Haible <bruno@clisp.org>
29308 * NEWS: Mention the license change.
29310 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
29311 abbreviations in the modules files.
29313 Change copyright notice from GPLv2+ to GPLv3+.
29314 * README: Change copyright notice.
29315 * MODULES.html.sh: Likewise.
29316 * build-aux/bootstrap.conf: Likewise.
29317 * build-aux/config.libpath: Likewise.
29318 * build-aux/csharpcomp.sh.in: Likewise.
29319 * build-aux/csharpexec.sh.in: Likewise.
29320 * build-aux/install-reloc: Likewise.
29321 * build-aux/javacomp.sh.in: Likewise.
29322 * build-aux/javaexec.sh.in: Likewise.
29323 * build-aux/ldd.sh.in: Likewise.
29324 * build-aux/reloc-ldflags: Likewise.
29325 * build-aux/relocatable.sh.in: Likewise.
29326 * build-aux/x-to-1.in: Likewise.
29327 * check-module: Likewise.
29328 * config/srclistvars.sh: Likewise.
29329 * gnulib-tool: Likewise.
29330 * lib/acl-internal.h: Likewise.
29331 * lib/acl.c: Likewise.
29332 * lib/acl.h: Likewise.
29333 * lib/acl_entries.c: Likewise.
29334 * lib/areadlink-with-size.c: Likewise.
29335 * lib/areadlink.c: Likewise.
29336 * lib/areadlink.h: Likewise.
29337 * lib/argmatch.c: Likewise.
29338 * lib/argmatch.h: Likewise.
29339 * lib/argp-ba.c: Likewise.
29340 * lib/argp-eexst.c: Likewise.
29341 * lib/argp-fmtstream.c: Likewise.
29342 * lib/argp-fmtstream.h: Likewise.
29343 * lib/argp-fs-xinl.c: Likewise.
29344 * lib/argp-help.c: Likewise.
29345 * lib/argp-namefrob.h: Likewise.
29346 * lib/argp-parse.c: Likewise.
29347 * lib/argp-pin.c: Likewise.
29348 * lib/argp-pv.c: Likewise.
29349 * lib/argp-pvh.c: Likewise.
29350 * lib/argp-xinl.c: Likewise.
29351 * lib/argp.h: Likewise.
29352 * lib/at-func.c: Likewise.
29353 * lib/atanl.c: Likewise.
29354 * lib/backupfile.c: Likewise.
29355 * lib/backupfile.h: Likewise.
29356 * lib/basename.c: Likewise.
29357 * lib/binary-io.h: Likewise.
29358 * lib/byteswap.in.h: Likewise.
29359 * lib/c-stack.c: Likewise.
29360 * lib/c-stack.h: Likewise.
29361 * lib/c-strcasestr.c: Likewise.
29362 * lib/c-strcasestr.h: Likewise.
29363 * lib/c-strstr.c: Likewise.
29364 * lib/c-strstr.h: Likewise.
29365 * lib/c-strtod.c: Likewise.
29366 * lib/calloc.c: Likewise.
29367 * lib/canon-host.c: Likewise.
29368 * lib/canon-host.h: Likewise.
29369 * lib/canonicalize-lgpl.c: Likewise.
29370 * lib/canonicalize.c: Likewise.
29371 * lib/canonicalize.h: Likewise.
29372 * lib/ceil.c: Likewise.
29373 * lib/ceilf.c: Likewise.
29374 * lib/ceill.c: Likewise.
29375 * lib/chdir-long.c: Likewise.
29376 * lib/chdir-long.h: Likewise.
29377 * lib/chdir-safer.c: Likewise.
29378 * lib/chdir-safer.h: Likewise.
29379 * lib/chown.c: Likewise.
29380 * lib/classpath.c: Likewise.
29381 * lib/classpath.h: Likewise.
29382 * lib/clean-temp.c: Likewise.
29383 * lib/clean-temp.h: Likewise.
29384 * lib/cloexec.c: Likewise.
29385 * lib/close-stream.c: Likewise.
29386 * lib/closein.c: Likewise.
29387 * lib/closein.h: Likewise.
29388 * lib/closeout.c: Likewise.
29389 * lib/closeout.h: Likewise.
29390 * lib/concat-filename.c: Likewise.
29391 * lib/copy-file.c: Likewise.
29392 * lib/copy-file.h: Likewise.
29393 * lib/count-one-bits.h: Likewise.
29394 * lib/crc.c: Likewise.
29395 * lib/crc.h: Likewise.
29396 * lib/creat-safer.c: Likewise.
29397 * lib/csharpcomp.c: Likewise.
29398 * lib/csharpcomp.h: Likewise.
29399 * lib/csharpexec.c: Likewise.
29400 * lib/csharpexec.h: Likewise.
29401 * lib/cycle-check.c: Likewise.
29402 * lib/cycle-check.h: Likewise.
29403 * lib/diacrit.c: Likewise.
29404 * lib/diacrit.h: Likewise.
29405 * lib/diffseq.h: Likewise.
29406 * lib/dirchownmod.c: Likewise.
29407 * lib/dirent.in.h: Likewise.
29408 * lib/dirfd.c: Likewise.
29409 * lib/dirfd.h: Likewise.
29410 * lib/dirname.c: Likewise.
29411 * lib/dirname.h: Likewise.
29412 * lib/dummy.c: Likewise.
29413 * lib/dup-safer.c: Likewise.
29414 * lib/dup2.c: Likewise.
29415 * lib/eealloc.h: Likewise.
29416 * lib/error.c: Likewise.
29417 * lib/error.h: Likewise.
29418 * lib/euidaccess.c: Likewise.
29419 * lib/exclude.c: Likewise.
29420 * lib/exclude.h: Likewise.
29421 * lib/execute.c: Likewise.
29422 * lib/execute.h: Likewise.
29423 * lib/exitfail.c: Likewise.
29424 * lib/exitfail.h: Likewise.
29425 * lib/expl.c: Likewise.
29426 * lib/fatal-signal.c: Likewise.
29427 * lib/fatal-signal.h: Likewise.
29428 * lib/fbufmode.c: Likewise.
29429 * lib/fbufmode.h: Likewise.
29430 * lib/fchdir.c: Likewise.
29431 * lib/fchmodat.c: Likewise.
29432 * lib/fchownat.c: Likewise.
29433 * lib/fcntl--.h: Likewise.
29434 * lib/fcntl-safer.h: Likewise.
29435 * lib/fcntl.in.h: Likewise.
29436 * lib/fd-safer.c: Likewise.
29437 * lib/fflush.c: Likewise.
29438 * lib/file-has-acl.c: Likewise.
29439 * lib/file-set.c: Likewise.
29440 * lib/file-type.c: Likewise.
29441 * lib/file-type.h: Likewise.
29442 * lib/fileblocks.c: Likewise.
29443 * lib/filemode.c: Likewise.
29444 * lib/filemode.h: Likewise.
29445 * lib/filename.h: Likewise.
29446 * lib/filenamecat.c: Likewise.
29447 * lib/filenamecat.h: Likewise.
29448 * lib/findprog.c: Likewise.
29449 * lib/findprog.h: Likewise.
29450 * lib/float.in.h: Likewise.
29451 * lib/floor.c: Likewise.
29452 * lib/floorf.c: Likewise.
29453 * lib/floorl.c: Likewise.
29454 * lib/fopen-safer.c: Likewise.
29455 * lib/fopen.c: Likewise.
29456 * lib/fpending.c: Likewise.
29457 * lib/fpending.h: Likewise.
29458 * lib/fprintf.c: Likewise.
29459 * lib/fprintftime.h: Likewise.
29460 * lib/fpucw.h: Likewise.
29461 * lib/fpurge.c: Likewise.
29462 * lib/fpurge.h: Likewise.
29463 * lib/freadable.c: Likewise.
29464 * lib/freadable.h: Likewise.
29465 * lib/freadahead.c: Likewise.
29466 * lib/freadahead.h: Likewise.
29467 * lib/freading.c: Likewise.
29468 * lib/freading.h: Likewise.
29469 * lib/free.c: Likewise.
29470 * lib/freopen.c: Likewise.
29471 * lib/frexp.c: Likewise.
29472 * lib/frexpl.c: Likewise.
29473 * lib/fseek.c: Likewise.
29474 * lib/fseterr.c: Likewise.
29475 * lib/fseterr.h: Likewise.
29476 * lib/fstatat.c: Likewise.
29477 * lib/fstrcmp.c: Likewise.
29478 * lib/fstrcmp.h: Likewise.
29479 * lib/fsusage.c: Likewise.
29480 * lib/fsusage.h: Likewise.
29481 * lib/ftell.c: Likewise.
29482 * lib/ftello.c: Likewise.
29483 * lib/fts-cycle.c: Likewise.
29484 * lib/fts.c: Likewise.
29485 * lib/fts_.h: Likewise.
29486 * lib/full-read.c: Likewise.
29487 * lib/full-read.h: Likewise.
29488 * lib/full-write.c: Likewise.
29489 * lib/full-write.h: Likewise.
29490 * lib/fwritable.c: Likewise.
29491 * lib/fwritable.h: Likewise.
29492 * lib/fwriteerror.c: Likewise.
29493 * lib/fwriteerror.h: Likewise.
29494 * lib/fwriting.c: Likewise.
29495 * lib/fwriting.h: Likewise.
29496 * lib/gcd.c: Likewise.
29497 * lib/gcd.h: Likewise.
29498 * lib/getcwd.c: Likewise.
29499 * lib/getdate.h: Likewise.
29500 * lib/getdate.y: Likewise.
29501 * lib/getdomainname.c: Likewise.
29502 * lib/getdomainname.h: Likewise.
29503 * lib/getgroups.c: Likewise.
29504 * lib/gethostname.c: Likewise.
29505 * lib/gethrxtime.c: Likewise.
29506 * lib/gethrxtime.h: Likewise.
29507 * lib/getloadavg.c: Likewise.
29508 * lib/getndelim2.c: Likewise.
29509 * lib/getndelim2.h: Likewise.
29510 * lib/getnline.c: Likewise.
29511 * lib/getnline.h: Likewise.
29512 * lib/getopt.c: Likewise.
29513 * lib/getopt.in.h: Likewise.
29514 * lib/getopt1.c: Likewise.
29515 * lib/getopt_int.h: Likewise.
29516 * lib/getpagesize.h: Likewise.
29517 * lib/getsubopt.c: Likewise.
29518 * lib/gettime.c: Likewise.
29519 * lib/getugroups.c: Likewise.
29520 * lib/getugroups.h: Likewise.
29521 * lib/getusershell.c: Likewise.
29522 * lib/gl_anyavltree_list1.h: Likewise.
29523 * lib/gl_anyavltree_list2.h: Likewise.
29524 * lib/gl_anyhash_list1.h: Likewise.
29525 * lib/gl_anyhash_list2.h: Likewise.
29526 * lib/gl_anylinked_list1.h: Likewise.
29527 * lib/gl_anylinked_list2.h: Likewise.
29528 * lib/gl_anyrbtree_list1.h: Likewise.
29529 * lib/gl_anyrbtree_list2.h: Likewise.
29530 * lib/gl_anytree_list1.h: Likewise.
29531 * lib/gl_anytree_list2.h: Likewise.
29532 * lib/gl_anytree_oset.h: Likewise.
29533 * lib/gl_anytreehash_list1.h: Likewise.
29534 * lib/gl_anytreehash_list2.h: Likewise.
29535 * lib/gl_array_list.c: Likewise.
29536 * lib/gl_array_list.h: Likewise.
29537 * lib/gl_array_oset.c: Likewise.
29538 * lib/gl_array_oset.h: Likewise.
29539 * lib/gl_avltree_list.c: Likewise.
29540 * lib/gl_avltree_list.h: Likewise.
29541 * lib/gl_avltree_oset.c: Likewise.
29542 * lib/gl_avltree_oset.h: Likewise.
29543 * lib/gl_avltreehash_list.c: Likewise.
29544 * lib/gl_avltreehash_list.h: Likewise.
29545 * lib/gl_carray_list.c: Likewise.
29546 * lib/gl_carray_list.h: Likewise.
29547 * lib/gl_linked_list.c: Likewise.
29548 * lib/gl_linked_list.h: Likewise.
29549 * lib/gl_linkedhash_list.c: Likewise.
29550 * lib/gl_linkedhash_list.h: Likewise.
29551 * lib/gl_list.c: Likewise.
29552 * lib/gl_list.h: Likewise.
29553 * lib/gl_oset.c: Likewise.
29554 * lib/gl_oset.h: Likewise.
29555 * lib/gl_rbtree_list.c: Likewise.
29556 * lib/gl_rbtree_list.h: Likewise.
29557 * lib/gl_rbtree_oset.c: Likewise.
29558 * lib/gl_rbtree_oset.h: Likewise.
29559 * lib/gl_rbtreehash_list.c: Likewise.
29560 * lib/gl_rbtreehash_list.h: Likewise.
29561 * lib/gl_sublist.c: Likewise.
29562 * lib/gl_sublist.h: Likewise.
29563 * lib/group-member.c: Likewise.
29564 * lib/group-member.h: Likewise.
29565 * lib/hard-locale.c: Likewise.
29566 * lib/hard-locale.h: Likewise.
29567 * lib/hash-pjw.c: Likewise.
29568 * lib/hash-pjw.h: Likewise.
29569 * lib/hash-triple.c: Likewise.
29570 * lib/hash.c: Likewise.
29571 * lib/hash.h: Likewise.
29572 * lib/human.c: Likewise.
29573 * lib/human.h: Likewise.
29574 * lib/i-ring.c: Likewise.
29575 * lib/i-ring.h: Likewise.
29576 * lib/idcache.c: Likewise.
29577 * lib/imaxabs.c: Likewise.
29578 * lib/imaxdiv.c: Likewise.
29579 * lib/inet_pton.c: Likewise.
29580 * lib/inet_pton.h: Likewise.
29581 * lib/intprops.h: Likewise.
29582 * lib/inttostr.c: Likewise.
29583 * lib/inttostr.h: Likewise.
29584 * lib/inttypes.in.h: Likewise.
29585 * lib/isapipe.c: Likewise.
29586 * lib/isdir.c: Likewise.
29587 * lib/isnan.c: Likewise.
29588 * lib/isnan.h: Likewise.
29589 * lib/isnanf.c: Likewise.
29590 * lib/isnanf.h: Likewise.
29591 * lib/isnanl-nolibm.h: Likewise.
29592 * lib/isnanl.c: Likewise.
29593 * lib/isnanl.h: Likewise.
29594 * lib/javacomp.c: Likewise.
29595 * lib/javacomp.h: Likewise.
29596 * lib/javaexec.c: Likewise.
29597 * lib/javaexec.h: Likewise.
29598 * lib/javaversion.c: Likewise.
29599 * lib/javaversion.h: Likewise.
29600 * lib/javaversion.java: Likewise.
29601 * lib/lbrkprop.h: Likewise.
29602 * lib/lchmod.h: Likewise.
29603 * lib/lchown.c: Likewise.
29604 * lib/ldexpl.c: Likewise.
29605 * lib/linebreak.c: Likewise.
29606 * lib/linebreak.h: Likewise.
29607 * lib/linebuffer.c: Likewise.
29608 * lib/linebuffer.h: Likewise.
29609 * lib/locale.in.h: Likewise.
29610 * lib/logl.c: Likewise.
29611 * lib/long-options.c: Likewise.
29612 * lib/long-options.h: Likewise.
29613 * lib/lstat.c: Likewise.
29614 * lib/lstat.h: Likewise.
29615 * lib/math.in.h: Likewise.
29616 * lib/mbchar.c: Likewise.
29617 * lib/mbchar.h: Likewise.
29618 * lib/mbfile.h: Likewise.
29619 * lib/mbiter.h: Likewise.
29620 * lib/mbscasecmp.c: Likewise.
29621 * lib/mbscasestr.c: Likewise.
29622 * lib/mbschr.c: Likewise.
29623 * lib/mbscspn.c: Likewise.
29624 * lib/mbslen.c: Likewise.
29625 * lib/mbsncasecmp.c: Likewise.
29626 * lib/mbsnlen.c: Likewise.
29627 * lib/mbspbrk.c: Likewise.
29628 * lib/mbspcasecmp.c: Likewise.
29629 * lib/mbsrchr.c: Likewise.
29630 * lib/mbssep.c: Likewise.
29631 * lib/mbsspn.c: Likewise.
29632 * lib/mbsstr.c: Likewise.
29633 * lib/mbstok_r.c: Likewise.
29634 * lib/mbswidth.c: Likewise.
29635 * lib/mbswidth.h: Likewise.
29636 * lib/mbuiter.h: Likewise.
29637 * lib/memcasecmp.c: Likewise.
29638 * lib/memcasecmp.h: Likewise.
29639 * lib/memchr.c: Likewise.
29640 * lib/memcmp.c: Likewise.
29641 * lib/memcoll.c: Likewise.
29642 * lib/memcoll.h: Likewise.
29643 * lib/memcpy.c: Likewise.
29644 * lib/memrchr.c: Likewise.
29645 * lib/mkancesdirs.c: Likewise.
29646 * lib/mkdir-p.c: Likewise.
29647 * lib/mkdir-p.h: Likewise.
29648 * lib/mkdir.c: Likewise.
29649 * lib/mkdirat.c: Likewise.
29650 * lib/mkdtemp.c: Likewise.
29651 * lib/mkstemp-safer.c: Likewise.
29652 * lib/mkstemp.c: Likewise.
29653 * lib/modechange.c: Likewise.
29654 * lib/modechange.h: Likewise.
29655 * lib/mountlist.c: Likewise.
29656 * lib/mountlist.h: Likewise.
29657 * lib/mpsort.c: Likewise.
29658 * lib/nanosleep.c: Likewise.
29659 * lib/obstack.c: Likewise.
29660 * lib/obstack.h: Likewise.
29661 * lib/open-safer.c: Likewise.
29662 * lib/open.c: Likewise.
29663 * lib/openat-die.c: Likewise.
29664 * lib/openat-priv.h: Likewise.
29665 * lib/openat-proc.c: Likewise.
29666 * lib/openat.c: Likewise.
29667 * lib/openat.h: Likewise.
29668 * lib/pagealign_alloc.c: Likewise.
29669 * lib/pagealign_alloc.h: Likewise.
29670 * lib/physmem.c: Likewise.
29671 * lib/physmem.h: Likewise.
29672 * lib/pipe-safer.c: Likewise.
29673 * lib/pipe.c: Likewise.
29674 * lib/pipe.h: Likewise.
29675 * lib/posixtm.c: Likewise.
29676 * lib/posixtm.h: Likewise.
29677 * lib/posixver.c: Likewise.
29678 * lib/printf-frexp.c: Likewise.
29679 * lib/printf-frexp.h: Likewise.
29680 * lib/printf-frexpl.c: Likewise.
29681 * lib/printf-frexpl.h: Likewise.
29682 * lib/printf.c: Likewise.
29683 * lib/progname.c: Likewise.
29684 * lib/progname.h: Likewise.
29685 * lib/progreloc.c: Likewise.
29686 * lib/putenv.c: Likewise.
29687 * lib/quote.c: Likewise.
29688 * lib/quote.h: Likewise.
29689 * lib/quotearg.c: Likewise.
29690 * lib/quotearg.h: Likewise.
29691 * lib/raise.c: Likewise.
29692 * lib/readline.c: Likewise.
29693 * lib/readline.h: Likewise.
29694 * lib/readlink.c: Likewise.
29695 * lib/readtokens.c: Likewise.
29696 * lib/readtokens.h: Likewise.
29697 * lib/readtokens0.c: Likewise.
29698 * lib/readtokens0.h: Likewise.
29699 * lib/readutmp.c: Likewise.
29700 * lib/readutmp.h: Likewise.
29701 * lib/realloc.c: Likewise.
29702 * lib/relocwrapper.c: Likewise.
29703 * lib/rename-dest-slash.c: Likewise.
29704 * lib/rename.c: Likewise.
29705 * lib/rmdir.c: Likewise.
29706 * lib/rpmatch.c: Likewise.
29707 * lib/safe-read.c: Likewise.
29708 * lib/safe-read.h: Likewise.
29709 * lib/safe-write.c: Likewise.
29710 * lib/safe-write.h: Likewise.
29711 * lib/same-inode.h: Likewise.
29712 * lib/same.c: Likewise.
29713 * lib/same.h: Likewise.
29714 * lib/save-cwd.c: Likewise.
29715 * lib/save-cwd.h: Likewise.
29716 * lib/savedir.c: Likewise.
29717 * lib/savedir.h: Likewise.
29718 * lib/savewd.c: Likewise.
29719 * lib/savewd.h: Likewise.
29720 * lib/search.in.h: Likewise.
29721 * lib/setenv.c: Likewise.
29722 * lib/setenv.h: Likewise.
29723 * lib/settime.c: Likewise.
29724 * lib/sh-quote.c: Likewise.
29725 * lib/sh-quote.h: Likewise.
29726 * lib/sig2str.c: Likewise.
29727 * lib/sig2str.h: Likewise.
29728 * lib/signal.in.h: Likewise.
29729 * lib/signbitd.c: Likewise.
29730 * lib/signbitf.c: Likewise.
29731 * lib/signbitl.c: Likewise.
29732 * lib/sigprocmask.c: Likewise.
29733 * lib/sincosl.c: Likewise.
29734 * lib/sleep.c: Likewise.
29735 * lib/sprintf.c: Likewise.
29736 * lib/sqrtl.c: Likewise.
29737 * lib/stat-time.h: Likewise.
29738 * lib/stdio--.h: Likewise.
29739 * lib/stdio-safer.h: Likewise.
29740 * lib/stdlib--.h: Likewise.
29741 * lib/stdlib-safer.h: Likewise.
29742 * lib/stdlib.in.h: Likewise.
29743 * lib/stpcpy.c: Likewise.
29744 * lib/stpncpy.c: Likewise.
29745 * lib/strchrnul.c: Likewise.
29746 * lib/strcspn.c: Likewise.
29747 * lib/strerror.c: Likewise.
29748 * lib/strftime.c: Likewise.
29749 * lib/strftime.h: Likewise.
29750 * lib/striconveh.c: Likewise.
29751 * lib/striconveh.h: Likewise.
29752 * lib/striconveha.c: Likewise.
29753 * lib/striconveha.h: Likewise.
29754 * lib/stripslash.c: Likewise.
29755 * lib/strnlen1.c: Likewise.
29756 * lib/strnlen1.h: Likewise.
29757 * lib/strtod.c: Likewise.
29758 * lib/strtoimax.c: Likewise.
29759 * lib/strtok_r.c: Likewise.
29760 * lib/strtol.c: Likewise.
29761 * lib/strtoll.c: Likewise.
29762 * lib/strtoul.c: Likewise.
29763 * lib/strtoull.c: Likewise.
29764 * lib/sysexits.in.h: Likewise.
29765 * lib/tempname.c: Likewise.
29766 * lib/tempname.h: Likewise.
29767 * lib/timespec.h: Likewise.
29768 * lib/tls.c: Likewise.
29769 * lib/tls.h: Likewise.
29770 * lib/tmpdir.c: Likewise.
29771 * lib/tmpdir.h: Likewise.
29772 * lib/tmpfile-safer.c: Likewise.
29773 * lib/tmpfile.c: Likewise.
29774 * lib/trigl.c: Likewise.
29775 * lib/trigl.h: Likewise.
29776 * lib/trim.c: Likewise.
29777 * lib/trim.h: Likewise.
29778 * lib/trunc.c: Likewise.
29779 * lib/truncf.c: Likewise.
29780 * lib/truncl.c: Likewise.
29781 * lib/tsearch.c: Likewise.
29782 * lib/unicodeio.c: Likewise.
29783 * lib/unicodeio.h: Likewise.
29784 * lib/unistd--.h: Likewise.
29785 * lib/unistd-safer.h: Likewise.
29786 * lib/unistdio/ulc-fprintf.c: Likewise.
29787 * lib/unistdio/ulc-vfprintf.c: Likewise.
29788 * lib/unlinkdir.c: Likewise.
29789 * lib/unlinkdir.h: Likewise.
29790 * lib/unlocked-io.h: Likewise.
29791 * lib/unsetenv.c: Likewise.
29792 * lib/userspec.c: Likewise.
29793 * lib/utime.c: Likewise.
29794 * lib/utimecmp.c: Likewise.
29795 * lib/utimecmp.h: Likewise.
29796 * lib/utimens.c: Likewise.
29797 * lib/verify.h: Likewise.
29798 * lib/verror.c: Likewise.
29799 * lib/verror.h: Likewise.
29800 * lib/version-etc-fsf.c: Likewise.
29801 * lib/version-etc.c: Likewise.
29802 * lib/version-etc.h: Likewise.
29803 * lib/vfprintf.c: Likewise.
29804 * lib/vprintf.c: Likewise.
29805 * lib/vsprintf.c: Likewise.
29806 * lib/w32spawn.h: Likewise.
29807 * lib/wait-process.c: Likewise.
29808 * lib/wait-process.h: Likewise.
29809 * lib/wcwidth.c: Likewise.
29810 * lib/write-any-file.c: Likewise.
29811 * lib/xalloc-die.c: Likewise.
29812 * lib/xalloc.h: Likewise.
29813 * lib/xasprintf.c: Likewise.
29814 * lib/xgetcwd.c: Likewise.
29815 * lib/xgetcwd.h: Likewise.
29816 * lib/xgetdomainname.c: Likewise.
29817 * lib/xgetdomainname.h: Likewise.
29818 * lib/xgethostname.c: Likewise.
29819 * lib/xmalloc.c: Likewise.
29820 * lib/xmalloca.c: Likewise.
29821 * lib/xmalloca.h: Likewise.
29822 * lib/xmemcoll.c: Likewise.
29823 * lib/xnanosleep.c: Likewise.
29824 * lib/xreadlink.c: Likewise.
29825 * lib/xreadlink.h: Likewise.
29826 * lib/xsetenv.c: Likewise.
29827 * lib/xsetenv.h: Likewise.
29828 * lib/xstriconv.c: Likewise.
29829 * lib/xstriconv.h: Likewise.
29830 * lib/xstrndup.c: Likewise.
29831 * lib/xstrndup.h: Likewise.
29832 * lib/xstrtod.c: Likewise.
29833 * lib/xstrtod.h: Likewise.
29834 * lib/xstrtol-error.c: Likewise.
29835 * lib/xstrtol.c: Likewise.
29836 * lib/xstrtol.h: Likewise.
29837 * lib/xtime.h: Likewise.
29838 * lib/xvasprintf.c: Likewise.
29839 * lib/xvasprintf.h: Likewise.
29840 * lib/yesno.c: Likewise.
29841 * lib/yesno.h: Likewise.
29842 * posix-modules: Likewise.
29843 * tests/test-alloca-opt.c: Likewise.
29844 * tests/test-arcfour.c: Likewise.
29845 * tests/test-arctwo.c: Likewise.
29846 * tests/test-argmatch.c: Likewise.
29847 * tests/test-argp-2.sh: Likewise.
29848 * tests/test-argp.c: Likewise.
29849 * tests/test-arpa_inet.c: Likewise.
29850 * tests/test-array_list.c: Likewise.
29851 * tests/test-array_oset.c: Likewise.
29852 * tests/test-atexit.c: Likewise.
29853 * tests/test-avltree_list.c: Likewise.
29854 * tests/test-avltree_oset.c: Likewise.
29855 * tests/test-avltreehash_list.c: Likewise.
29856 * tests/test-base64.c: Likewise.
29857 * tests/test-binary-io.c: Likewise.
29858 * tests/test-byteswap.c: Likewise.
29859 * tests/test-c-ctype.c: Likewise.
29860 * tests/test-c-strcasecmp.c: Likewise.
29861 * tests/test-c-strcasestr.c: Likewise.
29862 * tests/test-c-strncasecmp.c: Likewise.
29863 * tests/test-c-strstr.c: Likewise.
29864 * tests/test-canonicalize-lgpl.c: Likewise.
29865 * tests/test-canonicalize.c: Likewise.
29866 * tests/test-carray_list.c: Likewise.
29867 * tests/test-ceilf.c: Likewise.
29868 * tests/test-ceill.c: Likewise.
29869 * tests/test-count-one-bits.c: Likewise.
29870 * tests/test-crc.c: Likewise.
29871 * tests/test-dirname.c: Likewise.
29872 * tests/test-fbufmode.c: Likewise.
29873 * tests/test-fcntl.c: Likewise.
29874 * tests/test-fflush.c: Likewise.
29875 * tests/test-floorf.c: Likewise.
29876 * tests/test-floorl.c: Likewise.
29877 * tests/test-fopen.c: Likewise.
29878 * tests/test-fprintf-posix.c: Likewise.
29879 * tests/test-fprintf-posix.h: Likewise.
29880 * tests/test-fpurge.c: Likewise.
29881 * tests/test-freadable.c: Likewise.
29882 * tests/test-freadahead.c: Likewise.
29883 * tests/test-freading.c: Likewise.
29884 * tests/test-freopen.c: Likewise.
29885 * tests/test-frexp.c: Likewise.
29886 * tests/test-frexpl.c: Likewise.
29887 * tests/test-fseek.c: Likewise.
29888 * tests/test-fseeko.c: Likewise.
29889 * tests/test-fseterr.c: Likewise.
29890 * tests/test-fstrcmp.c: Likewise.
29891 * tests/test-ftell.c: Likewise.
29892 * tests/test-ftello.c: Likewise.
29893 * tests/test-fwritable.c: Likewise.
29894 * tests/test-fwriting.c: Likewise.
29895 * tests/test-getaddrinfo.c: Likewise.
29896 * tests/test-getpass.c: Likewise.
29897 * tests/test-gettimeofday.c: Likewise.
29898 * tests/test-hmac-md5.c: Likewise.
29899 * tests/test-hmac-sha1.c: Likewise.
29900 * tests/test-iconv.c: Likewise.
29901 * tests/test-iconvme.c: Likewise.
29902 * tests/test-inttypes.c: Likewise.
29903 * tests/test-isnan.c: Likewise.
29904 * tests/test-isnanf.c: Likewise.
29905 * tests/test-isnanl-nolibm.c: Likewise.
29906 * tests/test-isnanl.c: Likewise.
29907 * tests/test-isnanl.h: Likewise.
29908 * tests/test-ldexpl.c: Likewise.
29909 * tests/test-linked_list.c: Likewise.
29910 * tests/test-linkedhash_list.c: Likewise.
29911 * tests/test-locale.c: Likewise.
29912 * tests/test-localename.c: Likewise.
29913 * tests/test-lock.c: Likewise.
29914 * tests/test-lseek.c: Likewise.
29915 * tests/test-malloca.c: Likewise.
29916 * tests/test-math.c: Likewise.
29917 * tests/test-mbscasecmp.c: Likewise.
29918 * tests/test-mbscasestr1.c: Likewise.
29919 * tests/test-mbscasestr2.c: Likewise.
29920 * tests/test-mbscasestr3.c: Likewise.
29921 * tests/test-mbscasestr4.c: Likewise.
29922 * tests/test-mbschr.c: Likewise.
29923 * tests/test-mbscspn.c: Likewise.
29924 * tests/test-mbsncasecmp.c: Likewise.
29925 * tests/test-mbspbrk.c: Likewise.
29926 * tests/test-mbspcasecmp.c: Likewise.
29927 * tests/test-mbsrchr.c: Likewise.
29928 * tests/test-mbsspn.c: Likewise.
29929 * tests/test-mbsstr1.c: Likewise.
29930 * tests/test-mbsstr2.c: Likewise.
29931 * tests/test-mbsstr3.c: Likewise.
29932 * tests/test-md5.c: Likewise.
29933 * tests/test-memmem.c: Likewise.
29934 * tests/test-netinet_in.c: Likewise.
29935 * tests/test-open.c: Likewise.
29936 * tests/test-printf-frexp.c: Likewise.
29937 * tests/test-printf-frexpl.c: Likewise.
29938 * tests/test-printf-posix.c: Likewise.
29939 * tests/test-printf-posix.h: Likewise.
29940 * tests/test-rbtree_list.c: Likewise.
29941 * tests/test-rbtree_oset.c: Likewise.
29942 * tests/test-rbtreehash_list.c: Likewise.
29943 * tests/test-read-file.c: Likewise.
29944 * tests/test-rijndael.c: Likewise.
29945 * tests/test-search.c: Likewise.
29946 * tests/test-signbit.c: Likewise.
29947 * tests/test-sleep.c: Likewise.
29948 * tests/test-snprintf-posix.c: Likewise.
29949 * tests/test-snprintf-posix.h: Likewise.
29950 * tests/test-snprintf.c: Likewise.
29951 * tests/test-sprintf-posix.c: Likewise.
29952 * tests/test-sprintf-posix.h: Likewise.
29953 * tests/test-stat-time.c: Likewise.
29954 * tests/test-stdbool.c: Likewise.
29955 * tests/test-stdint.c: Likewise.
29956 * tests/test-stdio.c: Likewise.
29957 * tests/test-stdlib.c: Likewise.
29958 * tests/test-stpncpy.c: Likewise.
29959 * tests/test-strcasestr.c: Likewise.
29960 * tests/test-striconv.c: Likewise.
29961 * tests/test-striconveh.c: Likewise.
29962 * tests/test-striconveha.c: Likewise.
29963 * tests/test-string.c: Likewise.
29964 * tests/test-sys_select.c: Likewise.
29965 * tests/test-sys_socket.c: Likewise.
29966 * tests/test-sys_stat.c: Likewise.
29967 * tests/test-sys_time.c: Likewise.
29968 * tests/test-sysexits.c: Likewise.
29969 * tests/test-time.c: Likewise.
29970 * tests/test-tls.c: Likewise.
29971 * tests/test-trunc.c: Likewise.
29972 * tests/test-truncf.c: Likewise.
29973 * tests/test-truncl.c: Likewise.
29974 * tests/test-unistd.c: Likewise.
29975 * tests/test-vasnprintf-posix.c: Likewise.
29976 * tests/test-vasnprintf-posix2.c: Likewise.
29977 * tests/test-vasnprintf.c: Likewise.
29978 * tests/test-vasprintf-posix.c: Likewise.
29979 * tests/test-vasprintf.c: Likewise.
29980 * tests/test-verify.c: Likewise.
29981 * tests/test-vfprintf-posix.c: Likewise.
29982 * tests/test-vprintf-posix.c: Likewise.
29983 * tests/test-vsnprintf-posix.c: Likewise.
29984 * tests/test-vsnprintf.c: Likewise.
29985 * tests/test-vsprintf-posix.c: Likewise.
29986 * tests/test-wchar.c: Likewise.
29987 * tests/test-wctype.c: Likewise.
29988 * tests/test-wcwidth.c: Likewise.
29989 * tests/test-xstrtol.c: Likewise.
29990 * tests/test-xvasprintf.c: Likewise.
29991 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
29992 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
29993 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
29994 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
29995 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
29996 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
29997 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
29998 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
29999 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30000 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30001 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30002 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30003 * tests/uniname/test-uninames.c: Likewise.
30004 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30005 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
30006 * tests/unistdio/test-u16-printf1.h: Likewise.
30007 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30008 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30009 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30010 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30011 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30012 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30013 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30014 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
30015 * tests/unistdio/test-u32-printf1.h: Likewise.
30016 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30017 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30018 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30019 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30020 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30021 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30022 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30023 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
30024 * tests/unistdio/test-u8-printf1.h: Likewise.
30025 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30026 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30027 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30028 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30029 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30030 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30031 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30032 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
30033 * tests/unistdio/test-ulc-printf1.h: Likewise.
30034 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30035 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30036 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30037 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30038 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30039 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30040 * tests/uniwidth/test-u16-strwidth.c: Likewise.
30041 * tests/uniwidth/test-u16-width.c: Likewise.
30042 * tests/uniwidth/test-u32-strwidth.c: Likewise.
30043 * tests/uniwidth/test-u32-width.c: Likewise.
30044 * tests/uniwidth/test-u8-strwidth.c: Likewise.
30045 * tests/uniwidth/test-u8-width.c: Likewise.
30046 * tests/uniwidth/test-uc_width.c: Likewise.
30047 * config/srclist-update: Likewise.
30048 (fixlicense): Update to GPLv3+.
30050 Change copyright notice from LGPLv2.1+ to LGPLv3+.
30051 * tests/test-tsearch.c: Change copyright notice.
30053 Change copyright notice from LGPLv2.0+ to LGPLv3+.
30054 * lib/c-strcaseeq.h: Change copyright notice.
30055 * lib/streq.h: Likewise.
30056 * lib/uniconv.h: Likewise.
30057 * lib/uniconv/u-conv-from-enc.h: Likewise.
30058 * lib/uniconv/u-conv-to-enc.h: Likewise.
30059 * lib/uniconv/u-strconv-from-enc.h: Likewise.
30060 * lib/uniconv/u-strconv-to-enc.h: Likewise.
30061 * lib/uniconv/u16-conv-from-enc.c: Likewise.
30062 * lib/uniconv/u16-conv-to-enc.c: Likewise.
30063 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
30064 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
30065 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
30066 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
30067 * lib/uniconv/u32-conv-from-enc.c: Likewise.
30068 * lib/uniconv/u32-conv-to-enc.c: Likewise.
30069 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
30070 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
30071 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
30072 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
30073 * lib/uniconv/u8-conv-from-enc.c: Likewise.
30074 * lib/uniconv/u8-conv-to-enc.c: Likewise.
30075 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
30076 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
30077 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
30078 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
30079 * lib/uniname.h: Likewise.
30080 * lib/uniname/uniname.c: Likewise.
30081 * lib/unistdio.h: Likewise.
30082 * lib/unistdio/u-asnprintf.h: Likewise.
30083 * lib/unistdio/u-asprintf.h: Likewise.
30084 * lib/unistdio/u-printf-args.c: Likewise.
30085 * lib/unistdio/u-printf-args.h: Likewise.
30086 * lib/unistdio/u-printf-parse.h: Likewise.
30087 * lib/unistdio/u-snprintf.h: Likewise.
30088 * lib/unistdio/u-sprintf.h: Likewise.
30089 * lib/unistdio/u-vasprintf.h: Likewise.
30090 * lib/unistdio/u-vsnprintf.h: Likewise.
30091 * lib/unistdio/u-vsprintf.h: Likewise.
30092 * lib/unistdio/u16-asnprintf.c: Likewise.
30093 * lib/unistdio/u16-asprintf.c: Likewise.
30094 * lib/unistdio/u16-printf-parse.c: Likewise.
30095 * lib/unistdio/u16-snprintf.c: Likewise.
30096 * lib/unistdio/u16-sprintf.c: Likewise.
30097 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
30098 * lib/unistdio/u16-u16-asprintf.c: Likewise.
30099 * lib/unistdio/u16-u16-snprintf.c: Likewise.
30100 * lib/unistdio/u16-u16-sprintf.c: Likewise.
30101 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
30102 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
30103 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
30104 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
30105 * lib/unistdio/u16-vasnprintf.c: Likewise.
30106 * lib/unistdio/u16-vasprintf.c: Likewise.
30107 * lib/unistdio/u16-vsnprintf.c: Likewise.
30108 * lib/unistdio/u16-vsprintf.c: Likewise.
30109 * lib/unistdio/u32-asnprintf.c: Likewise.
30110 * lib/unistdio/u32-asprintf.c: Likewise.
30111 * lib/unistdio/u32-printf-parse.c: Likewise.
30112 * lib/unistdio/u32-snprintf.c: Likewise.
30113 * lib/unistdio/u32-sprintf.c: Likewise.
30114 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
30115 * lib/unistdio/u32-u32-asprintf.c: Likewise.
30116 * lib/unistdio/u32-u32-snprintf.c: Likewise.
30117 * lib/unistdio/u32-u32-sprintf.c: Likewise.
30118 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
30119 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
30120 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
30121 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
30122 * lib/unistdio/u32-vasnprintf.c: Likewise.
30123 * lib/unistdio/u32-vasprintf.c: Likewise.
30124 * lib/unistdio/u32-vsnprintf.c: Likewise.
30125 * lib/unistdio/u32-vsprintf.c: Likewise.
30126 * lib/unistdio/u8-asnprintf.c: Likewise.
30127 * lib/unistdio/u8-asprintf.c: Likewise.
30128 * lib/unistdio/u8-printf-parse.c: Likewise.
30129 * lib/unistdio/u8-snprintf.c: Likewise.
30130 * lib/unistdio/u8-sprintf.c: Likewise.
30131 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
30132 * lib/unistdio/u8-u8-asprintf.c: Likewise.
30133 * lib/unistdio/u8-u8-snprintf.c: Likewise.
30134 * lib/unistdio/u8-u8-sprintf.c: Likewise.
30135 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
30136 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
30137 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
30138 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
30139 * lib/unistdio/u8-vasnprintf.c: Likewise.
30140 * lib/unistdio/u8-vasprintf.c: Likewise.
30141 * lib/unistdio/u8-vsnprintf.c: Likewise.
30142 * lib/unistdio/u8-vsprintf.c: Likewise.
30143 * lib/unistdio/ulc-asnprintf.c: Likewise.
30144 * lib/unistdio/ulc-asprintf.c: Likewise.
30145 * lib/unistdio/ulc-printf-parse.c: Likewise.
30146 * lib/unistdio/ulc-snprintf.c: Likewise.
30147 * lib/unistdio/ulc-sprintf.c: Likewise.
30148 * lib/unistdio/ulc-vasnprintf.c: Likewise.
30149 * lib/unistdio/ulc-vasprintf.c: Likewise.
30150 * lib/unistdio/ulc-vsnprintf.c: Likewise.
30151 * lib/unistdio/ulc-vsprintf.c: Likewise.
30152 * lib/unistr.h: Likewise.
30153 * lib/unistr/u-cpy-alloc.h: Likewise.
30154 * lib/unistr/u-cpy.h: Likewise.
30155 * lib/unistr/u-endswith.h: Likewise.
30156 * lib/unistr/u-move.h: Likewise.
30157 * lib/unistr/u-set.h: Likewise.
30158 * lib/unistr/u-startswith.h: Likewise.
30159 * lib/unistr/u-stpcpy.h: Likewise.
30160 * lib/unistr/u-stpncpy.h: Likewise.
30161 * lib/unistr/u-strcat.h: Likewise.
30162 * lib/unistr/u-strcpy.h: Likewise.
30163 * lib/unistr/u-strcspn.h: Likewise.
30164 * lib/unistr/u-strdup.h: Likewise.
30165 * lib/unistr/u-strlen.h: Likewise.
30166 * lib/unistr/u-strncat.h: Likewise.
30167 * lib/unistr/u-strncpy.h: Likewise.
30168 * lib/unistr/u-strnlen.h: Likewise.
30169 * lib/unistr/u-strpbrk.h: Likewise.
30170 * lib/unistr/u-strspn.h: Likewise.
30171 * lib/unistr/u-strstr.h: Likewise.
30172 * lib/unistr/u-strtok.h: Likewise.
30173 * lib/unistr/u16-check.c: Likewise.
30174 * lib/unistr/u16-chr.c: Likewise.
30175 * lib/unistr/u16-cmp.c: Likewise.
30176 * lib/unistr/u16-cpy-alloc.c: Likewise.
30177 * lib/unistr/u16-cpy.c: Likewise.
30178 * lib/unistr/u16-endswith.c: Likewise.
30179 * lib/unistr/u16-mblen.c: Likewise.
30180 * lib/unistr/u16-mbsnlen.c: Likewise.
30181 * lib/unistr/u16-mbtouc-aux.c: Likewise.
30182 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
30183 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
30184 * lib/unistr/u16-mbtouc.c: Likewise.
30185 * lib/unistr/u16-mbtoucr.c: Likewise.
30186 * lib/unistr/u16-move.c: Likewise.
30187 * lib/unistr/u16-next.c: Likewise.
30188 * lib/unistr/u16-prev.c: Likewise.
30189 * lib/unistr/u16-set.c: Likewise.
30190 * lib/unistr/u16-startswith.c: Likewise.
30191 * lib/unistr/u16-stpcpy.c: Likewise.
30192 * lib/unistr/u16-stpncpy.c: Likewise.
30193 * lib/unistr/u16-strcat.c: Likewise.
30194 * lib/unistr/u16-strchr.c: Likewise.
30195 * lib/unistr/u16-strcmp.c: Likewise.
30196 * lib/unistr/u16-strcpy.c: Likewise.
30197 * lib/unistr/u16-strcspn.c: Likewise.
30198 * lib/unistr/u16-strdup.c: Likewise.
30199 * lib/unistr/u16-strlen.c: Likewise.
30200 * lib/unistr/u16-strmblen.c: Likewise.
30201 * lib/unistr/u16-strmbtouc.c: Likewise.
30202 * lib/unistr/u16-strncat.c: Likewise.
30203 * lib/unistr/u16-strncmp.c: Likewise.
30204 * lib/unistr/u16-strncpy.c: Likewise.
30205 * lib/unistr/u16-strnlen.c: Likewise.
30206 * lib/unistr/u16-strpbrk.c: Likewise.
30207 * lib/unistr/u16-strrchr.c: Likewise.
30208 * lib/unistr/u16-strspn.c: Likewise.
30209 * lib/unistr/u16-strstr.c: Likewise.
30210 * lib/unistr/u16-strtok.c: Likewise.
30211 * lib/unistr/u16-to-u32.c: Likewise.
30212 * lib/unistr/u16-to-u8.c: Likewise.
30213 * lib/unistr/u16-uctomb-aux.c: Likewise.
30214 * lib/unistr/u16-uctomb.c: Likewise.
30215 * lib/unistr/u32-check.c: Likewise.
30216 * lib/unistr/u32-chr.c: Likewise.
30217 * lib/unistr/u32-cmp.c: Likewise.
30218 * lib/unistr/u32-cpy-alloc.c: Likewise.
30219 * lib/unistr/u32-cpy.c: Likewise.
30220 * lib/unistr/u32-endswith.c: Likewise.
30221 * lib/unistr/u32-mblen.c: Likewise.
30222 * lib/unistr/u32-mbsnlen.c: Likewise.
30223 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
30224 * lib/unistr/u32-mbtouc.c: Likewise.
30225 * lib/unistr/u32-mbtoucr.c: Likewise.
30226 * lib/unistr/u32-move.c: Likewise.
30227 * lib/unistr/u32-next.c: Likewise.
30228 * lib/unistr/u32-prev.c: Likewise.
30229 * lib/unistr/u32-set.c: Likewise.
30230 * lib/unistr/u32-startswith.c: Likewise.
30231 * lib/unistr/u32-stpcpy.c: Likewise.
30232 * lib/unistr/u32-stpncpy.c: Likewise.
30233 * lib/unistr/u32-strcat.c: Likewise.
30234 * lib/unistr/u32-strchr.c: Likewise.
30235 * lib/unistr/u32-strcmp.c: Likewise.
30236 * lib/unistr/u32-strcpy.c: Likewise.
30237 * lib/unistr/u32-strcspn.c: Likewise.
30238 * lib/unistr/u32-strdup.c: Likewise.
30239 * lib/unistr/u32-strlen.c: Likewise.
30240 * lib/unistr/u32-strmblen.c: Likewise.
30241 * lib/unistr/u32-strmbtouc.c: Likewise.
30242 * lib/unistr/u32-strncat.c: Likewise.
30243 * lib/unistr/u32-strncmp.c: Likewise.
30244 * lib/unistr/u32-strncpy.c: Likewise.
30245 * lib/unistr/u32-strnlen.c: Likewise.
30246 * lib/unistr/u32-strpbrk.c: Likewise.
30247 * lib/unistr/u32-strrchr.c: Likewise.
30248 * lib/unistr/u32-strspn.c: Likewise.
30249 * lib/unistr/u32-strstr.c: Likewise.
30250 * lib/unistr/u32-strtok.c: Likewise.
30251 * lib/unistr/u32-to-u16.c: Likewise.
30252 * lib/unistr/u32-to-u8.c: Likewise.
30253 * lib/unistr/u32-uctomb.c: Likewise.
30254 * lib/unistr/u8-check.c: Likewise.
30255 * lib/unistr/u8-chr.c: Likewise.
30256 * lib/unistr/u8-cmp.c: Likewise.
30257 * lib/unistr/u8-cpy-alloc.c: Likewise.
30258 * lib/unistr/u8-cpy.c: Likewise.
30259 * lib/unistr/u8-endswith.c: Likewise.
30260 * lib/unistr/u8-mblen.c: Likewise.
30261 * lib/unistr/u8-mbsnlen.c: Likewise.
30262 * lib/unistr/u8-mbtouc-aux.c: Likewise.
30263 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
30264 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
30265 * lib/unistr/u8-mbtouc.c: Likewise.
30266 * lib/unistr/u8-mbtoucr.c: Likewise.
30267 * lib/unistr/u8-move.c: Likewise.
30268 * lib/unistr/u8-next.c: Likewise.
30269 * lib/unistr/u8-prev.c: Likewise.
30270 * lib/unistr/u8-set.c: Likewise.
30271 * lib/unistr/u8-startswith.c: Likewise.
30272 * lib/unistr/u8-stpcpy.c: Likewise.
30273 * lib/unistr/u8-stpncpy.c: Likewise.
30274 * lib/unistr/u8-strcat.c: Likewise.
30275 * lib/unistr/u8-strchr.c: Likewise.
30276 * lib/unistr/u8-strcmp.c: Likewise.
30277 * lib/unistr/u8-strcpy.c: Likewise.
30278 * lib/unistr/u8-strcspn.c: Likewise.
30279 * lib/unistr/u8-strdup.c: Likewise.
30280 * lib/unistr/u8-strlen.c: Likewise.
30281 * lib/unistr/u8-strmblen.c: Likewise.
30282 * lib/unistr/u8-strmbtouc.c: Likewise.
30283 * lib/unistr/u8-strncat.c: Likewise.
30284 * lib/unistr/u8-strncmp.c: Likewise.
30285 * lib/unistr/u8-strncpy.c: Likewise.
30286 * lib/unistr/u8-strnlen.c: Likewise.
30287 * lib/unistr/u8-strpbrk.c: Likewise.
30288 * lib/unistr/u8-strrchr.c: Likewise.
30289 * lib/unistr/u8-strspn.c: Likewise.
30290 * lib/unistr/u8-strstr.c: Likewise.
30291 * lib/unistr/u8-strtok.c: Likewise.
30292 * lib/unistr/u8-to-u16.c: Likewise.
30293 * lib/unistr/u8-to-u32.c: Likewise.
30294 * lib/unistr/u8-uctomb-aux.c: Likewise.
30295 * lib/unistr/u8-uctomb.c: Likewise.
30296 * lib/unitypes.h: Likewise.
30297 * lib/uniwidth.h: Likewise.
30298 * lib/uniwidth/cjk.h: Likewise.
30299 * lib/uniwidth/u16-strwidth.c: Likewise.
30300 * lib/uniwidth/u16-width.c: Likewise.
30301 * lib/uniwidth/u32-strwidth.c: Likewise.
30302 * lib/uniwidth/u32-width.c: Likewise.
30303 * lib/uniwidth/u8-strwidth.c: Likewise.
30304 * lib/uniwidth/u8-width.c: Likewise.
30305 * lib/uniwidth/width.c: Likewise.
30307 2007-10-07 Bruno Haible <bruno@clisp.org>
30309 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
30310 The file is still under LGPL (see modules/inttypes).
30312 2007-10-06 Bruno Haible <bruno@clisp.org>
30314 * modules/trunc (Dependencies): Add 'extensions'.
30315 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
30316 Reported by Ben Pfaff <blp@gnu.org>.
30318 2007-10-06 Bruno Haible <bruno@clisp.org>
30320 * modules/freopen-tests: New file.
30321 * tests/test-freopen.c: New file.
30323 * modules/fopen-tests: New file.
30324 * tests/test-fopen.c: New file.
30326 * modules/fopen: New file.
30327 * lib/fopen.c: New file.
30328 * m4/fopen.m4: New file.
30329 * modules/freopen: New file.
30330 * lib/freopen.c: New file.
30331 * m4/freopen.m4: New file.
30332 * lib/stdio.in.h (fopen, freopen): New declarations.
30333 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
30334 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
30335 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
30336 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
30337 * doc/functions/fopen.texi: Mention the 'fopen' module.
30338 * doc/functions/freopen.texi: Mention the 'freopen' module.
30340 2007-10-06 Bruno Haible <bruno@clisp.org>
30342 * modules/open-tests: New file.
30343 * tests/test-open.c: New file.
30345 * modules/open: New file.
30346 * lib/open.c: New file.
30347 * m4/open.m4: New file.
30348 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
30350 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
30351 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
30353 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
30354 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
30356 * doc/functions/open.texi: Mention the 'open' module.
30358 2007-10-04 Bruno Haible <bruno@clisp.org>
30360 * modules/ceill-tests: New file.
30361 * tests/test-ceill.c: New file.
30363 * modules/ceill: New file.
30364 * lib/ceill.c: Replace entire file.
30365 * m4/ceill.m4: New file.
30366 * lib/math.in.h (ceill): Replace declaration.
30367 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
30368 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
30369 * doc/functions/ceill.texi: Mention the 'ceill' module.
30370 * modules/mathl (Files): Remove lib/ceill.c.
30371 (Depends-on): Add ceill.
30373 2007-10-04 Bruno Haible <bruno@clisp.org>
30375 * modules/ceilf-tests: New file.
30376 * tests/test-ceilf.c: New file.
30378 * modules/ceilf: New file.
30379 * lib/ceil.c: New file.
30380 * lib/ceilf.c: New file.
30381 * m4/ceilf.m4: New file.
30382 * lib/math.in.h (ceilf): New declaration.
30383 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
30385 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
30387 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
30389 2007-10-04 Bruno Haible <bruno@clisp.org>
30391 * modules/floorl-tests: New file.
30392 * tests/test-floorl.c: New file.
30394 * modules/floorl: New file.
30395 * lib/floorl.c: Replace entire file.
30396 * m4/floorl.m4: New file.
30397 * lib/math.in.h (floorl): Replace declaration.
30398 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
30399 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
30400 * doc/functions/floorl.texi: Mention the 'floorl' module.
30401 * modules/mathl (Files): Remove lib/floorl.c.
30402 (Depends-on): Add floorl.
30404 2007-10-04 Bruno Haible <bruno@clisp.org>
30406 * modules/floorf-tests: New file.
30407 * tests/test-floorf.c: New file.
30409 * modules/floorf: New file.
30410 * lib/floor.c: New file.
30411 * lib/floorf.c: New file.
30412 * m4/floorf.m4: New file.
30413 * lib/math.in.h (floorf): New declaration.
30414 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
30416 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
30418 * doc/functions/floorf.texi: Mention the 'floorf' module.
30420 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
30421 Bruno Haible <bruno@clisp.org>
30423 Advertise for the Git server instead of the CVS server.
30424 * doc/gnulib-intro.texi (Steady Development): Mention the Git
30425 repository instead of the CVS one.
30426 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
30427 about all VCS systems generically.
30428 * doc/gnulib.texi (Introduction): Capitalize `Git'.
30430 2007-10-04 Bruno Haible <bruno@clisp.org>
30432 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
30434 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
30436 2007-10-04 Bruno Haible <bruno@clisp.org>
30438 * modules/truncl-tests: New file.
30439 * tests/test-truncl.c: New file.
30441 * modules/truncl: New file.
30442 * lib/truncl.c: New file.
30443 * m4/truncl.m4: New file.
30444 * lib/math.in.h (truncl): New declaration.
30445 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
30447 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
30449 * doc/functions/truncl.texi: Mention the 'truncl' module.
30451 2007-10-04 Bruno Haible <bruno@clisp.org>
30453 * modules/truncf-tests: New file.
30454 * tests/test-truncf.c: New file.
30456 * modules/truncf: New file.
30457 * lib/trunc.c: Make paramerizable through USE_* macros.
30458 * lib/truncf.c: New file.
30459 * m4/truncf.m4: New file.
30460 * lib/math.in.h (truncf): New declaration.
30461 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
30463 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
30465 * doc/functions/truncf.texi: Mention the 'truncf' module.
30467 2007-10-03 Bruno Haible <bruno@clisp.org>
30469 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
30470 augmentation also for tests modules.
30471 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
30472 * modules/atexit-tests (Makefile.am): Likewise.
30473 * modules/binary-io-tests (Makefile.am): Likewise.
30474 * modules/c-strcase-tests (Makefile.am): Likewise.
30475 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
30476 * modules/canonicalize-tests (Makefile.am): Likewise.
30477 * modules/closein-tests (Makefile.am): Likewise.
30478 * modules/fprintf-posix-tests (Makefile.am): Likewise.
30479 * modules/freadahead-tests (Makefile.am): Likewise.
30480 * modules/fseek-tests (Makefile.am): Likewise.
30481 * modules/fseeko-tests (Makefile.am): Likewise.
30482 * modules/ftell-tests (Makefile.am): Likewise.
30483 * modules/ftello-tests (Makefile.am): Likewise.
30484 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
30485 * modules/isnanl-tests (Makefile.am): Likewise.
30486 * modules/lseek-tests (Makefile.am): Likewise.
30487 * modules/mbscasecmp-tests (Makefile.am): Likewise.
30488 * modules/mbscasestr-tests (Makefile.am): Likewise.
30489 * modules/mbschr-tests (Makefile.am): Likewise.
30490 * modules/mbscspn-tests (Makefile.am): Likewise.
30491 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
30492 * modules/mbspbrk-tests (Makefile.am): Likewise.
30493 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
30494 * modules/mbsrchr-tests (Makefile.am): Likewise.
30495 * modules/mbsspn-tests (Makefile.am): Likewise.
30496 * modules/mbsstr-tests (Makefile.am): Likewise.
30497 * modules/printf-posix-tests (Makefile.am): Likewise.
30498 * modules/snprintf-posix-tests (Makefile.am): Likewise.
30499 * modules/sprintf-posix-tests (Makefile.am): Likewise.
30500 * modules/tsearch-tests (Makefile.am): Likewise.
30501 * modules/uniname/uniname-tests (Makefile.am): Likewise.
30502 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
30503 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
30504 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
30505 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
30506 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
30507 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
30508 * modules/vprintf-posix-tests (Makefile.am): Likewise.
30509 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
30510 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
30511 * modules/xstrtoimax-tests (Makefile.am): Likewise.
30512 * modules/xstrtol-tests (Makefile.am): Likewise.
30513 * modules/xstrtoumax-tests (Makefile.am): Likewise.
30514 * modules/yesno-tests (Makefile.am): Likewise.
30516 2007-10-03 Bruno Haible <bruno@clisp.org>
30518 * modules/trunc-tests: New file.
30519 * tests/test-trunc.c: New file.
30521 * modules/trunc: New file.
30522 * lib/trunc.c: New file.
30523 * m4/trunc.m4: New file.
30524 * lib/math.in.h (trunc): New declaration.
30525 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
30527 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
30529 * doc/functions/trunc.texi: Mention the 'trunc' module.
30531 2007-10-03 Bruno Haible <bruno@clisp.org>
30533 * tests/test-fpending.c: New file, mostly copied
30534 from coreutils/lib/t-fpending.c.
30535 * modules/fpending-tests: New file.
30537 2007-10-03 Bruno Haible <bruno@clisp.org>
30539 Port the stdio extensions to QNX (untested).
30540 * lib/fseterr.c (fseterr): Add support for QNX.
30541 * lib/fbufmode.c (fbufmode): Likewise.
30542 * lib/freadable.c (freadable): Likewise.
30543 * lib/fwritable.c (fwritable): Likewise.
30544 * lib/freading.c (freading): Likewise.
30545 * lib/fwriting.c (fwriting): Likewise.
30546 * lib/freadahead.c (freadahed): Likewise.
30547 * lib/fpurge.c (fpurge): Likewise.
30548 * lib/fseeko.c (rpl_fseeko): Likewise.
30550 2007-10-03 Bruno Haible <bruno@clisp.org>
30551 Jim Meyering <jim@meyering.net>
30552 Eric Blake <ebb9@byu.net>
30554 * doc/relocatable.texi: Use @command instead of @program.
30556 2007-10-02 Jim Meyering <jim@meyering.net>
30558 Perform one more "_.h" -> ".in.h" substitution.
30559 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
30560 instead of unistd_.h here, too.
30562 2007-10-01 Bruno Haible <bruno@clisp.org>
30564 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
30565 Needed for the alloca-opt module.
30567 2007-09-30 Bruno Haible <bruno@clisp.org>
30569 * lib/alloca.in.h: Renamed from lib/alloca_.h.
30570 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
30572 * lib/argz.in.h: Renamed from lib/argz_.h.
30573 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
30574 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
30575 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
30577 * lib/dirent.in.h: Renamed from lib/dirent_.h.
30578 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
30580 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
30581 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
30583 * lib/float.in.h: Renamed from lib/float_.h.
30584 * modules/float (Files, Makefile.am): Use float.in.h instead of
30586 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
30587 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
30589 * lib/getopt.in.h: Renamed from lib/getopt_.h.
30590 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
30592 * lib/glob.in.h: Renamed from lib/glob_.h.
30593 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
30594 * lib/iconv.in.h: Renamed from lib/iconv_.h.
30595 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
30597 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
30598 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
30600 * lib/locale.in.h: Renamed from lib/locale_.h.
30601 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
30603 * lib/math.in.h: Renamed from lib/math_.h.
30604 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
30605 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
30606 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
30607 of netinet_in_.h. Add dependency.
30608 * lib/poll.in.h: Renamed from lib/poll_.h.
30609 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
30610 * lib/search.in.h: Renamed from lib/search_.h.
30611 * modules/search (Files, Makefile.am): Use search.in.h instead of
30613 * lib/signal.in.h: Renamed from lib/signal_.h.
30614 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
30616 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
30617 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
30619 * lib/stdint.in.h: Renamed from lib/stdint_.h.
30620 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
30622 * lib/stdio.in.h: Renamed from lib/stdio_.h.
30623 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
30625 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
30626 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
30628 * lib/string.in.h: Renamed from lib/string_.h.
30629 * modules/string (Files, Makefile.am): Use string.in.h instead of
30631 * doc/gnulib-tool.texi (Initial import): Update.
30632 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
30633 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
30634 of sys_select_.h. Add dependency.
30635 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
30636 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
30638 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
30639 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
30641 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
30642 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
30644 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
30645 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
30647 * lib/time.in.h: Renamed from lib/time_.h.
30648 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
30649 * lib/unistd.in.h: Renamed from lib/unistd_.h.
30650 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
30652 * lib/wchar.in.h: Renamed from lib/wchar_.h.
30653 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
30655 * lib/wctype.in.h: Renamed from lib/wctype_.h.
30656 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
30658 * build-aux/bootstrap (slurp): Update.
30659 * lib/.cppi-disable: Update.
30661 2007-09-30 Bruno Haible <bruno@clisp.org>
30663 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
30666 2007-09-30 Bruno Haible <bruno@clisp.org>
30668 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
30670 2007-09-29 Bruno Haible <bruno@clisp.org>
30672 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
30674 2007-09-29 Bruno Haible <bruno@clisp.org>
30676 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
30677 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
30678 * build-aux/install-reloc: Compile also areadlink.c.
30679 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
30681 2007-09-29 Bruno Haible <bruno@clisp.org>
30683 * gnulib-tool (func_emit_initmacro_done): Indentation.
30685 2007-09-29 Bruno Haible <bruno@clisp.org>
30687 * README: Add CVS checkout update instructions.
30688 Info from Bob Proulx <bob@proulx.com>.
30690 2007-09-28 Eric Blake <ebb9@byu.net>
30692 Provide move-if-change.
30693 * build-aux/move-if-change: New file, based on best practice
30694 rather than any canonical upstream location.
30696 2007-09-28 Jim Meyering <jim@meyering.net>
30698 Fix canonicalize loop-detection corner case.
30699 Do not attempt to stat the symlink values stored via seen_triple.
30700 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
30701 on linux-2.6.18, (but not 2.6.22).
30702 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
30703 triple_compare. The former compares dev,ino,filename, while the latter
30704 would actually stat dirname(filename) when dev and ino were equal.
30705 * lib/hash-triple.c: Install <string.h>.
30707 (triple_compare_ino_str): New function.
30708 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
30710 2007-09-28 Eric Blake <ebb9@byu.net>
30712 Enforce that AC_REPLACE_FUNCS files exist.
30713 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
30714 override check for typos.
30716 Fix test-closein on Solaris 10.
30717 * tests/test-closein.c (main): Don't assume stdin can be inherited
30718 closed on all systems.
30719 * tests/test-closein.sh: Likewise.
30720 Reported by Piotr Tarnowski.
30722 2007-09-28 Jim Meyering <jim@meyering.net>
30724 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
30726 2007-09-27 Jim Meyering <jim@meyering.net>
30728 canonicalize: Avoid a false-positive cycle failure.
30729 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
30730 Sort. Remove cycle-check.
30731 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
30733 (seen_triple): New function.
30734 (canonicalize_filename_mode): Use it instead of cycle-check.
30735 * tests/test-canonicalize.c: Add a test for this bug.
30736 * tests/test-canonicalize.sh: Set up and run the test.
30738 New module, file-set, from coreutils.
30739 * modules/file-set: Define it.
30740 * lib/file-set.c, lib/file-set.h: Implement.
30742 New module, hash-triple, from coreutils.
30743 * modules/hash-triple: Define it.
30744 * lib/hash-triple.c, lib/hash-triple.h: Implement.
30746 2007-09-25 Eric Blake <ebb9@byu.net>
30748 Fix strerror on Interix.
30749 * lib/string_.h (strerror): Declare replacement.
30750 * doc/functions/strerror.texi (strerror): Document the Interix
30752 * modules/string (Makefile.am): Support new hooks.
30753 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
30754 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
30755 gl_FUNC_STRERROR_SEPARATE.
30756 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
30757 * lib/strerror.c (rpl_strerror): Provide replacement.
30758 * modules/strerror (Depends-on): Add string.
30759 (configure.ac): Detect use of module.
30760 * tests/test-strerror.c: New file.
30761 * modules/strerror-tests: New test module.
30762 * modules/argp (Depends-on): Add strerror.
30763 * modules/error (Depends-on): Likewise.
30764 Reported by Martin Koeppe.
30766 2007-09-24 Bruno Haible <bruno@clisp.org>
30768 * README: Update git instructions.
30770 2007-09-24 Eric Blake <ebb9@byu.net>
30772 Revert fpending breakage from 2007-09-08.
30773 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
30776 2007-09-24 Jim Meyering <jim@meyering.net>
30778 filenamecat.c: Add a test.
30779 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
30780 showing how the function works when DIR is the empty string.
30782 2007-09-21 Simon Josefsson <simon@josefsson.org>
30784 * tests/test-canonicalize.sh: Turn on executable bit.
30786 2007-09-19 Eric Blake <ebb9@byu.net>
30788 * README: Update CVS instructions.
30790 2007-09-18 Bruno Haible <bruno@clisp.org>
30792 * modules/areadlink: New file.
30793 * lib/areadlink.h (areadlink): New declaration.
30794 * lib/areadlink.c: New file, based on lib/xreadlink.c.
30796 2007-09-17 Jim Meyering <jim@meyering.net>
30798 * lib/savewd.c (ESTALE) [!defined]: Define.
30799 Reported to be required on Interix by Martin Koeppe.
30801 2007-09-17 Bruno Haible <bruno@clisp.org>
30803 * gnulib-tool (func_version): Use $version.
30805 2007-09-16 Bruno Haible <bruno@clisp.org>
30807 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
30808 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
30809 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
30810 Reported by Greg Schafer <gschafer@zip.com.au>.
30812 2007-09-15 Bruno Haible <bruno@clisp.org>
30814 * gnulib-tool (sed): Try a little harder to make bash understand the
30816 Reported by Bruce Korb <bruce.korb@gmail.com>.
30818 2007-09-13 Eric Blake <ebb9@byu.net>
30820 * ChangeLog: Remove conflict markers.
30822 2007-09-13 Simon Josefsson <simon@josefsson.org>
30824 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
30825 Reported by Bruno Haible <bruno@clisp.org>.
30827 2007-09-12 Bruno Haible <bruno@clisp.org>
30829 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
30830 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
30833 2007-09-12 Eric Blake <ebb9@byu.net>
30835 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
30836 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
30837 Autoconf definition.
30838 * modules/euidaccess (Depends-on): Add extensions, for
30839 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
30840 * modules/fnmatch (Depends-on): Likewise.
30841 * modules/getaddrinfo (Depends-on): Likewise.
30842 * modules/getdelim (Depends-on): Likewise.
30843 * modules/getline (Depends-on): Likewise.
30844 * modules/getsubopt (Depends-on): Likewise.
30845 * modules/gettext (Depends-on): Likewise.
30846 * modules/group-member (Depends-on): Likewise.
30847 * modules/mbchar (Depends-on): Likewise.
30848 * modules/memmem (Depends-on): Likewise.
30849 * modules/mempcpy (Depends-on): Likewise.
30850 * modules/memrchr (Depends-on): Likewise.
30851 * modules/pagealign_alloc (Depends-on): Likewise.
30852 * modules/readutmp (Depends-on): Likewise.
30853 * modules/stpcpy (Depends-on): Likewise.
30854 * modules/stpncpy (Depends-on): Likewise.
30855 * modules/strchrnul (Depends-on): Likewise.
30856 * modules/strndup (Depends-on): Likewise.
30857 * modules/strsep (Depends-on): Likewise.
30858 * modules/strverscmp (Depends-on): Likewise.
30859 * modules/vasprintf (Depends-on): Likewise.
30860 * modules/wcwidth (Depends-on): Likewise.
30861 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
30862 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
30863 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
30864 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
30865 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
30866 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
30867 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
30868 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
30869 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
30870 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
30871 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30872 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
30873 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
30874 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
30875 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
30876 * m4/readutmp.m4 (gl_READUTMP): Likewise.
30877 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30878 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
30879 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
30880 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
30881 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
30882 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
30883 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
30884 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
30885 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
30886 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30887 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
30888 so that lock.m4 can be used in gettext without extensions module.
30890 2007-09-11 Bruno Haible <bruno@clisp.org>
30892 * m4/isc-posix.m4: Remove file.
30893 Suggested by Eric Blake.
30895 2007-09-11 Eric Blake <ebb9@byu.net>
30897 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
30899 2007-09-10 Bruno Haible <bruno@clisp.org>
30901 * posix-modules: Fix typo in error message.
30902 Reported by Matt <mkraai@beckman.com>.
30904 2007-09-09 Bruno Haible <bruno@clisp.org>
30906 * doc/functions/getdelim.texi: Update list of platforms lacking the
30908 * doc/functions/getline.texi: Likewise.
30910 2007-09-09 Jim Meyering <jim@meyering.net>
30912 * lib/hash.c (hash_initialize): Detect calloc failure.
30913 Reported by Bruno Haible.
30915 2007-09-09 Bruno Haible <bruno@clisp.org>
30917 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
30918 malloc or realloc fails.
30920 2007-09-09 Bruno Haible <bruno@clisp.org>
30922 * modules/getcwd (Depends-on): Add malloc-posix.
30923 * modules/glob (Depends-on): Likewise.
30924 * modules/putenv (Depends-on): Likewise.
30925 * modules/strdup (Depends-on): Likewise.
30926 * modules/getdelim (Depends-on): Add realloc-posix.
30927 * modules/read-file (Depends-on): Likewise.
30929 2007-09-09 Bruno Haible <bruno@clisp.org>
30931 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
30932 (gl_FUNC_MALLOC_POSIX): Require it.
30933 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
30934 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
30935 * modules/realloc (Files): Add m4/malloc.m4.
30936 * modules/calloc (Files): Likewise.
30938 2007-09-09 Bruno Haible <bruno@clisp.org>
30940 * modules/malloc-posix: New file.
30941 * modules/malloc (Depends-on): Add malloc-posix.
30942 * lib/malloc.c: Include errno.h.
30943 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
30944 and a POSIX-compatible malloc into a single function. Set ENOMEM
30945 when returning NULL.
30946 * m4/malloc.m4: New file.
30947 * doc/functions/malloc.texi: Mention the malloc-posix module.
30948 * lib/stdlib_.h (malloc): New declaration.
30949 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30950 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
30951 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
30952 and HAVE_MALLOC_POSIX.
30954 2007-09-09 Bruno Haible <bruno@clisp.org>
30956 * modules/realloc-posix: New file.
30957 * modules/realloc (Depends-on): Add realloc-posix.
30958 * lib/realloc.c: Include errno.h.
30959 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
30960 and a POSIX-compatible realloc into a single function. Set ENOMEM
30961 when returning NULL.
30962 * m4/realloc.m4: New file.
30963 * doc/functions/realloc.texi: Mention the realloc-posix module.
30964 * lib/stdlib_.h (realloc): New declaration.
30965 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30966 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
30967 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
30968 and HAVE_REALLOC_POSIX.
30970 2007-09-09 Bruno Haible <bruno@clisp.org>
30972 * modules/calloc-posix: New file.
30973 * modules/calloc (Depends-on): Add calloc-posix.
30974 * lib/calloc.c: Include errno.h.
30975 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
30976 and a POSIX-compatible calloc into a single function. Set ENOMEM
30977 when returning NULL.
30978 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
30979 * doc/functions/calloc.texi: Mention the calloc-posix module.
30980 * lib/stdlib_.h (calloc): New declaration.
30981 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30982 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
30983 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
30984 and HAVE_CALLOC_POSIX.
30986 2007-09-09 Bruno Haible <bruno@clisp.org>
30988 Allow for modules to show an arbitrary notice.
30989 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
30990 * gnulib-tool: New option --extract-notice.
30991 (func_usage): Document it.
30992 (sed_extract_prog): Update.
30993 (func_get_notice): New function.
30994 (func_modules_notice): New function.
30995 (func_import, func_create_testdir): Invoke it.
30996 Suggested by Jim Meyering.
30998 2007-09-09 Bruno Haible <bruno@clisp.org>
31000 * gnulib-tool: New options --verbose, --quiet.
31001 (func_usage): Document them.
31002 (verbose): New variable.
31003 (func_execute_command): New function.
31004 (func_import): Don't show the module list and the file list if
31006 (func_create_testdir): Likewise. Use func_execute_command.
31007 (func_create_megatestdir): Use func_execute_command.
31009 2007-09-08 Bruno Haible <bruno@clisp.org>
31011 * gnulib-tool (func_import): Prefer rsync over wget when available,
31012 for fetching the PO files.
31014 2007-09-08 Bruno Haible <bruno@clisp.org>
31016 * posix-modules: New file. Portions copied from gnulib-tool.
31017 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
31019 2007-09-08 Jim Meyering <jim@meyering.net>
31021 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
31022 * lib/fpending.h: Rename from __fpending.h.
31023 * lib/fpending.c: Rename from __fpending.c.
31024 Include "fpending.h", not "__fpending.h".
31025 * lib/__fpending.h, lib/__fpending.c: Remove files.
31026 * modules/fpending (Files): Reflect new file names.
31027 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
31029 2007-09-08 Bruno Haible <bruno@clisp.org>
31031 * m4/inttypes-h.m4: Remove stub file.
31033 2007-09-07 Simon Josefsson <simon@josefsson.org>
31035 * doc/headers/stdint.texi: Discuss #include_next issue.
31037 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
31039 * build-aux/bootstrap: Remove obsolete comment about wget --help.
31041 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31043 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
31046 2007-09-03 Jim Meyering <jim@meyering.net>
31048 New module: git-version-gen.
31049 * modules/git-version-gen: New file.
31051 Import changes from coreutils for bootstrap script.
31053 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
31055 bootstrap: uses rsync to download the .po files
31056 * build-aux/bootstrap (po_download_command_format): New global.
31057 (download_po_files): Use rsync.
31058 (update_po_files): Don't remove .po files after download,
31059 so future rsync runs can take advantage of the copies.
31061 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
31063 Solve the unnecessary-.po-file-regeneration problem once and for all.
31064 * build-aux/bootstrap (download_po_files): New function, renamed from
31065 get_translations. Now, downloads, but doesn't update LINGUAS.
31066 (update_po_files): New function.
31068 bootstrap: Ignore more.
31069 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
31070 uniwidth to e.g., lib/.gitignore.
31071 (slurp): Handle the sys_stat_.h -> sys mapping, too.
31073 * build-aux/bootstrap: New setting: vc_ignore.
31074 (insert_sorted_if_absent): Create $file if absent.
31075 Adapt to new, possibly empty, list: $vc_ignore.
31077 bootstrap: generate more ignorable names
31078 * build-aux/bootstrap (slurp): When generating ignorable names,
31079 also map .sin to .sed, .gperf to .c, and .y to .c.
31081 2007-09-03 Jim Meyering <jim@meyering.net>
31083 * build-aux/git-version-gen: New file, from coreutils. For details, see
31084 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
31086 2007-09-02 Bruno Haible <bruno@clisp.org>
31088 Fix mis-recognition of 'mcs' on QNX 6.
31089 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
31090 output contains the string "Mono".
31091 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
31092 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
31094 2007-09-01 Bruno Haible <bruno@clisp.org>
31096 Fix collision between uniwidth/* and linebreak modules.
31097 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
31098 u32_width): Remove declarations.
31099 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
31100 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
31101 streq3, streq2, streq1, streq0): Remove functions.
31102 (STREQ): Remove macro.
31103 (is_cjk_encoding): Remove function.
31104 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
31105 (uc_width, u8_width, u16_width, u32_width): Remove functions.
31106 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
31107 * NEWS: Document the change.
31109 2007-09-01 Bruno Haible <bruno@clisp.org>
31111 * lib/streq.h: Add double-inclusion guard.
31113 2007-09-01 Karl Berry <karl@gnu.org>
31115 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
31117 2007-08-28 Jim Meyering <jim@meyering.net>
31119 Rename mreadlink_with_size to areadlink_with_size.
31120 * NEWS: Document the change.
31121 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
31122 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
31123 * lib/mreadlink.h: Rename this to...
31124 * lib/areadlink.h: ...this.
31125 * modules/mreadlink-with-size: Rename this to...
31126 * modules/areadlink-with-size: ...this.
31127 * lib/canonicalize.c: Reflect the renaming.
31128 * modules/canonicalize: Likewise.
31130 2007-08-26 Bruno Haible <bruno@clisp.org>
31132 * gnulib-tool (func_import): When deciding which files to remove,
31133 consider also dangling symbolic links.
31134 Reported by Eric Blake.
31136 2007-08-26 Bruno Haible <bruno@clisp.org>
31138 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
31140 2007-08-23 Simon Josefsson <simon@josefsson.org>
31142 * lib/readline.c: Don't include getline.h, the prototype is now
31145 2007-08-23 Jim Meyering <jim@meyering.net>
31148 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
31149 around the funlockfile call, since funlockfile never sets errno.
31150 Don't set errno upon failed realloc.
31152 2007-08-22 Eric Blake <ebb9@byu.net>
31155 * lib/getdelim.c (getdelim): Revert regression that required *n to
31156 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
31157 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
31158 getdelim, rather than whether implementation is missing.
31159 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
31160 * lib/stdio_.h (getline): Also declare if replacement is
31162 * doc/functions/getdelim.texi: New file.
31163 * doc/functions/getline.texi: Likewise.
31164 * doc/gnulib.texi (Function Substitutes): Add new files.
31165 Reported by Bruno Haible.
31167 2007-08-22 Ludovic Courtès <ludo@gnu.org>
31169 * users.txt: Add Guile.
31171 2007-08-22 Eric Blake <ebb9@byu.net>
31173 * tests/test-getdelim.c (main): Use remove, not unlink.
31174 * tests/test-getline.c (main): Likewise.
31176 Move getline and getdelim into stdio.h, per POSIX 200x.
31177 * modules/getline (Files): Remove getline.h.
31178 (Depends-on): Add stdio.
31179 (configure.ac): Add module indicator.
31180 * modules/getdelim (Files): Remove getdelim.h.
31181 (Depends-on): Add stdio.
31182 (configure.ac): Add module indicator.
31183 * modules/stdio (Makefile.am): Work with new indicators.
31184 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
31185 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
31186 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31187 * lib/getdelim.h: Delete.
31188 * lib/getline.h: Delete.
31189 * lib/stdio_.h (getdelim, getline): Declare.
31190 * modules/getdelim-tests: New module.
31191 * modules/getline-tests: Likewise.
31192 * tests/test-getdelim.c: New file.
31193 * tests/test-getline.c: Likewise.
31194 * NEWS: Document the change.
31195 * lib/getline.c: Update choice of header.
31196 * lib/csharpcomp.c: Likewise.
31197 * lib/getpass.c: Likewise.
31198 * lib/javacomp.c: Likewise.
31199 * lib/javaversion.c: Likewise.
31200 * lib/yesno.c: Likewise.
31201 * lib/getdelim.c: Likewise.
31202 (getdelim): Set errno on failure, and avoid memory leak.
31204 2007-08-19 Bruno Haible <bruno@clisp.org>
31206 * modules/closein (Depends-on): Add freadahead.
31207 * lib/closein.c: Include freadahead.h.
31208 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
31211 2007-08-19 Bruno Haible <bruno@clisp.org>
31213 * modules/freadahead-tests: New file.
31214 * tests/test-freadahead.sh: New file.
31215 * tests/test-freadahead.c: New file.
31217 * modules/freadahead: New file.
31218 * lib/freadahead.h: New file.
31219 * lib/freadahead.c: New file.
31220 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
31221 fbufmode, fpurge, freadable, fwritable.
31223 2007-08-19 Eric Blake <ebb9@byu.net>
31225 Test yesno in combination with closein.
31226 * lib/yesno.c (yesno): Document use of stdin.
31227 * modules/yesno-tests (Files): New module.
31228 * tests/test-yesno.c (main): New file.
31229 * tests/test-yesno.sh: Likewise.
31231 2007-08-19 Bruno Haible <bruno@clisp.org>
31233 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
31234 * lib/fseeko.c (rpl_fseeko): Likewise.
31235 * lib/fseterr.c (fseterr): Likewise.
31237 2007-08-19 Bruno Haible <bruno@clisp.org>
31239 * tests/test-lseek.c (main): Disable a test for BeOS.
31240 * doc/functions/lseek.texi: Document the BeOS bug.
31242 2007-08-19 Bruno Haible <bruno@clisp.org>
31243 Eric Blake <ebb9@byu.net>
31245 * lib/lseek.c: Include <sys/stat.h>.
31246 (rpl_lseek): Add workaround code also for Unix platforms.
31248 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
31249 * doc/functions/lseek.texi: Document BeOS definiency.
31251 2007-08-18 Bruno Haible <bruno@clisp.org>
31253 * modules/fstrcmp-tests: New file.
31254 * tests/test-fstrcmp.c: New file.
31256 2007-08-18 Bruno Haible <bruno@clisp.org>
31258 * modules/fstrcmp: New file, from GNU gettext with modifications.
31259 * lib/fstrcmp.h: New file, from GNU gettext.
31260 * lib/fstrcmp.c: New file, from GNU gettext.
31261 * MODULES.html.sh (String handling): Add fstrcmp.
31263 2007-08-18 Bruno Haible <bruno@clisp.org>
31265 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
31267 (diag, compareseq): Remove const from the ctxt argument.
31268 (USE_HEURISTIC): Undefine at the end.
31270 2007-08-18 Jim Meyering <jim@meyering.net>
31272 New file: lib/idcache.h
31273 * NEWS: Mention the addition.
31274 * modules/idcache (Files): Add lib/idcache.h
31275 * lib/idcache.c: Include "idcache.h".
31276 Don't include <sys/types.h>.
31277 Add a FIXME comment.
31278 Move file-scoped "static" declarations to the top.
31279 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
31281 2007-08-17 Bruno Haible <bruno@clisp.org>
31282 and Paul Eggert <eggert@cs.ucla.edu>
31284 * MODULES.html.sh: Add diffseq.
31285 * modules/diffseq: New file.
31286 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
31287 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
31289 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
31291 Import changes from coreutils for bootstrap script.
31293 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
31295 * build-aux/bootstrap (slurp): Work even in environments where
31296 "ls" defaults to "ls -A". Put in a FIXME, though, since the
31297 current code does not slurp files whose names start with ".", and
31298 this looks like it might be a troublesome area.
31300 2007-07-11 Jim Meyering <jim@meyering.net>
31302 If there's a GPL vN copyright comment, require that N == 3.
31304 2007-07-08 Jim Meyering <jim@meyering.net>
31306 Run the coreutils-specific code only if tests/Makefile.am.in exists.
31307 * build-aux/bootstrap (mam_template): Move definition out of loop.
31309 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
31311 * build-aux/bootstrap (symlink_to_dir): Rename function from
31312 symlink_to_gnulib. Add a directory parameter. Update all
31314 (cp_mark_as_generated): Also check for -- and link to -- files in
31317 2007-07-08 Jim Meyering <jim@meyering.net>
31319 Adapt to deeper hierarchy in gnulib.
31320 * build-aux/bootstrap (symlink_to_dir): If the destination
31321 directory doesn't exist, create it. This is required at least for
31322 "lib/uniwidth/cjk.h".
31324 2007-05-15 Jim Meyering <jim@meyering.net>
31326 * build-aux/bootstrap: Now that generated Makefile.am files
31327 are no longer under version control, they must be created at
31330 2007-08-14 Ben Pfaff <blp@gnu.org>
31332 * lib/count-one-bits.h: Add comments. From Bruno Haible.
31334 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
31336 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
31337 given the changes below.
31338 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
31339 even on hosts that have padding bits beyond the supported 64.
31341 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
31343 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
31344 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
31345 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
31347 (xstrtol_error): Remove.
31348 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
31349 but with a different signature.
31350 (ATTRIBUTE_NORETURN, __attribute__): New macros.
31351 * lib/xstrtol-error.c: Include exitfail.h.
31352 (xstrtol_fatal): New function, with a different signature from the
31353 old xstrtol_error, so that the caller need not worry about passing
31354 in an exit status, or about storage management of the option argument.
31355 (xstrtol_error): Now a static function. Redo signature to
31356 implement xstrtol_fatal. Output the correct number of hyphens in
31357 front of the option so that the caller need not worry about
31358 storage management.
31360 (_): Remove; not used now.
31361 * modules/xstrtol: Depend on getopt.
31362 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
31363 of old STRTOL_FATAL_ERROR macro.
31364 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
31366 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
31367 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
31369 2007-08-08 Eric Blake <ebb9@byu.net>
31371 * lib/xstrtol-error.c: Add missing include.
31373 Move xstrtol messages into gnulib domain, when --pobase is used.
31374 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
31375 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
31376 * modules/xstrtol (Files): Distribute new file.
31377 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
31378 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
31379 * tests/test-xstrtol.c: ...into new file.
31380 * tests/test-xstrtoul.c: Also test xstrtoul.
31381 * tests/test-xstrtoimax.c: Also test xstrtoimax.
31382 * tests/test-xstrtoumax.c: Also test xstrtoumax.
31383 * tests/test-xstrtol.sh: Drive the tests.
31384 * tests/test-xstrtoimax.sh: Likewise.
31385 * tests/test-xstrtoumax.sh: Likewise.
31386 * modules/xstrtol-tests: New module.
31387 * modules/xstrtoimax-tests: Likewise.
31388 * modules/xstrtoumax-tests: Likewise.
31390 2007-08-08 Jim Meyering <jim@meyering.net>
31392 New function: mfile_name_concat.
31393 * lib/filenamecat.c (mfile_name_concat): New function, just like
31394 file_name_concat, but return NULL upon failure rather than exiting
31396 * lib/filenamecat.h: Declare it.
31398 2007-08-07 Bruno Haible <bruno@clisp.org>
31400 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
31401 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
31403 Reported by Eric Blake.
31405 2007-08-07 Simon Josefsson <simon@josefsson.org>
31407 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
31408 * modules/crypto/arcfour (License): Likewise.
31409 * modules/crypto/des-tests (License): Likewise.
31410 * modules/crypto/gc-arctwo-tests (License): Likewise.
31411 * modules/crypto/gc-des-tests (License): Likewise.
31412 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
31413 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
31414 * modules/crypto/gc-md2-tests (License): Likewise.
31415 * modules/crypto/gc-md4-tests (License): Likewise.
31416 * modules/crypto/gc-md5-tests (License): Likewise.
31417 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
31418 * modules/crypto/gc-rijndael-tests (License): Likewise.
31419 * modules/crypto/gc-sha1-tests (License): Likewise.
31420 * modules/crypto/gc-tests (License): Likewise.
31421 * modules/crypto/hmac-md5 (License): Likewise.
31422 * modules/crypto/hmac-sha1 (License): Likewise.
31423 * modules/crypto/md2-tests (License): Likewise.
31424 * modules/crypto/md4-tests (License): Likewise.
31425 * modules/crypto/md5 (License): Likewise.
31426 * modules/crypto/rijndael (License): Likewise.
31427 * modules/crypto/sha1 (License): Likewise.
31428 * modules/memxor (License): Likewise.
31430 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
31431 and Bruno Haible <bruno@clisp.org>
31433 * NEWS: Describe interface changes to human, xstrtol.
31434 * lib/human.h: Include <xstrtol.h>.
31435 (human_options): Return enum strtol_error, not int. Remove
31436 bool arg; take int * instead.
31437 * lib/human.c: Don't include "gettext.h".
31438 (_): Remove; no longer used.
31439 Don't include <xstrtol.h>, since human.h does it.
31440 (human_options): Adjust to abovementioned interface changes.
31441 Do not report error to stderr; that's now the caller's
31443 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
31445 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
31446 Str, Argument_type_string. All uses changed. Put " argument"
31447 in diagnostics to make them clearer. Change wording of suffix
31448 message for clarity.
31449 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
31450 Argument_type_string.
31451 (STRTOL_FATAL_WARN): Remove; no longer used.
31452 * modules/human (Depends-on): Remove gettext-h.
31454 2007-08-06 Simon Josefsson <simon@josefsson.org>
31456 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
31458 2007-07-31 Bruno Haible <bruno@clisp.org>
31460 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
31461 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
31462 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
31464 2007-07-31 Bruno Haible <bruno@clisp.org>
31466 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
31467 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
31469 2007-07-30 Bruno Haible <bruno@clisp.org>
31471 * modules/base64 (License): Use the synonymous term "LGPLv2+".
31472 * modules/c-ctype (License): Likewise.
31473 * modules/c-strcase (License): Likewise.
31474 * modules/check-version (License): Likewise.
31475 * modules/iconv (License): Likewise.
31476 * modules/iconv_open (License): Likewise.
31477 * modules/read-file (License): Likewise.
31478 * modules/striconv (License): Likewise.
31479 * modules/strverscmp (License): Likewise.
31480 * modules/vasprintf (License): Likewise.
31481 * modules/crypto/des (License): Likewise.
31482 * modules/crypto/gc (License): Likewise.
31483 * modules/crypto/gc-arcfour (License): Likewise.
31484 * modules/crypto/gc-arctwo (License): Likewise.
31485 * modules/crypto/gc-des (License): Likewise.
31486 * modules/crypto/gc-hmac-md5 (License): Likewise.
31487 * modules/crypto/gc-hmac-sha1 (License): Likewise.
31488 * modules/crypto/gc-md2 (License): Likewise.
31489 * modules/crypto/gc-md4 (License): Likewise.
31490 * modules/crypto/gc-md5 (License): Likewise.
31491 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
31492 * modules/crypto/gc-random (License): Likewise.
31493 * modules/crypto/gc-rijndael (License): Likewise.
31494 * modules/crypto/gc-sha1 (License): Likewise.
31495 * modules/crypto/md2 (License): Likewise.
31496 * modules/crypto/md4 (License): Likewise.
31498 2007-07-30 Jim Meyering <jim@meyering.net>
31500 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
31501 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
31502 it has valid stat data. This bug would cause du not to count the
31503 sizes of inaccessible directories.
31504 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
31505 in <http://bugzilla.redhat.com/250077>.
31507 2007-07-25 Peter O'Gorman <peter@pogma.com>
31508 Bruno Haible <bruno@clisp.org>
31510 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
31511 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
31512 #include_next, gives a diagnostic about it, but reports no error in
31514 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
31516 2007-07-24 Ben Pfaff <blp@gnu.org>
31518 Improve name: "count-one-bits" is better than "popcount".
31519 * MODULES.html.sh: Update name.
31520 * lib/popcount.h: Renamed lib/count-one-bits.h.
31521 (popcount): Renamed count_one_bits.
31522 (popcountl): Renamed count_one_bits_l.
31523 (popcountll): Renamed count_one_bits_ll.
31524 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
31525 * modules/popcount: Renamed module/count-one-bits.
31526 * modules/popcount-tests: Renamed module/count-one-bits-tests.
31527 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
31529 2007-07-23 Ben Pfaff <blp@gnu.org>
31531 * lib/popcount.h (popcount32): Reduce size of constants, to allow
31532 better code generation, and add U to large constants to avoid
31533 warnings, in non-GCC case.
31534 Suggested by Bruno Haible.
31536 2007-07-23 Ben Pfaff <blp@gnu.org>
31538 * lib/popcount.h: Use verify_true instead of if...abort.
31539 * modules/popcount: Depend on verify module.
31540 Suggested by Jim Meyering.
31542 2007-07-23 Bruno Haible <bruno@clisp.org>
31544 * gnulib-tool (func_import): Create a .cvsignore file also when the
31545 directory is not yet in CVS but the toplevel directory is. When
31546 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
31547 Reported by Karl Berry.
31549 2007-07-22 Ben Pfaff <blp@gnu.org>
31551 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
31553 Suggested by Eric Blake.
31555 2007-07-22 Ben Pfaff <blp@gnu.org>
31557 New module: popcount.
31558 * MODULES.html.sh: Add popcount.
31559 * modules/popcount: New file.
31560 * modules/popcount-tests: New file.
31561 * tests/test-popcount.c: New file.
31562 * lib/popcount.h: New file.
31563 * m4/popcount.m4: New file.
31565 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
31567 * build-aux/announce-gen: Update to GPLv3.
31569 * build-aux/config.guess: Update from config.
31571 2007-07-21 Bruno Haible <bruno@clisp.org>
31573 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
31574 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
31576 2007-07-20 Jim Meyering <jim@meyering.net>
31578 * check-module: Diagnose a self-dependency.
31580 2007-07-19 Bruno Haible <bruno@clisp.org>
31582 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
31584 Reported by Eric Blake.
31586 2007-07-18 Bruno Haible <bruno@clisp.org>
31588 * gnulib-tool: New options --po-base, --po-domain.
31589 (func_usage): Document them.
31590 (pobase, po_domain): New variables.
31591 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
31592 DEFAULT_TEXT_DOMAIN.
31593 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
31594 (func_import): Consider pobase and po_domain. Create a po/ directory.
31595 (func_create_testdir): Set pobase and po_domain to empty.
31596 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
31597 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
31599 2007-07-18 Bruno Haible <bruno@clisp.org>
31601 * gnulib-tool (func_get_automake_snippet): Synthesize also an
31602 EXTRA_DIST augmentation for files in build-aux/.
31604 2007-07-16 Bruno Haible <bruno@clisp.org>
31606 * modules/lseek (License): Use the synonymous term "LGPLv2+".
31607 * modules/getdelim (License): Likewise.
31609 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31611 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
31612 * modules/d-type (License): Likewise.
31613 * modules/extensions (License): Likewise.
31614 * modules/fnmatch (License): Likewise.
31615 * modules/fseeko (License): Likewise.
31616 * modules/getaddrinfo (License): Likewise.
31617 * modules/getline (License): Likewise.
31618 * modules/getlogin_r (License): Likewise.
31619 * modules/getpass (License): Likewise.
31620 * modules/gettimeofday (License): Likewise.
31621 * modules/glob (License): Likewise.
31622 * modules/inet_ntop (License): Likewise.
31623 * modules/malloc (License): Likewise.
31624 * modules/malloca (License): Likewise.
31625 * modules/memmem (License): Likewise.
31626 * modules/mempcpy (License): Likewise.
31627 * modules/memset (License): Likewise.
31628 * modules/minmax (License): Likewise.
31629 * modules/mktime (License): Likewise.
31630 * modules/netinet_in (License): Likewise.
31631 * modules/pathmax (License): Likewise.
31632 * modules/poll (License): Likewise.
31633 * modules/regex (License): Likewise.
31634 * modules/snprintf (License): Likewise.
31635 * modules/stdbool (License): Likewise.
31636 * modules/stdint (License): Likewise.
31637 * modules/stdio (License): Likewise.
31638 * modules/strcase (License): Likewise.
31639 * modules/strcasestr (License): Likewise.
31640 * modules/strdup (License): Likewise.
31641 * modules/string (License): Likewise.
31642 * modules/strndup (License): Likewise.
31643 * modules/strnlen (License): Likewise.
31644 * modules/strpbrk (License): Likewise.
31645 * modules/strptime (License): Likewise.
31646 * modules/strsep (License): Likewise.
31647 * modules/sys_select (License): Likewise.
31648 * modules/sys_socket (License): Likewise.
31649 * modules/sys_stat (License): Likewise.
31650 * modules/sys_time (License): Likewise.
31651 * modules/time (License): Likewise.
31652 * modules/time_r (License): Likewise.
31653 * modules/timegm (License): Likewise.
31654 * modules/unistd (License): Likewise.
31655 * modules/vsnprintf (License): Likewise.
31656 * modules/wctype (License): Likewise.
31658 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31660 * modules/argz (License): LGPLv2+.
31662 2007-07-15 Karl Berry <karl@gnu.org>
31664 * doc/gnulib.texi: revise node structure per new fdl.texi.
31666 2007-07-14 Bruno Haible <bruno@clisp.org>
31668 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
31670 * lib/uniname/uninames.h: Regenerated.
31672 2007-07-14 Karl Berry <karl@gnu.org>
31674 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
31675 omitting sectioning and index commands.
31677 2007-07-13 Bruno Haible <bruno@clisp.org>
31679 New gnulib-tool option --more-symlinks.
31680 * gnulib-tool (func_usage): Document --more-symlinks.
31681 (do_copyrights): New variable.
31682 Recognize option --more-symlinks.
31683 (func_import): Don't add a copyright notice transform to
31684 sed_transform_lib_file if do_copyrights is empty.
31686 2007-07-13 Bruno Haible <bruno@clisp.org>
31688 * lib/vasnprintf.c (decimal_point_char): Define also if
31689 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
31690 && !NEED_PRINTF_DIRECTIVE_A.
31691 Reported by Clemens Koller <clemens.koller@anagramm.de> via
31692 Gary V. Vaughan <gary@gnu.org>.
31694 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
31696 * lib/inttypes_.h: Undo previous change, since it was fixed
31697 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
31699 2007-07-13 Bruno Haible <bruno@clisp.org>
31701 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
31702 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
31704 2007-07-13 Jim Meyering <jim@meyering.net>
31706 df: Don't fail for Tru64's "file-on-file mount".
31707 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
31708 so we fall through and use statfs instead. Details here:
31709 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
31710 Reported by Albert Chin.
31712 2007-07-13 Bruno Haible <bruno@clisp.org>
31714 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
31715 * modules/configmake (License): Likewise.
31716 * modules/gettext (License): Likewise.
31717 * modules/gettext-h (License): Likewise.
31718 * modules/include_next (License): Likewise.
31719 * modules/link-warning (License): Likewise.
31720 * modules/localcharset (License): Likewise.
31721 * modules/localename (License): Likewise.
31722 * modules/lock (License): Likewise.
31723 * modules/relocatable-lib-lgpl (License): Likewise.
31724 * modules/size_max (License): Likewise.
31725 * modules/vasnprintf (License): Likewise.
31726 * modules/wchar (License): Likewise.
31727 * modules/xsize (License): Likewise.
31729 2007-07-13 Bruno Haible <bruno@clisp.org>
31731 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
31732 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
31734 2007-07-12 Bruno Haible <bruno@clisp.org>
31736 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
31737 in the modules files.
31739 2007-07-11 Karl Berry <karl@gnu.org>
31741 * MODULES.html.sh (func_module): use
31742 sed -e '\|^'"${includefile}"'$|d'
31743 instead of /.../d, to avoid errors on $includefile's containing /.
31745 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
31747 * gnulib-tool (func_import): Avoid duplication of --avoid
31749 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
31750 names to `_' in variable names.
31752 2007-07-10 Eric Blake <ebb9@byu.net>
31754 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
31755 * NEWS: Document this change.
31757 2007-07-08 Bruno Haible <bruno@clisp.org>
31759 Update to Unicode 5.0.
31760 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
31761 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
31762 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
31763 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
31764 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
31765 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
31766 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
31767 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
31768 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
31769 U+10A3F, U+1D242..U+1D244.
31770 (nonspacing_table_ind): Update.
31771 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
31772 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
31774 2007-07-08 Bruno Haible <bruno@clisp.org>
31776 Update to Unicode 5.0.
31777 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
31778 code transform. Extend the name index field of unicode_name_to_code and
31779 unicode_code_to_name from 16 to 24 bits.
31780 * lib/uniname/uniname.c (unicode_character_name,
31781 unicode_name_character): Add the range 0x12xxx to the code transform.
31782 * lib/uniname/uninames.h: Regenerated.
31783 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
31785 2007-07-07 Bruno Haible <bruno@clisp.org>
31787 * modules/wcwidth-tests: New file.
31788 * tests/test-wcwidth.c: New file.
31790 Work around MacOS X wcwidth() bug.
31791 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
31792 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
31793 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
31794 original wcwidth in non-UTF-8 locales.
31795 * modules/wcwidth (Depends-on): Add localcharset, streq,
31797 * doc/functions/wcwidth.texi: Update.
31799 2007-07-07 Bruno Haible <bruno@clisp.org>
31801 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
31802 (wcwidth): New declaration.
31803 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
31805 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
31806 here. Prepare for creating <wchar.h> unconditionally.
31807 * modules/wchar (Depends-on): Add link-warning.
31808 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
31809 REPLACE_WCWIDTH, and GL_LINK_WARNING.
31810 * lib/wcwidth.h: Remove file.
31811 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
31812 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
31813 * modules/wcwidth (Files): Remove lib/wcwidth.h.
31814 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
31815 (Include): Replace wcwidth.h with <wchar.h>.
31816 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
31817 * lib/mbchar.h: Don't include wcwidth.h.
31818 * lib/mbswidth.c: Likewise.
31819 * NEWS: Mention the change.
31821 2007-07-07 Bruno Haible <bruno@clisp.org>
31823 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
31824 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
31825 definition with an external declaration.
31826 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
31827 defined as a function. Remove AC_C_INLINE requirement.
31828 * modules/wcwidth (Files): Add lib/wcwidth.c.
31829 (Makefile.am): Remove redundant statement.
31831 2007-07-07 Bruno Haible <bruno@clisp.org>
31833 * MODULES.html.sh (Unicode string functions): Add the new modules.
31835 * tests/uniwidth/test-u32-strwidth.c: New file.
31836 * modules/uniwidth/u32-strwidth-tests: New file.
31838 * lib/uniwidth/u32-strwidth.c: New file.
31839 * modules/uniwidth/u32-strwidth: New file.
31841 * tests/uniwidth/test-u16-strwidth.c: New file.
31842 * modules/uniwidth/u16-strwidth-tests: New file.
31844 * lib/uniwidth/u16-strwidth.c: New file.
31845 * modules/uniwidth/u16-strwidth: New file.
31847 * tests/uniwidth/test-u8-strwidth.c: New file.
31848 * modules/uniwidth/u8-strwidth-tests: New file.
31850 * lib/uniwidth/u8-strwidth.c: New file.
31851 * modules/uniwidth/u8-strwidth: New file.
31853 * tests/uniwidth/test-u32-width.c: New file.
31854 * modules/uniwidth/u32-width-tests: New file.
31856 * lib/uniwidth/u32-width.c: New file.
31857 * modules/uniwidth/u32-width: New file.
31859 * tests/uniwidth/test-u16-width.c: New file.
31860 * modules/uniwidth/u16-width-tests: New file.
31862 * lib/uniwidth/u16-width.c: New file.
31863 * modules/uniwidth/u16-width: New file.
31865 * tests/uniwidth/test-u8-width.c: New file.
31866 * modules/uniwidth/u8-width-tests: New file.
31868 * lib/uniwidth/u8-width.c: New file.
31869 * modules/uniwidth/u8-width: New file.
31871 * tests/uniwidth/test-uc_width.c: New file.
31872 * modules/uniwidth/width-tests: New file.
31874 * lib/uniwidth/width.c: New file, from GNU libiconv.
31875 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
31876 * modules/uniwidth/width: New file.
31878 * lib/uniwidth.h: New file, from GNU libiconv.
31879 * modules/uniwidth/base: New file.
31881 2007-07-07 Bruno Haible <bruno@clisp.org>
31883 * lib/uniname.h: New file, from GNU gettext.
31884 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
31885 * lib/uniname/uninames.h: New file, from GNU gettext.
31886 * lib/uniname/uniname.c: New file, from GNU gettext.
31887 * tests/uniname/test-uninames.sh: New file.
31888 * tests/uniname/test-uninames.c: New file, from GNU gettext.
31889 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
31890 * modules/uniname/base: New file.
31891 * modules/uniname/uniname: New file.
31892 * modules/uniname/uniname-tests: New file.
31893 * MODULES.html.sh (Unicode string functions): Add the new modules.
31895 2007-07-06 Bruno Haible <bruno@clisp.org>
31897 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
31899 2007-07-06 Bruno Haible <bruno@clisp.org>
31901 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
31902 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
31903 includes <cygwin/sys_time.h> which includes <sys/select.h> which
31904 include <sys/time.h>.
31905 Reported by Eric Blake.
31907 2007-07-06 Eric Blake <ebb9@byu.net>
31909 Fix testing canonicalize on cygwin.
31910 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
31911 Revert patch from 2007-06-19.
31912 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
31913 canonicalize module is also in use.
31914 * tests/test-canonicalize.c: New file.
31915 * tests/test-canonicalize.sh: Likewise.
31916 * modules/canonicalize-tests: Likewise.
31918 2007-07-06 Jim Meyering <jim@meyering.net>
31920 * lib/getugroups.c (getugroups): Detect getgrent failure.
31921 Adjust comment to reflect reality: this function may return -1.
31923 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
31925 * build-aux/bootstrap (TP_URL,get_translations): Update to use
31926 the new TP address.
31928 (gnulib_mk): New variable.
31930 2007-07-05 Jim Meyering <jim@meyering.net>
31932 Don't let endgrent clobber errno, no matter how improbable.
31933 * lib/getugroups.c (getugroups): Save and restore errno around
31936 Close the group DB even when failing with 2^31 or more members.
31937 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
31939 2007-07-04 Jim Meyering <jim@meyering.net>
31941 * lib/getugroups.h: New file.
31942 * lib/getugroups.c: Include "getugroups.h".
31943 Remove uses of "register" keyword.
31944 Move local variable, "cp", down into scope where used.
31945 Give "username" parameter the "const" attribute.
31946 * modules/getugroups (Files): Add lib/getugroups.h
31948 2007-07-04 Karl Berry <karl@gnu.org>
31950 * MODULES.html.sh (func_all_modules): Complete rename of
31951 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
31953 2007-07-02 Bruno Haible <bruno@clisp.org>
31955 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
31956 mode, when inttypes.h comes from gnulib.
31957 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
31959 2007-07-02 Simon Josefsson <simon@josefsson.org>
31961 * NEWS: Mention lgpl module name change.
31963 * modules/lgpl-2.1: Renamed from lgpl.
31965 * NEWS: Mention gpl module name change.
31967 * modules/gpl-3.0: New file, based on gpl-2.0.
31969 * modules/gpl-2.0: Renamed from gpl.
31971 * modules/gpl: Fix filename, doc/gpl.texi is now found at
31974 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
31976 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
31977 #define __STDC_LIMIT_MACROS temporarily while including
31978 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
31979 Problem reported by Joel E. Denny in
31980 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
31982 2007-07-01 Bruno Haible <bruno@clisp.org>
31984 * lib/unistdio.h: New file.
31985 * lib/unistdio/u-asnprintf.h: New file.
31986 * lib/unistdio/u-asprintf.h: New file.
31987 * lib/unistdio/u-printf-args.c: New file.
31988 * lib/unistdio/u-printf-args.h: New file.
31989 * lib/unistdio/u-printf-parse.h: New file.
31990 * lib/unistdio/u-snprintf.h: New file.
31991 * lib/unistdio/u-sprintf.h: New file.
31992 * lib/unistdio/u-vasprintf.h: New file.
31993 * lib/unistdio/u-vsnprintf.h: New file.
31994 * lib/unistdio/u-vsprintf.h: New file.
31995 * lib/unistdio/ulc-asnprintf.c: New file.
31996 * lib/unistdio/ulc-asprintf.c: New file.
31997 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
31998 * lib/unistdio/ulc-printf-parse.c: New file.
31999 * lib/unistdio/ulc-snprintf.c: New file.
32000 * lib/unistdio/ulc-sprintf.c: New file.
32001 * lib/unistdio/ulc-vasnprintf.c: New file.
32002 * lib/unistdio/ulc-vasprintf.c: New file.
32003 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
32004 * lib/unistdio/ulc-vsnprintf.c: New file.
32005 * lib/unistdio/ulc-vsprintf.c: New file.
32006 * lib/unistdio/u8-asnprintf.c: New file.
32007 * lib/unistdio/u8-asprintf.c: New file.
32008 * lib/unistdio/u8-printf-parse.c: New file.
32009 * lib/unistdio/u8-snprintf.c: New file.
32010 * lib/unistdio/u8-sprintf.c: New file.
32011 * lib/unistdio/u8-vasnprintf.c: New file.
32012 * lib/unistdio/u8-vasprintf.c: New file.
32013 * lib/unistdio/u8-vsnprintf.c: New file.
32014 * lib/unistdio/u8-vsprintf.c: New file.
32015 * lib/unistdio/u8-u8-asnprintf.c: New file.
32016 * lib/unistdio/u8-u8-asprintf.c: New file.
32017 * lib/unistdio/u8-u8-snprintf.c: New file.
32018 * lib/unistdio/u8-u8-sprintf.c: New file.
32019 * lib/unistdio/u8-u8-vasnprintf.c: New file.
32020 * lib/unistdio/u8-u8-vasprintf.c: New file.
32021 * lib/unistdio/u8-u8-vsnprintf.c: New file.
32022 * lib/unistdio/u8-u8-vsprintf.c: New file.
32023 * lib/unistdio/u16-asnprintf.c: New file.
32024 * lib/unistdio/u16-asprintf.c: New file.
32025 * lib/unistdio/u16-printf-parse.c: New file.
32026 * lib/unistdio/u16-snprintf.c: New file.
32027 * lib/unistdio/u16-sprintf.c: New file.
32028 * lib/unistdio/u16-vasnprintf.c: New file.
32029 * lib/unistdio/u16-vasprintf.c: New file.
32030 * lib/unistdio/u16-vsnprintf.c: New file.
32031 * lib/unistdio/u16-vsprintf.c: New file.
32032 * lib/unistdio/u16-u16-asnprintf.c: New file.
32033 * lib/unistdio/u16-u16-asprintf.c: New file.
32034 * lib/unistdio/u16-u16-snprintf.c: New file.
32035 * lib/unistdio/u16-u16-sprintf.c: New file.
32036 * lib/unistdio/u16-u16-vasnprintf.c: New file.
32037 * lib/unistdio/u16-u16-vasprintf.c: New file.
32038 * lib/unistdio/u16-u16-vsnprintf.c: New file.
32039 * lib/unistdio/u16-u16-vsprintf.c: New file.
32040 * lib/unistdio/u32-asnprintf.c: New file.
32041 * lib/unistdio/u32-asprintf.c: New file.
32042 * lib/unistdio/u32-printf-parse.c: New file.
32043 * lib/unistdio/u32-snprintf.c: New file.
32044 * lib/unistdio/u32-sprintf.c: New file.
32045 * lib/unistdio/u32-vasnprintf.c: New file.
32046 * lib/unistdio/u32-vasprintf.c: New file.
32047 * lib/unistdio/u32-vsnprintf.c: New file.
32048 * lib/unistdio/u32-vsprintf.c: New file.
32049 * lib/unistdio/u32-u32-asnprintf.c: New file.
32050 * lib/unistdio/u32-u32-asprintf.c: New file.
32051 * lib/unistdio/u32-u32-snprintf.c: New file.
32052 * lib/unistdio/u32-u32-sprintf.c: New file.
32053 * lib/unistdio/u32-u32-vasnprintf.c: New file.
32054 * lib/unistdio/u32-u32-vasprintf.c: New file.
32055 * lib/unistdio/u32-u32-vsnprintf.c: New file.
32056 * lib/unistdio/u32-u32-vsprintf.c: New file.
32057 * tests/unistdio/test-ulc-asnprintf1.c: New file.
32058 * tests/unistdio/test-ulc-asnprintf1.h: New file.
32059 * tests/unistdio/test-ulc-printf1.h: New file.
32060 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
32061 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
32062 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
32063 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
32064 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
32065 * tests/unistdio/test-ulc-vasprintf1.c: New file.
32066 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
32067 * tests/unistdio/test-ulc-vsprintf1.c: New file.
32068 * tests/unistdio/test-u8-asnprintf1.c: New file.
32069 * tests/unistdio/test-u8-asnprintf1.h: New file.
32070 * tests/unistdio/test-u8-printf1.h: New file.
32071 * tests/unistdio/test-u8-vasnprintf1.c: New file.
32072 * tests/unistdio/test-u8-vasnprintf2.c: New file.
32073 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
32074 * tests/unistdio/test-u8-vasnprintf3.c: New file.
32075 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
32076 * tests/unistdio/test-u8-vasprintf1.c: New file.
32077 * tests/unistdio/test-u8-vsnprintf1.c: New file.
32078 * tests/unistdio/test-u8-vsprintf1.c: New file.
32079 * tests/unistdio/test-u16-asnprintf1.c: New file.
32080 * tests/unistdio/test-u16-asnprintf1.h: New file.
32081 * tests/unistdio/test-u16-printf1.h: New file.
32082 * tests/unistdio/test-u16-vasnprintf1.c: New file.
32083 * tests/unistdio/test-u16-vasnprintf2.c: New file.
32084 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
32085 * tests/unistdio/test-u16-vasnprintf3.c: New file.
32086 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
32087 * tests/unistdio/test-u16-vasprintf1.c: New file.
32088 * tests/unistdio/test-u16-vsnprintf1.c: New file.
32089 * tests/unistdio/test-u16-vsprintf1.c: New file.
32090 * tests/unistdio/test-u32-asnprintf1.c: New file.
32091 * tests/unistdio/test-u32-asnprintf1.h: New file.
32092 * tests/unistdio/test-u32-printf1.h: New file.
32093 * tests/unistdio/test-u32-vasnprintf1.c: New file.
32094 * tests/unistdio/test-u32-vasnprintf2.c: New file.
32095 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
32096 * tests/unistdio/test-u32-vasnprintf3.c: New file.
32097 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
32098 * tests/unistdio/test-u32-vasprintf1.c: New file.
32099 * tests/unistdio/test-u32-vsnprintf1.c: New file.
32100 * tests/unistdio/test-u32-vsprintf1.c: New file.
32101 * modules/unistdio/base: New file.
32102 * modules/unistdio/u-printf-args: New file.
32103 * modules/unistdio/ulc-asnprintf: New file.
32104 * modules/unistdio/ulc-asprintf: New file.
32105 * modules/unistdio/ulc-fprintf: New file.
32106 * modules/unistdio/ulc-printf-parse: New file.
32107 * modules/unistdio/ulc-snprintf: New file.
32108 * modules/unistdio/ulc-sprintf: New file.
32109 * modules/unistdio/ulc-vasnprintf: New file.
32110 * modules/unistdio/ulc-vasprintf: New file.
32111 * modules/unistdio/ulc-vfprintf: New file.
32112 * modules/unistdio/ulc-vsnprintf: New file.
32113 * modules/unistdio/ulc-vsprintf: New file.
32114 * modules/unistdio/u8-asnprintf: New file.
32115 * modules/unistdio/u8-asprintf: New file.
32116 * modules/unistdio/u8-printf-parse: New file.
32117 * modules/unistdio/u8-snprintf: New file.
32118 * modules/unistdio/u8-sprintf: New file.
32119 * modules/unistdio/u8-vasnprintf: New file.
32120 * modules/unistdio/u8-vasprintf: New file.
32121 * modules/unistdio/u8-vsnprintf: New file.
32122 * modules/unistdio/u8-vsprintf: New file.
32123 * modules/unistdio/u8-u8-asnprintf: New file.
32124 * modules/unistdio/u8-u8-asprintf: New file.
32125 * modules/unistdio/u8-u8-snprintf: New file.
32126 * modules/unistdio/u8-u8-sprintf: New file.
32127 * modules/unistdio/u8-u8-vasnprintf: New file.
32128 * modules/unistdio/u8-u8-vasprintf: New file.
32129 * modules/unistdio/u8-u8-vsnprintf: New file.
32130 * modules/unistdio/u8-u8-vsprintf: New file.
32131 * modules/unistdio/u16-asnprintf: New file.
32132 * modules/unistdio/u16-asprintf: New file.
32133 * modules/unistdio/u16-printf-parse: New file.
32134 * modules/unistdio/u16-snprintf: New file.
32135 * modules/unistdio/u16-sprintf: New file.
32136 * modules/unistdio/u16-vasnprintf: New file.
32137 * modules/unistdio/u16-vasprintf: New file.
32138 * modules/unistdio/u16-vsnprintf: New file.
32139 * modules/unistdio/u16-vsprintf: New file.
32140 * modules/unistdio/u16-u16-asnprintf: New file.
32141 * modules/unistdio/u16-u16-asprintf: New file.
32142 * modules/unistdio/u16-u16-snprintf: New file.
32143 * modules/unistdio/u16-u16-sprintf: New file.
32144 * modules/unistdio/u16-u16-vasnprintf: New file.
32145 * modules/unistdio/u16-u16-vasprintf: New file.
32146 * modules/unistdio/u16-u16-vsnprintf: New file.
32147 * modules/unistdio/u16-u16-vsprintf: New file.
32148 * modules/unistdio/u32-asnprintf: New file.
32149 * modules/unistdio/u32-asprintf: New file.
32150 * modules/unistdio/u32-printf-parse: New file.
32151 * modules/unistdio/u32-snprintf: New file.
32152 * modules/unistdio/u32-sprintf: New file.
32153 * modules/unistdio/u32-vasnprintf: New file.
32154 * modules/unistdio/u32-vasprintf: New file.
32155 * modules/unistdio/u32-vsnprintf: New file.
32156 * modules/unistdio/u32-vsprintf: New file.
32157 * modules/unistdio/u32-u32-asnprintf: New file.
32158 * modules/unistdio/u32-u32-asprintf: New file.
32159 * modules/unistdio/u32-u32-snprintf: New file.
32160 * modules/unistdio/u32-u32-sprintf: New file.
32161 * modules/unistdio/u32-u32-vasnprintf: New file.
32162 * modules/unistdio/u32-u32-vasprintf: New file.
32163 * modules/unistdio/u32-u32-vsnprintf: New file.
32164 * modules/unistdio/u32-u32-vsprintf: New file.
32165 * modules/unistdio/ulc-asnprintf-tests: New file.
32166 * modules/unistdio/ulc-vasnprintf-tests: New file.
32167 * modules/unistdio/ulc-vasprintf-tests: New file.
32168 * modules/unistdio/ulc-vsnprintf-tests: New file.
32169 * modules/unistdio/ulc-vsprintf-tests: New file.
32170 * modules/unistdio/u8-asnprintf-tests: New file.
32171 * modules/unistdio/u8-vasnprintf-tests: New file.
32172 * modules/unistdio/u8-vasprintf-tests: New file.
32173 * modules/unistdio/u8-vsnprintf-tests: New file.
32174 * modules/unistdio/u8-vsprintf-tests: New file.
32175 * modules/unistdio/u16-asnprintf-tests: New file.
32176 * modules/unistdio/u16-vasnprintf-tests: New file.
32177 * modules/unistdio/u16-vasprintf-tests: New file.
32178 * modules/unistdio/u16-vsnprintf-tests: New file.
32179 * modules/unistdio/u16-vsprintf-tests: New file.
32180 * modules/unistdio/u32-asnprintf-tests: New file.
32181 * modules/unistdio/u32-vasnprintf-tests: New file.
32182 * modules/unistdio/u32-vasprintf-tests: New file.
32183 * modules/unistdio/u32-vsnprintf-tests: New file.
32184 * modules/unistdio/u32-vsprintf-tests: New file.
32185 * MODULES.html.sh (Unicode string functions): Add the new modules.
32187 2007-07-01 Bruno Haible <bruno@clisp.org>
32189 * lib/sprintf.c (sprintf): Limit the available length estimation,
32190 to avoid address wraparound.
32191 * lib/vsprintf.c (vsprintf): Likewise.
32192 * modules/sprintf-posix (Dependencies): Add stdint.
32193 * modules/vsprintf-posix (Dependencies): Likewise.
32195 2007-07-01 Bruno Haible <bruno@clisp.org>
32197 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
32198 Windows PATH as well. Conservative double-quoting. Comments.
32200 2007-07-01 Bruno Haible <bruno@clisp.org>
32201 Eric Blake <ebb9@byu.net>
32202 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32204 * gnulib-tool (self_abspathname): Fix algorithm to cope with
32205 empty components in $PATH, denoting '.'.
32207 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32209 * gnulib-tool: Fix indentation.
32210 (func_create_megatestdir): Likewise.
32211 Report by Bruno Haible.
32213 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32215 Sync from Automake.
32216 * build-aux/gnupload: Fix shell portability issues with for loops.
32217 Report by Karl Berry.
32219 2007-06-29 Simon Josefsson <simon@josefsson.org>
32221 * build-aux/maint.mk (POURL): Use translationproject.org.
32223 2007-06-27 Simon Josefsson <simon@josefsson.org>
32224 Bruno Haible <bruno@clisp.org>
32226 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
32227 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
32228 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
32229 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
32230 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
32232 2007-06-27 Bruno Haible <bruno@clisp.org>
32234 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
32235 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
32237 2007-06-26 Karl Berry <karl@gnu.org>
32239 * MODULES.html.sh: remove xreadlink-with-size.
32241 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
32243 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
32244 method that I hope also handles the double-include problem noted
32246 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
32248 2007-06-23 Bruno Haible <bruno@clisp.org>
32250 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32251 Don't let the 'mostlyclean' target fail if the last subdirectory could
32253 Reported by Karl Berry.
32255 2007-06-23 Bruno Haible <bruno@clisp.org>
32257 * gnulib-tool (echo): Add a speedier workaround for ksh.
32258 * tests/test-echo.sh: Likewise.
32260 2007-06-23 Bruno Haible <bruno@clisp.org>
32262 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
32263 * tests/test-echo.sh: Likewise.
32265 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32267 * gnulib-tool (IFS): Initialize early, so we don't set it to
32269 (self_abspathname): Rewrite algorithm to set it, reindent.
32270 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
32271 (func_create_megatestdir): Merge some sed scripts.
32273 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
32275 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
32276 exposed by Sun Studio 11 cc on Solaris 8.
32278 2007-06-22 Bruno Haible <bruno@clisp.org>
32280 * gnulib-tool (echo): Ensure the echo primitive does not interpret
32282 * tests/test-echo.sh: New file.
32284 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32286 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
32287 simplify `sed_replace_build_aux' scripts, they are portable but
32288 echoing them with `echo' is not.
32289 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
32291 2007-06-21 Karl Berry <karl@gnu.org>
32293 * config/srclist.txt: guess we can't handle the licenses via
32294 srclist at the moment.
32296 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
32298 * MODULES.html.sh: Add include_next.
32299 * modules/include_next: New file.
32301 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
32303 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
32305 (gl_CHECK_NEXT_HEADERS): New macro.
32306 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
32307 the obsolescent gl_ABSOLUTE_HEADER.
32308 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
32309 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
32310 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32311 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32312 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
32313 * m4/math_h.m4 (gl_MATH_H): Likewise.
32314 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
32315 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
32316 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
32317 * m4/stdint.m4 (gl_STDINT_H): Likewise.
32318 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
32319 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
32320 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
32321 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32322 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32323 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32324 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
32325 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
32326 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
32327 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
32328 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32329 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
32330 * m4/inttypes.m4 (gl_INTTYPES_H): Define
32331 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
32332 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
32333 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
32334 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
32335 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
32336 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
32337 * lib/float_.h: Likewise.
32338 * lib/inttypes_.h: Likewise.
32339 * lib/math_.h: Likewise.
32340 * lib/search_.h: Likewise.
32341 * lib/signal_.h: Likewise.
32342 * lib/stdint_.h: Likewise.
32343 * lib/stdio_.h: Likewise.
32344 * lib/stdlib_.h: Likewise.
32345 * lib/string_.h: Likewise.
32346 * lib/sys_stat_.h: Likewise.
32347 * lib/sys_time_.h: Likewise.
32348 * lib/time_.h: Likewise.
32349 * lib/unistd_.h: Likewise.
32350 * lib/wchar_.h: Likewise.
32351 * lib/wctype_.h: Likewise.
32352 * lib/dirent_.h: Likewise.
32353 * lib/iconv_.h: Likewise.
32354 * lib/locale_.h: Likewise.
32355 * lib/netinet_in_.h: Likewise.
32356 * lib/sys_select_.h: Likewise.
32357 * lib/sys_socket_.h: Likewise.
32358 * lib/sysexits_.h: Likewise.
32359 * modules/fcntl (Depends-on): Depend on include_next, not
32361 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
32362 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
32363 * modules/fchdir: Likewise.
32364 * modules/float: Likewise.
32365 * modules/iconv_open: Likewise.
32366 * modules/inttypes: Likewise.
32367 * modules/locale: Likewise.
32368 * modules/math: Likewise.
32369 * modules/netinet_in: Likewise.
32370 * modules/search: Likewise.
32371 * modules/signal: Likewise.
32372 * modules/stdint: Likewise.
32373 * modules/stdio: Likewise.
32374 * modules/stdlib: Likewise.
32375 * modules/string: Likewise.
32376 * modules/sys_select: Likewise.
32377 * modules/sys_socket: Likewise.
32378 * modules/sys_stat: Likewise.
32379 * modules/sys_time: Likewise.
32380 * modules/sysexits: Likewise.
32381 * modules/time: Likewise.
32382 * modules/unistd: Likewise.
32383 * modules/wchar: Likewise.
32384 * modules/wctype: Likewise.
32385 * modules/sys_stat: Change maintainer to "all".
32386 * modules/unistd: Likewise.
32388 2007-06-20 Karl Berry <karl@gnu.org>
32390 * config/srclist.txt: track www changes in license files.
32392 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
32394 * build-aux/bootstrap: Remove stray dot.
32395 Make sure build_aux settings are honored when linking
32396 gnulib_extra_files.
32398 2007-06-19 Eric Blake <ebb9@byu.net>
32400 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
32401 Allow compilation on cygwin.
32403 2007-06-19 Jim Meyering <jim@meyering.net>
32405 xreadlink-with-size: Remove module. No longer used.
32406 Ex-callers now use xreadlink or mreadlink-with-size.
32407 * modules/xreadlink-with-size: Remove module.
32408 * lib/xreadlink-with-size.c: Remove file.
32409 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
32410 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
32411 just before the function definition *is* accurate.
32413 Eliminate one way canonicalize_filename_mode could exit.
32414 * lib/canonicalize.c (canonicalize_filename_mode):
32415 Use mreadlink_with_size, not xreadlink_with_size.
32417 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
32419 Detect porting problems to FreeBSD/arm, which has time_t wider than
32420 long int. Original problem reported for GNU diff by Xin Li in
32421 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
32422 * modules/getdate (Depends-on): Add intprops, verify.
32423 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
32424 is an integer type no wider than long int.
32426 2007-06-18 Jim Meyering <jim@meyering.net>
32428 New module: mreadlink-with-size.
32429 * MODULES.html.sh: Add mreadlink-with-size.
32430 * modules/mreadlink-with-size: New module
32431 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
32432 not xreadlink-with-size.
32433 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
32435 2007-06-16 Bruno Haible <bruno@clisp.org>
32437 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
32438 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
32439 Reported by Gary V. Vaughan <gary@gnu.org>.
32441 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
32443 Revamp lchown so that it lives in unistd.h where it belongs.
32444 * lib/lchown.h: Remove.
32445 * lib/dirchownmod.c: Don't include lib/lchown.h.
32446 * lib/fchownat.c: Likewise.
32447 * lib/openat.c: Likewise.
32448 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
32449 does not follow symlinks.
32450 (EOPNOTSUPP): Define if not defined.
32451 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
32453 (lchown): New decl.
32454 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
32455 Do not check for lchown decl.
32456 Set REPLACE_LCHOWN.
32457 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
32459 * modules/chown: Make it clear it follows symlinks.
32460 * modules/lchown: Make it clear it doesn't follow symlinks.
32461 (Files): Remove lib/lchown.h
32462 (Depends-on): Add unistd.
32463 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
32464 (Include): Include <unistd.h>, not "lchown.h".
32465 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
32468 2007-06-15 Jim Meyering <jim@meyering.net>
32470 Change license (GPL to LGPL) of fsusage and dependents.
32471 * modules/fsusage (License): Change to LGPL.
32472 * modules/full-read (License): Likewise.
32473 * modules/full-write (License): Likewise.
32474 * modules/safe-read (License): Likewise.
32475 * modules/safe-write (License): Likewise.
32477 2007-06-14 Ben Pfaff <blp@gnu.org>
32479 Missing part of allocsa -> malloca transition.
32480 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
32483 2007-06-12 Bruno Haible <bruno@clisp.org>
32485 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
32486 to ia64, x86_64, i386.
32487 Reported by Eric Blake.
32489 2007-06-12 Bruno Haible <bruno@clisp.org>
32491 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
32492 cross-compiling to x86_64.
32494 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
32496 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
32497 glitch reported by Ralf Wildenhues in
32498 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
32500 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
32503 2007-06-11 Bruno Haible <bruno@clisp.org>
32505 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
32506 replacement string.
32507 Reported by Eric Blake.
32509 2007-06-10 Bruno Haible <bruno@clisp.org>
32511 Prepare vasnprintf code for use with Unicode strings.
32512 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
32513 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
32515 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
32516 a_u32_string variants.
32517 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
32518 * lib/printf-args.c: Don't include config.h and the specification
32519 header if PRINTF_FETCHARGS is already defined.
32520 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
32521 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
32522 TYPE_U16_STRING, TYPE_U32_STRING.
32523 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
32524 u16_directive, u16_directives, u32_directive, u32_directives): New
32526 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
32528 * lib/printf-parse.c: Don't include config.h and the specification
32529 header if PRINTF_PARSE is already defined. Eliminate the set of
32530 parameters for WIDE_CHAR_VERSION; the user of this file must provide
32531 them now. Include c-ctype.h.
32532 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
32533 directive and CHAR_T_ONLY_ASCII.
32534 * lib/vasnprintf.c: Don't include config.h and the specification header
32535 if VASNPRINTF is already defined.
32536 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
32537 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
32538 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
32539 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
32540 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
32541 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
32543 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
32544 pad_ourselves also in this case, with the 'c' and 's' directives, and
32545 with a different notion of "width".
32546 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
32548 2007-06-10 Bruno Haible <bruno@clisp.org>
32550 * modules/unistr/u32-mbsnlen: New file.
32551 * lib/unistr/u32-mbsnlen.c: New file.
32553 * modules/unistr/u16-mbsnlen: New file.
32554 * lib/unistr/u16-mbsnlen.c: New file.
32556 * modules/unistr/u8-mbsnlen: New file.
32557 * lib/unistr/u8-mbsnlen.c: New file.
32559 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
32562 2007-06-10 Bruno Haible <bruno@clisp.org>
32564 * lib/string_.h (mbsnlen): New declaration.
32565 * lib/mbsnlen.c: New file.
32566 * m4/mbsnlen.m4: New file.
32567 * modules/mbsnlen: New file.
32568 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
32569 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
32570 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
32572 2007-06-10 Bruno Haible <bruno@clisp.org>
32574 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
32576 2007-06-10 Bruno Haible <bruno@clisp.org>
32578 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
32579 * lib/mbuiter.h: Likewise.
32581 2007-06-10 Bruno Haible <bruno@clisp.org>
32583 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
32586 2007-06-10 Karl Berry <karl@gnu.org>
32588 * config/srclist.txt: remove gettext entries, Bruno prefers
32589 to update individually.
32591 2007-06-10 Bruno Haible <bruno@clisp.org>
32593 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
32594 'maxlen'. Ensure only length + width bytes are allocated, not
32595 length + 1 + width.
32597 2007-06-09 Bruno Haible <bruno@clisp.org>
32599 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
32600 (CHAR_T): Remove macro.
32601 (VASNPRINTF): Update.
32603 2007-06-09 Bruno Haible <bruno@clisp.org>
32605 * MODULES.html.sh (Unicode string functions): Add the new modules.
32607 * modules/uniconv/u32-conv-to-enc: New file.
32608 * lib/uniconv/u32-conv-to-enc.c: New file.
32609 * modules/uniconv/u32-conv-to-enc-tests: New file.
32610 * tests/uniconv/test-u32-conv-to-enc.c: New file.
32612 * modules/uniconv/u16-conv-to-enc: New file.
32613 * lib/uniconv/u16-conv-to-enc.c: New file.
32614 * lib/uniconv/u-conv-to-enc.h: New file.
32615 * modules/uniconv/u16-conv-to-enc-tests: New file.
32616 * tests/uniconv/test-u16-conv-to-enc.c: New file.
32618 * modules/uniconv/u8-conv-to-enc: New file.
32619 * lib/uniconv/u8-conv-to-enc.c: New file.
32620 * modules/uniconv/u8-conv-to-enc-tests: New file.
32621 * tests/uniconv/test-u8-conv-to-enc.c: New file.
32623 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
32624 u32_conv_to_encoding): New declarations.
32626 2007-06-09 Bruno Haible <bruno@clisp.org>
32628 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
32630 2007-06-09 Bruno Haible <bruno@clisp.org>
32632 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
32633 * modules/malloca: Renamed from modules/allocsa, updated.
32634 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
32635 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
32636 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
32637 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
32638 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
32639 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
32640 * modules/xmalloca: Renamed from modules/xallocsa, updated.
32641 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
32642 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
32643 * modules/c-strcasestr (Depends-on): Update.
32644 * lib/c-strcasestr.c: Update.
32645 * modules/c-strstr (Depends-on): Update.
32646 * lib/c-strstr.c: Update.
32647 * modules/canonicalize-lgpl (Depends-on): Update.
32648 * lib/canonicalize-lgpl.c: Update.
32649 * modules/clean-temp (Depends-on): Update.
32650 * lib/clean-temp.c: Update.
32651 * modules/csharpcomp (Depends-on): Update.
32652 * lib/csharpcomp.c: Update.
32653 * modules/csharpexec (Depends-on): Update.
32654 * lib/csharpexec.c: Update.
32655 * modules/javacomp (Depends-on): Update.
32656 * lib/javacomp.c: Update.
32657 * modules/javaexec (Depends-on): Update.
32658 * lib/javaexec.c: Update.
32659 * modules/mbscasestr (Depends-on): Update.
32660 * lib/mbscasestr.c: Update.
32661 * modules/mbsstr (Depends-on): Update.
32662 * lib/mbsstr.c: Update.
32663 * modules/setenv (Depends-on): Update.
32664 * lib/setenv.c: Update.
32665 * modules/strcasestr (Depends-on): Update.
32666 * lib/strcasestr.c: Update.
32667 * modules/striconveha (Depends-on): Update.
32668 * lib/striconveha.c: Update.
32669 * modules/relocatable-prog-wrapper (Files): Update.
32670 * lib/relocwrapper.c: Update.
32671 * build-aux/install-reloc: Update.
32672 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
32674 2007-06-08 Bruno Haible <bruno@clisp.org>
32677 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
32678 * lib/fpurge.c (fpurge): Likewise.
32679 * lib/freading.c (freading): Likewise.
32680 * lib/fseeko.c (rpl_fseeko): Likewise.
32681 * lib/fseterr.c (fseterr): Likewise.
32682 * lib/fwriting.c (fwriting): Likewise.
32683 * tests/test-fflush.c (main): Avoid a failure on uClibc.
32685 2007-06-08 Bruno Haible <bruno@clisp.org>
32687 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
32688 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
32689 * modules/gettext (Files): Add m4/intlmacosx.m4.
32691 2007-06-07 Bruno Haible <bruno@clisp.org>
32693 * modules/localename-tests: New file.
32694 * tests/test-localename.c: New file.
32696 New module 'localename'.
32697 * lib/localename.h: New file.
32698 * lib/localename.c: New file, from GNU gettext.
32699 * m4/localename.m4: New file.
32700 * modules/localename: New file.
32702 2007-06-07 Bruno Haible <bruno@clisp.org>
32704 Work around the lack of <wchar.h> on some builds of uClibc.
32705 * doc/headers/wchar.texi: Update.
32706 * lib/wchar_.h: Include <wchar.h> only if it exists.
32707 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
32708 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
32709 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
32711 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
32712 * modules/mbfile (Depends-on): Add wchar.
32713 * modules/mbiter (Depends-on): Likewise.
32714 * modules/mbuiter (Depends-on): Likewise.
32715 Reported by Simon Josefsson.
32717 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
32719 Work around problem reported by Steven M. Schweda in
32720 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
32721 Tru64 5.1B with the Compaq compiler environment installed declares
32722 an 'isblank' function but does not define it in the C library.
32723 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
32724 * lib/regex_internal.h (isblank): Likewise.
32725 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
32726 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32728 2007-06-05 Bruno Haible <bruno@clisp.org>
32730 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
32732 * modules/printf-safe: New file.
32733 * modules/fprintf-posix (Depends-on): Add printf-safe.
32734 * modules/printf-posix (Depends-on): Likewise.
32735 * modules/snprintf-posix (Depends-on): Likewise.
32736 * modules/sprintf-posix (Depends-on): Likewise.
32737 * modules/vasnprintf-posix (Depends-on): Likewise.
32738 * modules/vasprintf-posix (Depends-on): Likewise.
32739 * modules/vfprintf-posix (Depends-on): Likewise.
32740 * modules/vprintf-posix (Depends-on): Likewise.
32741 * modules/vsnprintf-posix (Depends-on): Likewise.
32742 * modules/vsprintf-posix (Depends-on): Likewise.
32743 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
32744 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
32745 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
32746 "no" on i386, x86_64, ia64.
32747 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
32748 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32749 on i386, x86_64, ia64.
32750 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
32751 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32752 on i386, x86_64, ia64.
32753 * tests/test-vasnprintf-posix.c: Include float.h.
32754 (LDBL80_WORDS): New macro.
32755 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32756 on i386, x86_64, ia64.
32757 * tests/test-vasprintf-posix.c: Include float.h.
32758 (LDBL80_WORDS): New macro.
32759 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32760 on i386, x86_64, ia64.
32761 * tests/test-snprintf-posix.c: Include float.h.
32762 * tests/test-sprintf-posix.c: Likewise.
32763 * tests/test-vsnprintf-posix.c: Likewise.
32764 * tests/test-vsprintf-posix.c: Likewise.
32766 2007-06-05 Bruno Haible <bruno@clisp.org>
32768 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
32769 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
32770 non-IEEE numbers on i386, x86_64, ia64.
32771 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
32772 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
32773 * tests/test-isnanl.h: Include float.h.
32774 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
32776 2007-06-05 Bruno Haible <bruno@clisp.org>
32778 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
32779 also the %a / %A. Handle the %a / %A code before this extra handling.
32781 2007-06-05 Bruno Haible <bruno@clisp.org>
32783 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
32784 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
32786 2007-06-05 Bruno Haible <bruno@clisp.org>
32788 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
32789 typo in variable name.
32791 2007-06-05 Eric Blake <ebb9@byu.net>
32793 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
32794 Reported by Simon Josefsson.
32796 2007-06-04 Bruno Haible <bruno@clisp.org>
32798 Avoid test failures on some PowerPC platforms.
32799 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
32800 Define differently for PowerPC.
32801 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
32802 Reported by Gary V. Vaughan <gary@gnu.org>.
32804 2007-06-02 Bruno Haible <bruno@clisp.org>
32806 Fix test-stdint failure on FreeBSD/ia64.
32807 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
32808 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
32809 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
32810 * doc/headers/stdint.texi: Update.
32812 2007-06-01 Bruno Haible <bruno@clisp.org>
32814 * tests/test-binary-io.c (main): Pass a third argument to open().
32815 Reported by Gary V. Vaughan <gary@gnu.org>.
32817 2007-06-01 Bruno Haible <bruno@clisp.org>
32819 * doc/functions/frexpl.texi: Update for mingw.
32821 2007-06-01 Bruno Haible <bruno@clisp.org>
32823 * tests/test-lseek.c (main): Disable test of errno for invalid third
32825 * doc/functions/lseek.texi: Update.
32826 Reported by Gary V. Vaughan <gary@gnu.org>.
32828 2007-05-28 Bruno Haible <bruno@clisp.org>
32830 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
32832 2007-05-31 Eric Blake <ebb9@byu.net>
32834 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
32837 2007-05-30 Eric Blake <ebb9@byu.net>
32838 and Bruno Haible <bruno@clisp.org>
32840 Work around mingw test failures exposed by m4-1.4.9b.
32841 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
32842 * tests/test-unistd.c: Disable uid_t and git_t tests for the
32845 2007-05-30 Bruno Haible <bruno@clisp.org>
32847 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
32848 assuming that they are closed. Needed on HP-UX 11.
32850 2007-05-29 Bruno Haible <bruno@clisp.org>
32852 Fix a problem with #include_next.
32853 * lib/dirent_.h: Split the double-inclusion guard.
32854 * lib/fcntl_.h: Likewise.
32855 * lib/float_.h: Likewise.
32856 * lib/iconv_.h: Likewise.
32857 * lib/inttypes_.h: Likewise.
32858 * lib/locale_.h: Likewise.
32859 * lib/math_.h: Likewise.
32860 * lib/netinet_in_.h: Likewise.
32861 * lib/search_.h: Likewise.
32862 * lib/signal_.h: Likewise.
32863 * lib/stdint_.h: Likewise.
32864 * lib/stdio_.h: Likewise.
32865 * lib/stdlib_.h: Likewise.
32866 * lib/string_.h: Likewise.
32867 * lib/sys_select_.h: Likewise.
32868 * lib/sys_socket_.h: Likewise.
32869 * lib/sys_stat_.h: Likewise.
32870 * lib/sys_time_.h: Likewise.
32871 * lib/sysexits_.h: Likewise.
32872 * lib/time_.h: Likewise.
32873 * lib/unistd_.h: Likewise.
32874 * lib/wchar_.h: Likewise.
32875 * lib/wctype_.h: Likewise.
32877 2007-05-29 Bruno Haible <bruno@clisp.org>
32879 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
32882 2007-05-29 Bruno Haible <bruno@clisp.org>
32884 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
32886 Reported by Eric Blake.
32888 2007-05-29 Bruno Haible <bruno@clisp.org>
32890 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
32893 2007-05-29 Eric Blake <ebb9@byu.net>
32894 Bruno Haible <bruno@clisp.org>
32896 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
32899 2007-05-28 Eric Blake <ebb9@byu.net>
32901 * modules/closein-tests (test_closein_LDADD): Support test on
32902 cygwin with libtool.
32904 2007-05-28 Bruno Haible <bruno@clisp.org>
32906 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
32907 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
32908 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
32909 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
32910 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
32911 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
32912 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
32913 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
32914 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
32916 2007-05-28 Eric Blake <ebb9@byu.net>
32918 Unconditionally include <config.h> in unit tests.
32919 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
32920 * tests/test-allocsa.c, tests/test-arcfour.c,
32921 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
32922 tests/test-array_list.c, tests/test-array_oset.c,
32923 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
32924 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
32925 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
32926 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
32927 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
32928 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
32929 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
32930 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
32931 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
32932 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
32933 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
32934 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
32935 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
32936 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
32937 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
32938 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
32939 test-md5.c, test-memmem.c, test-printf-posix.c,
32940 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
32941 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
32942 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
32943 test-strcasestr.c, test-striconv.c, test-striconveh.c,
32944 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
32945 test-vasnprintf-posix2.c, test-vasnprintf.c,
32946 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
32947 test-vfprintf-posix.c, test-vprintf-posix.c,
32948 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
32949 test-xvasprintf.c: Likewise.
32951 2007-05-28 Bruno Haible <bruno@clisp.org>
32953 * gnulib-tool (func_import): Remember the --with-tests command-line
32954 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
32955 Reported by Eric Blake.
32957 2007-05-28 Bruno Haible <bruno@clisp.org>
32959 * modules/ftell-tests: New file.
32960 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
32961 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
32963 * lib/ftell.c: New file.
32964 * modules/ftell: New file.
32965 * m4/ftell.m4: New file.
32966 * doc/functions/ftell.texi: Update.
32967 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
32969 * lib/stdio_.h (rpl_ftell): New declaration.
32970 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
32973 2007-05-28 Eric Blake <ebb9@byu.net>
32975 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
32977 2007-05-28 Bruno Haible <bruno@clisp.org>
32979 * modules/fseek-tests: New file.
32980 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
32981 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
32983 * lib/fseek.c: New file.
32984 * modules/fseek: New file.
32985 * m4/fseek.m4: New file.
32986 * doc/functions/fseek.texi: Update.
32987 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
32989 * lib/stdio_.h (rpl_fseek): New declaration.
32990 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
32993 2007-05-28 Bruno Haible <bruno@clisp.org>
32995 * lib/stdio_.h (fflush): More comments.
32997 2007-05-28 Bruno Haible <bruno@clisp.org>
32999 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
33002 2007-05-28 Eric Blake <ebb9@byu.net>
33004 Improve lseek module.
33005 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
33006 * lib/unistd_.h (lseek): Scale back link warning message.
33007 * tests/test-lseek.c: Beef up test.
33008 * tests/test-lseek.sh: Exercise more facets of lseek.
33009 Reported by Bruno Haible.
33011 2007-05-28 Bruno Haible <bruno@clisp.org>
33013 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
33016 2007-05-27 Bruno Haible <bruno@clisp.org>
33018 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
33020 2007-05-27 Bruno Haible <bruno@clisp.org>
33022 * modules/openmp: New file.
33023 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
33026 2007-05-26 Bruno Haible <bruno@clisp.org>
33028 * modules/chdir-long (Depends-on): Add fchdir.
33029 * modules/chdir-safer (Depends-on): Likewise.
33030 * modules/fts (Depends-on): Likewise.
33031 * modules/fts-lgpl (Depends-on): Likewise.
33032 * modules/openat (Depends-on): Likewise.
33033 * modules/savewd (Depends-on): Likewise.
33035 2007-05-24 Eric Blake <ebb9@byu.net>
33037 Fix lseek on mingw.
33038 * modules/lseek: New module.
33039 * m4/lseek.m4: New file.
33040 * lib/lseek.c: New file.
33041 * modules/lseek-tests: New file.
33042 * tests/test-lseek.c: New file.
33043 * tests/test-lseek.sh: New file.
33044 * MODULES.html.sh: Document lseek module.
33045 * modules/fflush (Depends-on): Add lseek, fseeko.
33046 * modules/fseeko (Depends-on): Likewise.
33047 * modules/ftello (Depends-on): Likewise.
33048 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
33050 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
33052 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
33053 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
33054 * lib/ftello.c (rpl_ftello): Likewise.
33055 * tests/test-fseeko.c (main): Test this.
33056 * tests/test-fseeko.sh: Likewise.
33057 * tests/test-ftello.c (main): Likewise.
33058 * tests/test-ftello.sh: Likewise.
33059 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
33060 implies replacing fseek.
33061 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
33063 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
33064 * modules/unistd (Makefile.am): Likewise.
33065 * lib/unistd_.h (lseek): Declare a replacement.
33066 * doc/functions/lseek.texi (lseek): Document this fix.
33067 * doc/functions/fseek.texi (fseek): Likewise.
33068 * doc/functions/ftell.texi (ftell): Likewise.
33070 2007-05-24 Bruno Haible <bruno@clisp.org>
33072 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
33073 in the printed representation of a NaN.
33074 * tests/test-vasprintf-posix.c (test_function): Likewise.
33075 * tests/test-snprintf-posix.h (test_function): Likewise.
33076 * tests/test-sprintf-posix.h (test_function): Likewise.
33077 Reported by Eric Blake.
33079 2007-05-23 Eric Blake <ebb9@byu.net>
33081 Fix fseeko/ftello on cygwin 1.5.24.
33082 * doc/functions/fseeko.texi (fseeko): Document the fix.
33083 * doc/functions/ftello.texi (ftello): Document the fix.
33084 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
33085 * doc/functions/stdout.text (stdout): New file.
33086 * doc/functions/stderr.text (stderr): New file.
33087 * doc/gnulib.texi (Function Substitutes): Use new files.
33088 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
33090 * tests/test-ftello.c (main): Likewise for ftello.
33091 * tests/test-fseeko.sh: New file.
33092 * tests/test-ftello.sh: New file.
33093 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
33094 with seekable stdin.
33095 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
33096 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
33097 (gl_REPLACE_FSEEKO): New macro.
33098 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
33099 * modules/fseeko (Files): Distribute fseeko.c.
33100 * modules/ftello (Files): Distribute ftello.c.
33101 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
33103 * lib/ftello.c (rpl_ftello): New file.
33104 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
33106 (gl_STDIN_LARGE_OFFSET): New macro.
33107 * modules/stdio (Makefile.am): Perform the replacement.
33108 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
33110 2007-05-23 Bruno Haible <bruno@clisp.org>
33112 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
33113 GNULIB_POSIXCHECK is defined.
33115 2007-05-21 Bruno Haible <bruno@clisp.org>
33117 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
33118 Check also the output for NaN arguments. When cross-compiling, guess
33120 * lib/vasnprintf.c: Update comments.
33121 * tests/test-vasnprintf-posix.c (strisnan): New function.
33122 (test_function): Use it.
33123 * tests/test-vasprintf-posix.c (strisnan): New function.
33124 (test_function): Use it.
33125 * tests/test-snprintf-posix.h (strisnan): New function.
33126 (test_function): Use it.
33127 * tests/test-sprintf-posix.h (strisnan): New function.
33128 (test_function): Use it.
33129 Reported by Eric Blake.
33131 2007-05-20 Bruno Haible <bruno@clisp.org>
33133 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
33134 numbers that fails on BeOS.
33135 * doc/functions/frexpl.texi: Update.
33137 2007-05-20 Jim Meyering <jim@meyering.net>
33139 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
33140 forced upon us by glibc-2.6.
33142 2007-05-20 Bruno Haible <bruno@clisp.org>
33144 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
33145 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
33146 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
33147 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
33148 NEED_PRINTF_INFINITE.
33149 (is_infinitel): New function.
33150 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
33151 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
33152 gl_PREREQ_VASNPRINTF_INFINITE.
33153 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
33154 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33155 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
33156 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
33157 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
33158 gl_PREREQ_VASNPRINTF_INFINITE.
33159 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33160 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33161 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33162 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33163 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33164 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33165 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33166 * doc/functions/fprintf.texi: Update.
33167 * doc/functions/printf.texi: Update.
33168 * doc/functions/snprintf.texi: Update.
33169 * doc/functions/sprintf.texi: Update.
33170 * doc/functions/vfprintf.texi: Update.
33171 * doc/functions/vprintf.texi: Update.
33172 * doc/functions/vsnprintf.texi: Update.
33173 * doc/functions/vsprintf.texi: Update.
33175 2007-05-20 Bruno Haible <bruno@clisp.org>
33177 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
33178 was not found in libc.
33179 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
33181 2007-05-20 Bruno Haible <bruno@clisp.org>
33183 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33184 printed as "-nan" instead of "nan".
33185 * tests/test-vasprintf-posix.c (test_function): Likewise.
33186 * tests/test-snprintf-posix.h (test_function): Likewise.
33187 * tests/test-sprintf-posix.h (test_function): Likewise.
33188 Needed for HP-UX 11.
33190 2007-05-20 Jim Meyering <jim@meyering.net>
33192 Fix buggy test for the fchownat-deref bug.
33193 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
33194 symlink required for the run-test. Without it, this test would
33195 always declare that fchownat doesn't work, and client code would
33196 unnecessarily use the replacement function with fixed libc.
33197 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
33198 Reported by Greg Schafer.
33200 2007-05-19 Bruno Haible <bruno@clisp.org>
33202 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
33203 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
33204 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
33205 Needed for IRIX 6.5 and Solaris 2.5.1.
33207 2007-05-19 Bruno Haible <bruno@clisp.org>
33209 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
33210 (test_function): Skip tests involving -0.0 on platforms where
33212 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
33213 (test_function): Skip tests involving -0.0 on platforms where
33215 * tests/test-snprintf-posix.h (have_minus_zero): New function.
33216 (test_function): Skip tests involving -0.0 on platforms where
33218 * tests/test-sprintf-posix.h (have_minus_zero): New function.
33219 (test_function): Skip tests involving -0.0 on platforms where
33221 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
33223 * tests/test-printf-posix.h (test_function): Likewise.
33224 * tests/test-printf-posix.output: Remove all -0.0 related results.
33225 Needed for IRIX 6.5.
33227 2007-05-19 Bruno Haible <bruno@clisp.org>
33229 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33230 printed as "nan0x7fffffff" instead of "nan".
33231 * tests/test-vasprintf-posix.c (test_function): Likewise.
33232 * tests/test-snprintf-posix.h (test_function): Likewise.
33233 * tests/test-sprintf-posix.h (test_function): Likewise.
33234 * tests/test-fprintf-posix.h (NaN): Remove macro.
33235 (test_function): Remove all NaN related tests.
33236 * tests/test-printf-posix.h (NaN): Remove macro.
33237 (test_function): Remove all NaN related tests.
33238 * tests/test-printf-posix.output: Remove all NaN related results.
33239 Needed for IRIX 6.5.
33241 2007-05-19 Bruno Haible <bruno@clisp.org>
33243 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
33244 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
33246 2007-05-19 Bruno Haible <bruno@clisp.org>
33248 * lib/float_.h: New file.
33249 * m4/float_h.m4: New file.
33250 * modules/float: New file.
33251 * modules/isnanl (Dependencies): Add float.
33252 * modules/isnanl-nolibm (Dependencies): Likewise.
33253 * modules/mathl (Dependencies): Likewise.
33254 * modules/printf-frexpl (Dependencies): Likewise.
33255 * modules/signbit (Dependencies): Likewise.
33256 * modules/vasnprintf (Dependencies): Likewise.
33257 * doc/headers/float.texi: Update.
33259 2007-05-19 Jim Meyering <jim@meyering.net>
33261 * lib/utimens.c (gl_futimens): Rename from futimens,
33262 now that glibc-2.6 declares futimens.
33263 * lib/utimens.h: Likewise.
33265 2007-05-19 Bruno Haible <bruno@clisp.org>
33267 Avoid test failures on mingw.
33268 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
33269 * tests/test-printf-posix.sh: Likewise.
33270 * tests/test-vfprintf-posix.sh: Likewise.
33271 * tests/test-vprintf-posix.sh: Likewise.
33273 2007-05-19 Bruno Haible <bruno@clisp.org>
33275 Fix *printf result for NaN, Inf, -0.0 on mingw.
33276 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
33277 * lib/vasnprintf.c: Include math.h and isnan.h.
33278 (is_infinite_or_zero): New function.
33279 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
33280 values in the %f, %F, %e, %E, %g, %G directives.
33281 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
33282 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33283 gl_PRINTF_INFINITE and test its result. Invoke
33284 gl_PREREQ_VASNPRINTF_INFINITE.
33285 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33286 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33287 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33288 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33289 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33290 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33291 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33292 * doc/functions/fprintf.texi: Update.
33293 * doc/functions/printf.texi: Update.
33294 * doc/functions/snprintf.texi: Update.
33295 * doc/functions/sprintf.texi: Update.
33296 * doc/functions/vfprintf.texi: Update.
33297 * doc/functions/vprintf.texi: Update.
33298 * doc/functions/vsnprintf.texi: Update.
33299 * doc/functions/vsprintf.texi: Update.
33301 2007-05-19 Bruno Haible <bruno@clisp.org>
33303 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
33304 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
33305 Instead of multiplying with 10^k, set extra_zeroes to k.
33306 (scale10_round_long_double): Remove function.
33308 2007-05-18 Bruno Haible <bruno@clisp.org>
33310 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
33311 introduced on 2007-05-06.
33313 2007-05-18 Bruno Haible <bruno@clisp.org>
33315 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
33317 * tests/test-vasprintf-posix.c (test_function): Likewise.
33318 * tests/test-snprintf-posix.h (test_function): Likewise.
33319 * tests/test-sprintf-posix.h (test_function): Likewise.
33321 2007-05-18 Bruno Haible <bruno@clisp.org>
33323 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
33324 (strmatch): New function.
33325 (test_function): Test the %f directive on numbers of various exponents.
33326 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
33327 (strmatch): New function.
33328 (test_function): Test the %f directive on numbers of various exponents.
33329 * tests/test-snprintf-posix.h (strmatch): New function.
33330 (test_function): Test the %f directive on numbers of various exponents.
33331 * tests/test-sprintf-posix.h (strmatch): New function.
33332 (test_function): Test the %f directive on numbers of various exponents.
33333 * tests/test-snprintf-posix.c (SIZEOF): New macro.
33334 * tests/test-sprintf-posix.c (SIZEOF): New macro.
33335 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
33336 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
33338 2007-05-18 Bruno Haible <bruno@clisp.org>
33340 Add support for 'long double' number output.
33341 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
33342 * lib/vasnprintf.c: Include math.h and float+.h.
33343 (mp_limb_t): New type.
33344 (GMP_LIMB_BITS): New macro.
33345 (mp_twolimb_t): New type.
33346 (GMP_TWOLIMB_BITS): New macro.
33348 (multiply, divide, convert_to_decimal, decode_long_double,
33349 scale10_round_long_double, scale10_round_decimal_long_double,
33350 floorlog10l): New functions.
33351 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
33352 for the %f, %F, %e, %E, %g, %G directives.
33353 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
33354 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33355 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
33356 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
33357 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33358 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33359 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33360 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33361 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33362 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33363 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33364 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
33365 * modules/snprintf-posix (Depends-on): Likewise.
33366 * modules/sprintf-posix (Depends-on): Likewise.
33367 * modules/vasnprintf-posix (Depends-on): Likewise.
33368 * modules/vasprintf-posix (Depends-on): Likewise.
33369 * modules/vfprintf-posix (Depends-on): Likewise.
33370 * modules/vsnprintf-posix (Depends-on): Likewise.
33371 * modules/vsprintf-posix (Depends-on): Likewise.
33372 * modules/vasnprintf (Files): Add lib/float+.h.
33373 * doc/functions/fprintf.texi: Update.
33374 * doc/functions/printf.texi: Update.
33375 * doc/functions/snprintf.texi: Update.
33376 * doc/functions/sprintf.texi: Update.
33377 * doc/functions/vfprintf.texi: Update.
33378 * doc/functions/vprintf.texi: Update.
33379 * doc/functions/vsnprintf.texi: Update.
33380 * doc/functions/vsprintf.texi: Update.
33382 2007-05-18 Bruno Haible <bruno@clisp.org>
33384 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
33386 2007-05-18 Bruno Haible <bruno@clisp.org>
33388 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
33389 for printing 64-bit integers. Needed for mingw.
33391 2007-05-18 Bruno Haible <bruno@clisp.org>
33393 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
33394 gl_FUNC_FREXPL_WORKS.
33395 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
33397 2007-05-18 Bruno Haible <bruno@clisp.org>
33399 * modules/frexpl-nolibm-tests: New file.
33401 * modules/frexpl-nolibm: New file.
33402 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
33404 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
33406 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
33407 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
33408 GCC 4.2, which otherwise issues a lot of warnings.
33409 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
33410 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
33412 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
33413 * modules/iconv_open (iconv.h): Likewise.
33414 * modules/locale (locale.h): Likewise.
33415 * modules/netinet_in (netinet/in.h): Likewise.
33416 * modules/sys_select (sys_select.h): Likewise.
33417 * modules/sys_socket (sys/socket.h): Likewise.
33418 * modules/sys_stat (sys/stat.h): Likewise.
33419 * modules/sysexits (sysexits.h): Likewise.
33420 * modules/unistd (unistd.h): Likewise.
33422 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33424 * modules/closein-tests (Makefile.am): Distribute
33427 2007-05-17 Bruno Haible <bruno@clisp.org>
33429 * tests/test-printf-posix.output: Renamed from
33430 tests/test-fprintf-posix.out.
33431 * modules/fprintf-posix-tests: Update.
33432 * modules/printf-posix-tests: Update.
33433 * modules/vfprintf-posix-tests: Update.
33434 * modules/vprintf-posix-tests: Update.
33435 * tests/test-fprintf-posix.sh: Update.
33436 * tests/test-printf-posix.sh: Update.
33437 * tests/test-vfprintf-posix.sh: Update.
33438 * tests/test-vprintf-posix.sh: Update.
33439 Reported by Ralf Wildenhues.
33441 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
33443 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
33444 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
33445 GCC 4.2, which otherwise issues a lot of warnings.
33446 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
33447 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
33448 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
33449 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
33450 it should no longer be needed.
33451 * lib/string_.h: Likewise.
33452 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
33453 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
33454 * modules/inttypes (inttypes.h): Likewise.
33455 * modules/math (math.h): Likewise.
33456 * modules/search (search.h): Likewise.
33457 * modules/signal (signal.h): Likewise.
33458 * modules/stdint (stdint.h): Likewise.
33459 * modules/stdio (stdio.h): Likewise.
33460 * modules/stdlib (stdlib.h): Likewise.
33461 * modules/string (string.h): Likewise.
33462 * modules/sys_time (sys/time.h): Likewise.
33463 * modules/time (time.h): Likewise.
33464 * modules/wchar (wchar.h): Likewise.
33465 * modules/wctype (wtype.h): Likewise.
33467 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
33469 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
33471 2007-05-13 Bruno Haible <bruno@clisp.org>
33473 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
33474 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
33475 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
33476 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
33477 (gl_PREREQ_STRTOK_R): Don't require it here.
33479 2007-05-13 Bruno Haible <bruno@clisp.org>
33481 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
33482 when used in C++ mode.
33484 2007-05-12 Bruno Haible <bruno@clisp.org>
33486 * lib/linebuffer.h: Tweak doc.
33487 * lib/linebuffer.c: Likewise.
33489 2007-05-12 James Youngman <jay@gnu.org>
33491 * lib/linebuffer.c (readlinebuffer_delim): New function,
33492 like readlinebuffer, but use a caller-specified delimiter.
33493 (readlinebuffer): Just call readlinebuffer_delim with '\n'
33495 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
33497 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
33499 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
33500 * modules/openat (Files): Remove openat-die.c.
33501 (Depends-on): Add openat-die.
33502 * modules/openat-die: New module.
33504 2007-05-06 Bruno Haible <bruno@clisp.org>
33506 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
33507 Update with info about Cygwin.
33508 * doc/functions/fprintf.texi: Update.
33509 * doc/functions/printf.texi: Update.
33510 * doc/functions/snprintf.texi: Update.
33511 * doc/functions/sprintf.texi: Update.
33512 * doc/functions/vfprintf.texi: Update.
33513 * doc/functions/vprintf.texi: Update.
33514 * doc/functions/vsnprintf.texi: Update.
33515 * doc/functions/vsprintf.texi: Update.
33516 Reported by Eric Blake.
33518 2007-05-06 Bruno Haible <bruno@clisp.org>
33520 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
33521 padding ourselves for the floating-point directives.
33522 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
33523 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
33524 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33525 gl_PRINTF_FLAG_ZERO and test its result. Invoke
33526 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
33527 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33528 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
33529 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33530 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33531 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33532 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33533 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33534 * tests/test-snprintf-posix.h (test_function): Also check the width
33535 and some flags in the %f directive.
33536 * tests/test-sprintf-posix.h (test_function): Likewise.
33537 * tests/test-vasnprintf-posix.c (test_function): Likewise.
33538 * tests/test-vasprintf-posix.c (test_function): Likewise.
33539 * doc/functions/fprintf.texi: Update.
33540 * doc/functions/printf.texi: Update.
33541 * doc/functions/snprintf.texi: Update.
33542 * doc/functions/sprintf.texi: Update.
33543 * doc/functions/vfprintf.texi: Update.
33544 * doc/functions/vprintf.texi: Update.
33545 * doc/functions/vsnprintf.texi: Update.
33546 * doc/functions/vsprintf.texi: Update.
33548 2007-05-06 Bruno Haible <bruno@clisp.org>
33550 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
33551 pass the ' flag character to sprintf or snprintf.
33552 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
33553 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
33554 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33555 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
33556 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
33557 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33558 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
33559 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33560 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33561 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33562 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33563 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33564 * tests/test-snprintf-posix.h (test_function): Also check the grouping
33566 * tests/test-sprintf-posix.h (test_function): Likewise.
33567 * tests/test-vasnprintf-posix.c (test_function): Likewise.
33568 * tests/test-vasprintf-posix.c (test_function): Likewise.
33569 * doc/functions/fprintf.texi: Update.
33570 * doc/functions/printf.texi: Update.
33571 * doc/functions/snprintf.texi: Update.
33572 * doc/functions/sprintf.texi: Update.
33573 * doc/functions/vfprintf.texi: Update.
33574 * doc/functions/vprintf.texi: Update.
33575 * doc/functions/vsnprintf.texi: Update.
33576 * doc/functions/vsprintf.texi: Update.
33578 2007-05-01 Bruno Haible <bruno@clisp.org>
33580 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
33582 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
33584 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
33585 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
33587 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
33589 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
33590 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
33591 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
33593 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
33595 * lib/argp-help.c (struct hol_entry): New member `ord'.
33596 (HOL_ENTRY_PTRCMP): Use ord for comparison
33597 (hol_sort): Initialize ord.
33599 2007-05-01 Bruno Haible <bruno@clisp.org>
33601 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
33602 Reported by Eric Blake.
33603 * doc/gnulib.texi (Function Substitutes): Update.
33605 2007-05-01 Bruno Haible <bruno@clisp.org>
33607 * doc/functions.texi: Remove file, now redundant through
33608 doc/functions/*.texi.
33610 2007-05-01 Bruno Haible <bruno@clisp.org>
33612 * modules/argp (Depends-on): Add sleep.
33614 2007-05-01 Bruno Haible <bruno@clisp.org>
33616 * modules/sleep-tests: New file.
33617 * tests/test-sleep.c: New file.
33619 * modules/sleep: New file.
33620 * lib/sleep.c: New file.
33621 * m4/sleep.m4: New file.
33622 * lib/unistd_.h (sleep): New declaration.
33623 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
33625 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
33626 * doc/functions/sleep.texi: Document the sleep module.
33628 2007-05-01 Bruno Haible <bruno@clisp.org>
33630 * lib/sigprocmask.h: Remove file.
33631 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
33632 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
33633 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
33634 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
33635 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
33636 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
33637 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
33638 HAVE_SIGSET_T as a shell variable.
33639 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
33640 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
33641 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
33642 (Depends-on): Add signal. Remove verify.
33643 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
33644 (Include): Mention <signal.h> instead of sigprocmask.h.
33645 * NEWS: Mention the change.
33646 * lib/fatal-signal.c: Don't include sigprocmask.h.
33648 2007-05-01 Bruno Haible <bruno@clisp.org>
33650 * modules/signal: New file.
33651 * lib/signal_.h: New file.
33652 * m4/signal_h.m4: New file.
33654 2007-05-01 Bruno Haible <bruno@clisp.org>
33656 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
33657 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
33658 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
33659 HAVE_WCTYPE_CTMP_BUG into wctype.h.
33661 2007-05-01 Bruno Haible <bruno@clisp.org>
33663 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
33665 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
33666 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
33667 * modules/sys_stat (Makefile.am): Substitute their values into
33670 2007-05-01 Bruno Haible <bruno@clisp.org>
33672 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
33673 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
33674 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
33676 2007-05-01 Bruno Haible <bruno@clisp.org>
33678 * doc/header/assert.texi: Undo last change: don't mention the gnulib
33679 'assert' module here.
33681 2007-05-01 Bruno Haible <bruno@clisp.org>
33683 * doc/functions/*.texi: New files.
33684 * doc/functions/google-ranking.txt: New file.
33685 * doc/gnulib.texi (Function Substitutes): New chapter.
33686 (ctime, inet_ntoa): Remove sections.
33687 * doc/ctime.texi: Remove file.
33688 * doc/inet_ntoa.texi: Remove file.
33689 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
33691 (%.info): New rule, specifying a --reference-limit.
33693 2007-05-01 Bruno Haible <bruno@clisp.org>
33695 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
33697 2007-05-01 Bruno Haible <bruno@clisp.org>
33699 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
33700 the portability of 'mkdir' to mingw systems.
33702 2007-05-01 Bruno Haible <bruno@clisp.org>
33704 * doc/headers/google-ranking.txt: New file.
33706 2007-04-30 Eric Blake <ebb9@byu.net>
33708 Prefer fseeko to fseek.
33709 * modules/getpass (Depends-on): Add fseeko.
33710 * lib/getpass.c (getpass): Use fseeko, not fseek.
33712 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
33714 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
33715 assumes the sorting is stable, while most qsort implementations
33716 are not. Use argument addresses to ensure they never compare as
33719 * tests/test-argp-2.sh (usage-indent test): Fix output
33720 (func_compare): Restore diff options
33721 * tests/test-argp.c: Restore #include "progname.h"
33723 2007-04-29 Bruno Haible <bruno@clisp.org>
33725 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
33726 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33727 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
33728 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33729 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
33730 (configure.ac): Define CHECK_SNPRINTF_POSIX.
33731 (TESTS, check_PROGRAMS): Add test-snprintf.
33732 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
33733 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
33734 (TESTS, check_PROGRAMS): Add test-vsnprintf.
33735 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
33736 assertions that fail on HP-UX, OSF/1, or IRIX.
33737 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
33739 2007-04-29 Bruno Haible <bruno@clisp.org>
33741 * MODULES.html.sh (posix_functions): Remove 'contents'.
33743 2007-04-29 Karl Berry <karl@gnu.org>
33745 * config/srclist.txt (gendocs_template_min): new entry.
33747 2007-04-29 Bruno Haible <bruno@clisp.org>
33749 Work around fpurge bug on BSD systems.
33750 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
33751 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
33752 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
33753 fpurge to rpl_fpurge if the system already has this function.
33754 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
33755 the case where the system already has this function. Correct invariants
33757 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
33760 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
33762 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
33763 proposed by Sven Verdoolaege.
33765 * tests/test-argp.c: Fix option ordering. Test deeply clustered
33767 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
33768 (usage and help tests): Update
33770 2007-04-29 Bruno Haible <bruno@clisp.org>
33772 * tests/test-fflush.c (main): Use a file of size 17, not 10.
33773 Print more information in case of failure. Disable a test on BeOS.
33775 2007-04-29 Bruno Haible <bruno@clisp.org>
33777 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
33778 This helps debugging on systems on which no gdb is available.
33780 2007-04-29 Bruno Haible <bruno@clisp.org>
33782 * lib/freading.h: Improve comments.
33783 * lib/fwriting.h: Likewise.
33784 * tests/test-freading.c (main): Don't check freading immediately after
33785 repositioning. Needed for glibc.
33787 2007-04-29 Bruno Haible <bruno@clisp.org>
33789 * lib/freading.c (freading): Trivial simplification.
33791 2007-04-28 Bruno Haible <bruno@clisp.org>
33793 * tests/test-fwriting.c (main): Also test the interaction between
33794 fflush and fwriting.
33795 * modules/fwriting-tests (Depends-on): Add fflush.
33797 * tests/test-freading.c (main): Also test the interaction between
33798 fflush and freading.
33799 * modules/freading-tests (Depends-on): Add fflush.
33801 2007-04-28 Bruno Haible <bruno@clisp.org>
33803 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
33805 Suggested by Eric Blake.
33807 2007-04-28 Jim Meyering <jim@meyering.net>
33809 Avoid false-negative in gl_STDINT_H's C99 conformance test.
33810 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
33811 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
33813 2007-04-27 Eric Blake <ebb9@byu.net>
33815 * doc/headers/assert.texi (assert.h): Document assert module use.
33817 2007-04-27 Bruno Haible <bruno@clisp.org>
33819 * doc/headers/*.texi: New files.
33820 * doc/gnulib.texi (Header File Substitutes): New chapter.
33821 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
33823 (standards.info ,standards.html, standards.dvi): Update dependencies.
33824 (mostlyclean, clean): New targets.
33826 2007-04-27 Bruno Haible <bruno@clisp.org>
33828 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
33829 * modules/sysexits (Files, Makefile.am): Update.
33831 * lib/sys_socket_.h: Renamed from lib/socket_.h.
33832 * modules/sys_socket (Files, Makefile.am): Update.
33834 * lib/sys_stat_.h: Renamed from lib/stat_.h.
33835 * modules/sys_stat (Files, Makefile.am): Update.
33837 2007-04-27 Eric Blake <ebb9@byu.net>
33839 * lib/freading.h: Improve comments.
33840 * lib/fwriting.h: Likewise.
33841 * lib/fflush.c: Likewise.
33843 Fix closein for mingw.
33844 * modules/closein-tests: Add tests for closein.
33845 * tests/test-closein.c: New file.
33846 * tests/test-closein.sh: Likewise.
33847 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
33848 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
33850 2007-04-27 Bruno Haible <bruno@clisp.org>
33852 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
33854 * lib/math_.h [__DECC]: Likewise.
33855 * lib/stdio_.h [__DECC]: Likewise.
33856 * lib/stdlib_.h [__DECC]: Likewise.
33857 * lib/string_.h [__DECC]: Likewise.
33858 * lib/time_.h [__DECC]: Likewise.
33859 * lib/wchar_.h [__DECC]: Likewise.
33860 * lib/wctype_.h [__DECC]: Likewise.
33862 2007-04-27 Bruno Haible <bruno@clisp.org>
33864 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
33866 2007-04-27 Bruno Haible <bruno@clisp.org>
33868 * lib/fflush.c: Add comments.
33869 * modules/fpurge-tests (Depends-on): Add fflush.
33870 * modules/freadable-tests (Depends-on): Likewise.
33871 * modules/fwritable-tests (Depends-on): Likewise.
33873 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
33875 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
33876 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
33877 Report by Bruno Haible <bruno@clisp.org>.
33879 2007-04-26 Eric Blake <ebb9@byu.net>
33881 Fix fflush on mingw.
33882 * modules/fflush (Depends-on): Add freading.
33883 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
33886 2007-04-26 Eric Blake <ebb9@byu.net>
33887 and Bruno Haible <bruno@clisp.org>
33889 Implement freading and fwriting.
33890 * lib/freading.c: New file.
33891 * lib/freading.h: Likewise.
33892 * m4/freading.m4: Likewise.
33893 * modules/freading: Likewise.
33894 * modules/freading-tests: Likewise.
33895 * tests/test-freading.c: Likewise.
33896 * lib/fwriting.c: New file.
33897 * lib/fwriting.h: Likewise.
33898 * m4/fwriting.m4: Likewise.
33899 * modules/fwriting: Likewise.
33900 * modules/fwriting-tests: Likewise.
33901 * tests/test-fwriting.c: Likewise.
33902 * MODULES.html.sh (File stream based Input/Output): Mention them.
33904 2007-04-26 Bruno Haible <bruno@clisp.org>
33906 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
33907 'long' when we assume it.
33908 Suggested by Eric Blake.
33910 2007-04-26 Bruno Haible <bruno@clisp.org>
33912 Ensure fseeko, ftello are declared on glibc systems.
33913 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
33914 * modules/fseeko (configure.ac-early): Likewise.
33915 * modules/ftello (configure.ac-early): Likewise.
33916 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
33917 AC_FUNC_FSEEKO for this.
33918 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
33919 (gl_CHECK_FSEEKO): Remove macro.
33921 2007-04-26 Bruno Haible <bruno@clisp.org>
33923 * tests/test-fflush.c (main): Also check the ftell result after
33924 fflush and fseek/fseeko.
33925 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
33926 file descriptor position cache in the stream.
33927 * lib/fseeko.c (rpl_fseeko): Likewise.
33929 2007-04-26 Bruno Haible <bruno@clisp.org>
33931 * modules/fflush-tests (Depends-on): Add fseeko.
33933 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
33934 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33936 * lib/argz_.h: ensure error_t definition is obtained in same
33937 mechanism system argz.h would have.
33938 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
33939 argz facilities are known bad. Err on the side of caution if
33942 2007-04-25 Eric Blake <ebb9@byu.net>
33944 * lib/fpurge.c (includes): Use stdlib.h for free.
33945 * tests/test-fflush.c (main): Also test fflush-fseeko.
33947 2007-04-25 Bruno Haible <bruno@clisp.org>
33949 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
33950 * lib/fseeko.c: New file.
33951 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
33952 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
33953 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
33955 (gl_FUNC_FSEEKO): Invoke it.
33956 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
33957 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
33958 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
33960 2007-04-25 Bruno Haible <bruno@clisp.org>
33962 * modules/fflush (Depends-on): Add ftello.
33964 2007-04-25 Bruno Haible <bruno@clisp.org>
33966 * modules/ftello-tests: New file.
33967 * tests/test-ftello.c: New file.
33969 * modules/ftello: New file.
33970 * m4/ftello.m4: New file.
33971 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
33973 * lib/stdio_.h (ftello): New declaration.
33974 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
33977 2007-04-25 Bruno Haible <bruno@clisp.org>
33979 * modules/fseeko-tests: New file.
33980 * tests/test-fseeko.c: New file.
33982 * modules/fseeko: New file.
33983 * m4/fseeko.m4: New file.
33984 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
33986 * lib/stdio_.h (fseeko): New declaration.
33987 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
33990 2007-04-25 Bruno Haible <bruno@clisp.org>
33992 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
33994 2007-04-25 Bruno Haible <bruno@clisp.org>
33996 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
33997 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
33998 * tests/test-unistd.c: Likewise.
33999 * tests/test-fcntl.c: Likewise.
34001 2007-04-23 Eric Blake <ebb9@byu.net>
34003 * lib/fflush.c: Fix missing include.
34004 Reported by Bruno Haible.
34006 2007-04-23 Bruno Haible <bruno@clisp.org>
34008 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
34009 Reported by Eric Blake.
34011 2007-04-23 Bruno Haible <bruno@clisp.org>
34013 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
34015 2007-04-23 Bruno Haible <bruno@clisp.org>
34017 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
34019 2007-04-23 Bruno Haible <bruno@clisp.org>
34021 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
34022 Needed on HP-UX 11.
34024 2007-04-16 Eric Blake <ebb9@byu.net>
34026 Make fflush rely on fpurge.
34027 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
34028 open coding all variants.
34029 * modules/fflush (Depends-on): Add fpurge and unistd.
34030 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
34031 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
34033 Fix --with-tests compilation on cygwin.
34034 * modules/argmatch-tests (Makefile.am): List gnulib library first
34036 * modules/argp-tests (Makefile.am): Likewise.
34037 * modules/array-list-tests (Makefile.am): Likewise.
34038 * modules/array-oset-tests (Makefile.am): Likewise.
34039 * modules/avltree-list-tests (Makefile.am): Likewise.
34040 * modules/avltree-oset-tests (Makefile.am): Likewise.
34041 * modules/avltreehash-list-tests (Makefile.am): Likewise.
34042 * modules/carray-list-tests (Makefile.am): Likewise.
34043 * modules/dirname-tests (Makefile.am): Likewise.
34044 * modules/frexp-tests (Makefile.am): Likewise.
34045 * modules/isnanl-tests (Makefile.am): Likewise.
34046 * modules/linked-list-tests (Makefile.am): Likewise.
34047 * modules/linkedhash-list-tests (Makefile.am): Likewise.
34048 * modules/lock-tests (Makefile.am): Likewise.
34049 * modules/rbtree-list-tests (Makefile.am): Likewise.
34050 * modules/rbtree-oset-tests (Makefile.am): Likewise.
34051 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
34052 * modules/tls-tests (Makefile.am): Likewise.
34053 * modules/tsearch-tests (Makefile.am): Likewise.
34054 * modules/xvasprintf-tests (Makefile.am): Likewise.
34056 Fix fpurge for cygwin.
34057 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
34059 * modules/fpurge-tests (Depends-on): Clean up trash.
34061 2007-04-16 Simon Josefsson <simon@josefsson.org>
34063 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
34065 * m4/autobuild.m4: Re-indent.
34067 2007-04-13 Bruno Haible <bruno@clisp.org>
34069 * modules/fpurge-tests: New file.
34070 * tests/test-fpurge.c: New file.
34072 * modules/fpurge: New file.
34073 * lib/fpurge.h: New file.
34074 * lib/fpurge.c: New file.
34075 * m4/fpurge.m4: New file.
34077 2007-04-13 Bruno Haible <bruno@clisp.org>
34079 * modules/fbufmode-tests: New file.
34080 * tests/test-fbufmode.c: New file.
34082 * modules/fbufmode: New file.
34083 * lib/fbufmode.h: New file.
34084 * lib/fbufmode.c: New file.
34085 * m4/fbufmode.m4: New file.
34087 2007-04-13 Bruno Haible <bruno@clisp.org>
34089 * modules/fwritable-tests: New file.
34090 * tests/test-fwritable.c: New file.
34092 * modules/fwritable: New file.
34093 * lib/fwritable.h: New file.
34094 * lib/fwritable.c: New file.
34095 * m4/fwritable.m4: New file.
34097 2007-04-13 Bruno Haible <bruno@clisp.org>
34099 * modules/freadable-tests: New file.
34100 * tests/test-freadable.c: New file.
34102 * modules/freadable: New file.
34103 * lib/freadable.h: New file.
34104 * lib/freadable.c: New file.
34105 * m4/freadable.m4: New file.
34107 2007-04-13 Bruno Haible <bruno@clisp.org>
34109 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
34112 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
34114 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
34115 gzip bootstrap.conf to avoid dragging in i18n machinery.
34116 (gnulib_tool_option): Use it.
34118 2007-04-13 Bruno Haible <bruno@clisp.org>
34120 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
34122 * tests/test-vasprintf-posix.c (test_function): Likewise.
34123 * tests/test-snprintf-posix.h (test_function): Likewise.
34124 * tests/test-sprintf-posix.h (test_function): Likewise.
34125 * tests/test-fprintf-posix.h (test_function): Likewise.
34126 * tests/test-printf-posix.h (test_function): Likewise.
34127 * tests/test-fprintf-posix.out: Likewise.
34129 2007-04-13 Bruno Haible <bruno@clisp.org>
34131 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
34132 * modules/tls-tests (configure.ac): Likewise.
34133 Reported by Arto C. Nirkko <anirkko@insel.ch>.
34135 2007-04-13 Bruno Haible <bruno@clisp.org>
34137 * lib/tls.c (glthread_tls_get): Fix return type.
34138 Patch by Arto C. Nirkko <anirkko@insel.ch>.
34140 2007-04-12 Eric Blake <ebb9@byu.net>
34142 * modules/gettime (Depends-on): Remove gettime.
34143 Reported by Dmitry V. Levin.
34145 2007-04-12 Bruno Haible <bruno@clisp.org>
34147 * modules/fflush (Include): Mention <stdio.h>.
34148 * modules/strtoimax (Include): Mention <inttypes.h>.
34149 * modules/strtoumax (Include): Likewise.
34151 2007-04-12 Eric Blake <ebb9@byu.net>
34153 * .cvsignore: New file.
34154 * .gitignore: Likewise.
34156 2007-04-12 Bruno Haible <bruno@clisp.org>
34158 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
34159 not before, since $(LDADD) often contains libgnu.a.
34160 * modules/striconv-tests (test_striconv_LDADD): Likewise.
34161 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
34162 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
34165 2007-04-12 Eric Blake <ebb9@byu.net>
34167 Work around glibc's failure to flush stdin on fclose.
34168 * lib/closein.c (close_stdin): Flush stdin before closing.
34170 Work around glibc's failure to reset seekable stdin on exit.
34171 * modules/closein: New module.
34172 * lib/closein.c: New file.
34173 * lib/closein.h: Likewise.
34174 * m4/closein.m4: Likewise.
34175 * MODULES.html.sh (File stream based Input/Output): Document it.
34177 2007-04-12 Simon Josefsson <simon@josefsson.org>
34179 * gnulib-tool: Rename generated 'autobuild' script to
34180 'do-autobuild' in --create-megatestdir output.
34182 * doc/gnulib.texi (Build robot for gnulib): Fix.
34184 2007-04-12 Simon Josefsson <simon@josefsson.org>
34186 * modules/sysexits (Depends-on): Add absolute-header.
34188 2007-04-12 Eric Blake <ebb9@byu.net>
34190 No need to preserve errno on success.
34191 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
34192 Reported by Bruno Haible.
34194 2007-04-12 Simon Josefsson <simon@josefsson.org>
34196 * MODULES.html.sh (Support for maintaining and releasing
34197 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
34199 2007-04-12 Simon Josefsson <simon@josefsson.org>
34201 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
34203 2007-04-12 Simon Josefsson <simon@josefsson.org>
34205 * modules/autobuild: New module.
34207 * m4/autobuild.m4: New file.
34209 2007-04-11 Bruno Haible <bruno@clisp.org>
34211 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
34212 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
34213 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
34214 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
34215 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34216 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34217 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34218 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34219 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34220 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34221 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
34222 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34223 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34224 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
34225 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34226 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34227 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
34228 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34229 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34230 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
34231 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34232 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34233 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
34234 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34235 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34236 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
34237 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34238 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34239 Reported by Eric Blake.
34241 2007-04-11 Bruno Haible <bruno@clisp.org>
34243 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
34245 2007-04-10 Bruno Haible <bruno@clisp.org>
34247 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
34248 for NaN and Infinity. Needed on FreeBSD 6.1.
34249 * tests/test-vasnprintf-posix.c (test_function): Undo last change
34250 regarding results for "%010a" of Infinity and NaN.
34251 * tests/test-vasprintf-posix.c (test_function): Likewise.
34252 * tests/test-snprintf-posix.h (test_function): Likewise.
34253 * tests/test-sprintf-posix.h (test_function): Likewise.
34254 * tests/test-fprintf-posix.h (test_function): Likewise.
34255 * tests/test-printf-posix.h (test_function): Likewise.
34256 * tests/test-fprintf-posix.out: Likewise.
34258 2007-04-10 Bruno Haible <bruno@clisp.org>
34260 * modules/locale-tests: New file.
34261 * tests/test-locale.c: New file.
34263 * modules/locale: New file.
34264 * lib/locale_.h: New file.
34265 * m4/locale_h.m4: New file.
34267 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
34268 Bruno Haible <bruno@clisp.org>
34270 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
34271 be determined, test for availability of the copysignf, copysign,
34272 copysignl functions.
34273 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
34274 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
34275 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
34277 2007-04-09 Eric Blake <ebb9@byu.net>
34279 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
34280 * modules/stdio (Makefile.am): Support fflush.
34281 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34282 * modules/fflush: New file.
34283 * lib/fflush.c: Likewise.
34284 * m4/fflush.m4: Likewise.
34285 * modules/fflush-tests: New test.
34286 * tests/test-fflush.c: Likewise.
34287 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
34289 2007-04-06 Bruno Haible <bruno@clisp.org>
34291 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
34292 (VASNPRINTF): Use signbit for faster determination whether to print a
34294 * modules/vasnprintf (Files): Remove lib/float+.h.
34295 * modules/fprintf-posix (Depends-on): Add signbit.
34296 * modules/snprintf-posix (Depends-on): Likewise.
34297 * modules/sprintf-posix (Depends-on): Likewise.
34298 * modules/vasnprintf-posix (Depends-on): Likewise.
34299 * modules/vasprintf-posix (Depends-on): Likewise.
34300 * modules/vfprintf-posix (Depends-on): Likewise.
34301 * modules/vsnprintf-posix (Depends-on): Likewise.
34302 * modules/vsprintf-posix (Depends-on): Likewise.
34304 2007-04-06 Bruno Haible <bruno@clisp.org>
34306 * tests/test-frexp.c (main): Test also the sign bit of zero results.
34307 * tests/test-frexpl.c (main): Likewise.
34308 * tests/test-ldexpl.c (main): Likewise.
34309 * modules/frexp-tests (Depends-on): Add signbit.
34310 * modules/frexpl-tests (Depdends-on): Likewise.
34311 * modules/ldexpl-tests (Depdends-on): Likewise.
34313 2007-04-06 Bruno Haible <bruno@clisp.org>
34315 * modules/signbit-tests: New file.
34316 * tests/test-signbit.c: New file.
34318 * modules/signbit: New file.
34319 * lib/signbitf.c: New file.
34320 * lib/signbitd.c: New file.
34321 * lib/signbitl.c: New file.
34322 * m4/signbit.m4: New file.
34323 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
34324 (signbit): New macro.
34325 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
34327 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
34328 REPLACE_FREXPL into math.h.
34330 2007-04-06 Bruno Haible <bruno@clisp.org>
34332 * modules/isnanf-nolibm-tests: New file.
34333 * tests/test-isnanf.c: New file.
34335 * modules/isnanf-nolibm: New file.
34336 * lib/isnanf.h: New file.
34337 * lib/isnanf.c: New file.
34338 * lib/isnan.c: Consider the USE_FLOAT macro.
34339 * m4/isnanf.m4: New file.
34341 2007-04-06 Bruno Haible <bruno@clisp.org>
34343 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
34344 (Link): New section.
34346 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
34348 2007-04-06 Bruno Haible <bruno@clisp.org>
34350 Assume the 'long double' type.
34351 * m4/longdouble.m4: Remove file.
34352 * config/srclist.txt: Don't mention longdouble.m4.
34353 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
34354 * lib/float+.h: Likewise.
34355 * lib/frexp.c: Likewise.
34356 * lib/printf-args.h: Likewise.
34357 * lib/printf-args.c: Likewise.
34358 * lib/printf-frexp.c: Likewise.
34359 * lib/printf-parse.c: Likewise.
34360 * lib/vasnprintf.c: Likewise.
34361 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
34362 * m4/intl.m4: Likewise.
34363 * m4/isnanl.m4: Likewise.
34364 * m4/printf.m4: Likewise.
34365 * m4/printf-frexpl.m4: Likewise.
34366 * m4/vasnprintf.m4: Likewise.
34367 * modules/allocsa (Files): Remove m4/longdouble.m4.
34368 * modules/gettext (Files): Likewise.
34369 * modules/relocatable-prog-wrapper (Files): Likewise.
34370 * modules/vasnprintf (Files): Likewise.
34371 * modules/isnanl (Files): Likewise.
34372 (Include): Simplify.
34373 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
34374 (Include): Simplify.
34375 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
34376 (Include): Simplify.
34377 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
34378 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34379 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
34380 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34381 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
34382 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34383 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
34384 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34385 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
34386 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34387 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
34388 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34389 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
34390 * tests/test-isnanl.c: Likewise.
34391 * tests/test-snprintf-posix.h: Likewise.
34392 * tests/test-sprintf-posix.h: Likewise.
34393 * tests/test-vasnprintf-posix.c: Likewise.
34394 * tests/test-vasnprintf-posix2.c: Likewise.
34395 * tests/test-vasprintf-posix.c: Likewise.
34397 2007-04-06 Bruno Haible <bruno@clisp.org>
34399 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
34400 * lib/math_.h [__DECC]: Include the overridden include file through
34401 #include_next, outside the double-inclusion guard.
34402 * lib/stdio_.h [__DECC]: Likewise.
34403 * lib/stdlib_.h [__DECC]: Likewise.
34404 * lib/string_.h [__DECC]: Likewise.
34405 * lib/time_.h [__DECC]: Likewise.
34406 * lib/wchar_.h [__DECC]: Likewise.
34407 * lib/wctype_.h [__DECC]: Likewise.
34408 * lib/inttypes_.h [__DECC]: Likewise.
34409 Reported by Albert Chin <china@thewrittenword.com> in
34410 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
34412 2007-04-04 Eric Blake <ebb9@byu.net>
34414 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
34417 2007-04-04 Bruno Haible <bruno@clisp.org>
34419 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
34420 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
34422 2007-04-04 Bruno Haible <bruno@clisp.org>
34424 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
34425 results for "%010a" of Infinity and NaN.
34426 * tests/test-vasprintf-posix.c (test_function): Likewise.
34427 * tests/test-snprintf-posix.h (test_function): Likewise.
34428 * tests/test-sprintf-posix.h (test_function): Likewise.
34429 * tests/test-fprintf-posix.h (test_function): Remove these tests.
34430 * tests/test-printf-posix.h (test_function): Likewise.
34431 * tests/test-fprintf-posix.out: Update.
34432 Needed for FreeBSD 6.1.
34434 2007-04-04 Bruno Haible <bruno@clisp.org>
34436 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
34437 directly used by the gnulib modules nor by gnulib-tool.
34439 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
34441 * DEPENDENCIES: Give overall description of version dependency
34442 desirability. Use more-typical names for apps.
34443 Add shell, coreutils, diffutils, grep, tar, gzip.
34445 2007-04-04 Simon Josefsson <simon@josefsson.org>
34447 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
34449 2007-04-04 Karl Berry <karl@gnu.org>
34451 * MODULES.html.sh (func_module): missing '.
34453 2007-04-03 Bruno Haible <bruno@clisp.org>
34455 * modules/argmatch-tests (Makefile.am): New variable
34456 test_argmatch_LDADD.
34457 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
34458 * modules/array-list-tests (Makefile.am): New variable
34459 test_array_list_LDADD.
34460 * modules/array-oset-tests (Makefile.am): New variable
34461 test_array_oset_LDADD.
34462 * modules/avltree-list-tests (Makefile.am): New variable
34463 test_avltree_list_LDADD.
34464 * modules/avltree-oset-tests (Makefile.am): New variable
34465 test_avltree_oset_LDADD.
34466 * modules/avltreehash-list-tests (Makefile.am): New variable
34467 test_avltreehash_list_LDADD.
34468 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
34469 test_canonicalize_lgpl_LDADD.
34470 * modules/carray-list-tests (Makefile.am): New variable
34471 test_carray_list_LDADD.
34472 * modules/dirname-tests (Makefile.am): New variable
34473 test_dirname_LDADD.
34474 * modules/linked-list-tests (Makefile.am): New variable
34475 test_linked_list_LDADD.
34476 * modules/linkedhash-list-tests (Makefile.am): New variable
34477 test_linkedhash_list_LDADD.
34478 * modules/rbtree-list-tests (Makefile.am): New variable
34479 test_rbtree_list_LDADD.
34480 * modules/rbtree-oset-tests (Makefile.am): New variable
34481 test_rbtree_oset_LDADD.
34482 * modules/rbtreehash-list-tests (Makefile.am): New variable
34483 test_rbtreehash_list_LDADD.
34484 * modules/xvasprintf-tests (Makefile.am): New variable
34485 test_xvasprintf_LDADD.
34486 Reported by Eric Blake.
34488 2007-04-03 Eric Blake <ebb9@byu.net>
34490 * DEPENDENCIES: Weaken m4 requirements.
34492 2007-04-03 Bruno Haible <bruno@clisp.org>
34494 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
34495 * modules/isnanl-tests (configure.ac): Likewise.
34497 2007-04-03 Ben Pfaff <blp@gnu.org>
34499 * modules/iconv_open: Add $(srcdir)/ to source directory
34500 references in Makefile fragments that call gperf, to fix VPATH
34503 2007-04-03 Bruno Haible <bruno@clisp.org>
34505 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
34506 * lib/ldexpl.c: Undo last change.
34508 2007-04-03 Bruno Haible <bruno@clisp.org>
34510 * modules/printf-frexpl (Depends-on): Undo last change.
34511 (Files): Add m4/ldexpl.m4.
34513 2007-04-03 Bruno Haible <bruno@clisp.org>
34515 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
34516 * modules/isnanl (Link): New section.
34518 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
34519 * modules/frexp (Link): New section.
34521 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
34522 * modules/frexpl (Link): New section.
34524 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
34525 * modules/ldexpl (Link): New section.
34527 2007-04-03 Bruno Haible <bruno@clisp.org>
34529 * modules/TEMPLATE-EXTENDED: New file.
34530 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
34532 2007-04-03 Bruno Haible <bruno@clisp.org>
34534 * DEPENDENCIES: New file.
34535 Suggested by Simon Josefsson.
34537 2007-04-03 Bruno Haible <bruno@clisp.org>
34539 * doc/gnulib.texi: Escape @.
34541 2007-04-03 James Youngman <jay@gnu.org>
34542 and Paul Eggert <eggert@cs.ucla.edu>
34544 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
34545 birthtime on all systems that have birthtime, not just those which
34546 use st_birthtimensec rather than st_birthtim. Putting zero in
34547 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
34548 that the birth time is not available for files on an NFS mount.
34550 2007-04-03 Simon Josefsson <simon@josefsson.org>
34552 * modules/memxor: Move back from crypto/, suggested by Bruno.
34553 * modules/crypto/hmac-sha1: Fix memxor dependency.
34555 * modules/crypto/gc: Moved from ../.
34557 2007-04-02 Eric Blake <ebb9@byu.net>
34559 * lib/ldexpl.c (includes): Avoid libm.
34561 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
34563 2007-04-02 Bruno Haible <bruno@clisp.org>
34565 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
34568 2007-04-02 Bruno Haible <bruno@clisp.org>
34570 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
34571 x86 or x86_64 platforms running MacOS X.
34572 Reported by Ryan Schmidt <@ryandesign.com>.
34574 2007-04-02 Bruno Haible <bruno@clisp.org>
34576 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
34579 2007-04-01 Simon Josefsson <simon@josefsson.org>
34581 * modules/crypto/arcfour: Moved from ../.
34582 * modules/crypto/arcfour-tests: Moved from ../.
34583 * modules/crypto/arctwo: Moved from ../.
34584 * modules/crypto/arctwo-tests: Moved from ../.
34585 * modules/crypto/des: Moved from ../.
34586 * modules/crypto/des-tests: Moved from ../.
34587 * modules/crypto/gc-arcfour: Moved from ../.
34588 * modules/crypto/gc-arcfour-tests: Moved from ../.
34589 * modules/crypto/gc-arctwo: Moved from ../.
34590 * modules/crypto/gc-arctwo-tests: Moved from ../.
34591 * modules/crypto/gc-des: Moved from ../.
34592 * modules/crypto/gc-des-tests: Moved from ../.
34593 * modules/crypto/gc-hmac-md5: Moved from ../.
34594 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
34595 * modules/crypto/gc-hmac-sha1: Moved from ../.
34596 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
34597 * modules/crypto/gc-md2: Moved from ../.
34598 * modules/crypto/gc-md2-tests: Moved from ../.
34599 * modules/crypto/gc-md4: Moved from ../.
34600 * modules/crypto/gc-md4-tests: Moved from ../.
34601 * modules/crypto/gc-md5: Moved from ../.
34602 * modules/crypto/gc-md5-tests: Moved from ../.
34603 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
34604 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
34605 * modules/crypto/gc-random: Moved from ../.
34606 * modules/crypto/gc-rijndael: Moved from ../.
34607 * modules/crypto/gc-rijndael-tests: Moved from ../.
34608 * modules/crypto/gc-sha1: Moved from ../.
34609 * modules/crypto/gc-sha1-tests: Moved from ../.
34610 * modules/crypto/gc-tests: Moved from ../.
34611 * modules/crypto/hmac-md5: Moved from ../.
34612 * modules/crypto/hmac-md5-tests: Moved from ../.
34613 * modules/crypto/hmac-sha1: Moved from ../.
34614 * modules/crypto/hmac-sha1-tests: Moved from ../.
34615 * modules/crypto/md2: Moved from ../.
34616 * modules/crypto/md2-tests: Moved from ../.
34617 * modules/crypto/md4: Moved from ../.
34618 * modules/crypto/md4-tests: Moved from ../.
34619 * modules/crypto/md5: Moved from ../.
34620 * modules/crypto/md5-tests: Moved from ../.
34621 * modules/crypto/memxor: Moved from ../.
34622 * modules/crypto/rijndael: Moved from ../.
34623 * modules/crypto/rijndael-tests: Moved from ../.
34624 * modules/crypto/sha1: Moved from ../.
34626 2007-03-30 James Youngman <jay@gnu.org>
34628 * tests/test-stat-time.c (prepare_test): use chmod() rather than
34629 rename() to change the ctime of a file (because ctime is unaffected
34630 by rename on jfs2 on AIX 5.1).
34631 (main): Start by doing cleanup, in case a previous run failed leaving
34634 2007-03-31 Bruno Haible <bruno@clisp.org>
34636 Support old proprietary implementations of iconv.
34637 * modules/iconv_open: New file.
34638 * lib/iconv_.h: New file.
34639 * m4/iconv_h.m4: New file.
34640 * lib/iconv_open.c: New file.
34641 * lib/iconv_open-aix.gperf: New file.
34642 * lib/iconv_open-hpux.gperf: New file.
34643 * lib/iconv_open-irix.gperf: New file.
34644 * lib/iconv_open-osf.gperf: New file.
34645 * m4/iconv_open.m4: New file.
34646 * modules/linebreak (Depends-on): Add iconv_open.
34647 * modules/striconv (Depends-on): Likewise.
34648 * modules/striconveh (Depends-on): Likewise.
34649 * modules/unicodeio (Depends-on): Likewise.
34650 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
34652 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
34653 conversion if cd is (iconv_t)(-1).
34654 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
34657 2007-03-31 Bruno Haible <bruno@clisp.org>
34659 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
34660 work on Solaris either. Protect also second use of "autodetect_jp".
34662 2007-03-31 Bruno Haible <bruno@clisp.org>
34664 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
34665 the function is not present.
34667 2007-03-31 Bruno Haible <bruno@clisp.org>
34669 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
34670 the function is not present.
34672 2007-03-31 Bruno Haible <bruno@clisp.org>
34674 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
34675 a bug in HP-UX iconv_open().
34677 2007-03-31 Bruno Haible <bruno@clisp.org>
34679 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
34680 (Mathematics <math.h>): New section, add fpieee.
34681 (Input/output <stdio.h>): Add fseterr.
34682 (Mathematics <math.h>): New section, add printf-frexp.
34683 (Container data structures): Add sublist.
34684 (Core language properties): Add fpucw, inline.
34685 (Functions for greatest-width integer types <inttypes.h>): Add
34686 imaxabs, imaxdiv, inttypes.
34687 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
34688 isnanl-nolibm, ldexp.
34689 (Mathematics <math.h>): New section, add printf-frexpl.
34690 (Support for systems lacking POSIX:2001): Add fprintf-posix,
34691 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
34692 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
34693 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
34694 (Unicode string functions): Add unistr/u*-mbtoucr.
34695 (Java): Add javacomp-script, javaexec-script.
34696 (C#): Add csharpcomp-script, csharpexec-script.
34697 (Support for building libraries and executables): Add havelib,
34699 (Support for maintaining and releasing projects): Renamed from
34700 'Support for maintaining and release projects'. Add announce-gen.
34702 2007-03-31 Bruno Haible <bruno@clisp.org>
34704 * README: Talk primarily about git.
34705 (git and CVS): Renamed from CVS.
34706 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
34707 gnulib is available through git.
34708 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
34710 2007-03-30 Bruno Haible <bruno@clisp.org>
34712 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
34713 * lib/poll_.h: Likewise.
34714 * lib/stat_.h: Likewise.
34715 * lib/sys_time_.h: Likewise.
34716 * lib/sysexit_.h: Likewise.
34717 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
34718 * lib/stdbool_.h: Likewise.
34719 * lib/byteswap_.h: Add double-inclusion guard.
34721 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
34723 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
34725 2007-03-30 Karl Berry <karl@gnu.org>
34727 * config/srclist-update: double space after USA in the license
34728 substitution, since that's how it's usually (?) written.
34730 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
34732 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
34733 reported by Bruno Haible.
34735 2007-03-29 Bruno Haible <bruno@clisp.org>
34737 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
34738 a bug in AIX iconv().
34740 2007-03-29 Bruno Haible <bruno@clisp.org>
34742 * modules/ldexpl-tests: New file.
34743 * tests/test-ldexpl.c: New file.
34745 2007-03-29 Bruno Haible <bruno@clisp.org>
34747 * lib/ldexpl.c: Include fpucw.h.
34748 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
34750 * modules/ldexpl (Depends-on): Add fpucw.
34752 2007-03-29 Bruno Haible <bruno@clisp.org>
34754 * modules/ldexpl: New file.
34755 * m4/ldexpl.m4: New file.
34756 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
34758 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
34760 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
34762 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
34763 gl_FUNC_LDEXPL_WORKS.
34764 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
34765 * modules/mathl (Files): Remove lib/ldexpl.c.
34766 (Depends-on): Add ldexpl.
34768 2007-03-29 Bruno Haible <bruno@clisp.org>
34770 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
34772 2007-03-29 Bruno Haible <bruno@clisp.org>
34774 * tests/test-striconveh.c (main): Don't assume that a direct conversion
34775 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
34776 and possibly also HP-UX.
34777 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
34778 work on AIX, IRIX, HP-UX, OSF/1.
34779 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
34780 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
34781 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
34782 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
34783 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
34784 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
34786 2007-03-29 Bruno Haible <bruno@clisp.org>
34788 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
34790 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
34792 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
34793 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
34795 2007-03-29 Eric Blake <ebb9@byu.net>
34797 * lib/acl-internal.h: Remove redundant include.
34798 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
34799 Cygwin when a file is locked.
34801 2007-03-29 Bruno Haible <bruno@clisp.org>
34803 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
34805 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
34807 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
34809 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
34810 try to remove a parent directory if the child couldn't be removed
34811 (except for the first rmdir, which could fail because the child
34812 doesn't exist). Problem reported by Jeff Blaine in
34813 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
34815 2007-03-28 Bruno Haible <bruno@clisp.org>
34817 * lib/striconveh.c (utf8conv_carefully): New function.
34818 (mem_cd_iconveh_internal): Invoke it.
34820 2007-03-28 Bruno Haible <bruno@clisp.org>
34822 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
34823 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
34825 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
34826 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
34829 2007-03-28 Bruno Haible <bruno@clisp.org>
34831 * modules/unistr/u8-mbtoucr: New file.
34832 * lib/unistr/u8-mbtoucr.c: New file.
34833 * modules/unistr/u16-mbtoucr: New file.
34834 * lib/unistr/u16-mbtoucr.c: New file.
34835 * modules/unistr/u16-mbtoucr: New file.
34836 * lib/unistr/u16-mbtoucr.c: New file.
34837 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
34839 2007-03-27 Simon Josefsson <simon@josefsson.org>
34840 Bruno Haible <bruno@clisp.org>
34842 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
34843 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
34844 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
34846 * m4/stdio_h.m4: Add stubs for vasprintf too.
34848 * modules/stdio: Support vasprintf in sed command.
34850 * modules/vasprintf: Depend on stdio for prototypes. Remove
34851 vasprintf.h. Add stdio module indicator.
34853 * lib/stdio_.h: Declare asprintf and vasprintf, based on
34856 * lib/vasprintf.h: File removed.
34858 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
34859 * lib/vasprintf.c: Ditto.
34860 * lib/xvasprintf.c: Ditto.
34861 * tests/test-vasprintf-posix.c: Ditto.
34862 * tests/test-vasprintf.c: Ditto.
34864 2007-03-27 Bruno Haible <bruno@clisp.org>
34866 Make vasnprintf multithread-safe.
34867 * lib/vasnprintf.c (decimal_point_char): New function.
34868 (VASNPRINTF): Use it.
34869 Suggested by Simon Josefsson.
34871 2007-03-27 Eric Blake <ebb9@byu.net>
34873 Support sub-second birthtime on cygwin.
34874 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
34875 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
34876 (get_stat_birthtime): Also work with st_birthtim.
34878 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
34880 * lib/stat-time.h (USE_BIRTHTIME): Remove.
34881 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
34882 (get_stat_birthtime_ns): Do not try to use "spare" fields.
34883 (get_stat_birthtime_ns): Simplify compile-time tests.
34884 (get_stat_birthtime): Change the API to look like
34885 get_stat_mtime etc., except return a negative tv_nsec on error.
34886 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
34887 Don't check for "spare" fields.
34888 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
34889 or for struct stat.st_birthtime, as these tests aren't used.
34890 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
34892 2007-03-27 Bruno Haible <bruno@clisp.org>
34894 * lib/stat-time.h: Include <sys/stat.h>.
34896 2007-03-27 James Youngman <jay@gnu.org>
34898 * lib/stat-time.h (get_stat_birthtime): New function for
34899 retrieving st_birthtime as provided by UFS2 (hence *BSD).
34900 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
34902 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
34903 * modules/stat-time-test: New file.
34904 * tests/test-stat-time.c: New test, devised by Bruno Haible.
34906 2007-03-26 Bruno Haible <bruno@clisp.org>
34908 Better support of signalling NaNs.
34909 * lib/atanl.c: Include isnanl.h.
34910 (atanl): Perform test for NaN at the beginning of the function and
34911 through a call to isnanl.
34912 * lib/cosl.c: Include isnanl.h.
34913 (cosl): Perform test for NaN at the beginning of the function and
34914 through a call to isnanl.
34915 * lib/ldexpl.c: Include isnanl.h.
34916 (ldexpl): Perform test for NaN through a call to isnanl.
34917 * lib/logl.c: Include isnanl.h.
34918 (logl): Perform test for NaN at the beginning of the function and
34919 through a call to isnanl.
34920 * lib/sinl.c: Include isnanl.h.
34921 (sinl): Perform test for NaN at the beginning of the function and
34922 through a call to isnanl.
34923 * lib/sqrtl.c: Include isnanl.h.
34924 (sqrtl): Perform test for NaN at the beginning of the function and
34925 through a call to isnanl.
34926 * lib/tanl.c: Include isnanl.h.
34927 (tanl): Perform test for NaN at the beginning of the function and
34928 through a call to isnanl.
34929 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
34930 * modules/mathl (Depends-on): Add isnanl.
34932 2007-03-26 Eric Blake <ebb9@byu.net>
34934 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
34935 regression in logic sense of previous patch.
34937 2007-03-26 Bruno Haible <bruno@clisp.org>
34939 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
34940 unportable shell command "if ! ...".
34941 Reported by Ralf Wildenhues.
34943 2007-03-25 Bruno Haible <bruno@clisp.org>
34945 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
34946 <sysexits.h> file, and only add EX_CONFIG.
34947 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
34948 absolute file name and whether it is sufficient. Substitute also
34949 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
34950 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
34951 ABSOLUTE_SYSEXITS_H into sysexits.h.
34953 2007-03-25 Bruno Haible <bruno@clisp.org>
34955 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
34958 2007-03-25 Bruno Haible <bruno@clisp.org>
34960 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
34961 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
34963 2007-03-25 Bruno Haible <bruno@clisp.org>
34965 * lib/vasnprintf.c: Include langinfo.h.
34966 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
34968 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
34969 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
34970 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34971 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34972 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34973 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34974 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34975 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
34976 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34977 Reported by Simon Josefsson.
34979 2007-03-25 Bruno Haible <bruno@clisp.org>
34981 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
34982 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
34983 * modules/vasnprintf (Depends-on): Add stdint.
34985 2007-03-25 Bruno Haible <bruno@clisp.org>
34987 * modules/fpieee: New file.
34988 * m4/fpieee.m4: New file.
34989 * modules/isnan-nolibm (Depends-on): Add fpieee.
34990 * modules/isnanl-nolibm (Depends-on): Add fpieee.
34991 * modules/isnanl (Depends-on): Add fpieee.
34993 2007-03-25 Bruno Haible <bruno@clisp.org>
34995 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
34997 2007-03-25 Bruno Haible <bruno@clisp.org>
34999 Avoid test failures on IRIX 6.5.
35000 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
35002 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
35006 2007-03-25 Bruno Haible <bruno@clisp.org>
35008 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
35009 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
35010 exists but doesn't work.
35011 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
35012 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
35013 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
35014 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
35016 2007-03-25 Bruno Haible <bruno@clisp.org>
35018 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
35019 returns inf. Needed on IRIX 6.5.
35021 2007-03-25 Bruno Haible <bruno@clisp.org>
35023 * tests/test-frexpl.c: Include isnanl-nolibm.h.
35024 (main): Use isnanl instead of x != x idiom.
35025 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
35027 * tests/test-frexp.c: Include isnan.h.
35028 (main): Use isnan instead of x != x idiom.
35029 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
35031 2007-03-25 Bruno Haible <bruno@clisp.org>
35033 * tests/test-frexp.c (NaN): New function/macro.
35034 (main): Use it instead of 0.0 / 0.0.
35035 * tests/test-isnan.c (NaN): New function/macro.
35036 (main): Use it instead of 0.0 / 0.0.
35037 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
35038 (test_function): Use it instead of 0.0 / 0.0.
35039 * tests/test-vasprintf-posix.c (NaN): New function/macro.
35040 (test_function): Use it instead of 0.0 / 0.0.
35041 * tests/test-snprintf-posix.h (NaN): New function/macro.
35042 (test_function): Use it instead of 0.0 / 0.0.
35043 * tests/test-sprintf-posix.h (NaN): New function/macro.
35044 (test_function): Use it instead of 0.0 / 0.0.
35045 * tests/test-fprintf-posix.h (NaN): New function/macro.
35046 (test_function): Use it instead of 0.0 / 0.0.
35047 * tests/test-printf-posix.h (NaN): New function/macro.
35048 (test_function): Use it instead of 0.0 / 0.0.
35050 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
35052 2007-03-25 Bruno Haible <bruno@clisp.org>
35054 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
35056 2007-03-25 Bruno Haible <bruno@clisp.org>
35058 * lib/regexec.c (merge_state_with_log): Make static.
35060 2007-03-25 Bruno Haible <bruno@clisp.org>
35062 * lib/trigl.c (kernel_rem_pio2): Make static.
35064 2007-03-25 Bruno Haible <bruno@clisp.org>
35066 * lib/sincosl.c (sincosl_table): Make static.
35068 2007-03-25 Bruno Haible <bruno@clisp.org>
35070 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
35071 if the compiler does not support C99.
35073 2007-03-25 Bruno Haible <bruno@clisp.org>
35075 * modules/time (Makefile.am): Ensure all rule action lines start with a
35078 2007-03-24 Bruno Haible <bruno@clisp.org>
35080 * modules/tsearch-tests: New file.
35081 * tests/test-tsearch.sh: New file.
35082 * tests/test-tsearch.c: New file, mostly copied from glibc.
35084 * modules/search-tests: New file.
35085 * tests/test-search.c: New file.
35087 * modules/search: New file.
35088 * lib/search_.h: New file, incorporating lib/tsearch.h.
35089 * m4/search_h.m4: New file.
35090 * lib/tsearch.h: Remove file.
35091 * lib/tsearch.c: Include search.h instead of tsearch.h.
35092 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
35094 * modules/tsearch (Files): Remove lib/tsearch.h.
35095 (Depends-on): Add search.
35096 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
35097 (Include): Change tsearch.h into search.h.
35099 2007-03-24 Bruno Haible <bruno@clisp.org>
35101 * modules/fpucw: New file.
35102 * lib/fpucw.h: New file.
35103 * lib/frexp.c: Include fpucw.h.
35104 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35106 * lib/printf-frexp.c: Include fpucw.h.
35107 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35109 * lib/vasnprintf.c: Include fpucw.h.
35110 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
35111 'long double' calculations.
35112 * tests/test-frexpl.c: Include fpucw.h.
35113 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35114 * tests/test-printf-frexpl.c: Include fpucw.h.
35115 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35116 * modules/frexpl (Depends-on): Add fpucw.
35117 * modules/printf-frexpl (Depends-on): Likewise.
35118 * modules/fprintf-posix (Depends-on): Likewise.
35119 * modules/snprintf-posix (Depends-on): Likewise.
35120 * modules/sprintf-posix (Depends-on): Likewise.
35121 * modules/vasnprintf-posix (Depends-on): Likewise.
35122 * modules/vasprintf-posix (Depends-on): Likewise.
35123 * modules/vfprintf-posix (Depends-on): Likewise.
35124 * modules/vsnprintf-posix (Depends-on): Likewise.
35125 * modules/vsprintf-posix (Depends-on): Likewise.
35126 * modules/frexpl-tests (Depends-on): Likewise.
35127 * modules/printf-frexpl-tests (Depends-on): Likewise.
35129 2007-03-24 Bruno Haible <bruno@clisp.org>
35131 * lib/float+.h: New file.
35132 * lib/isnan.c: Include float+.h.
35134 (FUNC): Compare only SIZE bytes of the value.
35135 * lib/vasnprintf.c: Include float+.h.
35136 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
35137 SIZEOF_LDBL or SIZEOF_DBL bytes.
35138 * modules/isnan-nolibm (Files): Add lib/float+.h.
35139 * modules/isnanl-nolibm (Files): Add lib/float+.h.
35140 * modules/isnanl (Files): Add lib/float+.h.
35141 * modules/vasnprintf (Files): Add lib/float+.h.
35143 2007-03-24 Bruno Haible <bruno@clisp.org>
35145 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
35146 include isnanl-nolibm.h.
35148 2007-03-24 Bruno Haible <bruno@clisp.org>
35150 * tests/test-read-file.c (main): Don't produce spurious output for
35151 expected situations. Make the test fail if it encountered unexpected
35154 2007-03-24 Bruno Haible <bruno@clisp.org>
35156 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
35157 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
35159 2007-03-24 Bruno Haible <bruno@clisp.org>
35161 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
35163 2007-03-24 Bruno Haible <bruno@clisp.org>
35165 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
35166 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
35168 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
35169 * modules/utf8-ucs4: Turn into a symbolic link to module
35172 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
35174 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
35175 unistr/u8-mbtouc-unsafe.
35177 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
35178 * modules/utf16-ucs4: Turn into a symbolic link to module
35181 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
35183 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
35184 unistr/u16-mbtouc-unsafe.
35186 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
35187 * modules/ucs4-utf8: Turn into a symbolic link to module
35190 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
35191 * modules/ucs4-utf16: Turn into a symbolic link to module
35194 2007-03-24 Bruno Haible <bruno@clisp.org>
35196 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
35197 Enable the function only if HAVE_INLINE.
35198 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
35199 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35200 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
35201 Enable the function only if HAVE_INLINE.
35202 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
35203 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35204 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
35205 Enable the function only if HAVE_INLINE.
35206 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
35207 Enable the function only if HAVE_INLINE.
35208 * modules/utf8-ucs4: Update.
35209 * modules/utf8-ucs4-unsafe: Update.
35210 * modules/utf16-ucs4: Update.
35211 * modules/utf16-ucs4-unsafe: Update.
35212 * modules/ucs4-utf8: Update.
35213 * modules/ucs4-utf16: Update.
35215 2007-03-24 Bruno Haible <bruno@clisp.org>
35217 * lib/utf8-ucs4.h: Remove file.
35218 * lib/utf8-ucs4-unsafe.h: Remove file.
35219 * lib/utf16-ucs4.h: Remove file.
35220 * lib/utf16-ucs4-unsafe.h: Remove file.
35221 * lib/ucs4-utf8.h: Remove file.
35222 * lib/ucs4-utf16.h: Remove file.
35223 * lib/unistr.h: Include their previous contents.
35224 * m4/utf-ucs4.m4: Remove file.
35225 * m4/ucs4-utf.m4: Remove file.
35226 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
35227 (Depends-on): Add unistr/base.
35228 (configure.ac): Remove gl_UTF_UCS4.
35229 (Makefile.am): Update.
35230 (Include): Change to unistr.h.
35231 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
35232 (Depends-on): Add unistr/base.
35233 (configure.ac): Remove gl_UTF_UCS4.
35234 (Makefile.am): Update.
35235 (Include): Change to unistr.h.
35236 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
35237 (Depends-on): Add unistr/base.
35238 (configure.ac): Remove gl_UTF_UCS4.
35239 (Makefile.am): Update.
35240 (Include): Change to unistr.h.
35241 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
35242 (Depends-on): Add unistr/base.
35243 (configure.ac): Remove gl_UTF_UCS4.
35244 (Makefile.am): Update.
35245 (Include): Change to unistr.h.
35246 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
35247 (Depends-on): Add unistr/base.
35248 (configure.ac): Remove gl_UCS4_UTF.
35249 (Makefile.am): Update.
35250 (Include): Change to unistr.h.
35251 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
35252 (Depends-on): Add unistr/base.
35253 (configure.ac): Remove gl_UCS4_UTF.
35254 (Makefile.am): Update.
35255 (Include): Change to unistr.h.
35256 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
35257 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
35258 utf8-ucs4-unsafe.h.
35259 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
35260 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
35261 utf16-ucs4-unsafe.h.
35262 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
35263 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
35264 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
35265 * lib/unistr/u8-strchr.c: Likewise.
35266 * lib/unistr/u8-strrchr.c: Likewise.
35267 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
35268 * lib/unistr/u16-strchr.c: Likewise.
35269 * lib/unistr/u16-strrchr.c: Likewise.
35270 * lib/striconveh.c: Update.
35271 * lib/linebreak.c: Update.
35273 2007-03-24 Bruno Haible <bruno@clisp.org>
35275 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
35276 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
35278 2007-03-22 Bruno Haible <bruno@clisp.org>
35280 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
35282 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
35284 * MODULES.html.sh (File system functions): New module write-any-file.
35285 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
35286 * m4/write-any-file.m4: New files.
35288 2007-03-23 Eric Blake <ebb9@byu.net>
35290 * gnulib-tool: Rearrange space-tab sequences, since some editors
35293 2007-03-23 Eric Blake <ebb9@byu.net>
35295 * lib/version-etc.c (version_etc_va): Update license wording to
35296 be more concise. Recommended by Richard Stallman.
35298 2007-03-22 Bruno Haible <bruno@clisp.org>
35300 * lib/poll.c (MSG_PEEK): New fallback definition.
35302 2007-03-22 Bruno Haible <bruno@clisp.org>
35304 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
35305 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
35307 Fixes a compilation error on BeOS.
35309 2007-03-22 Bruno Haible <bruno@clisp.org>
35311 * modules/frexpl-tests: New file.
35312 * tests/test-frexpl.c: New file.
35314 * modules/frexpl: New file.
35315 * m4/frexpl.m4: New file.
35316 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
35317 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
35318 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
35319 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
35320 (Depends-on): Add frexpl. Remove isnanl-nolibm.
35321 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
35323 2007-03-22 Bruno Haible <bruno@clisp.org>
35325 * lib/frexpl.c: Share code with lib/frexp.c.
35326 * modules/mathl (Files): Add lib/frexp.c.
35327 (Depends-on): Add isnanl-nolibm.
35329 2007-03-22 Bruno Haible <bruno@clisp.org>
35331 * modules/printf-frexp (Files): Add m4/frexp.m4.
35332 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
35333 only if the found frexp function actually works.
35335 2007-03-22 Bruno Haible <bruno@clisp.org>
35337 * lib/frexp.c: Remove older implementation that uses divisions.
35339 2007-03-21 Bruno Haible <bruno@clisp.org>
35341 * modules/frexp-tests: New file.
35342 * tests/test-frexp.c: New file.
35344 * modules/frexp: New file.
35345 * lib/frexp.c: New file.
35346 * m4/frexp.m4: New file.
35347 * lib/math_.h (frexp): New declaration.
35348 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
35350 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
35352 2007-03-21 Bruno Haible <bruno@clisp.org>
35354 * modules/isnanl-tests: New file.
35355 * tests/test-isnanl.c: New file.
35357 * modules/isnanl: New file.
35358 * lib/isnanl.h: New file.
35359 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
35360 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
35361 gl_FUNC_ISNANL_WORKS.
35362 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
35365 2007-03-21 Bruno Haible <bruno@clisp.org>
35367 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
35370 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
35371 * lib/vasnprintf.c: Update.
35372 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
35373 tests/test-isnanl.h, remove tests/test-isnanl.c.
35374 (Makefile.am): Update.
35375 * tests/test-isnanl-nolibm.c: New file.
35376 * tests/test-isnanl.h: New file.
35377 * tests/test-isnanl.c: Remove file.
35379 2007-03-21 Jim Meyering <jim@meyering.net>
35381 When trying to open ".", treat ESTALE like EACCES.
35382 * lib/savewd.c (savewd_save): Resort to forking not just upon
35383 failure with EACCES, but also when errno is ESTALE.
35385 2007-03-20 Bruno Haible <bruno@clisp.org>
35387 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
35388 Needed on AIX 5.1. Reported by Matthew Woehlke.
35390 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
35392 Suggestions by Bruno Haible:
35393 * lib/acl-internal.h: Include "gettext.h" rather than rolling
35395 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
35396 * modules/acl (Depends-on): Add gettext.
35398 2007-03-19 Bruno Haible <bruno@clisp.org>
35400 * modules/iconvme: Remove file.
35401 * lib/iconvme.h: Remove file.
35402 * lib/iconvme.c: Remove file.
35403 * m4/iconvme.m4: Remove file.
35405 2007-03-19 Bruno Haible <bruno@clisp.org>
35407 * doc/relocatable-maint.texi: Break long shell script line.
35408 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
35410 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
35412 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
35413 handle file_has_acl.
35414 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
35415 * lib/acl.c: Move header inclusions and related macro defns into
35416 lib/acl-internal.h.
35417 (S_ISLNK): Remove defn, since that's now done for us.
35418 (file_has_acl): Move to lib/file-has-acl.c.
35419 Call acl_trivial if available. This is the crucial part of the fix.
35420 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
35421 shared within the library. Rewrite a bit, partly to make it compatible
35422 with the GNU coding style.
35423 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
35424 Remove unnecessary double-quotes.
35425 Don't test for acl_to_text; the build will catch that.
35426 Replace acl_entries if it doesn't exist and it is needed.
35427 Check for -lsec and acl_trivial (as used on Solaris 10).
35428 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
35429 lib/file-has-acl.c.
35430 (Depends-on): Add sys_stat, for S_ISLNK.
35432 2007-03-19 Ben Pfaff <blp@gnu.org>
35434 * doc/gnulib.texi: Fix typos.
35435 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
35437 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
35439 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
35440 If size is zero here, buf must be zero.
35442 2007-03-19 Simon Josefsson <simon@josefsson.org>
35444 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
35447 2007-03-18 Bruno Haible <bruno@clisp.org>
35449 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
35450 Suggested by Eric Blake.
35452 2007-03-18 Ben Pfaff <blp@gnu.org>
35454 * doc/relocatable.texi: Recommend using as prefix a directory
35455 that does not exist and will never be created. Based on
35456 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
35459 2007-03-17 Bruno Haible <bruno@clisp.org>
35461 * lib/fchownat.c: Include lchown.h.
35463 2007-03-17 Bruno Haible <bruno@clisp.org>
35465 Fix endless loop when the given allocated size was > INT_MAX.
35466 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
35467 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
35468 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
35469 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
35470 * lib/sprintf.c (sprintf): Likewise.
35472 2007-03-17 Bruno Haible <bruno@clisp.org>
35474 * tests/test-argp-2.sh (func_compare): Output a context diff.
35476 2007-03-17 Bruno Haible <bruno@clisp.org>
35478 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
35479 locale's decimal-point character.
35481 2007-03-17 Bruno Haible <bruno@clisp.org>
35483 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
35484 before comparing it. Needed because on some platforms (e.g. x86) a
35485 'long double' occupies less bytes than sizeof (long double).
35487 2007-03-17 Bruno Haible <bruno@clisp.org>
35489 * tests/test-crc.c (main): Make printf statements 64-bit clean.
35490 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
35491 * tests/test-getaddrinfo.c (simple): Likewise.
35492 * tests/test-read-file.c (main): Likewise.
35494 2007-03-17 Bruno Haible <bruno@clisp.org>
35496 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
35498 2007-03-17 Bruno Haible <bruno@clisp.org>
35500 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
35503 2007-03-17 Bruno Haible <bruno@clisp.org>
35505 * tests/test-c-strcasecmp.c: Include c-strcase.h.
35506 * tests/test-c-strncasecmp.c: Likewise.
35508 2007-03-17 Bruno Haible <bruno@clisp.org>
35510 * modules/stdlib (Depends-on): Add unistd.
35511 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
35512 Needed for MacOS X 10.3.
35514 2007-03-17 Bruno Haible <bruno@clisp.org>
35516 * lib/unistr/u-strdup.h: Include <stdlib.h>.
35518 2007-03-17 Bruno Haible <bruno@clisp.org>
35520 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
35522 2007-03-17 Bruno Haible <bruno@clisp.org>
35524 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
35525 to reflect files copied from gnulib (with or without modifications).
35526 Suggested by Jim Meyering.
35528 2007-03-17 Eric Blake <ebb9@byu.net>
35530 * NEWS: Document stdlib change from 2007-02-18.
35532 2007-03-17 Jim Meyering <jim@meyering.net>
35534 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
35535 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
35536 someone uses a name containing shell meta-characters.
35537 Reported by Alfred M. Szmidt.
35539 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
35541 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
35543 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
35544 and copy gettext configuration files only if configure.ac contains
35545 a use of AM_GNU_GETTEXT_VERSION.
35547 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
35549 * build-aux/bootstrap (gnulib_name): New variable.
35550 (gnulib_tool_options): Use it.
35552 2007-03-13 Simon Josefsson <simon@josefsson.org>
35554 * tests/test-des.c: Use new namespace.
35556 2007-03-15 Bruno Haible <bruno@clisp.org>
35558 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
35559 Reported by James Youngman <jay@gnu.org>.
35561 2007-03-15 Bruno Haible <bruno@clisp.org>
35563 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
35564 declared prototype. Needed with cc on OSF/1 5.1.
35566 2007-03-15 Bruno Haible <bruno@clisp.org>
35568 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
35569 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
35570 (struct gl_list_implementation): Add dispose_fn argument to the
35571 'create_empty', 'create' methods.
35572 (struct gl_list_impl_base): Add field 'dispose_fn'.
35573 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
35575 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
35576 dispose_fn argument.
35577 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
35578 dispose_fn on the dropped values.
35579 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
35580 dispose_fn argument.
35581 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
35583 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
35584 (gl_tree_remove_node): Call dispose_fn on the dropped value.
35585 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
35586 (gl_tree_remove_node): Call dispose_fn on the dropped value.
35587 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
35589 (gl_tree_list_free): Call dispose_fn on the dropped values.
35590 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
35591 the dropped values.
35592 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
35593 Add dispose_fn argument.
35594 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
35595 Call dispose_fn on the dropped values.
35596 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
35597 Add dispose_fn argument.
35598 (gl_sublist_create): Initialize the 'dispose_fn' field.
35599 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
35600 * tests/test-array_list.c (main): Update.
35601 * tests/test-carray_list.c (main): Update.
35602 * tests/test-avltree_list.c (main): Update.
35603 * tests/test-rbtree_list.c (main): Update.
35604 * tests/test-avltreehash_list.c (main): Update.
35605 * tests/test-rbtreehash_list.c (main): Update.
35606 * tests/test-linked_list.c (main): Update.
35607 * tests/test-linkedhash_list.c (main): Update.
35608 * tests/test-array_oset.c (main): Update.
35610 2007-03-15 Bruno Haible <bruno@clisp.org>
35612 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
35613 (gl_oset_create_empty): Add dispose_fn argument.
35614 (struct gl_oset_implementation): Add dispose_fn argument to
35615 'create_empty' method.
35616 (struct gl_oset_impl_base): Add dispose_fn field.
35617 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
35618 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
35619 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
35621 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
35622 (gl_tree_oset_free): Call dispose_fn on the dropped values.
35623 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
35625 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
35627 * tests/test-array_oset.c (main): Update.
35628 * tests/test-avltree_oset.c (main): Update.
35629 * tests/test-rbtree_oset.c (main): Update.
35630 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
35632 2007-03-13 Bruno Haible <bruno@clisp.org>
35634 * tests/test-stdbool.c (i): Update after last patch.
35636 2007-03-12 Bruno Haible <bruno@clisp.org>
35638 * lib/quotearg.c: Include <wctype.h> early, before the definition of
35639 the iswprint macro. Needed on Solaris 2.5.1.
35641 2007-03-12 Bruno Haible <bruno@clisp.org>
35643 * tests/test-printf-frexp.c (main): Declare x as volatile.
35645 2007-03-12 Simon Josefsson <simon@josefsson.org>
35647 * doc/gnulib.texi (Build robot for gnulib): New section.
35649 2007-03-12 Jim Meyering <jim@meyering.net>
35651 * build-aux/bootstrap: New file.
35652 * build-aux/bootstrap.conf: New file, from coreutils.
35654 2007-03-11 Bruno Haible <bruno@clisp.org>
35656 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
35658 2007-03-12 Simon Josefsson <simon@josefsson.org>
35660 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
35661 avoid collisions with 'des_setkey'. Reported by Bruno Haible
35662 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
35664 2007-03-11 Bruno Haible <bruno@clisp.org>
35666 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
35667 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
35669 2007-03-11 Bruno Haible <bruno@clisp.org>
35671 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
35672 formula. Needed for SunPRO C 5.0.
35674 2007-03-11 Bruno Haible <bruno@clisp.org>
35676 * modules/long-options (Depends-on): Add getopt.
35678 2007-03-11 Bruno Haible <bruno@clisp.org>
35680 * modules/modechange (Depends-on): Add stdbool.
35682 2007-03-11 Bruno Haible <bruno@clisp.org>
35684 * modules/i-ring (Depends-on): Add stdbool.
35686 2007-03-11 Bruno Haible <bruno@clisp.org>
35688 * modules/gc-des (Depends-on): Add stdbool.
35690 2007-03-11 Bruno Haible <bruno@clisp.org>
35692 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
35694 2007-03-11 Bruno Haible <bruno@clisp.org>
35696 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
35698 2007-03-11 Bruno Haible <bruno@clisp.org>
35700 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
35702 2007-03-11 Bruno Haible <bruno@clisp.org>
35704 * lib/vasnprintf.c (sprintf): Undefine.
35706 2007-03-11 Bruno Haible <bruno@clisp.org>
35708 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
35709 initializers in SunPRO C and Compaq C compilers.
35711 2007-03-11 Bruno Haible <bruno@clisp.org>
35713 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
35714 decrementing code ANSI C compliant.
35716 2007-03-11 Bruno Haible <bruno@clisp.org>
35718 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
35719 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
35721 2007-03-11 Bruno Haible <bruno@clisp.org>
35723 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
35724 <stdbool.h> substitute doesn't pass.
35726 2007-03-11 Bruno Haible <bruno@clisp.org>
35728 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
35730 2007-03-11 Bruno Haible <bruno@clisp.org>
35732 * gnulib-tool (func_create_megatestdir): Create also an autobuild
35733 script, for submission to autobuild.josefsson.org.
35735 2007-03-10 Bruno Haible <bruno@clisp.org>
35737 * modules/canonicalize-lgpl-tests: New file.
35738 * tests/test-canonicalize-lgpl.sh: New file.
35739 * tests/test-canonicalize-lgpl.c: New file.
35741 * modules/c-strcase-tests: New file.
35742 * tests/test-c-strcase.sh: New file.
35743 * tests/test-c-strcasecmp.c: New file.
35744 * tests/test-c-strncasecmp.c: New file.
35746 * modules/atexit-tests: New file.
35747 * tests/test-atexit.sh: New file.
35748 * tests/test-atexit.c: New file.
35750 2007-03-10 Bruno Haible <bruno@clisp.org>
35752 * tests/test-binary-io.sh: Use temporary filenames that are not so
35753 likely to clash with those of other tests (in a parallel make).
35754 * tests/test-binary-io.c: Likewise.
35756 2007-03-10 Bruno Haible <bruno@clisp.org>
35758 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
35759 fallback; use #error instead.
35760 Suggested by Simon Josefsson.
35762 2007-03-10 Bruno Haible <bruno@clisp.org>
35764 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
35765 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
35766 first and the last.
35768 2007-03-10 Bruno Haible <bruno@clisp.org>
35770 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
35772 2007-03-10 Bruno Haible <bruno@clisp.org>
35774 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
35776 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
35777 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
35778 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
35780 2007-03-10 Bruno Haible <bruno@clisp.org>
35782 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
35784 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
35787 2007-03-09 Eric Blake <ebb9@byu.net>
35788 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
35790 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
35791 types are not being provided by gnulib.
35792 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
35793 types are supported.
35795 2007-03-10 Bruno Haible <bruno@clisp.org>
35797 * lib/stdio_.h (__attribute__): New macro.
35798 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
35799 vsprintf): Specify __attribute__ __format__ for GCC.
35800 Suggested by Eric Blake.
35802 2007-03-09 Bruno Haible <bruno@clisp.org>
35804 * modules/printf-posix-tests: New file.
35805 * tests/test-printf-posix.sh: New file.
35806 * tests/test-printf-posix.c: New file.
35808 * modules/printf-posix: New file.
35809 * lib/printf.c: New file.
35810 * m4/printf-posix-rpl.m4: New file.
35811 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
35813 * lib/stdio_.h (printf): New declaration.
35814 (format, __format__, ____printf____, ____scanf____, ____strftime____,
35815 ____strfmon____): New macros.
35816 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
35819 2007-03-09 Bruno Haible <bruno@clisp.org>
35821 * tests/test-vasnprintf-posix2.sh: New file.
35822 * tests/test-vasnprintf-posix2.c: New file.
35823 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
35824 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
35825 (Makefile.am): Activate test-vasnprintf-posix2.sh.
35827 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
35828 a locale dependent decimal point, rather than always '.'.
35830 2007-03-09 Eric Blake <ebb9@byu.net>
35832 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
35833 spite of platforms like Tandem/NSK that define it to -1.
35835 2007-03-08 Bruno Haible <bruno@clisp.org>
35837 * modules/vprintf-posix-tests: New file.
35838 * tests/test-vprintf-posix.sh: New file.
35839 * tests/test-vprintf-posix.c: New file.
35840 * tests/test-printf-posix.h: New file.
35842 * modules/vprintf-posix: New file.
35843 * lib/vprintf.c: New file.
35844 * m4/vprintf-posix.m4: New file.
35845 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
35847 * lib/stdio_.h (vprintf): New declaration.
35848 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
35851 2007-03-08 Bruno Haible <bruno@clisp.org>
35853 * modules/fprintf-posix-tests: New file.
35854 * tests/test-fprintf-posix.sh: New file.
35855 * tests/test-fprintf-posix.c: New file.
35857 * modules/fprintf-posix: New file.
35858 * lib/fprintf.c: New file.
35859 * m4/fprintf-posix.m4: New file.
35860 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
35862 * lib/stdio_.h (fprintf): New declaration.
35863 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
35866 2007-03-08 Bruno Haible <bruno@clisp.org>
35868 * modules/vfprintf-posix-tests: New file.
35869 * tests/test-vfprintf-posix.sh: New file.
35870 * tests/test-vfprintf-posix.c: New file.
35871 * tests/test-fprintf-posix.h: New file.
35872 * tests/test-fprintf-posix.out: New file.
35874 * modules/vfprintf-posix: New file.
35875 * lib/vfprintf.c: New file.
35876 * m4/vfprintf-posix.m4: New file.
35877 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
35879 * lib/stdio_.h (vfprintf): New declaration.
35880 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
35883 2007-03-08 Bruno Haible <bruno@clisp.org>
35885 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
35887 2007-03-08 Bruno Haible <bruno@clisp.org>
35889 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
35890 instead of 'expr' invocations.
35891 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35892 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35893 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35894 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35895 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35896 Suggested by Paul Eggert.
35898 2007-03-08 Bruno Haible <bruno@clisp.org>
35900 * modules/fseterr-tests: New file.
35901 * tests/test-fseterr.c: New file.
35903 * modules/fseterr: New file.
35904 * lib/fseterr.h: New file.
35905 * lib/fseterr.c: New file.
35907 2007-03-08 Bruno Haible <bruno@clisp.org>
35909 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
35910 * lib/getopt_.h: Likewise.
35911 * lib/mbswidth.h: Likewise.
35912 * lib/setenv.h: Likewise.
35913 * lib/vasnprintf.h: Likewise.
35914 * lib/vasprintf.h: Likewise.
35915 * lib/verror.h: Likewise.
35916 * lib/xsetenv.h: Likewise.
35917 * lib/xvasprintf.h: Likewise.
35919 2007-03-08 Jim Meyering <jim@meyering.net>
35921 * users.txt: Add parted.
35923 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
35925 2007-03-07 Bruno Haible <bruno@clisp.org>
35927 * m4/printf.m4: Make the shell script snippets copy&pastable.
35929 2007-03-02 Bruno Haible <bruno@clisp.org>
35931 * lib/netinet_in_.h: New file.
35932 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
35933 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
35934 * modules/netinet_in (Files): Add lib/netinet_in_.h.
35935 (Depends-on): Add absolute-header.
35936 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
35939 2007-03-03 Bruno Haible <bruno@clisp.org>
35941 * lib/sys_select_.h: New file.
35942 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
35943 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
35944 * modules/sys_select (Files): Add lib/sys_select_.h.
35945 (Depends-on): Add absolute-header.
35946 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
35949 2007-03-02 Bruno Haible <bruno@clisp.org>
35951 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
35952 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
35954 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
35955 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
35956 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
35957 * modules/sys_socket (Depends-on): Add absolute-header.
35958 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
35959 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
35960 (Include): Remove requirement of inclusion of <sys/types.h>.
35962 2007-03-02 Bruno Haible <bruno@clisp.org>
35964 * lib/byteswap_.h (bswap_32): Fix formula.
35966 2007-03-06 Bruno Haible <bruno@clisp.org>
35968 * modules/sprintf-posix-tests: New file.
35969 * tests/test-sprintf-posix.c: New file.
35971 * modules/sprintf-posix: New file.
35972 * lib/sprintf.c: New file.
35973 * m4/sprintf-posix.m4: New file.
35974 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
35976 * lib/stdio_.h (sprintf): New declaration.
35977 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
35980 2007-03-06 Bruno Haible <bruno@clisp.org>
35982 * modules/vsprintf-posix-tests: New file.
35983 * tests/test-vsprintf-posix.c: New file.
35984 * tests/test-sprintf-posix.h: New file.
35986 * modules/vsprintf-posix: New file.
35987 * lib/vsprintf.c: New file.
35988 * m4/vsprintf-posix.m4: New file.
35989 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
35991 * lib/stdio_.h (vsprintf): New declaration.
35992 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
35995 2007-03-06 Bruno Haible <bruno@clisp.org>
35997 * modules/vsnprintf (Depend-on): Remove minmax.
35999 2007-03-06 Bruno Haible <bruno@clisp.org>
36001 * modules/snprintf-posix-tests: New file.
36002 * tests/test-snprintf-posix.c: New file.
36004 * modules/snprintf-posix: New file.
36005 * m4/snprintf-posix.m4: New file.
36006 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
36008 (gl_FUNC_SNPRINTF): Invoke it.
36009 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
36010 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
36012 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
36014 2007-03-06 Bruno Haible <bruno@clisp.org>
36016 * modules/vsnprintf-posix-tests: New file.
36017 * tests/test-vsnprintf-posix.c: New file.
36018 * tests/test-snprintf-posix.h: New file.
36020 * modules/vsnprintf-posix: New file.
36021 * m4/vsnprintf-posix.m4: New file.
36022 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
36024 (gl_FUNC_VSNPRINTF): Invoke it.
36025 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
36026 * lib/stdio_.h (vsnprintf): Define as a replacement if
36027 REPLACE_VSNPRINTF is set.
36028 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
36030 2007-03-06 Bruno Haible <bruno@clisp.org>
36032 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
36033 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
36035 2007-03-06 Bruno Haible <bruno@clisp.org>
36037 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
36038 (asinl): Declare also if HAVE_DECL_ASINL is set.
36039 (atanl): Declare also if HAVE_DECL_ATANL is set.
36040 (ceill): Declare also if HAVE_DECL_CEILL is set.
36041 (cosl): Declare also if HAVE_DECL_COSL is set.
36042 (expl): Declare also if HAVE_DECL_EXPL is set.
36043 (floorl): Declare also if HAVE_DECL_FLOORL is set.
36044 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
36045 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
36046 (logl): Declare also if HAVE_DECL_LOGL is set.
36047 (sinl): Declare also if HAVE_DECL_SINL is set.
36048 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
36049 (tanl): Declare also if HAVE_DECL_TANL is set.
36050 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
36051 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
36052 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
36053 declaration of frexpl, ldexpl.
36054 * modules/printf-frexpl (Depends-on): Add math.
36055 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
36057 2007-03-05 Bruno Haible <bruno@clisp.org>
36059 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
36060 frexpl and ldexpl are declared.
36061 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
36063 2007-03-05 Bruno Haible <bruno@clisp.org>
36065 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
36066 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
36068 2007-03-05 Bruno Haible <bruno@clisp.org>
36070 * lib/stdio_.h: Include <stddef.h>.
36072 2007-03-05 Bruno Haible <bruno@clisp.org>
36074 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
36076 2007-03-05 Bruno Haible <bruno@clisp.org>
36078 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
36079 NetBSD 4, from Ralf Wildenhues.
36081 2007-03-04 Bruno Haible <bruno@clisp.org>
36083 * lib/vasprintf.h: Update #if logic for the case when the functions
36084 exist but are overridden.
36086 2007-03-04 Bruno Haible <bruno@clisp.org>
36088 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
36089 implementations: glibc-2.4 and MacOS X 10.3.
36090 * tests/test-vasnprintf-posix.c (test_function): Test also the case
36091 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
36092 * tests/test-vasprintf-posix.c (test_function): Likewise.
36094 2007-03-04 Bruno Haible <bruno@clisp.org>
36096 * modules/vasprintf-posix-tests: New file.
36097 * tests/test-vasprintf-posix.c: New file.
36099 * modules/vasprintf-posix: New file.
36100 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
36102 * m4/vasprintf-posix.m4: New file.
36103 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
36105 (gl_FUNC_VASPRINTF): Invoke it.
36106 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
36108 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
36110 2007-03-04 Bruno Haible <bruno@clisp.org>
36112 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
36113 REPLACE_GETTIMEOFDAY.
36114 * modules/sys_time (Makefile.am): Likewise.
36115 * m4/sys_time_h.m4: Likewise.
36116 * m4/gettimeofday.m4: Likewise.
36118 2007-03-04 Bruno Haible <bruno@clisp.org>
36120 * modules/vasnprintf-posix-tests: New file.
36121 * tests/test-vasnprintf-posix.c: New file.
36123 * modules/vasnprintf-posix: New file.
36124 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
36126 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
36127 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
36128 REPLACE_VASNPRINTF is defined.
36129 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
36130 gl_FUNC_VASNPRINTF.
36131 (gl_FUNC_VASNPRINTF): Invoke it.
36132 * m4/vasnprintf-posix.m4: New file.
36133 * m4/printf.m4: New file.
36135 2007-03-04 Bruno Haible <bruno@clisp.org>
36137 Compile progreloc.c only if --enable-relocatable is specified.
36138 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
36139 if --enable-relocatable was specified.
36140 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
36143 2007-03-04 Jim Meyering <jim@meyering.net>
36145 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
36146 Use it consistently, rather than enumerating errno constants.
36148 2007-03-04 Bruno Haible <bruno@clisp.org>
36150 * modules/xvasprintf-tests: New file.
36151 * tests/test-xvasprintf.c: New file.
36153 * modules/vasprintf-tests: New file.
36154 * tests/test-vasprintf.c: New file.
36156 * modules/vasnprintf-tests: New file.
36157 * tests/test-vasnprintf.c: New file.
36159 * modules/vsnprintf-tests: New file.
36160 * tests/test-vsnprintf.c: New file.
36162 * modules/snprintf-tests: New file.
36163 * tests/test-snprintf.c: New file.
36165 2007-03-04 Bruno Haible <bruno@clisp.org>
36167 Compile relocatable.c only if --enable-relocatable is specified.
36168 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
36169 gl_RELOCATABLE_LIBRARY.
36170 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
36171 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
36172 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
36173 gl_RELOCATABLE_LIBRARY.
36174 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
36175 (Makefile.am): Remove lib_SOURCES.
36176 * modules/relocatable-lib-lgpl (configure.ac): Invoke
36177 gl_RELOCATABLE_LIBRARY.
36178 (Makefile.am): Remove lib_SOURCES.
36179 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
36181 * modules/relocatable-prog-wrapper (configure.ac): Invoke
36182 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
36184 2007-03-04 Bruno Haible <bruno@clisp.org>
36186 * modules/argmatch-tests: New file.
36187 * tests/test-argmatch.c: New file.
36189 * tests/test-allocsa.c (main): Halve the number of loop runs.
36191 * modules/alloca-opt-tests: New file.
36192 * tests/test-alloca-opt.c: New file.
36194 2007-03-04 Jim Meyering <jim@meyering.net>
36196 Work around difference between Linux ACLs and Solaris 10 ZFS.
36197 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
36200 2007-03-03 Bruno Haible <bruno@clisp.org>
36202 * modules/relocatable-prog (Depends-on): Add back progreloc's
36203 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
36205 2007-03-03 Bruno Haible <bruno@clisp.org>
36207 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
36208 * modules/relocatable-lib: New file.
36210 2007-03-03 Bruno Haible <bruno@clisp.org>
36212 * modules/relocatable-prog: Renamed from modules/relocatable.
36213 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
36215 2007-03-03 Bruno Haible <bruno@clisp.org>
36217 * modules/relocatable-script (Files): Add doc/relocatable.texi,
36218 m4/relocatable-lib.m4.
36219 (Depends-on): Remove 'relocatable'.
36220 (configure.ac): Add gl_RELOCATABLE_NOP.
36222 2007-03-03 Bruno Haible <bruno@clisp.org>
36224 * modules/relocatable-prog-wrapper: New file.
36225 * modules/relocatable (Depends-on): Add it. Remove all other
36226 dependencies except progname.
36227 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
36229 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
36230 (gl_FUNC_STRERROR): Nop.
36231 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
36233 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
36234 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
36236 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
36237 (gl_FUNC_READLINK): Update.
36239 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
36241 2007-03-03 Bruno Haible <bruno@clisp.org>
36243 * lib/xreadlink.c: Include <unistd.h> unconditionally.
36244 * modules/xreadlink (Depends-on): Add unistd.
36245 * modules/xreadlink-with-size (Depends-on): Likewise.
36247 2007-03-03 Bruno Haible <bruno@clisp.org>
36249 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
36250 extracted from gt_FUNC_SETENV.
36251 (gt_FUNC_SETENV): Remove macro.
36252 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
36253 remove gt_FUNC_SETENV.
36255 2007-03-03 Bruno Haible <bruno@clisp.org>
36257 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
36258 ENABLE_RELOCATABLE here.
36259 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
36261 2007-03-03 Bruno Haible <bruno@clisp.org>
36263 * modules/rbtreehash-list-tests (Depends-on): Add progname.
36264 * tests/test-rbtreehash_list.c: Include progname.h.
36265 (main): Call set_program_name.
36267 * modules/rbtree-oset-tests (Depends-on): Add progname.
36268 * tests/test-rbtree_oset.c: Include progname.h.
36269 (main): Call set_program_name.
36271 * modules/rbtree-list-tests (Depends-on): Add progname.
36272 * tests/test-rbtree_list.c: Include progname.h.
36273 (main): Call set_program_name.
36275 * modules/linked-list-tests (Depends-on): Add progname.
36276 * tests/test-linked_list.c: Include progname.h.
36277 (main): Call set_program_name.
36279 2007-03-03 Bruno Haible <bruno@clisp.org>
36281 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
36282 All uses of __restrict changed to _Restrict_.
36283 * lib/glob_.h (__restrict): Remove macro.
36285 2007-03-02 Bruno Haible <bruno@clisp.org>
36287 * modules/gettext (configure.ac): Require gettext infrastructure
36288 from version 0.16.1.
36290 2007-03-02 Bruno Haible <bruno@clisp.org>
36292 * modules/linkedhash-list-tests (Depends-on): Add progname.
36293 * tests/test-linkedhash_list.c: Include progname.h.
36294 (main): Call set_program_name.
36296 * modules/carray-list-tests (Depends-on): Add progname.
36297 * tests/test-carray_list.c: Include progname.h.
36298 (main): Call set_program_name.
36300 * modules/avltreehash-list-tests (Depends-on): Add progname.
36301 * tests/test-avltreehash_list.c: Include progname.h.
36302 (main): Call set_program_name.
36304 * modules/avltree-oset-tests (Depends-on): Add progname.
36305 * tests/test-avltree_oset.c: Include progname.h.
36306 (main): Call set_program_name.
36308 * modules/avltree-list-tests (Depends-on): Add progname.
36309 * tests/test-avltree_list.c: Include progname.h.
36310 (main): Call set_program_name.
36312 * modules/array-oset-tests (Depends-on): Add progname.
36313 * tests/test-array_oset.c: Include progname.h.
36314 (main): Call set_program_name.
36316 * modules/array-list-tests (Depends-on): Add progname.
36317 * tests/test-array_list.c: Include progname.h.
36318 (main): Call set_program_name.
36320 * modules/argp-tests (Depends-on): Add progname.
36321 * tests/test-argp.c: Include argp.h first. Include progname.h.
36322 (main): Call set_program_name.
36324 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
36326 * doc/gnulib-tool.texi (Initial import): Reword description of
36327 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
36328 limited effect even if defined after the first system include.
36330 2007-03-01 Bruno Haible <bruno@clisp.org>
36332 * build-aux/config.libpath: Update to libtool-1.5.22.
36333 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36335 2007-03-01 Bruno Haible <bruno@clisp.org>
36337 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
36339 Reported by Ralf Wildenhues.
36341 2007-03-01 Bruno Haible <bruno@clisp.org>
36343 * build-aux/install-reloc: Remove object files left over by some
36345 Reported by Ralf Wildenhues.
36347 2007-03-01 Bruno Haible <bruno@clisp.org>
36349 * build-aux/install-reloc: Break long lines.
36351 2007-03-01 Bruno Haible <bruno@clisp.org>
36353 * doc/relocatable.texi: Document that it may not work on OpenBSD.
36354 Reported by Ralf Wildenhues.
36356 2007-03-01 Bruno Haible <bruno@clisp.org>
36358 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
36359 include ordering constraints.
36361 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
36363 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
36364 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
36365 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
36366 as another example.
36367 * lib/time_.h: Fix misspelling.
36368 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
36369 Require gl_HEADER_TIME_H_DEFAULTS.
36370 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
36371 * m4/time_r.m4 (gl_TIME_R): Likewise.
36372 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
36374 2007-03-01 Bruno Haible <bruno@clisp.org>
36376 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
36377 * m4/utimens.m4 (gl_UTIMENS): Likewise.
36379 2007-03-01 Jim Meyering <jim@meyering.net>
36381 * modules/xreadlink (Maintainer): Add my name.
36382 * modules/xreadlink-with-size (Depends-on): Alphabetize.
36384 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
36385 Bruno Haible <bruno@clisp.org>
36387 * build-aux/install-reloc: Compile also c-ctype.c.
36388 * build-aux/relocatable.sh.in: New file.
36389 * doc/relocatable.texi: New file.
36390 * doc/relocatable-maint.texi: New file.
36391 * doc/gnulib.texi: Include relocatable-maint.texi.
36392 * lib/progreloc.c: Include unistd.h unconditionally.
36393 * lib/relocwrapper.c: Include unistd.h unconditionally.
36395 (add_dotbin): Use c_tolower.
36396 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
36397 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
36398 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
36399 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
36400 to m4/relocatable-lib.m4.
36401 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
36402 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
36403 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
36404 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
36405 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
36406 * modules/relocatable: New file.
36407 * modules/relocatable-lib: New file.
36408 * modules/relocatable-script: New file.
36410 2007-02-28 Bruno Haible <bruno@clisp.org>
36412 Import --enable-relocatable infrastructure.
36413 * build-aux/config.libpath: New file, from GNU gettext.
36414 * build-aux/install-reloc: New file, from GNU gettext.
36415 * build-aux/reloc-ldflags: New file, from GNU gettext.
36416 * lib/relocatable.h: New file, from GNU gettext.
36417 * lib/relocatable.c: New file, from GNU gettext.
36418 * lib/relocwrapper.c: New file, from GNU gettext.
36419 * m4/relocatable.m4: New file, from GNU gettext.
36421 2007-02-28 Bruno Haible <bruno@clisp.org>
36423 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
36425 * modules/xreadlink: New file, from GNU gettext with modifications.
36426 * lib/xreadlink.c: New file, from GNU gettext.
36427 * lib/xreadlink.h: Add comments.
36428 (xreadlink): New declaration.
36430 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
36431 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
36432 lib/xreadlink-with-size.c.
36433 (configure.ac): Remove gl_XREADLINK invocation.
36434 (Makefile.am): Augment lib_SOURCES.
36435 * m4/xreadlink.m4: Remove file.
36436 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
36437 (xreadlink_with_size): Renamed from xreadink.
36438 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
36439 * modules/canonicalize (Depends-on): Replace xreadlink with
36440 xreadlink-with-size.
36441 * lib/canonicalize.c (canonicalize_filename_mode): Update.
36443 2007-02-25 Jim Meyering <jim@meyering.net>
36445 * build-aux/announce-gen: When complaining about excess arguments,
36448 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
36450 * README: Document signed integer overflow situation more
36453 2007-02-25 Bruno Haible <bruno@clisp.org>
36455 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
36456 'a' or 'A' conversion.
36458 2007-02-25 Bruno Haible <bruno@clisp.org>
36460 * modules/filename: Renamed from modules/pathname.
36461 (Files): Replace lib/pathname.h with lib/filename.h. Replace
36462 lib/concatpath.c with lib/concat-filename.c.
36463 (Makefile.am): Update.
36464 (Include): Replace pathname.h with filename.h.
36465 * lib/filename.h: Renamed from lib/pathname.h.
36466 (concatenated_filename): Renamed from concatenated_pathname.
36467 * lib/concat-filename.c: Renamed from lib/concatpath.c.
36468 (concatenated_filename): Renamed from concatenated_pathname.
36469 * lib/findprog.c: Include filename.h instead of pathname.h.
36470 (find_in_path): Update.
36471 * lib/javacomp.c: Include filename.h instead of pathname.h.
36472 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
36473 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
36474 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
36475 is_oldgcj_14_13_usable, is_javac_usable): Update.
36476 * lib/javaexec.c: Include filename.h instead of pathname.h.
36477 (execute_java_class): Update.
36478 * modules/findprog: Update.
36479 * modules/javacomp: Update.
36480 * modules/javaexec: Update.
36481 * MODULES.html.sh (File system functions): Add 'filename', remove
36484 2007-02-25 Bruno Haible <bruno@clisp.org>
36486 * modules/printf-frexpl-tests: New file.
36487 * tests/test-printf-frexpl.c: New file.
36489 * modules/printf-frexpl: New file.
36490 * lib/printf-frexpl.h: New file.
36491 * lib/printf-frexpl.c: New file.
36492 * m4/printf-frexpl.m4: New file.
36494 2007-02-25 Bruno Haible <bruno@clisp.org>
36496 * modules/printf-frexp-tests: New file.
36497 * tests/test-printf-frexp.c: New file.
36499 * modules/printf-frexp: New file.
36500 * lib/printf-frexp.h: New file.
36501 * lib/printf-frexp.c: New file.
36502 * m4/printf-frexp.m4: New file.
36504 2007-02-25 Bruno Haible <bruno@clisp.org>
36506 Assume automake >= 1.10 for the tests.
36507 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
36508 * modules/arctwo-tests: Likewise.
36509 * modules/argp-tests: Likewise.
36510 * modules/avltree-list-tests: Likewise.
36511 * modules/avltree-oset-tests: Likewise.
36512 * modules/avltreehash-list-tests: Likewise.
36513 * modules/carray-list-tests: Likewise.
36514 * modules/crc-tests: Likewise.
36515 * modules/des-tests: Likewise.
36516 * modules/gc-arcfour-tests: Likewise.
36517 * modules/gc-arctwo-tests: Likewise.
36518 * modules/gc-des-tests: Likewise.
36519 * modules/gc-hmac-md5-tests: Likewise.
36520 * modules/gc-hmac-sha1-tests: Likewise.
36521 * modules/gc-md2-tests: Likewise.
36522 * modules/gc-md4-tests: Likewise.
36523 * modules/gc-md5-tests: Likewise.
36524 * modules/gc-pbkdf2-sha1-tests: Likewise.
36525 * modules/gc-rijndael-tests: Likewise.
36526 * modules/gc-sha1-tests: Likewise.
36527 * modules/gc-tests: Likewise.
36528 * modules/getaddrinfo-tests: Likewise.
36529 * modules/hmac-md5-tests: Likewise.
36530 * modules/hmac-sha1-tests: Likewise.
36531 * modules/linked-list-tests: Likewise.
36532 * modules/linkedhash-list-tests: Likewise.
36533 * modules/lock-tests: Likewise.
36534 * modules/md2-tests: Likewise.
36535 * modules/md4-tests: Likewise.
36536 * modules/md5-tests: Likewise.
36537 * modules/rbtree-list-tests: Likewise.
36538 * modules/rbtree-oset-tests: Likewise.
36539 * modules/rbtreehash-list-tests: Likewise.
36540 * modules/read-file-tests: Likewise.
36541 * modules/rijndael-tests: Likewise.
36542 * modules/stdint-tests: Likewise.
36543 * modules/tls-tests: Likewise.
36545 2007-02-24 Bruno Haible <bruno@clisp.org>
36547 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
36548 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
36549 function; instead check whether isnan with a double argument links.
36550 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
36551 function; instead check whether isnan with a 'long double' argument
36553 Reported by Eric Blake <ebb9@byu.net>.
36555 2007-02-24 Bruno Haible <bruno@clisp.org>
36557 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
36559 * lib/isnanl.c: Remove all code. Just include isnan.c.
36560 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
36562 2007-02-25 Jim Meyering <jim@meyering.net>
36564 Avoid conflicting types for 'unsetenv' on FreeBSD.
36565 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
36566 conflicting with FreeBSD's (5.0 and 6.1) function declaration
36569 2007-02-24 Bruno Haible <bruno@clisp.org>
36571 * modules/isnanl-nolibm-tests: New file.
36572 * tests/test-isnanl.c: New file.
36574 * modules/isnanl-nolibm: New file.
36575 * lib/isnanl.h: New file.
36576 * lib/isnanl.c: New file.
36577 * m4/isnanl.m4: New file.
36579 2007-02-24 Bruno Haible <bruno@clisp.org>
36581 * modules/isnan-nolibm-tests: New file.
36582 * tests/test-isnan.c: New file.
36584 * modules/isnan-nolibm: New file.
36585 * lib/isnan.h: New file.
36586 * lib/isnan.c: New file.
36587 * m4/isnan.m4: New file.
36589 2007-02-24 Bruno Haible <bruno@clisp.org>
36591 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
36592 assume that an exponent fits in 20 bits.
36594 2007-02-24 Jim Meyering <jim@meyering.net>
36596 * m4/regex.m4: Update the description of the configure-time option,
36597 --without-included-regex, to state accurately what the defaults are,
36598 and perhaps to give people an idea why using this option is risky.
36600 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
36602 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
36603 loops on small arguments. This attempts to avoid the problem
36604 Bruno Haible reported for AIX 4.3.2 in
36605 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
36607 2007-02-23 Bruno Haible <bruno@clisp.org>
36609 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
36610 Needed for help2man.
36612 2007-02-23 Karl Berry <karl@gnu.org>
36614 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
36615 exists, foo.h should be cvs-ignored, not committed.
36617 2007-02-23 Eric Blake <ebb9@byu.net>
36619 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
36620 * lib/stat-time.h (includes): Likewise.
36621 * lib/utimecmp.c (includes): Likewise.
36622 * lib/utimens.h (includes): Likewise.
36623 * lib/getdate.y (includes): Also include "timespec.h" for use
36624 internal to the module.
36625 * modules/utimens (Depends-on): Revert yesterday's patch.
36626 * modules/nanosleep (Depends-on): Add missing dependency.
36628 2007-02-22 Bruno Haible <bruno@clisp.org>
36630 * lib/glob.c: Don't include getlogin_r.h.
36632 2007-02-22 Jim Meyering <jim@meyering.net>
36634 * modules/utimens (Depends-on): Add timespec, required for
36635 utimens.h's inclusion of timespec.h.
36637 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
36639 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
36640 long unreadable paths in GNU/Linux. Problem reported by Andreas
36642 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
36643 I'll try to think of a better way to fix the Solaris problem.
36645 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
36646 like glibc; on Solaris 10, it fails with errno == EINVAL.
36647 POSIX says the behavior is unspecified if the first argument is NULL,
36648 so play it safe and never pass NULL to the system getcwd.
36650 2007-02-21 Jim Meyering <jim@meyering.net>
36652 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
36653 of gettimeofday. It would conflict with the one now always
36654 provided via sys_time_.h. Reported by Matthew Woehlke, as
36655 an IRIX 6.5 build failure.
36657 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
36659 Minor fixups to port to Solaris 10 with Sun C 5.8.
36660 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
36661 * modules/getcwd (Depends-on): Add dirfd.
36662 * lib/putenv.c (putenv): #undef it.
36663 (rpl_putenv): New decl.
36664 (malloc, free): Include <stdlib.h> rather than prototyping separately.
36666 2007-02-20 Bruno Haible <bruno@clisp.org>
36668 * modules/stdio-tests: New file.
36669 * tests/test-stdio.c: New file.
36671 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
36672 (Depends-on): Add stdio.
36673 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
36674 (Include): Use <stdio.h> instead of vsnprintf.h.
36675 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
36676 HAVE_DECL_VSNPRINTF.
36677 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
36679 * modules/snprintf (Files): Remove lib/snprintf.h.
36680 (Depends-on): Add stdio.
36681 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
36682 (Include): Use <stdio.h> instead of snprintf.h.
36683 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
36684 HAVE_DECL_SNPRINTF.
36685 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
36686 * lib/getaddrinfo.c: Likewise.
36688 * modules/stdio: New file.
36689 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
36690 * lib/snprintf.h: Remove file.
36691 * lib/vsnprintf.h: Remove file.
36692 * lib/.cppi-disable: Remove snprintf.h.
36693 * m4/stdio_h.m4: New file.
36694 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
36696 2007-02-20 Jim Meyering <jim@meyering.net>
36698 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
36699 used by e.g., mingw. From Bruno Haible.
36701 2007-02-19 Bruno Haible <bruno@clisp.org>
36703 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
36705 Reported by Ben Pfaff <blp@cs.stanford.edu>.
36707 2007-02-19 Bruno Haible <bruno@clisp.org>
36709 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
36712 2007-02-19 Bruno Haible <bruno@clisp.org>
36714 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
36716 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
36718 2007-02-19 Jim Meyering <jim@meyering.net>
36720 Don't use FD after a successful "fdopendir (fd)".
36721 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
36722 Reset it by calling dirfd on the just-obtained DIR*.
36724 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
36725 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
36727 2007-02-18 Bruno Haible <bruno@clisp.org>
36729 * lib/readlink.c: Include <unistd.h>.
36730 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
36732 * modules/readlink (Depends-on): Add unistd.
36733 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36734 (Include): Add <unistd.h>.
36736 * lib/getlogin_r.h: Remove file.
36737 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
36738 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
36739 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
36740 HAVE_DECL_GETLOGIN_R.
36741 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
36742 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36743 (Include): Use <unistd.h> instead of getlogin_r.h.
36745 * lib/getcwd.h: Remove file.
36746 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
36747 * lib/xgetcwd.c: Likewise.
36748 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
36749 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
36750 * modules/getcwd (Files): Remove lib/getcwd.h.
36751 (Depends-on): Add unistd.
36752 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36753 (Include): Use <unistd.h> instad of getcwd.h.
36755 * lib/ftruncate.c: Include <unistd.h> first.
36756 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
36757 Set HAVE_FTRUNCATE.
36758 * modules/ftruncate (Depends-on): Add unistd.
36759 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36761 * lib/fchdir.c: Include <unistd.h> first.
36762 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
36763 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
36764 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
36765 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36766 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
36768 * lib/dup2.c: Include <unistd.h> first.
36769 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
36771 * modules/dup2 (Depends-on): Add unistd.
36772 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36774 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
36775 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
36776 REPLACE_CHOWN. Don't define chown as a macro here.
36777 * modules/chown (Depends-on): Add unistd.
36778 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36780 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
36781 Add definition for GL_LINK_WARNING.
36782 (chown, dup2): New declarations.
36783 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
36785 (ftruncate): New declaration.
36786 (getcwd): New declaration, taken from old getcwd.h.
36787 (getlogin_r): New declaration, taken from old getlogin_r.h.
36788 (readlink): New declaration.
36789 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
36790 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
36791 (gl_PREREQ_UNISTD): Remove macro.
36792 (gl_UNISTD_MODULE_INDICATOR): New macro.
36793 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
36794 many new variables. Don't set UNISTD_H.
36795 * modules/unistd (Description): Change.
36796 (Depends-on): Add link-warning.
36797 (configure.ac): Update.
36798 (Makefile.am): Create unistd.h always. Substitute many new variables
36801 2007-02-18 Bruno Haible <bruno@clisp.org>
36803 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
36804 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
36806 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
36807 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
36808 * lib/getsubopt.h: Remove file.
36809 * modules/getsubopt (Files): Remove lib/getsubopt.h.
36810 (Depends-on): Add stdlib.
36811 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36812 (Includes): Use <stdlib.h> instead of getsubopt.h.
36813 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
36814 Set HAVE_GETSUBOPT.
36815 * lib/getsubopt.c: Don't include getsubopt.h.
36817 2007-02-18 Bruno Haible <bruno@clisp.org>
36819 * modules/fchdir (Depends-on): Add dup2.
36821 2007-02-18 Bruno Haible <bruno@clisp.org>
36823 * lib/stdlib_.h: Handle glibc's special invocation convention
36826 2007-02-18 Bruno Haible <bruno@clisp.org>
36828 * modules/stdlib-tests: New file.
36829 * tests/test-stdlib.c: New file.
36831 * modules/mkstemp (Files): Remove lib/mkstemp.h.
36832 (Depends-on): Add stdlib.
36833 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36834 (Includes): Use <stdlib.h> instead of mkstemp.h.
36835 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
36836 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
36837 * lib/mkstemp.c: Don't include mkstemp.h.
36838 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
36839 * lib/stdlib--.h: Don't include mkstemp.h.
36841 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
36842 (Depends-on): Add stdlib.
36843 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36844 (Includes): Use <stdlib.h> instead of mkdtemp.h.
36845 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
36847 * lib/mkdtemp.c: Don't include mkdtemp.h.
36848 * lib/clean-temp.c: Don't include mkdtemp.h.
36850 * modules/exit (Files): Remove lib/exit.h.
36851 (Depends-on): Add stdlib.
36852 (Makefile.am): Remove lib_SOURCES.
36853 (Include): Use <stdlib.h> instead of exit.h.
36854 * lib/argmatch.c: Don't include exit.h.
36855 * lib/execute.c: Likewise.
36856 * lib/pagealign_alloc.c: Likewise.
36857 * lib/pipe.c: Likewise.
36858 * lib/wait-process.c: Likewise.
36859 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
36860 * lib/exitfail.c: Likewise.
36861 * lib/savewd.c: Likewise.
36862 * lib/xsetenv.c: Likewise.
36864 * modules/stdlib: New file.
36865 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
36866 and extra comments about mkstemp().
36867 * lib/exit.h: Remove file.
36868 * lib/mkdtemp.h: Remove file.
36869 * lib/mkstemp.h: Remove file.
36870 * m4/stdlib_h.m4: New file.
36871 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
36873 2007-02-18 Bruno Haible <bruno@clisp.org>
36875 * modules/math-tests: New file.
36876 * tests/test-math.c: New file.
36878 * modules/math: New file.
36879 * modules/mathl (Files): Remove lib/mathl.h.
36880 (Depends-on): Add math.
36881 (Makefile.am): Don't mention mathl.h.
36882 (Include): Use <math.h> instead of mathl.h.
36883 * lib/math_.h: New file.
36884 * lib/mathl.h: Remove file.
36885 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
36887 * lib/asinl.c: Likewise.
36888 * lib/atanl.c: Likewise.
36889 * lib/ceill.c: Likewise.
36890 * lib/cosl.c: Likewise.
36891 * lib/expl.c: Likewise.
36892 * lib/floorl.c: Likewise.
36893 * lib/frexpl.c: Likewise.
36894 * lib/ldexpl.c: Likewise.
36895 * lib/logl.c: Likewise.
36896 * lib/sincosl.c: Likewise.
36897 * lib/sinl.c: Likewise.
36898 * lib/sqrtl.c: Likewise.
36899 * lib/tanl.c: Likewise.
36900 * lib/trigl.c: Likewise.
36901 * m4/math_h.m4: New file.
36902 * MODULES.html.sh (Mathematics): Add math.
36904 2007-02-17 Bruno Haible <bruno@clisp.org>
36906 * modules/wctype-tests: New file.
36907 * tests/test-wctype.c: New file.
36909 * modules/wchar-tests: New file.
36910 * tests/test-wchar.c: New file.
36912 * modules/unistd-tests: New file.
36913 * tests/test-unistd.c: New file.
36915 * modules/time-tests: New file.
36916 * tests/test-time.c: New file.
36918 * modules/sysexits-tests: New file.
36919 * tests/test-sysexits.c: New file.
36921 * modules/sys_time-tests: New file.
36922 * tests/test-sys_time.c: New file.
36924 * modules/sys_stat-tests: New file.
36925 * tests/test-sys_stat.c: New file.
36927 * modules/sys_socket-tests: New file.
36928 * tests/test-sys_socket.c: New file.
36930 * modules/sys_select-tests: New file.
36931 * tests/test-sys_select.c: New file.
36933 * modules/string-tests: New file.
36934 * tests/test-string.c: New file.
36936 * modules/stdbool-tests: New file.
36937 * tests/test-stdbool.c: New file.
36939 * modules/netinet_in-tests: New file.
36940 * tests/test-netinet_in.c: New file.
36942 * modules/inttypes-tests: New file.
36943 * tests/test-inttypes.c: New file.
36945 * modules/fcntl-tests: New file.
36946 * tests/test-fcntl.c: New file.
36948 * modules/byteswap-tests: New file.
36949 * tests/test-byteswap.c: New file.
36951 * modules/arpa_inet-tests: New file.
36952 * tests/test-arpa_inet.c: New file.
36954 2007-02-17 Bruno Haible <bruno@clisp.org>
36956 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
36957 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
36958 if the corresponding module is not enabled. Emit link warnings if
36959 the function is used nevertheless.
36960 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
36961 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
36962 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
36963 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
36964 * modules/inttypes (Depends-on): Add link-warning.
36965 (Makefile.am): Copy the contents of build-aux/link-warning.h into
36966 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
36967 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
36968 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
36969 * modules/imaxdiv (configure.ac): Likewise.
36970 * modules/strtoimax (configure.ac): Likewise.
36971 * modules/strtoumax (configure.ac): Likewise.
36973 2007-02-17 Bruno Haible <bruno@clisp.org>
36975 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
36976 gl_STRING_MODULE_INDICATOR_DEFAULTS.
36977 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
36978 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
36980 2007-02-17 Bruno Haible <bruno@clisp.org>
36982 * modules/link-warning: New file.
36983 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
36984 * lib/string_.h (GL_LINK_WARNING): Remove definition.
36985 * modules/string (Depends-on): Add link-warning.
36986 (Makefile.am): Copy the contents of build-aux/link-warning.h into
36988 * MODULES.html.sh (Support for building libraries and executables): Add
36991 2007-02-17 Bruno Haible <bruno@clisp.org>
36993 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
36994 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
36995 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
36998 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
36999 Bruno Haible <bruno@clisp.org>
37001 * modules/tmpfile: New file.
37002 * lib/tmpfile.c: New file.
37003 * m4/tmpfile.m4: New file.
37004 * MODULES.html.sh (func_all_modules): New section "Input/output".
37006 2007-02-15 Bruno Haible <bruno@clisp.org>
37008 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
37009 (supports_delete_on_close): New function.
37010 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
37012 2007-02-14 Bruno Haible <bruno@clisp.org>
37014 * modules/mbspcasecmp-tests: New file.
37015 * tests/test-mbspcasecmp.sh: New file.
37016 * tests/test-mbspcasecmp.c: New file.
37018 New module mbspcasecmp.
37019 * modules/mbspcasecmp: New file.
37020 * lib/mbspcasecmp.c: New file.
37021 * lib/string_.h (strncasecmp): Change warning message.
37022 (mbspcasecmp): New declaration.
37023 * m4/mbspcasecmp.m4: New file.
37024 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37025 GNULIB_MBSPCASECMP.
37026 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
37027 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
37029 2007-02-14 Bruno Haible <bruno@clisp.org>
37031 * modules/mbsncasecmp-tests: New file.
37032 * tests/test-mbsncasecmp.sh: New file.
37033 * tests/test-mbsncasecmp.c: New file.
37035 New module mbsncasecmp.
37036 * modules/mbsncasecmp: New file.
37037 * lib/mbsncasecmp.c: New file.
37038 * lib/string_.h (mbsncasecmp): New declaration.
37039 * m4/mbsncasecmp.m4: New file.
37040 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37041 GNULIB_MBSNCASECMP.
37042 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
37043 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
37045 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
37047 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
37048 Verify that it doesn't overlap with our flags.
37049 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
37050 do not have the desired effect in multibyte locales; instead, use
37052 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
37053 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
37054 we don't require GNU fnmatch ourselves (if our users require it, they
37055 should do so explicitly).
37057 Fix regex code so it doesn't rely on strcasecmp.
37058 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
37059 Otherwise, include gnulib's langinfo.h.
37060 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
37061 undesirable behavior in non-C locales. Instead, rely on localecharset.
37062 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
37063 * modules/regex (FILES): Remove m4/codeset.m4.
37064 (Depends-on): Add localcharset. Remove strcase.
37066 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37068 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
37069 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
37071 2007-02-13 Bruno Haible <bruno@clisp.org>
37073 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
37074 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37076 2007-02-12 Bruno Haible <bruno@clisp.org>
37078 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37079 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
37080 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
37081 time warning rather than a link error.
37083 2007-02-12 Bruno Haible <bruno@clisp.org>
37085 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
37086 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37087 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37089 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
37091 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
37094 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
37096 New module 'time', so that apps can include <time.h> as per
37097 POSIX and GNU instead of separate include files like time_r.h
37098 and timegm.h. This implementation tries out a simpler approach
37099 for replacing decls in standard include files (as compared to
37100 the string module), somewhat as an experiment.
37102 * config/srclist.txt: Comment out mktime.c for now.
37103 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
37104 since it doesn't apply any more. Use generic wording instead.
37105 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
37107 * lib/time_.h, m4/time_h.m4, modules/time: New files.
37108 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
37109 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
37110 Don't include <sys/types.h>; no longer needed since we assume C89.
37111 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
37112 * lib/strftime.c: Likewise.
37113 * lib/time_r.c: Likewise.
37114 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
37115 * lib/nanosleep.c: Include <time.h> first, to check interface.
37116 * lib/strptime.c: Likewise.
37117 * lib/time_r.c: Likewise.
37118 * lib/timegm.c: Likewise.
37119 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
37121 * lib/timegm.c: Don't include timegm.h; no longer needed.
37122 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
37123 time.h now handles any problems in that area.
37124 (struct timespec, nanosleep): Remove; time.h now arranges for these.
37125 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
37126 that time.h defines struct timespec.
37127 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
37128 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
37130 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
37131 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
37132 needed. Set REPLACE_LOCALTIME.
37133 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
37134 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
37135 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
37136 nanosleep; time_h.m4 now does that. Don't require
37137 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
37138 module handles this now.
37139 * modules/getdate (Depends-on): Remove timespec. Add time.
37140 * modules/nanosleep (Depends-on): Likewise.
37141 * modules/stat-time (Depends-on): Likewise.
37142 * modules/nanosleep (Include): Include time.h, not timespec.h.
37143 * modules/strptime (Files): Remove lib/strptime.h.
37144 (Depends-on): Add extensions, time.
37145 (Include): Include time.h, not strptime.h.
37146 * modules/time_r (Files): Remove lib/time_r.h.
37147 (Depends-on): Add time.
37148 (Include): Include time.h, not time_r.h.
37149 * modules/timegm: Likewise.
37150 * modules/timespec (Description): Now does timespec-related decls
37151 of our own, instead of struct timespec itself.
37152 (Depends-on): Add time; remove extensions.
37153 (Maintainer): Add self.
37154 * modules/utimecmp (Depends-on): Add time; remove timespec.
37155 * modules/utimens (Depends-on): Likewise.
37156 * modules/xnanosleep (Depends-on): Likewise.
37158 2007-02-11 Bruno Haible <bruno@clisp.org>
37160 * lib/c-strstr.c: Include allocsa.h.
37161 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37162 * lib/c-strcasestr.c: Include allocsa.h.
37163 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37164 * lib/strcasestr.c: Include allocsa.h.
37165 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37166 * lib/mbsstr.c: Include allocsa.h.
37167 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
37168 allocsa/freesa instead of malloc/free.
37169 * lib/mbscasestr.c: Include allocsa.h.
37170 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
37171 allocsa/freesa instead of malloc/free.
37172 * modules/c-strstr (Depends-on): Add allocsa.
37173 * modules/c-strcasestr (Depends-on): Likewise.
37174 * modules/strcasestr (Depends-on): Likewise.
37175 * modules/mbsstr (Depends-on): Likewise.
37176 * modules/mbscasestr (Depends-on): Likewise.
37178 2007-02-11 Bruno Haible <bruno@clisp.org>
37180 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
37182 * modules/mbsspn-tests: New file.
37183 * tests/test-mbsspn.sh: New file.
37184 * tests/test-mbsspn.c: New file.
37186 2007-02-11 Bruno Haible <bruno@clisp.org>
37188 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
37190 * modules/mbspbrk-tests: New file.
37191 * tests/test-mbspbrk.sh: New file.
37192 * tests/test-mbspbrk.c: New file.
37194 2007-02-11 Bruno Haible <bruno@clisp.org>
37196 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
37199 * modules/mbscspn-tests: New file.
37200 * tests/test-mbscspn.sh: New file.
37201 * tests/test-mbscspn.c: New file.
37203 2007-02-11 Bruno Haible <bruno@clisp.org>
37205 * modules/mbscasecmp-tests: New file.
37206 * tests/test-mbscasecmp.sh: New file.
37207 * tests/test-mbscasecmp.c: New file.
37209 2007-02-11 Bruno Haible <bruno@clisp.org>
37211 Ensure O(n) worst-case complexity of mbscasestr.
37212 * lib/mbscasestr.c: Include stdbool.h.
37213 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37215 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
37216 the bookkeeping indicates that it's worth it.
37217 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
37219 * modules/mbscasestr-tests: New file.
37220 * tests/test-mbscasestr1.c: New file.
37221 * tests/test-mbscasestr2.sh: New file.
37222 * tests/test-mbscasestr2.c: New file.
37223 * tests/test-mbscasestr3.sh: New file.
37224 * tests/test-mbscasestr3.c: New file.
37225 * tests/test-mbscasestr4.sh: New file.
37226 * tests/test-mbscasestr4.c: New file.
37227 * m4/locale-tr.m4: New file.
37229 2007-02-11 Bruno Haible <bruno@clisp.org>
37231 Ensure O(n) worst-case complexity of mbsstr.
37232 * lib/mbsstr.c: Include stdbool.h.
37233 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37235 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
37236 bookkeeping indicates that it's worth it.
37237 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
37239 * modules/mbsstr-tests: New file.
37240 * tests/test-mbsstr1.c: New file.
37241 * tests/test-mbsstr2.sh: New file.
37242 * tests/test-mbsstr2.c: New file.
37243 * tests/test-mbsstr3.sh: New file.
37244 * tests/test-mbsstr3.c: New file.
37245 * m4/locale-fr.m4: New file.
37247 2007-02-11 Bruno Haible <bruno@clisp.org>
37249 * lib/mbsrchr.c (mbsrchr): Fix bug.
37251 * modules/mbsrchr-tests: New file.
37252 * tests/test-mbsrchr.sh: New file.
37253 * tests/test-mbsrchr.c: New file.
37255 2007-02-11 Bruno Haible <bruno@clisp.org>
37257 * lib/mbschr.c (mbschr): Fix bug.
37259 * modules/mbschr-tests: New file.
37260 * tests/test-mbschr.sh: New file.
37261 * tests/test-mbschr.c: New file.
37262 * m4/locale-zh.m4: New file.
37264 2007-02-11 Bruno Haible <bruno@clisp.org>
37266 Support for copying multibyte string iterators.
37267 * lib/mbiter.h: Include <string.h>.
37268 (mbiter_multi_copy): New function.
37269 (mbi_copy): New macro.
37270 * lib/mbuiter.h: Include <string.h>.
37271 (mbuiter_multi_copy): New function.
37272 (mbui_copy): New macro.
37274 2007-02-11 Bruno Haible <bruno@clisp.org>
37277 * modules/mbslen: New file.
37278 * lib/mbslen.c: New file.
37279 * lib/string_.h (mbslen): New declaration.
37280 * m4/mbslen.m4: New file.
37281 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37283 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
37284 * MODULES.html.sh (Internationalization functions): Add mbslen.
37286 2007-02-11 Bruno Haible <bruno@clisp.org>
37288 Ensure O(n) worst-case complexity of strcasestr substitute.
37289 * lib/strcasestr.c: Include stdbool.h.
37290 (knuth_morris_pratt): New function.
37291 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
37292 bookkeeping indicates that it's worth it.
37293 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
37295 * modules/strcasestr-tests: New file.
37296 * tests/test-strcasestr.c: New file.
37298 2007-02-11 Bruno Haible <bruno@clisp.org>
37300 Ensure O(n) worst-case complexity of c_strcasestr.
37301 * lib/c-strcasestr.c: Include stdbool.h, string.h.
37302 (knuth_morris_pratt): New function.
37303 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
37304 the bookkeeping indicates that it's worth it.
37305 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
37307 * modules/c-strcasestr-tests: New file.
37308 * tests/test-c-strcasestr.c: New file.
37310 2007-02-11 Bruno Haible <bruno@clisp.org>
37312 Ensure O(n) worst-case complexity of c_strstr.
37313 * lib/c-strstr.c: Include stdbool.h, string.h.
37314 (knuth_morris_pratt): New function.
37315 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
37316 bookkeeping indicates that it's worth it.
37317 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
37319 * lib/c-strstr.c: Complete rewrite for maintainability.
37321 * modules/c-strstr-tests: New file.
37322 * tests/test-c-strstr.c: New file.
37324 2007-02-11 Bruno Haible <bruno@clisp.org>
37326 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
37327 5.2.1 and earlier, whereby \055 was treated just like the range
37329 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
37331 2007-02-08 Bruno Haible <bruno@clisp.org>
37333 * modules/regex (Depends-on): Add stdbool.
37334 Reported by Dalibor Topic <robilad@kaffe.org>.
37336 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
37338 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
37339 Prefer returning from main to exiting from it.
37340 Remove unnecessary parens after sizeof.
37342 2007-02-05 Bruno Haible <bruno@clisp.org>
37345 * modules/mbssep: New file.
37346 * lib/mbssep.c: New file.
37347 * lib/string_.h (strsep): Add a conditional link warning.
37348 (mbssep): New declaration.
37349 * m4/mbssep.m4: New file.
37350 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37352 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
37353 * MODULES.html.sh (Internationalization functions): Add mbssep.
37355 2007-02-05 Bruno Haible <bruno@clisp.org>
37357 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
37358 Optimize search in case of 1 delimiter.
37360 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
37362 * lib/acl.h: Include sys/types.h before sys/acl.h.
37364 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
37366 Merge upstream fix for glibc bugzilla #3957:
37368 2007-02-05 Jakub Jelinek <jakub@redhat.com>
37370 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
37371 bit for RE_HAT_LISTS_NOT_NEWLINE.
37372 (build_charclass_op): Remove bogus comment.
37374 2007-02-05 Simon Josefsson <simon@josefsson.org>
37376 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
37378 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
37380 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
37381 * lib/memmem.c [!defined _LIBC]: Include config.h.
37383 2007-02-04 Bruno Haible <bruno@clisp.org>
37385 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
37388 2007-02-04 Bruno Haible <bruno@clisp.org>
37390 New module mbstok_r.
37391 * modules/mbstok_r: New file.
37392 * lib/mbstok_r.c: New file.
37393 * lib/string_.h (strtok_r): Change argument names to match the
37394 comments. Add a conditional link warning.
37395 (mbstok_r): New declaration.
37396 * m4/mbstok_r.m4: New file.
37397 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37399 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
37400 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
37402 2007-02-04 Bruno Haible <bruno@clisp.org>
37405 * modules/mbsspn: New file.
37406 * lib/mbsspn.c: New file.
37407 * lib/string_.h (strspn): Add a conditional link warning.
37408 (mbsspn): New declaration.
37409 * m4/mbsspn.m4: New file.
37410 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37412 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
37413 * MODULES.html.sh (Internationalization functions): Add mbsspn.
37415 2007-02-04 Bruno Haible <bruno@clisp.org>
37417 New module mbspbrk.
37418 * modules/mbspbrk: New file.
37419 * lib/mbspbrk.c: New file.
37420 * lib/string_.h (strpbrk): Add a conditional link warning.
37421 (mbspbrk): New declaration.
37422 * m4/mbspbrk.m4: New file.
37423 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37425 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
37426 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
37428 2007-02-04 Bruno Haible <bruno@clisp.org>
37430 New module mbscspn.
37431 * modules/mbscspn: New file.
37432 * lib/mbscspn.c: New file.
37433 * lib/string_.h (strcspn): Add a conditional link warning.
37434 (mbscspn): New declaration.
37435 * m4/mbscspn.m4: New file.
37436 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37438 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
37439 * MODULES.html.sh (Internationalization functions): Add mbscspn.
37441 2007-02-04 Bruno Haible <bruno@clisp.org>
37443 New module mbscasestr, reduced goal of strcasestr.
37444 * modules/mbscasestr: New file.
37445 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
37446 (mbscasestr): Renamed from strcasestr.
37447 * lib/strcasestr.c: Don't include mbuiter.h.
37448 (strcasestr): Remove support for multibyte locales.
37449 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
37450 Change the conditional link warning.
37451 (mbscasestr): New declaration.
37452 * m4/mbscasestr.m4: New file.
37453 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
37454 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
37455 REPLACE_STRCASESTR.
37456 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
37457 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37458 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
37459 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
37460 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
37461 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
37462 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
37463 (Depends-on): Remove mbuiter.
37464 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
37466 2007-02-04 Bruno Haible <bruno@clisp.org>
37468 Simplify handling of strncasecmp.
37469 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
37470 the conditional link warning.
37471 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37472 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
37473 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
37474 * modules/strcase (configure.ac): Don't invoke
37475 gl_STRING_MODULE_INDICATOR.
37476 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
37478 2007-02-04 Bruno Haible <bruno@clisp.org>
37480 New module mbscasecmp, reduced goal of strcasecmp.
37481 * modules/mbscasecmp: New file.
37482 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
37483 (mbscasecmp): Renamed from strcasecmp.
37484 * lib/strcasecmp.c: Don't include mbuiter.h.
37485 (strcasecmp): Remove support for multibyte locales.
37486 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
37487 Change the conditional link warning.
37488 (mbscasecmp): New declaration.
37489 * m4/mbscasecmp.m4: New file.
37490 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
37491 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
37492 REPLACE_STRCASECMP.
37493 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
37494 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37496 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
37497 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
37498 * modules/strcase (Files): Remove m4/mbrtowc.m4.
37499 (Depends-on): Remove mbuiter.
37500 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
37502 2007-02-04 Bruno Haible <bruno@clisp.org>
37504 New module mbsstr. Remove module strstr.
37505 * modules/mbsstr: New file.
37506 * modules/strstr: Remove file.
37507 * lib/mbsstr.c: Renamed from lib/strstr.c.
37508 (mbsstr): Renamed from strstr.
37509 * lib/string_.h (strstr): Remove declaration. Change the conditional
37511 (mbsstr): New declaration.
37512 * m4/mbsstr.m4: New file.
37513 * m4/strstr.m4: Remove file.
37514 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
37516 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
37517 Don't initialize GNULIB_STRSTR.
37518 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
37519 substitute GNULIB_STRSTR and REPLACE_STRSTR.
37520 * MODULES.html.sh (Internationalization functions): Add mbsstr.
37521 (Support for systems lacking ANSI C 89): Remove strstr.
37523 2007-02-04 Bruno Haible <bruno@clisp.org>
37525 New module mbsrchr.
37526 * modules/mbsrchr: New file.
37527 * lib/mbsrchr.c: New file.
37528 * lib/string_.h (strrchr): Add a conditional link warning.
37529 (mbsrchr): New declaration.
37530 * m4/mbsrchr.m4: New file.
37531 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37533 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
37534 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
37536 2007-02-04 Bruno Haible <bruno@clisp.org>
37539 * modules/mbschr: New file.
37540 * lib/mbschr.c: New file.
37541 * lib/string_.h (strchr): Add a conditional link warning.
37542 (mbschr): New declaration.
37543 * m4/mbschr.m4: New file.
37544 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37546 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
37547 * MODULES.html.sh (Internationalization functions): Add mbschr.
37549 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
37551 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
37553 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
37555 2007-02-04 Bruno Haible <bruno@clisp.org>
37557 New module description section 'configure.ac-early'.
37558 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
37559 (func_get_autoconf_early_snippet): New function.
37560 (func_import, func_create_testdir): Use it. Remove special cases for
37561 modules 'extensions' and 'lock'.
37562 * modules/extensions (configure.ac-early): Require
37563 gl_USE_SYSTEM_EXTENSIONS.
37564 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
37566 2007-02-04 Bruno Haible <bruno@clisp.org>
37568 Make use of gcj-4.3's -fsource and -ftarget option.
37569 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
37570 and if so try the options -fsource and -ftarget.
37571 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
37572 source_version, ftarget_option, target_version arguments.
37573 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
37574 (is_envjavac_oldgcj_14_14_usable): Renamed from
37575 is_envjavac_gcj_14_14_usable.
37576 (is_envjavac_oldgcj_14_13_usable): Renamed from
37577 is_envjavac_gcj_14_13_usable.
37578 (is_gcj_present): Update.
37579 (is_gcj_43, is_gcj43_usable): New functions.
37580 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
37581 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
37582 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
37583 try the options -fsource and -ftarget.
37585 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
37587 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
37588 checking code. Set N = ceil (1.5 * N) rather than to a slightly
37591 2007-02-03 Jim Meyering <jim@meyering.net>
37593 Give tools a better chance to allocate space for very large buffers.
37594 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
37596 Make pwd and readlink work also when run with an unreadable parent dir
37597 on systems with openat support.
37598 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
37599 provided getcwd function, even when we have openat support.
37600 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
37602 2007-02-02 Bruno Haible <bruno@clisp.org>
37604 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37605 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
37606 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
37607 portability problems if one of these functions is only used on specific
37609 Reported by Paul Eggert.
37611 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
37613 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
37614 is causing more trouble than it's curing.
37615 * lib/regex_internal.h (__mempcpy): Remove.
37616 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
37617 (and make the code a tad smaller to boot).
37618 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
37620 2007-02-02 Jim Meyering <jim@meyering.net>
37622 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
37623 section, not in the Makefile.am: one.
37625 2007-02-02 Eric Blake <ebb9@byu.net>
37627 * lib/strchrnul.c: Always include config.h first.
37629 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
37630 gnulib strstr is not necessary here.
37632 2007-02-02 Simon Josefsson <simon@josefsson.org>
37634 * m4/socklen.m4: Fix typo.
37636 2007-02-02 Eric Blake <ebb9@byu.net>
37638 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
37639 * modules/netinet_in (Makefile.am): Likewise.
37641 2007-02-01 Bruno Haible <bruno@clisp.org>
37643 * lib/string_.h (GL_LINK_WARNING): New macro.
37644 (strcasecmp, strstr, strcasestr): If provided by the system,
37645 conditionally define as a macro that leads to a warning instead of to
37647 (strncasecmp): Conditionally define as a macro that leads to a warning.
37649 2007-02-01 Karl Berry <karl@gnu.org>
37651 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
37653 2007-02-01 Bruno Haible <bruno@clisp.org>
37655 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
37658 2007-02-01 Eric Blake <ebb9@byu.net>
37660 * modules/regex (Depends-on): Revert dependence on mempcpy.
37661 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
37662 module's definition of mempcpy.
37663 Reported by Paul Eggert.
37665 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
37667 * lib/string_.h: If the gnulib module XYZ is not present, undefine
37668 the symbol XYZ before redefining it. This fixes a problem with
37669 programs that don't use XYZ, when compiled on systems that define
37670 XYZ to something else.
37672 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
37674 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
37675 occurs when "mkdir -m foo" creates a setgid directory that is (1)
37676 writeable to group or other and (2) is intended to have a special
37677 mode bit that is set or cleared. In such a case, the directory
37678 should be neither group- nor other-writeable until the special
37679 mode bits are right.
37681 2007-01-31 Eric Blake <ebb9@byu.net>
37683 * modules/mountlist (Depends-on): Add strstr.
37685 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
37687 * modules/string (Makefile.am): Remove redundant replacement.
37688 * modules/regex (Depends-on): Add mempcpy.
37690 2007-01-31 Bruno Haible <bruno@clisp.org>
37692 New module description field 'Link'.
37693 * gnulib-tool (func_usage): Document --extract-link-directive.
37694 (sed_extract_prog): Recognize 'Link' directive.
37695 (func_get_link_directive): New function.
37696 (func_import): Show summary of link directives.
37697 Handle --extract-link-directive option.
37698 * modules/acl (Link): New section.
37699 * modules/clock-time (Link): New section.
37700 * modules/euidaccess (Link): New section.
37701 * modules/gettext (Link): New section.
37702 * modules/iconv (Link): New section.
37703 * modules/lock (Link): New section.
37704 * modules/nanosleep (Link): New section.
37705 * modules/readline (Link): New section.
37707 2007-01-27 Bruno Haible <bruno@clisp.org>
37709 Enforce the use of gnulib modules for unportable <string.h> functions.
37710 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
37711 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
37712 (gl_HEADER_STRING_H_BODY): Require it.
37713 * lib/string_.h: If the gnulib module XYZ is not present, redefine
37714 the symbol XYZ to one that gives a link error.
37715 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
37716 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
37717 * modules/mempcpy (configure.ac): Likewise.
37718 * modules/memrchr (configure.ac): Likewise.
37719 * modules/stpcpy (configure.ac): Likewise.
37720 * modules/stpncpy (configure.ac): Likewise.
37721 * modules/strcase (configure.ac): Likewise.
37722 * modules/strcasestr (configure.ac): Likewise.
37723 * modules/strchrnul (configure.ac): Likewise.
37724 * modules/strdup (configure.ac): Likewise.
37725 * modules/strndup (configure.ac): Likewise.
37726 * modules/strnlen (configure.ac): Likewise.
37727 * modules/strpbrk (configure.ac): Likewise.
37728 * modules/strsep (configure.ac): Likewise.
37729 * modules/strstr (configure.ac): Likewise.
37730 * modules/strtok_r (configure.ac): Likewise.
37732 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
37734 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
37736 2007-01-30 Jim Meyering <jim@meyering.net>
37738 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
37740 2007-01-29 Bruno Haible <bruno@clisp.org>
37742 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
37743 * lib/execute.c: Likewise.
37744 * lib/pipe.c: Likewise.
37745 * lib/printf-args.h: Likewise.
37746 * lib/printf-args.c: Likewise.
37747 * lib/printf-parse.c: Likewise.
37748 * lib/vasnprintf.c: Likewise.
37750 2007-01-29 Eric Blake <ebb9@byu.net>
37752 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
37755 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
37757 * lib/strptime.h (strptime): Use 'restrict' for args where
37758 POSIX requires this.
37759 * lib/strptime.c (strptime): Likewise.
37760 Change license notice from LGPL to GPL, since gnulib-tool will
37761 change this as needed.
37762 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
37764 Include "strptime.h" first, to check interface.
37765 Do not #undef _LIBC and _NL_CURRENT.
37766 Do not include <stdlib.h>; no longer needed.
37767 Include "time_r.h" and declare ptime_locale_status
37768 only if _LIBC is not defined.
37769 (__P): Remove unused macro.
37770 (match_string): Bring back glibc version, but use it only if _LIBC
37772 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
37773 Remove unnecessary assertion and abort() call.
37774 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
37775 * m4/strptime.m4: Fix serial number comment.
37776 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
37777 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
37778 (Depends-on): Add time_r.
37780 2007-01-29 Bruno Haible <bruno@clisp.org>
37782 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37784 * modules/strptime (Depends-on): Add stdbool.
37785 * lib/strptime.h: Include <time.h> always. Add comments.
37787 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
37789 * modules/strptime: New file.
37790 * lib/strptime.h: New file.
37791 * lib/strptime.c: New file.
37792 * m4/strptime.m4: New file.
37794 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
37796 * MODULES.html.sh: New module mpsort.
37797 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
37799 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
37800 a circularity problem with HP-UX ia64 reported by Bob Proulx in
37801 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
37803 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
37805 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
37807 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
37808 the parameter matches the prototype.
37810 2007-01-28 Jim Meyering <jim@meyering.net>
37812 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
37813 sys/time.h here, reverting that part of the previous patch:
37814 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
37816 2007-01-28 Bruno Haible <bruno@clisp.org>
37818 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
37819 value of $(SYS_TIME_H).
37820 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
37821 remove it conditionally, too. [added by Jim Meyering]
37822 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
37823 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
37824 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
37825 GETTIMEOFDAY_REPLACEMENT to 1.
37827 2007-01-28 Bruno Haible <bruno@clisp.org>
37829 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
37830 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
37831 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
37832 Set UNISTD_H instead of UNISTD_H2.
37833 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
37835 2007-01-28 Bruno Haible <bruno@clisp.org>
37837 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
37838 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
37840 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37842 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
37843 (func_create_testdir): Ensure C locale for `grep' and `tr'
37845 (func_create_megatestdir): Avoid one `grep'. Fix bug in
37846 ACLOCAL_AMFLAGS parsing state machine.
37848 2007-01-27 Bruno Haible <bruno@clisp.org>
37850 * modules/unistr/base: Update.
37852 2007-01-27 Bruno Haible <bruno@clisp.org>
37854 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
37855 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
37856 * modules/unistr/u32-mbtouc-unsafe: Renamed from
37857 modules/unistr/u32-mbtouc.
37858 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
37859 * lib/unistr.h: Update.
37860 * lib/linebreak.c: Update.
37861 * modules/unistr/u32-mbtouc: Renamed from
37862 modules/unistr/u32-mbtouc-safe.
37863 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
37864 * lib/unistr.h: Update.
37865 * lib/unistr/u32-to-u8.c: Update.
37866 * lib/unistr/u32-to-u16.c: Update.
37868 2007-01-27 Bruno Haible <bruno@clisp.org>
37870 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
37871 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
37872 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
37873 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
37874 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
37875 * modules/unistr/u16-mbtouc-unsafe: Renamed from
37876 modules/unistr/u16-mbtouc.
37877 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
37878 * lib/unistr.h: Update.
37879 * lib/linebreak.c: Update.
37880 * modules/linebreak: Update.
37881 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
37882 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
37883 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
37884 * modules/unistr/u16-mbtouc: Renamed from
37885 modules/unistr/u16-mbtouc-safe.
37886 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
37887 * lib/unistr.h: Update.
37888 * lib/unistr/u16-to-u8.c: Update.
37889 * modules/unistr/u16-to-u8: Update.
37890 * lib/unistr/u16-to-u32.c: Update.
37891 * modules/unistr/u16-to-u32: Update.
37893 2007-01-27 Bruno Haible <bruno@clisp.org>
37895 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
37896 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
37897 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
37898 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
37899 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
37900 * modules/unistr/u8-mbtouc-unsafe: Renamed from
37901 modules/unistr/u8-mbtouc.
37902 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
37903 * lib/unistr.h: Update.
37904 * lib/striconveh.c: Update.
37905 * modules/striconveh: Update.
37906 * lib/linebreak.c: Update.
37907 * modules/linebreak: Update.
37908 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
37909 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
37910 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
37911 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
37912 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
37913 * lib/unistr.h: Update.
37914 * lib/striconveh.c: Update.
37915 * modules/striconveh: Update.
37916 * lib/unistr/u8-to-u16.c: Update.
37917 * modules/unistr/u8-to-u16: Update.
37918 * lib/unistr/u8-to-u32.c: Update.
37919 * modules/unistr/u8-to-u32: Update.
37921 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37924 * lib/argz.c: Do not include strings.h nor memory.h, include
37925 string.h unconditionally. Patch by Simon Josefsson.
37927 2007-01-27 Bruno Haible <bruno@clisp.org>
37929 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
37930 from gl_HEADER_STRING_H_BODY.
37931 (gl_HEADER_STRING_H_BODY): Require it.
37932 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
37933 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
37934 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
37935 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
37936 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
37937 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
37938 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37939 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
37940 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
37941 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
37942 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
37943 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
37944 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
37945 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37946 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
37948 2007-01-27 Bruno Haible <bruno@clisp.org>
37950 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
37951 check_PROGRAMS into noinst_PROGRAMS.
37952 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
37953 check_PROGRAMS in this case.
37954 (func_import): Set for_test to false.
37955 (func_create_testdir): Set for_test to true.
37957 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
37958 Bruno Haible <bruno@clisp.org>
37960 * modules/strcasestr (Files): Remove lib/strcasestr.h.
37961 (Depends-on): Add string.
37962 (Includes): Use <string.h> instead of strcasestr.h.
37963 * modules/string (Makefile.am): Also substitute the value of
37964 REPLACE_STRCASESTR.
37965 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
37966 assume strcasestr is declared in <string.h> not <strings.h>. Also
37967 set REPLACE_STRCASESTR.
37968 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
37969 REPLACE_STRCASESTR.
37970 * lib/strcasestr.h: Remove file.
37971 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
37972 * lib/string_.h (strcasestr): New declaration.
37974 2007-01-27 Bruno Haible <bruno@clisp.org>
37976 * lib/string_.h: Use 'extern'.
37978 2007-01-27 Jim Meyering <jim@meyering.net>
37980 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
37981 of set-but-not-used local, "q".
37983 * lib/mempcpy.c: Include <config.h> before <string.h>.
37984 This fixes a compilation error on HP-UX, due to the system's
37985 "restrict"-using mempcpy prototype.
37987 2007-01-26 Bruno Haible <bruno@clisp.org>
37989 Small optimization.
37990 * lib/javacomp.c: Include c-strstr.h.
37991 (is_envjavac_gcj): Use c_strstr instead of strstr.
37992 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
37994 2007-01-26 Bruno Haible <bruno@clisp.org>
37996 * MODULES.html.sh (Unicode string functions): Add the new modules.
37998 * modules/uniconv/u32-strconv-to-locale: New file.
37999 * lib/uniconv/u32-strconv-to-locale.c: New file.
38001 * modules/uniconv/u16-strconv-to-locale: New file.
38002 * lib/uniconv/u16-strconv-to-locale.c: New file.
38004 * modules/uniconv/u8-strconv-to-locale: New file.
38005 * lib/uniconv/u8-strconv-to-locale.c: New file.
38007 * modules/uniconv/u32-strconv-from-locale: New file.
38008 * lib/uniconv/u32-strconv-from-locale.c: New file.
38010 * modules/uniconv/u16-strconv-from-locale: New file.
38011 * lib/uniconv/u16-strconv-from-locale.c: New file.
38013 * modules/uniconv/u8-strconv-from-locale: New file.
38014 * lib/uniconv/u8-strconv-from-locale.c: New file.
38016 * modules/uniconv/u32-strconv-to-enc: New file.
38017 * lib/uniconv/u32-strconv-to-enc.c: New file.
38018 * modules/uniconv/u32-strconv-to-enc-tests: New file.
38019 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
38021 * modules/uniconv/u16-strconv-to-enc: New file.
38022 * lib/uniconv/u16-strconv-to-enc.c: New file.
38023 * lib/uniconv/u-strconv-to-enc.h: New file.
38024 * modules/uniconv/u16-strconv-to-enc-tests: New file.
38025 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
38027 * modules/uniconv/u8-strconv-to-enc: New file.
38028 * lib/uniconv/u8-strconv-to-enc.c: New file.
38029 * modules/uniconv/u8-strconv-to-enc-tests: New file.
38030 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
38032 * modules/uniconv/u32-strconv-from-enc: New file.
38033 * lib/uniconv/u32-strconv-from-enc.c: New file.
38034 * modules/uniconv/u32-strconv-from-enc-tests: New file.
38035 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
38037 * modules/uniconv/u16-strconv-from-enc: New file.
38038 * lib/uniconv/u16-strconv-from-enc.c: New file.
38039 * modules/uniconv/u16-strconv-from-enc-tests: New file.
38040 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
38042 * modules/uniconv/u8-strconv-from-enc: New file.
38043 * lib/uniconv/u8-strconv-from-enc.c: New file.
38044 * lib/uniconv/u-strconv-from-enc.h: New file.
38045 * modules/uniconv/u8-strconv-from-enc-tests: New file.
38046 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
38048 * modules/uniconv/u32-conv-from-enc: New file.
38049 * lib/uniconv/u32-conv-from-enc.c: New file.
38050 * modules/uniconv/u32-conv-from-enc-tests: New file.
38051 * tests/uniconv/test-u32-conv-from-enc.c: New file.
38053 * modules/uniconv/u16-conv-from-enc: New file.
38054 * lib/uniconv/u16-conv-from-enc.c: New file.
38055 * lib/uniconv/u-conv-from-enc.h: New file.
38056 * modules/uniconv/u16-conv-from-enc-tests: New file.
38057 * tests/uniconv/test-u16-conv-from-enc.c: New file.
38059 * modules/uniconv/u8-conv-from-enc: New file.
38060 * lib/uniconv/u8-conv-from-enc.c: New file.
38061 * modules/uniconv/u8-conv-from-enc-tests: New file.
38062 * tests/uniconv/test-u8-conv-from-enc.c: New file.
38064 * modules/uniconv/base: New file.
38065 * lib/uniconv.h: New file.
38067 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
38069 * doc/gnulib-tool.texi (Initial import): Update to match current
38070 behavior with strdup module.
38071 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
38072 * lib/memmem.h: Remove; all uses removed. This is now done
38074 * lib/mempcpy.h: Likewise.
38075 * lib/memrchr.h: Likewise.
38076 * lib/stpcpy.h: Likewise.
38077 * lib/stpncpy.h: Likewise.
38078 * lib/strcase.h: Likewise.
38079 * lib/strchrnul.h: Likewise.
38080 * lib/strdup.h: Likewise.
38081 * lib/strndup.h: Likewise.
38082 * lib/strnlen.h: Likewise.
38083 * lib/strpbrk.h: Likewise.
38084 * lib/strsep.h: Likewise.
38085 * lib/strstr.h: Likewise.
38086 * lib/strtok_r.h: Likewise.
38087 * lib/string_.h: New file.
38088 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
38089 Rely on <string.h> instead.
38090 * lib/canon-host.c: Likewise.
38091 * lib/chdir-long.c: Likewise.
38092 * lib/concatpath.c: Likewise.
38093 * lib/exclude.c: Likewise.
38094 * lib/fchdir.c: Likewise.
38095 * lib/getaddrinfo.c: Likewise.
38096 * lib/getcwd.c: Likewise.
38097 * lib/getsubopt.c: Likewise.
38098 * lib/glob.c: Likewise.
38099 * lib/hard-locale.c: Likewise.
38100 * lib/iconvme.c: Likewise.
38101 * lib/javacomp.c: Likewise.
38102 * lib/mempcpy.c: Likewise.
38103 * lib/memrchr.c: Likewise.
38104 * lib/regex_internal.h: Likewise.
38105 * lib/stpncpy.c: Likewise.
38106 * lib/strcasecmp.c: Likewise.
38107 * lib/strchrnul.c: Likewise.
38108 * lib/strdup.c: Likewise.
38109 * lib/striconv.c: Likewise.
38110 * lib/striconveh.c: Likewise.
38111 * lib/striconveha.c: Likewise.
38112 * lib/strncasecmp.c: Likewise.
38113 * lib/strndup.c: Likewise.
38114 * lib/strnlen.c: Likewise.
38115 * lib/strsep.c: Likewise.
38116 * lib/strstr.c: Likewise.
38117 * lib/strtok_r.c: Likewise.
38118 * lib/userspec.c: Likewise.
38119 * lib/w32spawn.h: Likewise.
38120 * lib/xstrndup.c: Likewise.
38121 * lib/mountlist.c (strstr): Remove decl.
38122 * m4/string_h.m4: New file.
38123 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
38124 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
38125 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
38126 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
38127 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
38128 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
38129 Set REPLACE_STRCASECMP if necessary.
38130 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
38131 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
38132 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
38133 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
38134 HAVE_DECL_STRDUP if necessary.
38135 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
38136 since gl_FUNC_STRNDUP does that now.
38137 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
38138 Check for decl here...
38139 (gl_PREREQ_STRNLEN): ... not here.
38140 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
38141 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
38142 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
38143 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
38145 * modules/string: New file.
38146 * modules/memmem (Files): Remove special-purpose include file.
38147 (Depends-on): Add string.
38148 (Include): Include <string.h>, not the removed file.
38149 * modules/mempcpy: Likewise.
38150 * modules/memrchr: Likewise.
38151 * modules/stpcpy: Likewise.
38152 * modules/stpncpy: Likewise.
38153 * modules/strcase: Likewise.
38154 * modules/strchrnul: Likewise.
38155 * modules/strdup: Likewise.
38156 * modules/strndup: Likewise.
38157 * modules/strnlen: Likewise.
38158 * modules/strpbrk: Likewise.
38159 * modules/strsep: Likewise.
38160 * modules/strstr: Likewise.
38161 * modules/strtok_r: Likewise.
38162 * tests/test-dirname.c: Don't include "strdup.h", since
38163 <string.h> now suffices.
38164 * tests/test-memmem.c: Don't include "memmem.h", since
38165 <string.h> now suffices.
38167 2007-01-25 Bruno Haible <bruno@clisp.org>
38169 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
38172 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
38173 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
38174 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
38175 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
38177 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
38178 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
38179 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
38180 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
38181 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
38182 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
38184 2007-01-24 Bruno Haible <bruno@clisp.org>
38186 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
38187 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
38188 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
38189 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
38191 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
38192 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
38193 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
38194 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
38195 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
38196 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
38198 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
38200 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
38201 Reported by Ralf Wildenhues.
38203 2007-01-24 Bruno Haible <bruno@clisp.org>
38205 Drop AC_REQUIRE calls that are redundant with the module dependencies.
38206 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
38208 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
38209 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
38210 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
38212 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
38214 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
38215 Don't use 'exit'; just return from 'main'.
38216 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
38218 * lib/fnmatch_.h: Readjust white space and comments to match
38219 glibc, to avoid spurious diffs.
38221 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
38223 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
38224 2004-12-01 change by Jakub Jelinek, since this code won't compile
38225 if !LIBC. Problem reported by Bob Proulx.
38227 2007-01-23 Bruno Haible <bruno@clisp.org>
38229 * lib/striconveh.c: Include c-strcaseeq.h.
38230 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
38231 * modules/striconveh (Depends-on): Add c-strcaseeq.
38233 2007-01-23 Bruno Haible <bruno@clisp.org>
38235 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
38237 * modules/c-strcaseeq: New file.
38238 * lib/c-strcaseeq.h: New file.
38240 * modules/streq: New file.
38241 * lib/streq.h: New file.
38243 2007-01-23 Bruno Haible <bruno@clisp.org>
38245 * modules/striconveha-tests: New file.
38246 * tests/test-striconveha.c: New file.
38248 * lib/striconveha.h: Include <stdbool.h>.
38249 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
38250 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
38251 (mem_iconveha_notranslit): Renamed from mem_iconveha.
38252 (mem_iconveha): New function.
38253 (str_iconveha_notranslit): Renamed from str_iconveha.
38254 (str_iconveha): New function.
38255 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
38258 2007-01-23 Bruno Haible <bruno@clisp.org>
38260 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
38261 encodings without forgiving before trying any encoding with handler.
38262 (str_iconveha): Try all encodings without forgiving before trying any
38263 encoding with handler.
38265 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
38267 Import the following changes from libc.
38269 2005-10-14 Ulrich Drepper <drepper@redhat.com>
38271 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
38273 2004-12-01 Jakub Jelinek <jakub@redhat.com>
38275 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
38276 normal_bracket label.
38278 2004-09-01 Jakub Jelinek <jakub@redhat.com>
38281 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
38282 to normal_bracket after fetching the next character.
38284 2007-01-22 Bruno Haible <bruno@clisp.org>
38286 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
38288 * lib/striconveh.c (iconv_carefully_1): New function.
38289 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
38291 (str_cd_iconveh): Update.
38292 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
38293 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
38294 * tests/test-striconveh.c (MAGIC): New macro.
38295 (new_offsets): New function.
38296 (main): Test call with and without offsets.
38298 2007-01-22 Bruno Haible <bruno@clisp.org>
38300 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
38301 * modules/sys_select (Makefile.am): Likewise.
38302 * modules/sys_socket (Makefile.am): Likewise.
38303 * modules/sys_time (Makefile.am): Likewise.
38305 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
38307 * modules/gettimeofday (License): Change from GPL to LGPL, since
38308 gettimeofday is a library function.
38310 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38312 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
38314 2007-01-21 Bruno Haible <bruno@clisp.org>
38316 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
38318 2007-01-21 Bruno Haible <bruno@clisp.org>
38320 * modules/striconveha: New file.
38321 * lib/striconveha.h: New file.
38322 * lib/striconveha.c: New file.
38323 * MODULES.html.sh (Internationalization functions): Add striconveha.
38324 * lib/striconv.c (str_iconv): Optimize the case of an empty input
38326 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
38328 2007-01-21 Bruno Haible <bruno@clisp.org>
38330 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
38331 * lib/striconveh.c (str_iconveh): Likewise.
38333 2007-01-21 Bruno Haible <bruno@clisp.org>
38335 * lib/striconveh.h (mem_iconveh): New declaration.
38336 * lib/striconveh.c (mem_iconveh): New function.
38337 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
38339 2007-01-21 Bruno Haible <bruno@clisp.org>
38341 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
38343 * lib/striconveh.h (mem_cd_iconveh): Change specification.
38344 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
38345 original result buffer.
38346 (str_cd_iconveh): Update.
38347 * tests/test-striconveh.c (main): Update.
38349 * lib/striconv.h (mem_cd_iconv): Change specification.
38350 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
38352 (str_cd_iconv): Update.
38353 * tests/test-striconv.c (main): Update.
38355 2007-01-21 Bruno Haible <bruno@clisp.org>
38357 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
38359 2007-01-20 Jim Meyering <jim@meyering.net>
38361 * lib/userspec.c (parse_with_separator): If a user or group string
38362 starts with "+", skip the corresponding name-to-ID look-up, since
38363 such a look-up must fail: user and group names may not include "+".
38365 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
38367 * lib/poll.c: Include sys/time.h and time.h unconditionally,
38368 since we now assume the sys_time module.
38369 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
38370 check for sys/time.h; no longer needed.
38371 * modules/poll (Depends-on): Depend on sys_time.
38373 2007-01-18 Bruno Haible <bruno@clisp.org>
38375 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
38376 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
38378 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
38381 * tests/test-gettimeofday.c: Include <time.h>.
38382 (dummy): Remove variable.
38384 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
38385 gl_HEADER_SYS_TIME_H.
38386 (gl_HEADER_SYS_TIME_H): New macro.
38388 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
38389 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38390 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
38391 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
38392 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38393 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
38394 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
38395 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38396 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
38397 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
38398 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38400 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
38401 last change; it caused a compilation error when cross-compiling to
38404 2007-01-18 Jim Meyering <jim@meyering.net>
38406 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
38407 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
38408 than the race-prone "test -d sys || mkdir sys".
38409 (configure.ac): Use AC_PROG_MKDIR_P.
38410 * modules/sys_select: Likewise.
38411 * modules/sys_socket: Likewise.
38412 * modules/sys_time: Likewise.
38414 2007-01-18 Eric Blake <ebb9@byu.net>
38416 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
38417 replace gettimeofday.
38418 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
38419 name, to avoid infinite recursion.
38421 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
38423 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
38425 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
38426 assume timespec.h defines struct timeval.
38427 * lib/settime.c: Likewise.
38428 * lib/utimens.c: Likewise.
38429 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
38430 since we now assume the gettimeofday module.
38431 * lib/tempname.c (__gen_tempname): Likewise.
38432 * lib/gettimeofday.h: Remove.
38433 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
38434 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
38435 Include <time.h>, for 'time()'.
38436 (localtime_buffer_addr): Also use this workaround if
38437 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
38438 to simplify the uses. All uses changed.
38439 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
38440 that #undef is inside {}, and 'const' follows type name consistently.
38441 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
38442 (gettimeofday): Do not use the maximum possible value for
38443 tv->tv_usec, since that might break usages other than ls.c.
38444 Instead, we'll leave ls.c alone. This undoes today's patch
38445 by Bruno. Add a compile-time warning for 1s-clock resolution;
38446 we've never observed the problem but might as well keep the
38448 * lib/nanosleep.c: Include timespec.h first, for interface check.
38449 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
38450 now assume the sys_time module.
38451 * lib/tempname.c: Likewise.
38452 * lib/timespec.h: Likewise.
38453 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
38455 * lib/strftime.c: Likewise.
38456 * lib/timespec.h: Likewise.
38457 * lib/posixtm.c: Include posixtm.h first, for interface check.
38458 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
38459 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
38460 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
38461 * lib/sys_time_.h: New file.
38462 * lib/timespec.h (struct timespec): Use long int, not long.
38463 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
38464 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
38465 Remove obsolescent call to AC_HEADER_TIME.
38466 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
38467 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38468 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
38469 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
38471 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
38472 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
38473 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
38474 into the sys_time module. Check for gettimeofday just once.
38475 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
38476 for gettimeofday signature to just check the signature. Merely
38477 compile it, since linking doesn't test signature. Improve test for
38478 whether gettimeofday.o is actually needed.
38479 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
38480 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
38481 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
38482 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38483 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
38484 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
38485 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
38486 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
38487 than worrying about sys/time.h.
38488 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
38489 Don't bother worrying about TIME_WITH_SYS_TIME.
38490 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
38491 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
38492 * m4/sys_time_h.m4: New file.
38493 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
38494 Don't include sys/time.h. Return from main rather than exiting.
38495 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
38497 * modules/gethrxtime (Depends-on): Add sys_time.
38498 * modules/gettime (Depends-on): Likewise.
38499 * modules/gettimeofday (Depends-on): Likewise.
38500 * modules/nanosleep (Depends-on): Likewise.
38501 * modules/settime (Depends-on): Likewise.
38502 * modules/tempname (Depends-on): Likewise.
38503 * modules/utimens (Depends-on): Likewise.
38504 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
38505 (Include:) Change back to <sys/time.h>.
38506 (Maintainer:) Add self.
38507 * modules/sys_time: New file.
38508 * modules/tempname (Depends-on): Add gettimeofday.
38509 * tests/test-gettimeofday.c: Include <sys/time.h>
38510 rather than gettimeofday.h.
38512 2007-01-17 Bruno Haible <bruno@clisp.org>
38514 * gnulib-tool (func_get_license): Revert last patch. Instead, let
38515 the license default to GPL.
38516 (func_create_testdir): Don't complain if a module is LGPL and its
38517 tests module depends on GPLed modules.
38519 2007-01-17 Bruno Haible <bruno@clisp.org>
38521 * lib/gettimeofday.c (gettimeofday): Add code for the case
38522 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
38523 maximum possible value for tv->tv_usec, rather than the minimum one.
38525 2005-10-08 Martin Lambers <marlam@marlam.de>
38526 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
38527 2007-01-16 Bruno Haible <bruno@clisp.org>
38529 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
38530 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
38531 gl_FUNC_GETTIMEOFDAY.
38532 (Include): Add gettimeofday.h.
38533 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
38534 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
38535 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
38536 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
38537 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
38538 * lib/gettimeofday.h: New file.
38539 * lib/gettimeofday.c: Include <sys/timeb.h>.
38540 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
38541 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38542 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
38543 fall back on time().
38545 * tests/test-gettimeofday.c: New file.
38546 * modules/gettimeofday-tests: New file.
38548 2007-01-16 Eric Blake <ebb9@byu.net>
38550 * modules/fnmatch (Depends-on): Depend on wchar.
38551 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
38552 * m4/fnmatch.m4: Likewise.
38553 * modules/mbchar (Makefile.am): Assume <wchar.h>.
38554 * m4/mbchar.m4: Likewise.
38555 * modules/mbswidth (Depends-on): Depend on wchar.
38556 * lib/mbswidth.c: Assume <wchar.h>.
38557 * m4/mbswidth.m4: Likewise.
38558 * modules/quotearg (Depends-on): Depend on wchar.
38559 * lib/quotearg.c: Assume <wchar.h>.
38560 * m4/quotearg.m4: Likewise.
38561 * modules/regex (Depends-on): Depend on wchar.
38562 * lib/regex_internal.h: Assume <wchar.h>.
38563 * m4/regex.m4: Likewise.
38564 * modules/stdint (Depends-on): Depend on wchar.
38565 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
38566 * m4/stdint.m4: Likewise.
38567 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
38568 * modules/strftime (Depends-on): Depend on wchar.
38569 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
38570 * modules/strtol (Depends-on): Depend on wchar.
38571 * lib/strtol.c: Assume <wchar.h>.
38572 * modules/wcwidth (Depends-on): Depend on wchar.
38573 * lib/wcwidth.h: Assume <wchar.h>.
38574 * m4/wcwidth.m4: Likewise.
38576 2007-01-16 Bruno Haible <bruno@clisp.org>
38578 * modules/csharpexec-script: New, created from...
38579 * modules/csharpexec: ... this.
38581 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
38583 * modules/javaexec-script: New, created from...
38584 * modules/javaexec: ... this.
38586 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38588 * modules/poll (Dependencies): Add sys_select.
38590 2007-01-15 Jim Meyering <jim@meyering.net>
38592 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
38593 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
38594 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
38595 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
38597 2007-01-15 Bruno Haible <bruno@clisp.org>
38599 * modules/striconveh: New file.
38600 * lib/striconveh.h: New file.
38601 * lib/striconveh.c: New file.
38602 * MODULES.html.sh (Internationalization functions): Add striconveh.
38604 * modules/striconveh-tests: New file.
38605 * tests/test-striconveh.c: New file.
38607 2007-01-15 Bruno Haible <bruno@clisp.org>
38609 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
38610 not from GNU libiconv or GNU libc.
38612 2007-01-15 Bruno Haible <bruno@clisp.org>
38614 * doc/gnulib-intro.texi (Copyright): Explain the different license
38615 terms for module descriptions, autoconf macros, tests, documentation.
38617 2007-01-14 Bruno Haible <bruno@clisp.org>
38619 * modules/striconv-tests: New file.
38620 * tests/test-striconv.c: New file.
38622 2007-01-14 Bruno Haible <bruno@clisp.org>
38624 * modules/iconv-tests: New file.
38625 * tests/test-iconv.c: New file.
38627 2007-01-14 Bruno Haible <bruno@clisp.org>
38629 * gnulib-tool (func_get_license): For test modules, use the license of
38632 2007-01-14 Bruno Haible <bruno@clisp.org>
38634 * modules/iconv (Include): Clarify that <iconv.h> can only be included
38635 if iconv is found to exist.
38637 2007-01-14 Bruno Haible <bruno@clisp.org>
38639 * modules/c-ctype-tests: New file.
38640 * tests/test-c-ctype.c: New file.
38642 2007-01-14 Bruno Haible <bruno@clisp.org>
38644 * modules/binary-io-tests: New file.
38645 * tests/test-binary-io.sh: New file.
38646 * tests/test-binary-io.c: New file.
38648 2007-01-14 Bruno Haible <bruno@clisp.org>
38650 * modules/array-oset-tests: New file.
38651 * tests/test-array_oset.c: New file.
38653 2007-01-14 Bruno Haible <bruno@clisp.org>
38655 * modules/array-list-tests: New file.
38656 * tests/test-array_list.c: New file.
38658 2007-01-14 Bruno Haible <bruno@clisp.org>
38660 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
38662 Reported by Simon Josefsson in
38663 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
38665 2007-01-14 Bruno Haible <bruno@clisp.org>
38667 * modules/allocsa-tests: New file.
38668 * tests/test-allocsa.c: New file.
38670 2007-01-14 Bruno Haible <bruno@clisp.org>
38672 * modules/fchdir (Depends-on): Add absolute-header.
38673 * modules/unistd (Depends-on): Likewise.
38675 2006-12-30 Bruno Haible <bruno@clisp.org>
38677 * modules/fchdir: New file.
38678 * modules/unistd (Files): Add lib/unistd_.h.
38679 (Makefile.am): Generate unistd.h from unistd_.h.
38680 * lib/fchdir.c: New file.
38681 * lib/dirent_.h: New file.
38682 * lib/unistd_.h: New file.
38683 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
38684 * m4/fchdir.m4: New file.
38685 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
38686 (gl_HEADER_UNISTD): Invoke it.
38687 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
38689 * lib/backupfile.c (opendir, closedir): Undefine.
38690 * lib/chown.c (open, close): Undefine.
38691 * lib/clean-temp.c (open, close): Undefine.
38692 * lib/copy-file.c (open, close): Undefine.
38693 * lib/execute.c (open, close): Undefine.
38694 * lib/fsusage.c (open, close): Undefine.
38695 * lib/gc-gnulib.c (open, close): Undefine.
38696 * lib/getcwd.c (opendir, closedir): Undefine.
38697 * lib/glob.c (opendir, closedir): Undefine.
38698 * lib/javacomp.c (open, close): Undefine.
38699 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
38700 * lib/openat-proc.c (open, close): Undefine.
38701 * lib/pagealign_alloc.c (open, close): Undefine.
38702 * lib/pipe.c (open, close): Undefine.
38703 * lib/progreloc.c (open, close): Undefine.
38704 * lib/savedir.c (opendir, closedir): Undefine.
38705 * lib/utime.c (open, close): Undefine.
38706 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
38708 2007-01-10 Bruno Haible <bruno@clisp.org>
38710 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
38712 2007-01-12 Eric Blake <ebb9@byu.net>
38714 Provide a robust <wchar.h>. Further simplifications are now
38715 possible in other modules, but not included here.
38716 * modules/wchar: New module.
38717 * m4/wchar.m4: New file.
38718 * lib/wchar_.h: Likewise.
38719 * modules/mbchar (Depends-on): Depend on wchar, as the first use
38721 * MODULES.html.sh (Extended multibyte and wide character utilities):
38724 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
38726 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
38727 to a reasonable default for memory allocation.
38728 (xreadlink): Don't allocate a huge buffer, to work around a buggy
38729 file system that reports garbage st_size values for symlinks.
38730 Problem reported by Liyang Hu.
38732 2007-01-11 Simon Josefsson <simon@josefsson.org>
38734 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
38735 Emacs .#* auto-save files).
38737 2007-01-11 Bruno Haible <bruno@clisp.org>
38739 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
38742 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
38744 Use @...@ consistently in lib/wctype_.h.
38745 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
38746 on it being set to 1 or 0.
38747 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
38748 go back to AC_SUBSTing it.
38749 * modules/wctype (Makefile.am): Undo previous change.
38751 2007-01-10 Eric Blake <ebb9@byu.net>
38753 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
38754 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
38755 * modules/wctype (Makefile.am): Likewise.
38756 Reported by Chris McGuire.
38758 2007-01-10 Jim Meyering <jim@meyering.net>
38760 fts.c: a small readability/maintainability improvement
38761 * lib/fts.c (fts_read): Make this code slightly more readable and
38762 maintainable by hoisting the "sp->fts_cur = p" assignments to
38763 immediately follow the statements that set P. Derived from
38764 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
38766 2007-01-10 Eric Blake <ebb9@byu.net>
38768 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
38769 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
38770 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
38771 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
38772 Reported by Chris McGuire.
38774 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38776 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
38779 2007-01-09 Bruno Haible <bruno@clisp.org>
38781 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
38782 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
38784 (func_module): Use them.
38786 2007-01-09 Bruno Haible <bruno@clisp.org>
38788 * modules/unistr/base: New file.
38789 * lib/unistr.h: New file.
38791 * modules/unistr/u8-to-u16: New file.
38792 * lib/unistr/u8-to-u16.c: New file.
38794 * modules/unistr/u8-to-u32: New file.
38795 * lib/unistr/u8-to-u32.c: New file.
38797 * modules/unistr/u16-to-u8: New file.
38798 * lib/unistr/u16-to-u8.c: New file.
38800 * modules/unistr/u16-to-u32: New file.
38801 * lib/unistr/u16-to-u32.c: New file.
38803 * modules/unistr/u32-to-u8: New file.
38804 * lib/unistr/u32-to-u8.c: New file.
38806 * modules/unistr/u32-to-u16: New file.
38807 * lib/unistr/u32-to-u16.c: New file.
38809 * modules/unistr/u8-check: New file.
38810 * modules/unistr/u16-check: New file.
38811 * modules/unistr/u32-check: New file.
38812 * lib/unistr/u8-check.c: New file.
38813 * lib/unistr/u16-check.c: New file.
38814 * lib/unistr/u32-check.c: New file.
38816 * modules/unistr/u8-chr: New file.
38817 * modules/unistr/u16-chr: New file.
38818 * modules/unistr/u32-chr: New file.
38819 * lib/unistr/u8-chr.c: New file.
38820 * lib/unistr/u16-chr.c: New file.
38821 * lib/unistr/u32-chr.c: New file.
38823 * modules/unistr/u8-cmp: New file.
38824 * modules/unistr/u16-cmp: New file.
38825 * modules/unistr/u32-cmp: New file.
38826 * lib/unistr/u8-cmp.c: New file.
38827 * lib/unistr/u16-cmp.c: New file.
38828 * lib/unistr/u32-cmp.c: New file.
38830 * modules/unistr/u8-cpy: New file.
38831 * modules/unistr/u16-cpy: New file.
38832 * modules/unistr/u32-cpy: New file.
38833 * lib/unistr/u8-cpy.c: New file.
38834 * lib/unistr/u16-cpy.c: New file.
38835 * lib/unistr/u32-cpy.c: New file.
38836 * lib/unistr/u-cpy.h: New file.
38838 * modules/unistr/u8-cpy-alloc: New file.
38839 * modules/unistr/u16-cpy-alloc: New file.
38840 * modules/unistr/u32-cpy-alloc: New file.
38841 * lib/unistr/u8-cpy-alloc.c: New file.
38842 * lib/unistr/u16-cpy-alloc.c: New file.
38843 * lib/unistr/u32-cpy-alloc.c: New file.
38844 * lib/unistr/u-cpy-alloc.h: New file.
38846 * modules/unistr/u8-endswith: New file.
38847 * modules/unistr/u16-endswith: New file.
38848 * modules/unistr/u32-endswith: New file.
38849 * lib/unistr/u8-endswith.c: New file.
38850 * lib/unistr/u16-endswith.c: New file.
38851 * lib/unistr/u32-endswith.c: New file.
38852 * lib/unistr/u-endswith.h: New file.
38854 * modules/unistr/u8-mblen: New file.
38855 * modules/unistr/u16-mblen: New file.
38856 * modules/unistr/u32-mblen: New file.
38857 * lib/unistr/u8-mblen.c: New file.
38858 * lib/unistr/u16-mblen.c: New file.
38859 * lib/unistr/u32-mblen.c: New file.
38861 * modules/unistr/u8-mbtouc: New file.
38862 * modules/unistr/u16-mbtouc: New file.
38863 * modules/unistr/u32-mbtouc: New file.
38864 * lib/unistr/u8-mbtouc.c: New file.
38865 * lib/unistr/u16-mbtouc.c: New file.
38866 * lib/unistr/u32-mbtouc.c: New file.
38868 * modules/unistr/u8-mbtouc-safe: New file.
38869 * modules/unistr/u16-mbtouc-safe: New file.
38870 * modules/unistr/u32-mbtouc-safe: New file.
38871 * lib/unistr/u8-mbtouc-safe.c: New file.
38872 * lib/unistr/u16-mbtouc-safe.c: New file.
38873 * lib/unistr/u32-mbtouc-safe.c: New file.
38875 * modules/unistr/u8-move: New file.
38876 * modules/unistr/u16-move: New file.
38877 * modules/unistr/u32-move: New file.
38878 * lib/unistr/u8-move.c: New file.
38879 * lib/unistr/u16-move.c: New file.
38880 * lib/unistr/u32-move.c: New file.
38881 * lib/unistr/u-move.h: New file.
38883 * modules/unistr/u8-next: New file.
38884 * modules/unistr/u16-next: New file.
38885 * modules/unistr/u32-next: New file.
38886 * lib/unistr/u8-next.c: New file.
38887 * lib/unistr/u16-next.c: New file.
38888 * lib/unistr/u32-next.c: New file.
38890 * modules/unistr/u8-prev: New file.
38891 * modules/unistr/u16-prev: New file.
38892 * modules/unistr/u32-prev: New file.
38893 * lib/unistr/u8-prev.c: New file.
38894 * lib/unistr/u16-prev.c: New file.
38895 * lib/unistr/u32-prev.c: New file.
38897 * modules/unistr/u8-set: New file.
38898 * modules/unistr/u16-set: New file.
38899 * modules/unistr/u32-set: New file.
38900 * lib/unistr/u8-set.c: New file.
38901 * lib/unistr/u16-set.c: New file.
38902 * lib/unistr/u32-set.c: New file.
38903 * lib/unistr/u-set.h: New file.
38905 * modules/unistr/u8-startswith: New file.
38906 * modules/unistr/u16-startswith: New file.
38907 * modules/unistr/u32-startswith: New file.
38908 * lib/unistr/u8-startswith.c: New file.
38909 * lib/unistr/u16-startswith.c: New file.
38910 * lib/unistr/u32-startswith.c: New file.
38911 * lib/unistr/u-startswith.h: New file.
38913 * modules/unistr/u8-stpcpy: New file.
38914 * modules/unistr/u16-stpcpy: New file.
38915 * modules/unistr/u32-stpcpy: New file.
38916 * lib/unistr/u8-stpcpy.c: New file.
38917 * lib/unistr/u16-stpcpy.c: New file.
38918 * lib/unistr/u32-stpcpy.c: New file.
38919 * lib/unistr/u-stpcpy.h: New file.
38921 * modules/unistr/u8-stpncpy: New file.
38922 * modules/unistr/u16-stpncpy: New file.
38923 * modules/unistr/u32-stpncpy: New file.
38924 * lib/unistr/u8-stpncpy.c: New file.
38925 * lib/unistr/u16-stpncpy.c: New file.
38926 * lib/unistr/u32-stpncpy.c: New file.
38927 * lib/unistr/u-stpncpy.h: New file.
38929 * modules/unistr/u8-strcat: New file.
38930 * modules/unistr/u16-strcat: New file.
38931 * modules/unistr/u32-strcat: New file.
38932 * lib/unistr/u8-strcat.c: New file.
38933 * lib/unistr/u16-strcat.c: New file.
38934 * lib/unistr/u32-strcat.c: New file.
38935 * lib/unistr/u-strcat.h: New file.
38937 * modules/unistr/u8-strchr: New file.
38938 * modules/unistr/u16-strchr: New file.
38939 * modules/unistr/u32-strchr: New file.
38940 * lib/unistr/u8-strchr.c: New file.
38941 * lib/unistr/u16-strchr.c: New file.
38942 * lib/unistr/u32-strchr.c: New file.
38944 * modules/unistr/u8-strcmp: New file.
38945 * modules/unistr/u16-strcmp: New file.
38946 * modules/unistr/u32-strcmp: New file.
38947 * lib/unistr/u8-strcmp.c: New file.
38948 * lib/unistr/u16-strcmp.c: New file.
38949 * lib/unistr/u32-strcmp.c: New file.
38951 * modules/unistr/u8-strcpy: New file.
38952 * modules/unistr/u16-strcpy: New file.
38953 * modules/unistr/u32-strcpy: New file.
38954 * lib/unistr/u8-strcpy.c: New file.
38955 * lib/unistr/u16-strcpy.c: New file.
38956 * lib/unistr/u32-strcpy.c: New file.
38957 * lib/unistr/u-strcpy.h: New file.
38959 * modules/unistr/u8-strcspn: New file.
38960 * modules/unistr/u16-strcspn: New file.
38961 * modules/unistr/u32-strcspn: New file.
38962 * lib/unistr/u8-strcspn.c: New file.
38963 * lib/unistr/u16-strcspn.c: New file.
38964 * lib/unistr/u32-strcspn.c: New file.
38965 * lib/unistr/u-strcspn.h: New file.
38967 * modules/unistr/u8-strdup: New file.
38968 * modules/unistr/u16-strdup: New file.
38969 * modules/unistr/u32-strdup: New file.
38970 * lib/unistr/u8-strdup.c: New file.
38971 * lib/unistr/u16-strdup.c: New file.
38972 * lib/unistr/u32-strdup.c: New file.
38973 * lib/unistr/u-strdup.h: New file.
38975 * modules/unistr/u8-strlen: New file.
38976 * modules/unistr/u16-strlen: New file.
38977 * modules/unistr/u32-strlen: New file.
38978 * lib/unistr/u8-strlen.c: New file.
38979 * lib/unistr/u16-strlen.c: New file.
38980 * lib/unistr/u32-strlen.c: New file.
38981 * lib/unistr/u-strlen.h: New file.
38983 * modules/unistr/u8-strmblen: New file.
38984 * modules/unistr/u16-strmblen: New file.
38985 * modules/unistr/u32-strmblen: New file.
38986 * lib/unistr/u8-strmblen.c: New file.
38987 * lib/unistr/u16-strmblen.c: New file.
38988 * lib/unistr/u32-strmblen.c: New file.
38990 * modules/unistr/u8-strmbtouc: New file.
38991 * modules/unistr/u16-strmbtouc: New file.
38992 * modules/unistr/u32-strmbtouc: New file.
38993 * lib/unistr/u8-strmbtouc.c: New file.
38994 * lib/unistr/u16-strmbtouc.c: New file.
38995 * lib/unistr/u32-strmbtouc.c: New file.
38997 * modules/unistr/u8-strncat: New file.
38998 * modules/unistr/u16-strncat: New file.
38999 * modules/unistr/u32-strncat: New file.
39000 * lib/unistr/u8-strncat.c: New file.
39001 * lib/unistr/u16-strncat.c: New file.
39002 * lib/unistr/u32-strncat.c: New file.
39003 * lib/unistr/u-strncat.h: New file.
39005 * modules/unistr/u8-strncmp: New file.
39006 * modules/unistr/u16-strncmp: New file.
39007 * modules/unistr/u32-strncmp: New file.
39008 * lib/unistr/u8-strncmp.c: New file.
39009 * lib/unistr/u16-strncmp.c: New file.
39010 * lib/unistr/u32-strncmp.c: New file.
39012 * modules/unistr/u8-strncpy: New file.
39013 * modules/unistr/u16-strncpy: New file.
39014 * modules/unistr/u32-strncpy: New file.
39015 * lib/unistr/u8-strncpy.c: New file.
39016 * lib/unistr/u16-strncpy.c: New file.
39017 * lib/unistr/u32-strncpy.c: New file.
39018 * lib/unistr/u-strncpy.h: New file.
39020 * modules/unistr/u8-strnlen: New file.
39021 * modules/unistr/u16-strnlen: New file.
39022 * modules/unistr/u32-strnlen: New file.
39023 * lib/unistr/u8-strnlen.c: New file.
39024 * lib/unistr/u16-strnlen.c: New file.
39025 * lib/unistr/u32-strnlen.c: New file.
39026 * lib/unistr/u-strnlen.h: New file.
39028 * modules/unistr/u8-strpbrk: New file.
39029 * modules/unistr/u16-strpbrk: New file.
39030 * modules/unistr/u32-strpbrk: New file.
39031 * lib/unistr/u8-strpbrk.c: New file.
39032 * lib/unistr/u16-strpbrk.c: New file.
39033 * lib/unistr/u32-strpbrk.c: New file.
39034 * lib/unistr/u-strpbrk.h: New file.
39036 * modules/unistr/u8-strrchr: New file.
39037 * modules/unistr/u16-strrchr: New file.
39038 * modules/unistr/u32-strrchr: New file.
39039 * lib/unistr/u8-strrchr.c: New file.
39040 * lib/unistr/u16-strrchr.c: New file.
39041 * lib/unistr/u32-strrchr.c: New file.
39043 * modules/unistr/u8-strspn: New file.
39044 * modules/unistr/u16-strspn: New file.
39045 * modules/unistr/u32-strspn: New file.
39046 * lib/unistr/u8-strspn.c: New file.
39047 * lib/unistr/u16-strspn.c: New file.
39048 * lib/unistr/u32-strspn.c: New file.
39049 * lib/unistr/u-strspn.h: New file.
39051 * modules/unistr/u8-strstr: New file.
39052 * modules/unistr/u16-strstr: New file.
39053 * modules/unistr/u32-strstr: New file.
39054 * lib/unistr/u8-strstr.c: New file.
39055 * lib/unistr/u16-strstr.c: New file.
39056 * lib/unistr/u32-strstr.c: New file.
39057 * lib/unistr/u-strstr.h: New file.
39059 * modules/unistr/u8-strtok: New file.
39060 * modules/unistr/u16-strtok: New file.
39061 * modules/unistr/u32-strtok: New file.
39062 * lib/unistr/u8-strtok.c: New file.
39063 * lib/unistr/u16-strtok.c: New file.
39064 * lib/unistr/u32-strtok.c: New file.
39065 * lib/unistr/u-strtok.h: New file.
39067 * modules/unistr/u8-uctomb: New file.
39068 * modules/unistr/u16-uctomb: New file.
39069 * modules/unistr/u32-uctomb: New file.
39070 * lib/unistr/u8-uctomb.c: New file.
39071 * lib/unistr/u16-uctomb.c: New file.
39072 * lib/unistr/u32-uctomb.c: New file.
39074 * MODULES.html.sh (Unicode string functions): Add the new modules.
39076 2007-01-08 Bruno Haible <bruno@clisp.org>
39078 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
39079 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
39082 2007-01-08 Karl Berry <karl@gnu.org>
39084 * doc/error.texi: mention that main() fns must set program_name
39085 when progname is used.
39087 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
39089 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
39090 WCTYPE_H is empty, for the benefit of builds from non-distclean
39091 directories. Problem reported by Eric Blake in
39092 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
39094 2007-01-08 Bruno Haible <bruno@clisp.org>
39096 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
39097 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
39098 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
39099 PROVIDE_CANONICALIZE_FILENAME_MODE.
39100 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
39102 2007-01-08 Bruno Haible <bruno@clisp.org>
39104 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
39105 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
39106 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
39107 * lib/fts.c: Likewise.
39108 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
39110 2006-12-25 Bruno Haible <bruno@clisp.org>
39112 * modules/utf8-ucs4-safe: New file.
39113 * lib/utf8-ucs4-safe.h: New file.
39114 * lib/unistr/utf8-ucs4-safe.c: New file.
39116 * modules/utf16-ucs4-safe: New file.
39117 * lib/utf16-ucs4-safe.h: New file.
39118 * lib/unistr/utf16-ucs4-safe.c: New file.
39120 * MODULES.html.sh (Unicode string functions): Add the new modules.
39122 2007-01-08 Bruno Haible <bruno@clisp.org>
39124 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
39125 (Depends-on): Add unitypes.
39126 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39127 (u8_mbtouc_aux): Move out to separate file.
39128 (u8_mbtouc): Use ucs4_t, uint8_t types.
39129 * lib/unistr/utf8-ucs4.c: New file.
39131 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
39132 (Depends-on): Add unitypes.
39133 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39134 (u16_mbtouc_aux): Move out to separate file.
39135 (u16_mbtouc): Use ucs4_t, uint16_t types.
39136 * lib/unistr/utf16-ucs4.c: New file.
39138 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
39139 (Depends-on): Add unitypes.
39140 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
39141 (u8_uctomb_aux): Move out to separate file.
39142 (u8_uctomb): Use ucs4_t, uint8_t types.
39143 * lib/unistr/ucs4-utf8.c: New file.
39145 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
39146 (Depends-on): Add unitypes.
39147 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
39148 (u16_uctomb_aux): Move out to separate file.
39149 (u16_uctomb): Use ucs4_t, uint16_t types.
39150 * lib/unistr/ucs4-utf16.c: New file.
39152 2006-12-25 Bruno Haible <bruno@clisp.org>
39154 * modules/unitypes: New file.
39155 * lib/unitypes.h: New file.
39156 * MODULES.html.sh (func_all_modules): New section "Unicode string
39157 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
39158 this section. Add unitypes.
39160 2007-01-08 Bruno Haible <bruno@clisp.org>
39162 Avoid variable names that conflict with those from libtool.
39163 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
39164 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
39165 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
39166 library_names_spec to acl_library_names_spec, hardcode_* to
39168 Reported by Ralf Wildenhues.
39170 2007-01-08 Bruno Haible <bruno@clisp.org>
39172 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
39174 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
39176 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
39177 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
39179 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
39181 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
39182 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
39183 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
39184 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
39186 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
39188 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
39189 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
39190 GC_USE_<algorithm>.
39191 * lib/gc-libgcrypt.c: Likewise.
39192 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
39193 * modules/gc-arctwo (configure.ac): Likewise.
39194 * modules/gc-des (configure.ac): Likewise.
39195 * modules/gc-hmac-md5 (configure.ac): Likewise.
39196 * modules/gc-hmac-sha1 (configure.ac): Likewise.
39197 * modules/gc-md2 (configure.ac): Likewise.
39198 * modules/gc-md4 (configure.ac): Likewise.
39199 * modules/gc-md5 (configure.ac): Likewise.
39200 * modules/gc-random (configure.ac): Likewise.
39201 * modules/gc-rijndael (configure.ac): Likewise.
39202 * modules/gc-sha1 (configure.ac): Likewise.
39204 2007-01-08 Bruno Haible <bruno@clisp.org>
39206 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
39208 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
39210 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
39212 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
39213 * modules/fcntl-safer (configure.ac): Likewise.
39214 * modules/fopen-safer (configure.ac): Likewise.
39215 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
39216 GNULIB_FWRITEERROR macro definition.
39218 2007-01-08 Bruno Haible <bruno@clisp.org>
39220 * m4/gnulib-common.m4: New file.
39221 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
39222 (func_get_filelist): Add m4/gnulib-common.m4.
39224 2007-01-08 Bruno Haible <bruno@clisp.org>
39226 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
39229 2007-01-08 Jim Meyering <jim@meyering.net>
39231 Use a more robust test for a "can't happen" condition.
39232 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
39233 narrowed the st_size value. Presuming the "can't happen" condition
39234 is true, that narrowing could conceivably convert an invalid st_size
39235 value into a valid one. Instead, use a change based on Matthew
39236 Woehlke's original patch.
39238 Slight readability improvement: use an assert-like macro
39239 in place of literal "abort ()" uses.
39240 * lib/fts.c (fts_assert): Define.
39241 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
39242 Use this macro instead of a bare 'abort'.
39244 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
39246 Don't worry about using IRIX 5.3's wctype.h broken definitions;
39247 simply work around them.
39248 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
39249 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
39250 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
39252 Don't bother to define as macros, since the standard doesn't require it.
39253 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
39254 longer worry about IRIX 5.3.
39255 (HAVE_WCTYPE_CTMP_BUG): Remove.
39257 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
39259 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
39260 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
39261 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
39262 Problems reported by Georg Schwarz for IRIX 5.3.
39264 * gnulib-tool (autoconf_minversion): Take the maximum version number
39265 found, not the minimum. Problem reported by James Youngman.
39267 2007-01-03 Karl Berry <karl@gnu.org>
39269 * doc/error.texi: new file, explaining interaction with progname.
39270 * doc/gnulib.texi: include it. Update copyright.
39272 2007-01-03 Simon Josefsson <simon@josefsson.org>
39274 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
39275 AC_CANONICAL_HOST, to improve autobuild outputs.
39277 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
39278 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39280 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
39281 sockets, server sockets, and other file descriptors. Count errors
39282 to compute the return value. Reorder the code a bit to be easier
39283 to follow. Don't set event bits that were not requested (except
39284 POLLERR and POLLHUP).
39286 2007-01-01 Bruno Haible <bruno@clisp.org>
39288 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
39290 2007-01-03 Jim Meyering <jim@meyering.net>
39292 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
39294 2007-01-02 Bruno Haible <bruno@clisp.org>
39296 * modules/settime (Include): Require timespec.h.
39297 * modules/nanosleep (Include): Likewise.
39299 2007-01-01 Bruno Haible <bruno@clisp.org>
39301 * gnulib-tool (func_emit_copyright_notice): Bump year.
39302 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
39304 2007-01-01 Bruno Haible <bruno@clisp.org>
39306 Improve support for OpenBSD.
39307 * build-aux/config.rpath (libname_spec): Export.
39308 (library_names_spec): New variable. Export.
39309 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
39310 library_names_spec from the config.rpath output. Locate shared library
39311 through the name pattern in library_names_spec.
39313 2007-01-01 Eric Blake <ebb9@byu.net>
39315 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
39317 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
39319 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
39320 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
39321 assume the C locale, and avoid an "eval" that could cause trouble.
39322 Problem with SORT reported by Bob Proulx.
39324 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
39325 Define. Trivial patch from Henning Nielsen Lund, originally
39326 sent to bug-grep@gnu.org today.
39328 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
39330 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
39331 struct stat. Problem reported by Henning Nielsen Lund.
39332 * lib/acl.c: Include acl.h first, to check interface. Don't
39333 bother to include sys/types.h and sys/stat.h again.
39335 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
39337 Import the following change from libc; problem reported by
39340 2005-10-13 Ulrich Drepper <drepper@redhat.com>
39343 * lib/argp.h: Remove __NTH for __argp_usage inline function.
39345 2006-12-28 Jim Meyering <jim@meyering.net>
39347 * build-aux/announce-gen: Do not assume that the package
39348 builds any of tar.gz, tar.bz2, and .xdelta files.
39349 Suggestion from Simon Josefsson.
39351 2006-12-28 Simon Josefsson <simon@josefsson.org>
39353 * modules/announce-gen: New file.
39355 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
39357 * lib/mbchar.h: Just include <wctype.h>; the wctype module
39358 handles its gotchas now.
39359 * lib/mbswidth.c: Likewise.
39360 * lib/wcwidth.h: Likewise.
39361 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
39362 and iswcntrl; the wctype module does this stuff now.
39363 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39364 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39365 * modules/mbchar (Depends-on): Add wctype.
39366 * modules/mbswidth (Depends-on): Likewise.
39367 * modules/wcwidth (Depends-on): Likewise.
39369 2006-12-27 Eric Blake <ebb9@byu.net>
39371 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
39372 module uses more than what <wctype.h> is required to provide.
39374 2006-12-26 Eric Blake <ebb9@byu.net>
39376 * gnulib-tool (sed_extract_prog): Avoid space-tab.
39378 2006-12-26 Eric Blake <ebb9@byu.net>
39380 * modules/absolute-header: New module.
39381 * modules/fcntl (Depends-on): Depend on it.
39382 * modules/inttypes (Depends-on): Likewise.
39383 * modules/stdint (Depends-on): Likewise.
39384 * modules/sys_stat (Depends-on): Likewise.
39385 * modules/wctype (Depends-on): Likewise.
39386 * MODULES.html.sh (Support for building libraries and
39387 executables): Document it.
39389 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
39391 * gnulib-tool (SED): Remove, undoing previous change.
39392 The problem was that it broke coreutils on Solaris, because
39393 "sed --posix" leaked into a makefile.
39394 (sed): New alias, if 'alias' and GNU sed.
39396 2006-12-24 Jim Meyering <jim@meyering.net>
39398 Work around an fchownat bug in glibc-2.4:
39399 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
39400 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
39401 in spite of the -P option.
39402 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
39404 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
39405 * modules/openat (Files): Add lib/fchownat.c.
39406 * lib/openat.c (fchownat): Don't define here. Move to...
39407 * lib/fchownat.c: ...this new file.
39409 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
39411 Fix bug reported by Bruno Haible in
39412 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
39413 where quotearg.c didn't compile on Mac OS X 10.2 because it
39414 lacks <wchar.h> and wint_t.
39415 * lib/wctype_.h (__wctype_wint_t): New type.
39416 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
39417 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
39418 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
39419 Arg is now of type __wctype_wint_t, not wint_t.
39420 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
39421 substitute HAVE_WINT_T.
39422 * modules/wctype (Files): Add m4/wint_t.m4.
39423 (wctype.h): Substitute HAVE_WINT_T.
39425 2006-12-23 Bruno Haible <bruno@clisp.org>
39427 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
39429 2006-12-23 Bruno Haible <bruno@clisp.org>
39431 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
39433 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
39436 2006-12-22 Bruno Haible <bruno@clisp.org>
39438 * lib/copy-file.c: Include acl.h.
39439 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
39440 Close the file descriptors only after being done with copy_acl.
39441 * modules/copy-file (Depends-on): Add acl.
39443 2006-12-22 Bruno Haible <bruno@clisp.org>
39445 * gnulib-tool (SED): New variable.
39446 Use $SED instead of sed everywhere.
39448 2006-12-22 Bruno Haible <bruno@clisp.org>
39450 * modules/no-c++: New file.
39451 * m4/no-c++.m4: New file.
39452 * MODULES.html.sh (Support for building libraries and executables):
39455 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
39457 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
39458 Include <limits.h>, and use its INT_MAX to rewrite the
39459 j loop so that it does not overflow 'int'. Problem reported by
39461 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
39462 Play it safe by shifting left by 1 rather than multiplying by 2,
39463 as GCC is less likely to optimize this away when the value
39464 is signed (when it assumes overflow leads to undefined behavior).
39465 Also, don't assume time_t uses two's complement.
39467 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
39469 * MODULES.html.sh: New module wctype.
39470 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
39471 * lib/fnmatch.c: Don't bother to include <wchar.h> before
39472 <wctype.h>, since the new wctype module should fix this.
39473 * lib/quotearg.c: Include <wctype.h> unconditionally, since
39474 the wctype module should arrange for it.
39475 * lib/regex_internal.h: Likewise.
39476 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
39477 since the wctype module should handle this now.
39478 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
39479 * modules/fnmatch (Depends-on): Add wctype.
39480 * modules/quotearg (Depends-on): Likewise.
39481 * modules/regex (Depends-on): Likewise.
39483 2006-12-19 Bruno Haible <bruno@clisp.org>
39485 * lib/strdup.h [C++]: Wrap definitions in extern "C".
39486 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
39488 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39490 * modules/savewd (Depends-on): Fix dependency on fcntl.
39492 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
39494 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
39495 conforms to C99, rather than relying on the user's environment
39496 setting of STDINT_H.
39498 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
39499 and Eric Blake <ebb9@byu.net>
39501 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
39502 This is more consistent with the other defines here.
39503 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
39504 Port to z/OS. Problem reported by Paul Gilmartin.
39505 Change local vars to use gl_ prefix rather than ac_.
39506 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
39507 with other defines.
39508 * modules/double-slash-root: New module.
39509 * modules/dirname (Files): Remove m4/double-slash-root.m4.
39510 (Depends-on): Add double-slash-root.
39511 * MODULES.html.sh (File system functions): Mention new module.
39513 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
39515 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
39516 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
39517 This is for the benefit of gzip, which doesn't do i18n.
39519 2006-12-12 Jim Meyering <jim@meyering.net>
39521 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
39522 Reported by Andreas Schwab <schwab@suse.de>.
39524 2006-12-12 Bruno Haible <bruno@clisp.org>
39526 Merge these changes.
39527 2006-09-05 Bruno Haible <bruno@clisp.org>
39528 * lib/iconvme.c (iconv_string): No need to save and restore errno when
39529 iconv_alloc succeeded.
39530 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
39531 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
39532 test for " && dest " at the end - dest is always != NULL there. Call
39533 iconv with 4xNULL arguments initially, to reset the state. Call iconv
39534 with 2xNULL arguments, also to flush the state storage. Handle the
39535 IRIX iconv behaviour. Realloc the final result, to throw away unused
39538 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
39540 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
39541 and fchmodat unconditionally, since glibc 2.4 has them.
39542 Problem reported by Arkadiusz Miskiewicz.
39544 2006-12-10 Bruno Haible <bruno@clisp.org>
39546 * gnulib-tool (func_import): Show the include files only for those
39547 modules that are copied and specified.
39548 Reported by Karl Berry.
39550 2006-12-08 Jim Meyering <jim@meyering.net>
39552 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
39553 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
39555 * build-aux/announce-gen: Add two new options, both optional:
39556 --bootstrap-tools=TOOL_LIST
39557 a comma-separated list of tools, e.g.,
39558 autoconf,automake,bison,gnulib
39559 --gnulib-snapshot-date=DATE
39560 if gnulib is in the bootstrap tool list,
39561 then report this as the snapshot date.
39562 If not specified, use the current date/time.
39563 If you specify a date here, be sure it's UTC.
39565 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39567 * tests/test-argp-2.sh: Fix test to match actual output.
39568 (func_compare): Fix sed script to be portable.
39570 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
39572 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
39573 workaround for this case. It is not autoconfigured now; offhand
39574 it's hard to see how to autoconfigure it.
39576 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
39578 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
39579 a directory that is about to be chowned. Such a directory's
39580 initial file permissions should permit the owner only and this
39581 should not be changed until after the chown, since the group and
39582 other bits would be incorrect if they granted permission before
39585 Fix porting problem for iswctype reported by Georg Schwarz in:
39586 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
39587 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
39588 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
39589 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
39590 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39592 2006-12-03 Jim Meyering <jim@meyering.net>
39594 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
39595 p->fts_statp may not yet be defined.
39596 (fts_read): Instead, set it in the caller, once p->fts_statp is
39597 sure to be defined, and corresponds to a top-level directory.
39598 This bug made du -x fail. Here's the coreutils test case:
39599 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
39600 Reported by Mike Frysinger.
39602 2006-12-01 Jim Meyering <jim@meyering.net>
39604 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
39605 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
39606 Reported by Simon Josefsson.
39608 2006-11-30 Jim Meyering <jim@meyering.net>
39610 * m4/warning.m4: Use the all-permissive copyright notice
39611 recommended by RMS (rather than LGPL).
39612 * m4/vararrays.m4: Likewise.
39613 * m4/flexmember.m4: Likewise.
39615 2006-11-29 Bruno Haible <bruno@clisp.org>
39617 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
39618 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
39620 Reported by Simon Josefsson <simon@josefsson.org>.
39622 2006-11-28 James Youngman <jay@gnu.org>
39624 * README: Advise users that they might find the bug-gnulib@gnu.org
39625 and autotools-announce@gnu.org mailing lists useful.
39627 2006-11-28 Bruno Haible <bruno@clisp.org>
39629 * m4/ptrdiff_max.m4: Remove file.
39631 2006-11-21 Bruno Haible <bruno@clisp.org>
39633 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
39635 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39636 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
39638 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39639 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
39641 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39643 2006-11-28 Jim Meyering <jim@meyering.net>
39645 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
39646 warning from "gcc -Wshadow" about shadowing the builtin.
39648 2006-11-27 Bruno Haible <bruno@clisp.org>
39650 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
39652 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39654 2006-11-27 Bruno Haible <bruno@clisp.org>
39655 Paul Eggert <eggert@cs.ucla.edu>
39657 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
39659 2006-11-26 Bruno Haible <bruno@clisp.org>
39661 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
39662 noinst_LTLIBRARIES.
39664 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
39665 Bruno Haible <bruno@clisp.org>
39667 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
39668 if compiling with "gcc -ansi".
39670 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
39672 Fix some incompatibilities with gcc -ansi -pedantic.
39673 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
39674 if compiling pedantically with GCC, unless it's C99 or later.
39675 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
39676 it mishandles gcc -ansi -pedantic as well.
39677 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
39679 * lib/regexec.c (check_node_accept_bytes): Don't use auto
39680 initializers for struct if -pedantic, unless it's C99 or later.
39682 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
39684 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
39685 Don't close an fd more than once. Identical atimes indicate
39686 success, not failure.
39688 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
39690 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
39692 2006-11-23 Jim Meyering <jim@meyering.net>
39694 * build-aux/announce-gen: New file. From coreutils.
39696 2006-11-22 Jim Meyering <jim@meyering.net>
39698 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
39699 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
39700 (fts_read): Use a temporary to narrow the overused st_size member
39701 before using it in a switch statement. Reported by Matthew Woehlke.
39703 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
39704 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39706 2006-11-20 Bruno Haible <bruno@clisp.org>
39708 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
39709 changequote instead of pairs of brackets.
39710 Reported by Andreas Schwab <schwab@suse.de>.
39712 2006-11-21 Jim Meyering <jim@meyering.net>
39714 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
39715 so as to remain compatible with older compilers.
39716 Patch from Michael Deutschmann.
39718 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
39720 * MODULES.html.sh (File system functions): Add openat.
39722 * lib/openat.h (rpl_fstatat): New macro, if
39723 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
39724 (fstatat): Define to rpl_fstatat under the same conditions,
39725 unless COMPILING_FSTATAT.
39726 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
39727 seems to have the bug.
39728 * lib/fstatat.c: New file.
39729 * modules/openat (Files): Add it.
39731 2006-11-20 Bruno Haible <bruno@clisp.org>
39733 * Makefile: New file.
39735 2006-11-20 Jim Meyering <jim@meyering.net>
39737 The beginnings of syntax-related checks for gnulib.
39738 * lib/Makefile: New file.
39739 * lib/t-idcache: New script. Ensure that the two halves of
39740 idcache.c stay in sync.
39742 * lib/idcache.c: Adjust comments in user- and group- portions to
39743 be more accurate, and to be consistent with one another.
39745 2006-11-20 Jim Meyering <jim@meyering.net>
39747 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
39748 continue using the flexible array member (thus, this module performs
39749 half as many malloc calls), with the addition that...
39750 (getgroup, getuser): Consistently record a non-match via an empty
39751 "name" string, and map an empty string match to a NULL return value.
39752 * modules/idcache (Depends-on): Re-add flexmember.
39754 * lib/idcache.c (getuser): Remove all uses of the register keyword.
39755 (getuidbyname, getgroup, getgidbyname): Likewise.
39757 Use cleaner syntax: NULL rather than 0.
39758 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
39760 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
39762 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
39763 It mishandled the case where the group was missing.
39764 Problem reported by Greg Schafer.
39765 * modules/idcache: Likewise.
39767 2006-11-18 Jim Meyering <jim@meyering.net>
39769 * check-module (%exempt_header): Add exception for some
39770 conditionally-included headers.
39772 * modules/i-ring (Depends-on): Add verify.
39773 (License): Change to LGPL.
39775 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
39777 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
39778 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
39779 and inttostr.h. Use snprintf rather than uinttostr, so that
39780 LGPLed code doesn't depend on GPLed.
39782 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
39784 * modules/inline (License): Change from GPL to LGPL.
39786 2006-11-17 Jim Meyering <jim@meyering.net>
39788 * modules/d-type (License): Switch to LGPL.
39790 2006-11-15 Bruno Haible <bruno@clisp.org>
39792 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
39794 2006-11-15 Eric Blake <ebb9@byu.net>
39796 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
39797 the module dependency.
39799 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39800 Bruno Haible <bruno@clisp.org>
39802 * gnulib-tool (func_create_testdir): Add license consistency check.
39804 2006-11-15 Eric Blake <ebb9@byu.net>
39806 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
39807 random "(cached)" in configure output.
39809 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39811 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
39812 test for conforming inttypes.h is both announced and cached.
39814 * MODULES.html.sh (seen_modules, seen_files): New variables.
39815 (func_module): Rewrite to use a few less gnulib-tool and sed
39816 invocations. Avoid a couple of quadratic algorithms for ...
39817 (missed_modules, missed_files): ... these, with ...
39818 (func_append, func_tmpdir): ... these new functions, from
39819 gnulib-tool. Analogously, install traps for cleanup.
39821 * tests/test-gc.c (main): Remove unused variables.
39822 * tests/test-read-file.c: Include stdlib.h, for 'free'.
39824 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
39826 * modules/inttostr (License): Change to LGPL.
39828 2006-11-14 Eric Blake <ebb9@byu.net>
39830 * modules/tempname (License): Change to LGPL.
39832 2006-11-14 Eric Blake <ebb9@byu.net>
39834 * doc/functions.texi (Function Portability): *printf functions on
39835 Cygwin now understand all POSIX size specifiers.
39837 2006-11-14 Bruno Haible <bruno@clisp.org>
39839 * modules/c-ctype (License): Change to LGPL.
39841 2006-11-12 Bruno Haible <bruno@clisp.org>
39843 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
39844 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
39845 for GNOME libraries, for which the include files are installed in
39846 subdirectories of $prefix/include.
39848 2006-11-12 Bruno Haible <bruno@clisp.org>
39850 * m4/lib-link.m4: Require at least autoconf-2.54.
39851 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
39852 name to underscores for the --with option.
39854 2006-11-13 Bruno Haible <bruno@clisp.org>
39856 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
39857 the tests directory.
39858 Reported by Ralf Wildenhues.
39860 2006-11-13 Bruno Haible <bruno@clisp.org>
39862 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
39863 (func_emit_initmacro_end): Undo the override here.
39864 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
39865 Works around the famous automake error in coreutils.
39867 2006-11-13 Eric Blake <ebb9@byu.net>
39869 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
39870 element, not its node.
39872 2006-11-12 Bruno Haible <bruno@clisp.org>
39874 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
39875 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
39877 2006-11-12 Bruno Haible <bruno@clisp.org>
39879 * gnulib-tool: New option --local-symlink.
39880 (func_usage): Document it.
39881 (lsymbolic): New variable.
39882 (func_import, func_create_testdir): If --symlink was not specified,
39883 test whether --local-symlink was specified and the file comes from
39884 the local_gnulib_dir.
39886 2006-11-12 Bruno Haible <bruno@clisp.org>
39888 * gnulib-tool (func_ln): New function.
39889 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
39891 2006-11-12 Bruno Haible <bruno@clisp.org>
39893 Finish support for source files in subdirectories.
39894 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
39895 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
39897 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
39899 2006-11-12 Bruno Haible <bruno@clisp.org>
39901 * gnulib-tool (func_get_automake_snippet): Synthesize also an
39902 EXTRA_lib_SOURCES augmentation.
39903 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
39905 2006-11-12 Jim Meyering <jim@meyering.net>
39907 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
39908 file descriptors. This also averts a failure on systems with
39909 native openat support when a traversed directory lacks "x" access.
39910 * lib/fts_.h: Include "i-ring.h"
39911 (struct FTS) [fts_fd_ring]: New member.
39912 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
39913 (FCHDIR): Add parentheses.
39914 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
39915 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
39916 When descending, rather than simply closing the previous
39917 fts_cwd_fd value, push that file descriptor onto the ring.
39918 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
39919 (fts_open): Initialize the new fd_ring member.
39920 (fts_close): Clear the ring.
39921 (fts_safe_changedir): When possible, use our new fd_ring to skip
39922 the diropen and fstat and dev/ino comparison that would normally
39923 accompany a virtual `chdir ("..")'.
39925 * modules/fts (Depends-on): Add i-ring.
39926 * modules/i-ring: New module.
39927 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
39928 * m4/i-ring.m4: New file.
39930 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39932 * gnulib-tool (func_create_testdir): Fix replacement of
39933 `build-aux' in configure.ac. Run autotools in gltests
39935 (func_create_testdir, func_create_megatestdir, test): There is
39936 no need for '--force' in most autotool invocations in a new
39937 tree. Actually fail the whole test if any of the tools, or the
39938 configure or make stages fail.
39940 Sync from Automake.
39941 * build-aux/gnupload: Revert last change. Add pointer to upload
39942 instructions of the GNU Maintenance Instructions.
39943 Suggestion by Karl Berry.
39945 2006-11-10 Jim Meyering <jim@meyering.net>
39947 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
39949 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
39951 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
39952 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
39953 (bind_textdomain_codeset) [! ENABLE_NLS]:
39954 Evaluate all the arguments. That way, callers get compatible behavior
39955 if the arguments have side effects. Also, it avoids some GCC
39956 diagnostics in some cases; Joel E. Denny reported problems when Bison
39957 was configured with --enable-gcc-warnigs.
39959 2006-11-10 Jim Meyering <jim@meyering.net>
39961 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
39962 relevant options in CFLAGS (like -O, -fno-inline) are taken into
39965 2006-11-10 Jim Meyering <jim@meyering.net>
39967 * modules/inline: New file/module.
39968 * modules/xalloc (Files): Remove m4/inline.m4.
39969 (Depends-on): Add inline, instead.
39970 * modules/oset: Likewise.
39971 * modules/list: Likewise.
39973 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
39975 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
39976 Problem reported by Matthew Woehlke.
39978 2006-11-09 Bruno Haible <bruno@clisp.org>
39980 * lib/tempname.c (gen_tempname): Remove variant that invokes
39982 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
39985 2006-11-08 Bruno Haible <bruno@clisp.org>
39987 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
39988 to 'yes' instead of 'cross-compiling'.
39990 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
39992 * lib/quotearg.h (quotearg_free): New decl.
39993 * lib/quotearg.c (quotearg_free): New function.
39994 (slot0, nslots, slotvec0, slotvec):
39995 Now file-scope so that quotearg_free can get at them.
39997 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39999 Sync from Automake.
40000 * build-aux/gnupload: Add missing 'gnu' to example URL.
40001 Report by Karl Berry.
40003 2006-11-08 Bruno Haible <bruno@clisp.org>
40005 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
40006 Suggested by Paul Eggert.
40008 2006-11-08 Jim Meyering <jim@meyering.net>
40010 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
40011 It's already included if !_LIBC.
40012 (fts_safe_changedir): Add a comment.
40014 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
40016 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
40017 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
40020 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
40021 definitions up, to avoid colliding with change below.
40022 (static_inline) [HAVE_INLINE]: New macro.
40023 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
40024 Provide extern decls when !HAVE_INLINE. Do not define unless
40025 static_inline is defined, either by us or by xmalloc.c. Use
40026 static_inline rather than static inline.
40027 (XCALLOC): Optimize sizeof(T) = 1 case.
40028 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
40030 2006-11-07 Bruno Haible <bruno@clisp.org>
40032 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
40033 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
40035 * modules/xalloc (Files): Add m4/inline.m4.
40037 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40039 * README: Fix typo.
40040 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
40041 (Miscellanous Notes): ...from this.
40043 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
40045 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
40046 Mention that offsetof should be used instead of sizeof.
40049 2006-11-07 Bruno Haible <bruno@clisp.org>
40051 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
40053 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
40055 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40056 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
40057 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40058 (gl_tree_add_before, gl_tree_add_after):
40059 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
40060 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
40061 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
40062 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
40063 (gl_linked_add_after, gl_linked_add_at): Likewise.
40064 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
40065 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40066 (gl_tree_add_before, gl_tree_add_after): Likewise.
40067 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
40068 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
40069 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
40071 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40073 * lib/gl_oset.h: Use C comment style, not C++ comment style.
40075 2006-11-06 Bruno Haible <bruno@clisp.org>
40077 * m4/inline.m4: New file.
40078 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
40079 * modules/list (Files): Add m4/inline.m4.
40080 * modules/oset (Files): Likewise.
40082 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
40084 * lib/idcache.c: Include <stddef.h>, for offsetof.
40085 (struct userid.name): Change from char * to a flexible array member.
40087 * modules/idcache (Depends-on): Add flexmember.
40089 * MODULES.html.sh (Core language properties): New module flexmember.
40090 * modules/flexmember, m4/flexmember.m4: New files.
40092 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
40093 inline functions that are identical with the old xnmalloc_inline,
40094 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
40095 that we can avoid some unnecessary integer multiplications and
40096 divisions in the common case where the element size is known at
40098 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
40100 (xnboundedmalloc): Remove.
40101 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
40102 arguments, for consistency with rest of this header.
40103 (xcharalloc): Rewrite using XNMALLOC.
40104 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
40105 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
40106 versions have been moved to lib/xalloc.h and renamed to be the
40107 non-*_inline versions.
40108 (xmalloc, xrealloc): Implement without reference to the xnmalloc
40109 and xnrealloc functions, since those functions are now inline and
40111 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
40112 renaming described above.
40113 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
40114 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
40115 captures the dependency in AC_C_INLINE.
40117 New module canonicalize-lgpl, proposed by Charles Wilson in
40118 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
40119 with a few small changes afterwards.
40120 * MODULES.html.sh (File system functions): New module
40122 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
40123 and canonicalize_file_name.
40124 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
40125 * modules/canonicalize-lgpl: New files.
40127 2006-11-05 Bruno Haible <bruno@clisp.org>
40129 * gnulib-tool (func_import, func_create_testdir): Create directories
40130 also for files in subdirectories of lib/.
40132 2006-11-05 Bruno Haible <bruno@clisp.org>
40134 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
40137 2006-11-03 Bruno Haible <bruno@clisp.org>
40139 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40140 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
40141 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
40142 (xnboundedmalloc): New inline function.
40143 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
40144 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
40146 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
40148 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
40149 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
40150 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
40152 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40153 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
40155 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
40156 gl_tree_add_after): Use XMALLOC instead of xmalloc.
40157 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
40159 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40160 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
40161 gl_tree_add_after): Use XMALLOC instead of xmalloc.
40162 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
40163 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
40164 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
40165 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
40167 2006-11-03 Bruno Haible <bruno@clisp.org>
40169 * lib/c-ctype.h [C++]: Define functions without name mangling.
40170 * lib/fwriteerror.h [C++]: Likewise.
40171 * lib/gcd.h [C++]: Likewise.
40172 * lib/linebreak.h [C++]: Likewise.
40174 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
40176 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
40177 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
40178 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
40179 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
40180 Check for functions and headers just once.
40181 Check for declaration of canonicalize_file_name.
40182 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
40184 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
40186 * gnulib-tool (func_import): Fix typo in actioncmd.
40188 2006-11-02 Bruno Haible <bruno@clisp.org>
40190 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
40191 newline sequence in the Makefile.am snippet as a space, like "make"
40193 Reported by Roger Persson <perrog@gmail.com>.
40195 2006-11-01 Bruno Haible <bruno@clisp.org>
40197 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
40198 already declared in <string.h>.
40199 * lib/strcase.h (strncasecmp): Don't declare it if yes.
40201 2006-11-01 Bruno Haible <bruno@clisp.org>
40203 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
40204 * lib/strcase.h: Include <string.h>.
40205 (strcasecmp): Define to rpl_strcasecmp here.
40207 2006-11-01 Bruno Haible <bruno@clisp.org>
40209 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
40211 2006-11-01 Eric Blake <ebb9@byu.net>
40213 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
40215 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
40217 2006-10-29 Bruno Haible <bruno@clisp.org>
40219 Make it compile in C++ mode.
40220 * lib/full-write.c (full_rw): Add a cast.
40222 2006-11-01 Bruno Haible <bruno@clisp.org>
40224 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
40225 be POSIX compliant.
40226 Reported by Roger Persson <perrog@gmail.com>.
40228 2006-11-01 Eric Blake <ebb9@byu.net>
40230 * lib/getopt_.h: Fix comments.
40232 2006-10-31 Eric Blake <ebb9@byu.net>
40234 * modules/tmpdir (Depends-on): Add sys_stat.
40235 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
40236 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
40237 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
40238 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
40241 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
40243 Avoid some C++ diagnostics reported by Bruno Haible.
40244 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
40246 (quotearg_alloc): Use xcharalloc rather than xmalloc.
40247 (struct slotvec): Move to top level.
40248 (quotearg_n_options): Rewrite to avoid xmalloc.
40249 * lib/xalloc.h (xcharalloc): New function.
40250 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
40251 [defined __cplusplus]: Add function template that provides result
40252 type propagation. This part of the change is from Bruno Haible.
40254 2006-10-29 Bruno Haible <bruno@clisp.org>
40256 Make it compile in C++ mode.
40257 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
40258 * lib/strnlen1.c (strnlen1): Cast memchr result.
40259 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
40260 * lib/clean-temp.c (string_equals, string_hash): Add casts.
40261 (create_temp_dir): Rename local variable 'template'.
40262 (compile_csharp_using_sscli): Add cast.
40263 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
40264 * lib/findprog.c (find_in_path): Likewise.
40265 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
40266 * lib/wait-process.c (register_slave_subprocess): Likewise.
40268 2006-10-22 Bruno Haible <bruno@clisp.org>
40270 * modules/tsearch: New file.
40271 * lib/tsearch.h: New file.
40272 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
40273 * m4/tsearch.m4: New file.
40274 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
40276 2006-10-29 Eric Blake <ebb9@byu.net>
40278 * lib/arcfour.c: Assume config.h.
40279 * lib/arctwo.c: Likewise.
40280 * lib/base64.c: Likewise.
40281 * lib/check-version.c: Likewise.
40282 * lib/crc.c: Likewise.
40283 * lib/des.c: Likewise.
40284 * lib/gc-gnulib.c: Likewise.
40285 * lib/gc-libgcrypt.c: Likewise.
40286 * lib/gc-pbkdf2-sha1.c: Likewise.
40287 * lib/getaddrinfo.c: Likewise.
40288 * lib/getdelim.c: Likewise.
40289 * lib/getline.c: Likewise.
40290 * lib/hmac-md5.c: Likewise.
40291 * lib/hmac-sha1.c: Likewise.
40292 * lib/iconvme.c: Likewise.
40293 * lib/md2.c: Likewise.
40294 * lib/md4.c: Likewise.
40295 * lib/memxor.c: Likewise.
40296 * lib/read-file.c: Likewise.
40297 * lib/readline.c: Likewise.
40298 * lib/rijndael-alg-fst.c: Likewise.
40299 * lib/rijndael-api-fst.c: Likewise.
40300 * lib/xgetdomainname.c: Likewise.
40302 2006-10-28 Eric Blake <ebb9@byu.net>
40304 * lib/xstrndup.c: Assume config.h.
40306 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
40308 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
40309 stat-macros.h is now for our own macros, whereas stat_h is for
40310 macros in the <sys/stat.h> name space.
40311 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
40312 (STAT_MACROS_H): Remove.
40313 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
40314 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
40315 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
40316 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
40317 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
40318 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
40319 Move these macros to ...
40320 * lib/stat_.h: here. Don't include stat-macros.h.
40321 * lib/canonicalize.c: Don't include stat-macros.h.
40322 * lib/chown.c: Likewise.
40323 * lib/euidaccess.c: Likewise.
40324 * lib/file-type.c: Likewise.
40325 * lib/filemode.c: Likewise.
40326 * lib/glob.c: Likewise.
40327 * lib/isapipe.c: Likewise.
40328 * lib/lchown.c: Likewise.
40329 * lib/lstat.c: Likewise.
40330 * lib/mkdir-p.c: Likewise.
40331 * lib/rmdir.c: Likewise.
40332 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
40333 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
40334 unless mkdir isn't declared, to speed up 'configure'.
40335 Always create sys/stat.h, since it's unlikely any real sys/stat.h
40336 would define all the S_* symbols.
40337 * modules/canonicalize (Depends-on):
40338 Depend on sys_stat, not stat-macros.
40339 * modules/chown: Likewise.
40340 * modules/euidaccess: Likewise.
40341 * modules/filemode: Likewise.
40342 * modules/file-type: Likewise.
40343 * modules/glob: Likewise.
40344 * modules/isapipe: Likewise.
40345 * modules/lchown: Likewise.
40346 * modules/lstat: Likewise.
40347 * modules/mkancesdirs: Likewise.
40348 * modules/rmdir: Likewise.
40349 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
40350 * modules/modechange: Likewise.
40351 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
40352 (configure.ac): Remove gl_STAT_MACROS.
40353 * modules/sys_stat (Depends-on): Remove stat-macros.
40355 2006-10-27 Bruno Haible <bruno@clisp.org>
40357 * m4/signed.m4: Remove file.
40358 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
40360 * modules/vasnprintf (Files): Remove m4/signed.m4.
40362 2006-10-27 Bruno Haible <bruno@clisp.org>
40364 Update to GNU gettext 0.16.
40365 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
40366 m4/inttypes-h.m4, m4/signed.m4.
40367 * m4/gettext.m4: Update to GNU gettext 0.16.
40368 * m4/intl.m4: New file, from GNU gettext.
40369 * m4/intldir.m4: New file, from GNU gettext.
40370 * config/srclist.txt: Update
40372 2006-10-27 Eric Blake <ebb9@byu.net>
40374 * MODULES.html.sh: Document tempname.
40375 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
40377 (Files): Move lib/tempname.c...
40378 * modules/tempname: ...to this new module.
40379 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
40380 (gl_PREREQ_TEMPNAME): Move...
40381 * m4/tempname.m4: ...to this new file.
40382 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
40383 * modules/sys_stat (Depends-on): Add stat-macros.
40384 * lib/stat_.h (includes): Pick up stat macros.
40385 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
40386 if stat macros are broken.
40387 * lib/tempname.c (includes): No need to include "stat-macros.h".
40388 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
40389 (direxists, __path_search) [!_LIBC]: Don't compile these in
40390 gnulib; the tmpdir module covers that.
40391 * lib/tempname.h: New file.
40393 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
40395 * COPYING: Explain how gnulib-tool converts licence headers.
40396 Almost all wording by Eric Blake.
40398 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
40400 * lib/mbchar.h (is_basic_table): Make read-only.
40401 * lib/mbchar.c (is_basic_table): Likewise.
40402 Reported by John Darrington.
40404 2006-10-25 Bruno Haible <bruno@clisp.org>
40406 * lib/progname.h (set_program_name): Undefine before defining.
40408 2006-10-25 Bruno Haible <bruno@clisp.org>
40410 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
40411 false for non-gcc C++ compilers.
40412 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40414 2006-10-24 Bruno Haible <bruno@clisp.org>
40416 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
40417 iconv implementations like Irix iconv.
40419 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
40421 * modules/vararrays: New file.
40422 * m4/vararrays.m4: New file, taken from diffutils.
40423 * MODULES.html.sh: New module vararrays.
40425 2006-10-24 Karl Berry <karl@gnu.org>
40427 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
40428 Don't call GNU Unix.
40430 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40432 * users.txt: Add Libtool.
40436 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
40438 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
40439 to gnulib's policy of including config.h unconditionally.
40441 2006-10-24 Bruno Haible <bruno@clisp.org>
40443 * modules/wcwidth (Files): Add m4/wint_t.m4.
40444 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
40445 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
40447 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
40449 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
40450 to pacify GCC with some -W flags enabled. Problem reported by
40453 2006-10-24 Jim Meyering <jim@meyering.net>
40455 * MODULES.html.sh: Remove uinttostr. It's not a module.
40456 Reported by Karl Berry.
40458 2006-10-23 Bruno Haible <bruno@clisp.org>
40460 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
40462 2006-10-24 Bruno Haible <bruno@clisp.org>
40464 * lib/gl_list.h: Use C comment style, not C++ comment style.
40466 2006-10-23 Eric Blake <ebb9@byu.net>
40468 * lib/getaddrinfo.c (includes): Add missing include.
40470 2006-10-23 Bruno Haible <bruno@clisp.org>
40471 Paul Eggert <eggert@cs.ucla.edu>
40473 Ability to rename obstack_free.
40474 * lib/obstack.h (__obstack_free): New macro. Declare instead of
40476 (obstack_free): Invoke the __obstack_free macro.
40477 * lib/obstack.c (obstack_free): Use __obstack_free macro.
40479 2006-10-23 Bruno Haible <bruno@clisp.org>
40480 Paul Eggert <eggert@cs.ucla.edu>
40482 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
40483 __argc, __argv from the declaration. (They are defined as macros on
40486 2006-10-22 Bruno Haible <bruno@clisp.org>
40488 * doc/gnulib-intro.texi: New file.
40489 * doc/gnulib.texi: Include it.
40491 2006-10-21 Bruno Haible <bruno@clisp.org>
40493 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
40494 "Introduction", "Miscellanous Notes", "Particular Modules".
40496 2006-10-21 Bruno Haible <bruno@clisp.org>
40498 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40499 Change mostlyclean-local rule to avoid sh syntax error from bash
40500 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
40502 2006-10-23 Jim Meyering <jim@meyering.net>
40504 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
40505 in place of snprintf.
40507 * modules/inttostr (Files): Add lib/uinttostr.c.
40508 * lib/uinttostr.c (inttostr): New file/function.
40509 * lib/inttostr.h (uinttostr): Declare.
40510 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
40511 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
40513 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
40515 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
40517 * lib/canonicalize.c (ELOOP): Define if not already defined.
40518 Problem reported by Bruno Haible in
40519 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
40521 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
40523 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
40524 Problem reported by Perry Smith and Ville Laurikari.
40526 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
40529 2006-10-19 Bruno Haible <bruno@clisp.org>
40531 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
40534 2006-10-19 Bruno Haible <bruno@clisp.org>
40536 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
40539 2006-10-19 Bruno Haible <bruno@clisp.org>
40541 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
40543 2006-10-19 Bruno Haible <bruno@clisp.org>
40545 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
40548 2006-10-19 Bruno Haible <bruno@clisp.org>
40550 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
40553 2006-10-19 Bruno Haible <bruno@clisp.org>
40555 * gnulib-tool (func_create_testdir): Don't include ftruncate and
40556 mountlist by default.
40558 2006-10-16 Bruno Haible <bruno@clisp.org>
40560 * lib/c-strstr.c: Include c-strstr.h.
40562 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
40564 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
40567 2006-10-18 Bruno Haible <bruno@clisp.org>
40569 * lib/lock.h [C++]: Wrap definitions in extern "C".
40571 2006-10-18 Bruno Haible <bruno@clisp.org>
40573 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
40576 2006-10-18 Bruno Haible <bruno@clisp.org>
40578 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
40580 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
40582 * lib/xstrtol.h: Include gettext.h.
40583 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
40584 Problem reported by Eric Blake.
40585 * modules/xstrtol (Depends-on): Add gettext-h.
40587 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
40589 * lib/strftime.c (advance): New macro.
40590 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
40591 incomplete type, so you can't add 0 to it. Problem and patch
40592 reported by Eelco Dolstra for dietlibc.
40594 2006-10-18 Jim Meyering <jim@meyering.net>
40596 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
40597 type for a local, and rename it: s/up/user_proc/.
40599 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
40601 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
40602 READ_UTMP_USER_PROCESS.
40603 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
40605 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
40607 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
40608 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
40610 2006-10-17 Eric Blake <ebb9@byu.net>
40612 * lib/sigprocmask.c (sigprocmask): Fix typo.
40614 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
40616 * modules/clean-temp (Makefile.am): Don't add to make output...
40617 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
40620 2006-10-17 Bruno Haible <bruno@clisp.org>
40622 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
40623 differently if DEFAULT_TEXT_DOMAIN is set.
40625 2006-10-16 Bruno Haible <bruno@clisp.org>
40627 * lib/clean-temp.c: Include fwriteerror.h.
40629 2006-10-16 Bruno Haible <bruno@clisp.org>
40631 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
40633 2006-10-16 Bruno Haible <bruno@clisp.org>
40635 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
40636 * lib/sigprocmask.h: Include <sys/types.h>.
40637 (sigset_t): Use the system's definition if present.
40639 2006-10-17 Eric Blake <ebb9@byu.net>
40641 * lib/xvasprintf.c (includes): Assume config.h.
40642 * lib/xasprintf.c (includes): Likewise.
40644 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
40646 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
40647 at least as wide as intmax_t.
40649 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
40651 (Imported from Automake.)
40652 * build-aux/gnupload: Update to version 1.1 of directive file.
40654 2006-10-16 Eric Blake <ebb9@byu.net>
40656 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
40657 match Automake 1.10a.
40659 2006-10-14 Bruno Haible <bruno@clisp.org>
40661 * modules/sigprocmask: New file.
40662 * lib/sigprocmask.h: New file.
40663 * lib/sigprocmask.c: New file.
40664 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
40665 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
40666 request sigprocmask.o.
40667 (gl_PREREQ_SIGPROCMASK): New macro.
40668 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
40669 (Depends-on): Add sigprocmask.
40670 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
40671 gt_SIGNALBLOCKING. Test for 'raise' only once.
40672 * lib/fatal-signal.c: Include sigprocmask.h.
40673 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
40674 unblock_fatal_signals): Define always.
40675 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40678 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
40680 Sync from Automake.
40681 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
40682 which incorrectly sets the mode of an existing destination
40683 directory. In some cases the unpatched install-sh could do the
40684 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
40685 system. We hope this is rare in practice, but it's clearly worth
40686 fixing. Problem reported by Alex Unleashed in
40687 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
40688 Also, don't bother to check for -m bugs unless we're using -m;
40689 suggested by Stepan Kasal.
40691 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40693 Sync from Automake.
40694 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
40695 `-c' flag, so they appear at the same position as in %FASTDEP%
40696 mode in depend2.am. Fixes build failure for FreeBSD's c89,
40697 which ignores unknown options only after the first non-option.
40698 Bug report against M4 by Nelson H. F. Beebe.
40700 2006-10-13 Jim Meyering <jim@meyering.net>
40702 Fix a bug in yesterday's change.
40703 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
40704 p->fts_statp->st_dev would be used uninitialized.
40705 Ensures that we always call fts_stat on the very first entry.
40706 Miklos Szeredi reported that find -xdev stopped working.
40708 2006-10-12 Bruno Haible <bruno@clisp.org>
40710 * gnulib-tool (func_get_automake_snippet): Append an automatically
40711 computed EXTRA_DIST augmentation.
40712 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
40713 * modules/alloca-opt (Makefile.am): Likewise.
40714 * modules/allocsa (Makefile.am): Likewise.
40715 * modules/arcfour (Makefile.am): Likewise.
40716 * modules/arctwo (Makefile.am): Likewise.
40717 * modules/argmatch (Makefile.am): Likewise.
40718 * modules/argz (Makefile.am): Likewise.
40719 * modules/atexit (Makefile.am): Likewise.
40720 * modules/backupfile (Makefile.am): Likewise.
40721 * modules/byteswap (Makefile.am): Likewise.
40722 * modules/c-strtod (Makefile.am): Likewise.
40723 * modules/c-strtold (Makefile.am): Likewise.
40724 * modules/calloc (Makefile.am): Likewise.
40725 * modules/canon-host (Makefile.am): Likewise.
40726 * modules/canonicalize (Makefile.am): Likewise.
40727 * modules/chdir-long (Makefile.am): Likewise.
40728 * modules/chdir-safer (Makefile.am): Likewise.
40729 * modules/check-version (Makefile.am): Likewise.
40730 * modules/chown (Makefile.am): Likewise.
40731 * modules/cloexec (Makefile.am): Likewise.
40732 * modules/close-stream (Makefile.am): Likewise.
40733 * modules/closeout (Makefile.am): Likewise.
40734 * modules/crc (Makefile.am): Likewise.
40735 * modules/csharpexec (Makefile.am): Likewise.
40736 * modules/cycle-check (Makefile.am): Likewise.
40737 * modules/des (Makefile.am): Likewise.
40738 * modules/dev-ino (Makefile.am): Likewise.
40739 * modules/dirfd (Makefile.am): Likewise.
40740 * modules/dirname (Makefile.am): Likewise.
40741 * modules/dup2 (Makefile.am): Likewise.
40742 * modules/eealloc (Makefile.am): Likewise.
40743 * modules/error (Makefile.am): Likewise.
40744 * modules/euidaccess (Makefile.am): Likewise.
40745 * modules/exclude (Makefile.am): Likewise.
40746 * modules/exitfail (Makefile.am): Likewise.
40747 * modules/fcntl-safer (Makefile.am): Likewise.
40748 * modules/fcntl (Makefile.am): Likewise.
40749 * modules/file-type (Makefile.am): Likewise.
40750 * modules/fileblocks (Makefile.am): Likewise.
40751 * modules/filemode (Makefile.am): Likewise.
40752 * modules/filenamecat (Makefile.am): Likewise.
40753 * modules/fnmatch (Makefile.am): Likewise.
40754 * modules/fopen-safer (Makefile.am): Likewise.
40755 * modules/fpending (Makefile.am): Likewise.
40756 * modules/fprintftime (Makefile.am): Likewise.
40757 * modules/free (Makefile.am): Likewise.
40758 * modules/fsusage (Makefile.am): Likewise.
40759 * modules/ftruncate (Makefile.am): Likewise.
40760 * modules/fts (Makefile.am): Likewise.
40761 * modules/gc-arcfour (Makefile.am): Likewise.
40762 * modules/gc-des (Makefile.am): Likewise.
40763 * modules/gc-hmac-md5 (Makefile.am): Likewise.
40764 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
40765 * modules/gc-md4 (Makefile.am): Likewise.
40766 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
40767 * modules/gc-sha1 (Makefile.am): Likewise.
40768 * modules/gc (Makefile.am): Likewise.
40769 * modules/getaddrinfo (Makefile.am): Likewise.
40770 * modules/getcwd (Makefile.am): Likewise.
40771 * modules/getdelim (Makefile.am): Likewise.
40772 * modules/getdomainname (Makefile.am): Likewise.
40773 * modules/getgroups (Makefile.am): Likewise.
40774 * modules/gethostname (Makefile.am): Likewise.
40775 * modules/gethrxtime (Makefile.am): Likewise.
40776 * modules/getline (Makefile.am): Likewise.
40777 * modules/getloadavg (Makefile.am): Likewise.
40778 * modules/getlogin_r (Makefile.am): Likewise.
40779 * modules/getndelim2 (Makefile.am): Likewise.
40780 * modules/getopt (Makefile.am): Likewise.
40781 * modules/getpagesize (Makefile.am): Likewise.
40782 * modules/getpass-gnu (Makefile.am): Likewise.
40783 * modules/getpass (Makefile.am): Likewise.
40784 * modules/getsubopt (Makefile.am): Likewise.
40785 * modules/gettime (Makefile.am): Likewise.
40786 * modules/gettimeofday (Makefile.am): Likewise.
40787 * modules/getugroups (Makefile.am): Likewise.
40788 * modules/getusershell (Makefile.am): Likewise.
40789 * modules/glob (Makefile.am): Likewise.
40790 * modules/group-member (Makefile.am): Likewise.
40791 * modules/hard-locale (Makefile.am): Likewise.
40792 * modules/hash (Makefile.am): Likewise.
40793 * modules/hmac-md5 (Makefile.am): Likewise.
40794 * modules/hmac-sha1 (Makefile.am): Likewise.
40795 * modules/human (Makefile.am): Likewise.
40796 * modules/idcache (Makefile.am): Likewise.
40797 * modules/imaxabs (Makefile.am): Likewise.
40798 * modules/imaxdiv (Makefile.am): Likewise.
40799 * modules/inet_ntop (Makefile.am): Likewise.
40800 * modules/inet_pton (Makefile.am): Likewise.
40801 * modules/intprops (Makefile.am): Likewise.
40802 * modules/inttostr (Makefile.am): Likewise.
40803 * modules/inttypes (Makefile.am): Likewise.
40804 * modules/isapipe (Makefile.am): Likewise.
40805 * modules/javaversion (Makefile.am): Likewise.
40806 * modules/lchmod (Makefile.am): Likewise.
40807 * modules/lchown (Makefile.am): Likewise.
40808 * modules/localcharset (Makefile.am): Likewise.
40809 * modules/long-options (Makefile.am): Likewise.
40810 * modules/lstat (Makefile.am): Likewise.
40811 * modules/malloc (Makefile.am): Likewise.
40812 * modules/mathl (Makefile.am): Likewise.
40813 * modules/mbchar (Makefile.am): Likewise.
40814 * modules/md2 (Makefile.am): Likewise.
40815 * modules/md4 (Makefile.am): Likewise.
40816 * modules/md5 (Makefile.am): Likewise.
40817 * modules/memcasecmp (Makefile.am): Likewise.
40818 * modules/memchr (Makefile.am): Likewise.
40819 * modules/memcmp (Makefile.am): Likewise.
40820 * modules/memcoll (Makefile.am): Likewise.
40821 * modules/memcpy (Makefile.am): Likewise.
40822 * modules/memmem (Makefile.am): Likewise.
40823 * modules/memmove (Makefile.am): Likewise.
40824 * modules/mempcpy (Makefile.am): Likewise.
40825 * modules/memrchr (Makefile.am): Likewise.
40826 * modules/memset (Makefile.am): Likewise.
40827 * modules/memxor (Makefile.am): Likewise.
40828 * modules/mkancesdirs (Makefile.am): Likewise.
40829 * modules/mkdir-p (Makefile.am): Likewise.
40830 * modules/mkdir (Makefile.am): Likewise.
40831 * modules/mkdtemp (Makefile.am): Likewise.
40832 * modules/mkstemp (Makefile.am): Likewise.
40833 * modules/mktime (Makefile.am): Likewise.
40834 * modules/modechange (Makefile.am): Likewise.
40835 * modules/mountlist (Makefile.am): Likewise.
40836 * modules/nanosleep (Makefile.am): Likewise.
40837 * modules/obstack (Makefile.am): Likewise.
40838 * modules/openat (Makefile.am): Likewise.
40839 * modules/pagealign_alloc (Makefile.am): Likewise.
40840 * modules/pathmax (Makefile.am): Likewise.
40841 * modules/physmem (Makefile.am): Likewise.
40842 * modules/poll (Makefile.am): Likewise.
40843 * modules/posixtm (Makefile.am): Likewise.
40844 * modules/posixver (Makefile.am): Likewise.
40845 * modules/putenv (Makefile.am): Likewise.
40846 * modules/quote (Makefile.am): Likewise.
40847 * modules/quotearg (Makefile.am): Likewise.
40848 * modules/raise (Makefile.am): Likewise.
40849 * modules/read-file (Makefile.am): Likewise.
40850 * modules/readline (Makefile.am): Likewise.
40851 * modules/readlink (Makefile.am): Likewise.
40852 * modules/readtokens (Makefile.am): Likewise.
40853 * modules/readutmp (Makefile.am): Likewise.
40854 * modules/realloc (Makefile.am): Likewise.
40855 * modules/regex (Makefile.am): Likewise.
40856 * modules/rename-dest-slash (Makefile.am): Likewise.
40857 * modules/rename (Makefile.am): Likewise.
40858 * modules/rijndael (Makefile.am): Likewise.
40859 * modules/rmdir (Makefile.am): Likewise.
40860 * modules/rpmatch (Makefile.am): Likewise.
40861 * modules/safe-read (Makefile.am): Likewise.
40862 * modules/safe-write (Makefile.am): Likewise.
40863 * modules/same-inode (Makefile.am): Likewise.
40864 * modules/same (Makefile.am): Likewise.
40865 * modules/save-cwd (Makefile.am): Likewise.
40866 * modules/savedir (Makefile.am): Likewise.
40867 * modules/setenv (Makefile.am): Likewise.
40868 * modules/settime (Makefile.am): Likewise.
40869 * modules/sha1 (Makefile.am): Likewise.
40870 * modules/sig2str (Makefile.am): Likewise.
40871 * modules/snprintf (Makefile.am): Likewise.
40872 * modules/stat-macros (Makefile.am): Likewise.
40873 * modules/stat-time (Makefile.am): Likewise.
40874 * modules/stdbool (Makefile.am): Likewise.
40875 * modules/stdint (Makefile.am): Likewise.
40876 * modules/stdlib-safer (Makefile.am): Likewise.
40877 * modules/stpcpy (Makefile.am): Likewise.
40878 * modules/stpncpy (Makefile.am): Likewise.
40879 * modules/strcase (Makefile.am): Likewise.
40880 * modules/strcasestr (Makefile.am): Likewise.
40881 * modules/strchrnul (Makefile.am): Likewise.
40882 * modules/strcspn (Makefile.am): Likewise.
40883 * modules/strdup (Makefile.am): Likewise.
40884 * modules/strerror (Makefile.am): Likewise.
40885 * modules/strftime (Makefile.am): Likewise.
40886 * modules/strndup (Makefile.am): Likewise.
40887 * modules/strnlen (Makefile.am): Likewise.
40888 * modules/strpbrk (Makefile.am): Likewise.
40889 * modules/strsep (Makefile.am): Likewise.
40890 * modules/strstr (Makefile.am): Likewise.
40891 * modules/strtod (Makefile.am): Likewise.
40892 * modules/strtoimax (Makefile.am): Likewise.
40893 * modules/strtok_r (Makefile.am): Likewise.
40894 * modules/strtol (Makefile.am): Likewise.
40895 * modules/strtoll (Makefile.am): Likewise.
40896 * modules/strtoul (Makefile.am): Likewise.
40897 * modules/strtoull (Makefile.am): Likewise.
40898 * modules/strtoumax (Makefile.am): Likewise.
40899 * modules/strverscmp (Makefile.am): Likewise.
40900 * modules/sys_socket (Makefile.am): Likewise.
40901 * modules/sys_stat (Makefile.am): Likewise.
40902 * modules/sysexits (Makefile.am): Likewise.
40903 * modules/time_r (Makefile.am): Likewise.
40904 * modules/timegm (Makefile.am): Likewise.
40905 * modules/timespec (Makefile.am): Likewise.
40906 * modules/tmpfile-safer (Makefile.am): Likewise.
40907 * modules/trim (Makefile.am): Likewise.
40908 * modules/unistd-safer (Makefile.am): Likewise.
40909 * modules/unlinkdir (Makefile.am): Likewise.
40910 * modules/unlocked-io (Makefile.am): Likewise.
40911 * modules/userspec (Makefile.am): Likewise.
40912 * modules/utime (Makefile.am): Likewise.
40913 * modules/utimecmp (Makefile.am): Likewise.
40914 * modules/utimens (Makefile.am): Likewise.
40915 * modules/vasnprintf (Makefile.am): Likewise.
40916 * modules/vasprintf (Makefile.am): Likewise.
40917 * modules/vsnprintf (Makefile.am): Likewise.
40918 * modules/xalloc (Makefile.am): Likewise.
40919 * modules/xgetcwd (Makefile.am): Likewise.
40920 * modules/xnanosleep (Makefile.am): Likewise.
40921 * modules/xreadlink (Makefile.am): Likewise.
40922 * modules/xstrtod (Makefile.am): Likewise.
40923 * modules/xstrtol (Makefile.am): Likewise.
40924 * modules/xstrtold (Makefile.am): Likewise.
40925 * modules/yesno (Makefile.am): Likewise.
40926 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
40928 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
40930 * modules/error (Makefile.am): Distribute files through
40931 EXTRA_DIST, not lib_SOURCES.
40933 2006-10-12 Eric Blake <ebb9@byu.net>
40935 * modules/error (Makefile.am): Distribute files in /lib.
40936 * modules/obstack (Makefile.am): Likewise.
40938 2006-10-12 Bruno Haible <bruno@clisp.org>
40940 * modules/acl (Makefile.am): Distribute all files in lib/ through
40942 * modules/arcfour (Makefile.am): Likewise.
40943 * modules/arctwo (Makefile.am): Likewise.
40944 * modules/argmatch (Makefile.am): Likewise.
40945 * modules/argz (Makefile.am): Likewise.
40946 * modules/atexit (Makefile.am): Likewise.
40947 * modules/backupfile (Makefile.am): Likewise.
40948 * modules/c-strtod (Makefile.am): Likewise.
40949 * modules/c-strtold (Makefile.am): Likewise.
40950 * modules/calloc (Makefile.am): Likewise.
40951 * modules/canon-host (Makefile.am): Likewise.
40952 * modules/canonicalize (Makefile.am): Likewise.
40953 * modules/chdir-long (Makefile.am): Likewise.
40954 * modules/chdir-safer (Makefile.am): Likewise.
40955 * modules/check-version (Makefile.am): Likewise.
40956 * modules/chown (Makefile.am): Likewise.
40957 * modules/cloexec (Makefile.am): Likewise.
40958 * modules/close-stream (Makefile.am): Likewise.
40959 * modules/closeout (Makefile.am): Likewise.
40960 * modules/crc (Makefile.am): Likewise.
40961 * modules/cycle-check (Makefile.am): Likewise.
40962 * modules/des (Makefile.am): Likewise.
40963 * modules/dirfd (Makefile.am): Likewise.
40964 * modules/dirname (Makefile.am): Likewise.
40965 * modules/dup2 (Makefile.am): Likewise.
40966 * modules/euidaccess (Makefile.am): Likewise.
40967 * modules/exclude (Makefile.am): Likewise.
40968 * modules/exitfail (Makefile.am): Likewise.
40969 * modules/fcntl-safer (Makefile.am): Likewise.
40970 * modules/file-type (Makefile.am): Likewise.
40971 * modules/fileblocks (Makefile.am): Likewise.
40972 * modules/filemode (Makefile.am): Likewise.
40973 * modules/filenamecat (Makefile.am): Likewise.
40974 * modules/fnmatch (Makefile.am): Likewise.
40975 * modules/fopen-safer (Makefile.am): Likewise.
40976 * modules/fpending (Makefile.am): Likewise.
40977 * modules/fprintftime (Makefile.am): Likewise.
40978 * modules/free (Makefile.am): Likewise.
40979 * modules/fsusage (Makefile.am): Likewise.
40980 * modules/ftruncate (Makefile.am): Likewise.
40981 * modules/fts (Makefile.am): Likewise.
40982 * modules/gc (Makefile.am): Likewise.
40983 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
40984 * modules/getaddrinfo (Makefile.am): Likewise.
40985 * modules/getcwd (Makefile.am): Likewise.
40986 * modules/getdelim (Makefile.am): Likewise.
40987 * modules/getdomainname (Makefile.am): Likewise.
40988 * modules/getgroups (Makefile.am): Likewise.
40989 * modules/gethostname (Makefile.am): Likewise.
40990 * modules/gethrxtime (Makefile.am): Likewise.
40991 * modules/getline (Makefile.am): Likewise.
40992 * modules/getloadavg (Makefile.am): Likewise.
40993 * modules/getlogin_r (Makefile.am): Likewise.
40994 * modules/getopt (Makefile.am): Likewise.
40995 * modules/getpass (Makefile.am): Likewise.
40996 * modules/getpass-gnu (Makefile.am): Likewise.
40997 * modules/getsubopt (Makefile.am): Likewise.
40998 * modules/gettime (Makefile.am): Likewise.
40999 * modules/gettimeofday (Makefile.am): Likewise.
41000 * modules/getugroups (Makefile.am): Likewise.
41001 * modules/getusershell (Makefile.am): Likewise.
41002 * modules/glob (Makefile.am): Likewise.
41003 * modules/group-member (Makefile.am): Likewise.
41004 * modules/hard-locale (Makefile.am): Likewise.
41005 * modules/hash (Makefile.am): Likewise.
41006 * modules/hmac-md5 (Makefile.am): Likewise.
41007 * modules/hmac-sha1 (Makefile.am): Likewise.
41008 * modules/human (Makefile.am): Likewise.
41009 * modules/idcache (Makefile.am): Likewise.
41010 * modules/imaxabs (Makefile.am): Likewise.
41011 * modules/imaxdiv (Makefile.am): Likewise.
41012 * modules/inet_ntop (Makefile.am): Likewise.
41013 * modules/inet_pton (Makefile.am): Likewise.
41014 * modules/inttostr (Makefile.am): Likewise.
41015 * modules/isapipe (Makefile.am): Likewise.
41016 * modules/lchown (Makefile.am): Likewise.
41017 * modules/long-options (Makefile.am): Likewise.
41018 * modules/lstat (Makefile.am): Likewise.
41019 * modules/malloc (Makefile.am): Likewise.
41020 * modules/mathl (Makefile.am): Likewise.
41021 * modules/mbchar (Makefile.am): Likewise.
41022 * modules/md2 (Makefile.am): Likewise.
41023 * modules/md4 (Makefile.am): Likewise.
41024 * modules/md5 (Makefile.am): Likewise.
41025 * modules/memcasecmp (Makefile.am): Likewise.
41026 * modules/memchr (Makefile.am): Likewise.
41027 * modules/memcmp (Makefile.am): Likewise.
41028 * modules/memcoll (Makefile.am): Likewise.
41029 * modules/memcpy (Makefile.am): Likewise.
41030 * modules/memmem (Makefile.am): Likewise.
41031 * modules/memmove (Makefile.am): Likewise.
41032 * modules/mempcpy (Makefile.am): Likewise.
41033 * modules/memrchr (Makefile.am): Likewise.
41034 * modules/memset (Makefile.am): Likewise.
41035 * modules/memxor (Makefile.am): Likewise.
41036 * modules/mkancesdirs (Makefile.am): Likewise.
41037 * modules/mkdir (Makefile.am): Likewise.
41038 * modules/mkdir-p (Makefile.am): Likewise.
41039 * modules/mkdtemp (Makefile.am): Likewise.
41040 * modules/mkstemp (Makefile.am): Likewise.
41041 * modules/mktime (Makefile.am): Likewise.
41042 * modules/modechange (Makefile.am): Likewise.
41043 * modules/mountlist (Makefile.am): Likewise.
41044 * modules/nanosleep (Makefile.am): Likewise.
41045 * modules/openat (Makefile.am): Likewise.
41046 * modules/pagealign_alloc (Makefile.am): Likewise.
41047 * modules/physmem (Makefile.am): Likewise.
41048 * modules/poll (Makefile.am): Likewise.
41049 * modules/posixtm (Makefile.am): Likewise.
41050 * modules/posixver (Makefile.am): Likewise.
41051 * modules/putenv (Makefile.am): Likewise.
41052 * modules/quote (Makefile.am): Likewise.
41053 * modules/quotearg (Makefile.am): Likewise.
41054 * modules/raise (Makefile.am): Likewise.
41055 * modules/read-file (Makefile.am): Likewise.
41056 * modules/readline (Makefile.am): Likewise.
41057 * modules/readlink (Makefile.am): Likewise.
41058 * modules/readtokens (Makefile.am): Likewise.
41059 * modules/readutmp (Makefile.am): Likewise.
41060 * modules/realloc (Makefile.am): Likewise.
41061 * modules/regex (Makefile.am): Likewise.
41062 * modules/rename (Makefile.am): Likewise.
41063 * modules/rename-dest-slash (Makefile.am): Likewise.
41064 * modules/rijndael (Makefile.am): Likewise.
41065 * modules/rmdir (Makefile.am): Likewise.
41066 * modules/rpmatch (Makefile.am): Likewise.
41067 * modules/safe-read (Makefile.am): Likewise.
41068 * modules/safe-write (Makefile.am): Likewise.
41069 * modules/same (Makefile.am): Likewise.
41070 * modules/save-cwd (Makefile.am): Likewise.
41071 * modules/savedir (Makefile.am): Likewise.
41072 * modules/setenv (Makefile.am): Likewise.
41073 * modules/settime (Makefile.am): Likewise.
41074 * modules/sha1 (Makefile.am): Likewise.
41075 * modules/sig2str (Makefile.am): Likewise.
41076 * modules/snprintf (Makefile.am): Likewise.
41077 * modules/stdlib-safer (Makefile.am): Likewise.
41078 * modules/stpcpy (Makefile.am): Likewise.
41079 * modules/stpncpy (Makefile.am): Likewise.
41080 * modules/strcase (Makefile.am): Likewise.
41081 * modules/strcasestr (Makefile.am): Likewise.
41082 * modules/strchrnul (Makefile.am): Likewise.
41083 * modules/strcspn (Makefile.am): Likewise.
41084 * modules/strdup (Makefile.am): Likewise.
41085 * modules/strerror (Makefile.am): Likewise.
41086 * modules/strftime (Makefile.am): Likewise.
41087 * modules/strndup (Makefile.am): Likewise.
41088 * modules/strnlen (Makefile.am): Likewise.
41089 * modules/strpbrk (Makefile.am): Likewise.
41090 * modules/strsep (Makefile.am): Likewise.
41091 * modules/strstr (Makefile.am): Likewise.
41092 * modules/strtod (Makefile.am): Likewise.
41093 * modules/strtoimax (Makefile.am): Likewise.
41094 * modules/strtok_r (Makefile.am): Likewise.
41095 * modules/strtol (Makefile.am): Likewise.
41096 * modules/strtoll (Makefile.am): Likewise.
41097 * modules/strtoul (Makefile.am): Likewise.
41098 * modules/strtoull (Makefile.am): Likewise.
41099 * modules/strtoumax (Makefile.am): Likewise.
41100 * modules/strverscmp (Makefile.am): Likewise.
41101 * modules/time_r (Makefile.am): Likewise.
41102 * modules/timegm (Makefile.am): Likewise.
41103 * modules/tmpfile-safer (Makefile.am): Likewise.
41104 * modules/unistd-safer (Makefile.am): Likewise.
41105 * modules/unlinkdir (Makefile.am): Likewise.
41106 * modules/userspec (Makefile.am): Likewise.
41107 * modules/utime (Makefile.am): Likewise.
41108 * modules/utimecmp (Makefile.am): Likewise.
41109 * modules/utimens (Makefile.am): Likewise.
41110 * modules/vasnprintf (Makefile.am): Likewise.
41111 * modules/vasprintf (Makefile.am): Likewise.
41112 * modules/vsnprintf (Makefile.am): Likewise.
41113 * modules/xalloc (Makefile.am): Likewise.
41114 * modules/xgetcwd (Makefile.am): Likewise.
41115 * modules/xnanosleep (Makefile.am): Likewise.
41116 * modules/xreadlink (Makefile.am): Likewise.
41117 * modules/xstrtod (Makefile.am): Likewise.
41118 * modules/xstrtol (Makefile.am): Likewise.
41119 * modules/xstrtold (Makefile.am): Likewise.
41120 * modules/yesno (Makefile.am): Likewise.
41122 2006-10-12 Jim Meyering <jim@meyering.net>
41124 * m4/getloadavg.m4: Revert the change below.
41126 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
41127 lib/getloadavg.c using "ls -L", not "test -f". The latter would
41128 fail with a symlink, which is what coreutils' ./bootstrap now
41129 creates by default.
41131 2006-10-12 Bruno Haible <bruno@clisp.org>
41133 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
41135 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
41136 MSVC and mingw explicitly.
41138 2006-10-11 Simon Josefsson <jas@extundo.com>
41139 Bruno Haible <bruno@clisp.org>
41141 Add support for multiple gnulib-tool invocations in the scope of a
41142 single configure.ac file.
41143 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
41144 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
41145 with the same contents as the _LIBADD variable.
41146 (func_emit_initmacro_start, func_emit_initmacro_end,
41147 func_emit_initmacro_done): New functions.
41148 (func_import, func_create_testdir): Invoke them. Allow the identifiers
41149 gl_LIBOBJS and gl_LTLIBOBJS.
41151 2006-10-11 Bruno Haible <bruno@clisp.org>
41153 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
41154 (func_create_testdir): Don't create po/Makefile.am, don't invoke
41155 autoreconf. Instead, invoke autopoint explicitly but move back the
41156 *.m4 files from gnulib.
41158 2006-10-11 Bruno Haible <bruno@clisp.org>
41160 * gnulib-tool (func_usage): Make module names after --create-testdir
41162 (func_create_testdir): If no module was specified, use nearly all
41165 2006-10-12 Jim Meyering <jim@meyering.net>
41167 Big performance improvement for fts-based tools that use FTS_NOSTAT.
41168 Avoid spurious inode-mismatch problems on non-POSIX file systems.
41169 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
41170 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
41171 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
41172 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
41173 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
41174 (fts_set_stat_required): New function.
41175 (fts_open): Defer the calls to fts_stat, if possible or requested.
41176 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
41177 into fts_stat itself.
41178 (fts_read): Perform any required (deferred) fts_stat call.
41179 (fts_build): Likewise, for the directory we're about to open and read.
41180 In the readdir loop, carefully decide whether each entry will require
41181 an eventual call to fts_stat, using dirent.d_type info if available.
41182 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
41183 a command line argument into this function. Update all callers.
41184 Map a return value of FTS_DOT to FTS_D for a command line argument.
41185 * modules/fts (Depends-on): Add d-type. Alphabetize.
41186 Thanks to Miklos Szeredi for his tenacity and for the initial
41187 bug report about "find" failing on a FUSE-based file system.
41189 * lib/fts.c (fts_open): Use consistent indentation.
41191 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
41193 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
41194 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
41195 reported by Jim Meyering. All uses of cache variables renamed
41196 to match Autoconf's.
41197 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
41200 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41201 Fix misspelling in diagnostic.
41203 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
41205 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
41206 defined. Problem reported by Matthew Woehlke.
41208 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
41209 Add support for Tandem NonStop R series.
41210 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
41213 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
41214 (has_trailing_slash): Omit size arg; all callers changed.
41215 Omit 'inline', since it doesn't help performance and we'd
41216 need to configure it.
41217 Don't count //, ///, etc. as having a trailing slash.
41218 As a side effect, this removes a C99ism reported by Matthew Woehlke.
41219 (rpl_rename_dest_slash): On failure, use rename's errno rather
41220 than (in some cases) an incorrect or junk errno.
41221 Simplify code by removing need to compute length; this does
41222 cause it to make two passes instead of one over the file name,
41225 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
41226 change, since Autoconf's version may no longer be appropriate now
41227 that we are using CVS Autoconf's version. Add support for Tandem.
41229 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
41230 Bruno Haible <bruno@clisp.org>
41232 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
41233 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
41234 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
41235 gl_AC_TYPE_LONG_LONG.
41237 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
41238 instead of HAVE_LONG_LONG.
41239 * lib/printf-args.c (printf_fetchargs): Likewise.
41240 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
41241 * lib/vasnprintf.c (VASNPRINTF): Likewise.
41242 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
41243 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
41244 gl_AC_TYPE_LONG_LONG.
41246 2006-10-11 Bruno Haible <bruno@clisp.org>
41248 * m4/longlong.m4: Add comments.
41249 * m4/ulonglong.m4: Likewise.
41251 2006-10-10 Bruno Haible <bruno@clisp.org>
41253 Make it possible to #define stpcpy, strdup to aliases.
41254 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
41255 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
41257 2006-10-10 Bruno Haible <bruno@clisp.org>
41259 Make it possible to #define gcd to an alias.
41260 * lib/gcd.c: Include config.h.
41262 2006-10-10 Bruno Haible <bruno@clisp.org>
41264 Make it possible to #define c_isascii to an alias.
41265 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
41266 defined. Undefine the macros before defining them, to avoid gcc
41268 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
41269 define NO_C_CTYPE_MACROS early.
41271 2006-10-10 Bruno Haible <bruno@clisp.org>
41273 Make it possible to #define set_program_name to an alias.
41274 * lib/progname.c: Don't undefine set_program_name; instead, undefine
41275 ENABLE_RELOCATABLE early.
41277 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
41279 Port to Tandem NSK OSS, which has 64-bit signed int but at most
41280 32-bit unsigned int. Problem reported by Matthew Woehlke in:
41281 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
41282 More generally, don't assume that 64-bit signed int is available
41283 if unsigned int is, and vice versa.
41284 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
41285 unsigned symbols, not on their signed counterparts.
41286 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
41287 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
41288 (UINT64_C, UINTMAX_C):
41290 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
41291 unsigned counterparts.
41292 (Have_long_long, Unsigned): New macros.
41293 (Int): Renamed from INT.
41294 (strtoimax): Use the new macros.
41295 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
41296 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
41297 * modules/inttypes (inttypes.h): Substitute
41298 HAVE_UNSIGNED_LONG_LONG_INT.
41299 * modules/stdint (stdint.h): Likewise.
41300 (Files): Add m4/ulonglong.m4.
41302 2006-10-10 Bruno Haible <bruno@clisp.org>
41304 Fix a gcc -Wshadow warning.
41305 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
41307 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
41308 gl_linked_indexof_from_to): Likewise.
41309 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
41311 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
41313 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
41314 Reported by Eric Blake.
41316 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
41318 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
41319 for NetBSD. Problem reported by Bruno Haible.
41321 2006-10-09 Jim Meyering <jim@meyering.net>
41323 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
41324 Patch from Bruno Haible.
41326 2006-10-09 Jim Meyering <jim@meyering.net>
41328 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
41329 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
41330 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
41332 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
41334 Don't include <config.h> twice; this doesn't work in some cases,
41335 e.g., when config.h has "#define intmax_t long long int" and
41336 we include <config.h>, <inttypes.h>, <config.h> in that order.
41337 Problem reported by Matthew Woehlke in:
41338 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
41339 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
41340 * lib/fts-cycle.c: Don't include config.h.
41341 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
41342 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
41343 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
41344 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
41346 * lib/xstrtoumax.c: Likewise.
41347 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
41348 __strtol and the like, so that this module is more like its siblings.
41349 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
41350 Remove; no longer needed now that we assume gnulib inttypes.h.
41352 2006-10-08 Bruno Haible <bruno@clisp.org>
41354 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
41357 2006-10-07 Jim Meyering <jim@meyering.net>
41359 * modules/inttypes (inttypes.h): Revert what seems to have been
41360 an inadvertent part of today's change: use "|", not "/" in the
41361 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
41363 2006-10-07 Bruno Haible <bruno@clisp.org>
41365 * modules/sublist: New file.
41367 2006-10-07 Bruno Haible <bruno@clisp.org>
41369 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
41370 * modules/argz (argz.h): Likewise.
41371 * modules/arpa_inet (arpa/inet.h): Likewise.
41372 * modules/byteswap (byteswap.h): Likewise.
41373 * modules/configmake (configmake.h): Likewise.
41374 * modules/fcntl (fcntl.h): Likewise.
41375 * modules/fnmatch (fnmatch.h): Likewise.
41376 * modules/getopt (getopt.h): Likewise.
41377 * modules/glob (glob.h): Likewise.
41378 * modules/inttypes (inttypes.h): Likewise.
41379 * modules/netinet_in (netinet/in.h): Likewise.
41380 * modules/poll (poll.h): Likewise.
41381 * modules/stdbool (stdbool.h): Likewise.
41382 * modules/stdint (stdint.h): Likewise.
41383 * modules/sys_select (sys/select.h): Likewise.
41384 * modules/sys_socket (sys/socket.h): Likewise.
41385 * modules/sys_stat (sys/stat.h): Likewise.
41386 * modules/sysexits (sysexits.h): Likewise.
41387 * modules/unistd (unistd.h): Likewise.
41388 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41389 Add a "DO NOT EDIT" comment to the generated file.
41390 (func_import): Likewise for gnulib-comp.m4.
41392 2006-10-07 Bruno Haible <bruno@clisp.org>
41394 * lib/gl_sublist.h: New file.
41395 * lib/gl_sublist.c: New file.
41397 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
41399 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
41400 name (relative to the original working directory) and the file
41401 name component (relative to the temporary working directory). All
41403 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
41404 * lib/mkdir-p.c (make_dir_parents): Likewise.
41405 * lib/mkdir-p.h (make_dir_parents): Likewise.
41407 2006-10-06 Eric Blake <ebb9@byu.net>
41409 Define several macros for use by the clean-temp module.
41410 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
41411 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
41412 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
41414 * lib/clean-temp.h (close_stream_temp): New declaration.
41415 * lib/clean-temp.c (includes): Pull in headers according to what
41416 other modules are in use.
41417 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
41419 2006-10-06 Bruno Haible <bruno@clisp.org>
41421 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
41422 instead of fopen, fwriteerror.
41424 2006-10-06 Bruno Haible <bruno@clisp.org>
41426 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
41427 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
41429 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
41430 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
41431 Return an error indicator.
41432 Suggested by Eric Blake.
41434 2006-10-06 Bruno Haible <bruno@clisp.org>
41436 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
41437 Reported by Eric Blake.
41439 2006-10-06 Bruno Haible <bruno@clisp.org>
41441 * modules/closeout (Description): Mention stderr too.
41443 2006-10-06 Bruno Haible <bruno@clisp.org>
41444 and Paul Eggert <eggert@cs.ucla.edu>
41446 * lib/closeout.c (close_stdout): Also close stderr.
41447 * lib/closeout.h: Update comment.
41449 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
41451 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
41452 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
41453 * lib/dirchownmod.c: Include lchown.h.
41454 * lib/lchown.c: Don't include files that lchown.h now includes.
41455 Don't declare chown, since lchown.h now does that.
41456 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
41457 (lchown): Define to rpl_chown if lchown is declared but
41458 does not exist. Declare using a prototype if lchown is not
41459 declared. Add a copyright notice.
41460 * lib/mkstemp.h: Include <unistd.h>.
41461 * lib/openat.c: Include lchown.h.
41463 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
41464 we now test for that separately.
41465 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
41466 rather than O_NOFOLLOW, when testing whether it's possible to
41467 avoid a race condition reliably.
41468 * lib/savewd.c (savewd_chdir): Likewise.
41470 Remove macros that are no longer needed now that stdint.h is
41472 * lib/fsusage.c (UINTMAX_MAX): Remove.
41473 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
41474 * lib/utimecmp.c (SIZE_MAX): Remove.
41476 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
41478 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
41479 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
41482 2006-10-05 Bruno Haible <bruno@clisp.org>
41484 * lib/gl_list.h (gl_sortedlist_search_from_to,
41485 gl_sortedlist_indexof_from_to): New declarations.
41486 (gl_list_implementation): New fields sortedlist_search_from_to,
41487 sortedlist_indexof_from_to.
41488 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
41490 * lib/gl_list.c (gl_sortedlist_search_from_to,
41491 gl_sortedlist_indexof_from_to): New functions.
41492 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
41494 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
41495 (gl_array_sortedlist_search_from_to): New function.
41496 (gl_array_list_implementation): Update.
41497 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
41499 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
41500 (gl_carray_sortedlist_search_from_to): New function.
41501 (gl_carray_list_implementation): Update.
41502 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
41503 gl_linked_sortedlist_indexof_from_to): New functions.
41504 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41505 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41506 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
41507 gl_tree_sortedlist_indexof_from_to): New functions.
41508 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41509 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41511 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41512 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
41515 2006-10-05 Bruno Haible <bruno@clisp.org>
41517 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
41518 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
41519 (struct gl_list_implementation): Add fields search_from_to,
41520 indexof_from_to. Remove fields search, indexof.
41521 (gl_list_search): Use the search_from_to method.
41522 (gl_list_search_from, gl_list_search_from_to): New functions.
41523 (gl_list_indexof): Use the indexof_from_to method.
41524 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
41525 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
41526 (gl_list_search_from, gl_list_search_from_to): New functions.
41527 (gl_list_indexof): Use the indexof_from_to method.
41528 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
41529 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
41530 gl_array_indexof. Add start_index, end_index arguments.
41531 (gl_array_search_from_to): Renamed from gl_array_search. Add
41532 start_index, end_index arguments.
41533 (gl_array_remove, gl_array_list_implementation): Update.
41534 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
41535 gl_carray_indexof. Add start_index, end_index arguments.
41536 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
41537 start_index, end_index arguments.
41538 (gl_carray_remove, gl_carray_list_implementation): Update.
41539 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
41540 gl_linked_search. Add start_index, end_index arguments.
41541 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
41542 start_index, end_index arguments.
41543 (gl_linked_remove): Update.
41544 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41545 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41546 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
41548 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
41549 gl_tree_search. Add start_index, end_index arguments.
41550 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
41551 start_index, end_index arguments.
41552 (gl_tree_remove): Update.
41553 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41554 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41555 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
41557 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
41558 gl_tree_search. Add start_index, end_index arguments.
41559 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
41560 start_index, end_index arguments.
41561 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41563 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
41565 2006-10-05 Bruno Haible <bruno@clisp.org>
41567 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
41569 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
41570 fwriteerror_temp): New declarations.
41571 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
41572 (descriptors): New variable.
41573 (cleanup): First, close the descriptors.
41574 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
41575 fclose_temp, fwriteerror_temp): New functions.
41577 2006-10-04 Jim Meyering <jim@meyering.net>
41579 * lib/fts.c (fts_open): Tiny comment change.
41581 2006-10-04 Bruno Haible <bruno@clisp.org>
41583 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
41584 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
41586 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
41587 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
41588 gl_LOCK_EARLY_BODY.
41589 (gl_LOCK): Require gl_LOCK_BODY.
41591 2006-10-04 Bruno Haible <bruno@clisp.org>
41593 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
41594 (gl_oset_search_atleast): New declaration.
41595 (struct gl_oset_implementation): Add field 'search_atleast'.
41596 (gl_oset_search_atleast): New inline function.
41597 * lib/gl_oset.c (gl_oset_search_atleast): New function.
41598 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
41599 (gl_array_oset_implementation): Update.
41600 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
41601 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
41602 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
41604 2006-10-04 Bruno Haible <bruno@clisp.org>
41606 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
41608 2006-10-03 Bruno Haible <bruno@clisp.org>
41610 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
41611 from gl_avltreehash_list_implementation.
41613 2006-10-03 Bruno Haible <bruno@clisp.org>
41615 * lib/gl_oset.c (gl_oset_add): Fix return type.
41617 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
41619 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
41621 2006-10-02 Eric Blake <ebb9@byu.net>
41623 * modules/strnlen (Depends-on): Add extensions.
41625 2006-10-02 Eric Blake <ebb9@byu.net>
41627 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
41628 definition in 2.60+.
41630 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
41632 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
41635 2006-10-02 Bruno Haible <bruno@clisp.org>
41637 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
41638 to the AUTOMAKE_OPTIONS.
41639 Reported by Jim Meyering.
41641 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
41643 Work around bug in Solaris 10 /proc file system:
41644 /proc/self/fd/NNN/.. isn't the parent directory of
41645 the directory whose file descriptor is NNN. This needs to
41646 be worked around at run time, not compile time, since a
41647 program might be built on Solaris 8, where things work, and
41649 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
41650 to use the following interface instead:
41651 (OPENAT_BUFFER_SIZE): New macro.
41652 (openat_proc_name): New function.
41653 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
41654 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
41656 * lib/openat-proc.c: New file.
41657 * modules/openat (Files): Add lib/openat-proc.c.
41658 (Depends-on): Add same-inode, stdbool.
41659 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
41661 2006-09-29 Bruno Haible <bruno@clisp.org>
41663 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
41664 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
41665 argument. Set stdout_closed before testing for ferror, not after.
41666 (fwriteerror, fwriteerror_no_ebadf): New functions.
41668 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41670 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
41672 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
41674 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
41675 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
41677 2006-09-28 Jim Meyering <jim@meyering.net>
41679 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
41680 Include <unistd.h>.
41682 2006-09-28 Bruno Haible <bruno@clisp.org>
41684 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
41685 * modules/linkedhash-list (Depends-on): Likewise.
41686 * modules/rbtreehash-list (Depends-on): Likewise.
41688 2006-09-28 Bruno Haible <bruno@clisp.org>
41690 * lib/strndup.h: Simplify the redefinition of strndup.
41691 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
41692 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
41694 2006-09-28 Bruno Haible <bruno@clisp.org>
41696 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
41697 * lib/gl_linkedhash_list.c: Likewise.
41698 * lib/gl_rbtreehash_list.c: Likewise.
41700 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
41702 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
41705 * lib/__fpending.h: Don't include <stdio_ext.h> unless
41706 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
41707 it causes <stdio_ext.h> to cause a compile-time error.
41708 Problem reported by Nelson H. F. Beebe.
41709 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
41710 of HAVE_DECL___PENDING.
41712 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
41713 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
41716 2006-09-27 Jim Meyering <jim@meyering.net>
41718 This file could end up with a definition for a function
41719 named __strndup, rather than rpl_strndup on a system with
41720 incomplete weak_alias support.
41721 * lib/strndup.c (strndup): Rename from __strndup.
41722 Remove #defines that used to map __strndup to strndup.
41723 Don't use K&R prototypes.
41724 Remove LIBC-related code, since this file is not sync'd with glibc.
41725 * lib/strndup.h: Revamp, accordingly.
41726 * m4/strndup.m4: Modernize.
41728 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
41730 * modules/savewd (Depends-on): Add 'raise'.
41731 * lib/savewd.c: Include <signal.h>, for 'raise'.
41733 2006-09-26 Jim Meyering <jim@meyering.net>
41735 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
41736 when we detect Darwin 8.7.0's acl_get_file bug.
41737 Rearrange to perform the new (below) run-test while $LIBS
41738 contains any acl-related library. Set USE_ACL at the end.
41739 (gl_ACL_GET_FILE): New function.
41741 2006-09-26 Eric Blake <ebb9@byu.net>
41743 * lib/verror.c: Include <config.h> unconditionally.
41745 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
41747 * modules/clock-time (Maintainer): Add self.
41748 * modules/getlogin_r (Depends-on): Add extensions.
41750 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41752 * modules/clock-time: New module.
41753 * modules/nanosleep (Depends-on): Add clock-time.
41754 * modules/gethrxtime (Depends-on): Likewise.
41755 * modules/gettime (Depends-on): Likewise.
41756 * modules/settime (Depends-on): Likewise.
41758 * modules/fts-lgpl: Depend on openat.
41759 * modules/mkancesdirs: Depend on savewd.
41760 * modules/mkdir-p: Likewise.
41762 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41764 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
41766 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
41767 `gl_have_arbitrary_file_name_length_limit' to
41768 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
41769 actually works between configure runs.
41771 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41772 Bruno Haible <bruno@clisp.org>
41774 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
41776 2006-09-25 Jim Meyering <jim@meyering.net>
41778 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
41779 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
41781 2006-09-25 Eric Blake <ebb9@byu.net>
41783 * gnulib-tool (func_import, func_create_testdir): Fix typos in
41784 exec's in 2006-09-18 patch when shuffling fds.
41786 2006-09-25 Bruno Haible <bruno@clisp.org>
41788 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
41789 Reported by Jim Meyering.
41791 2006-09-24 Jim Meyering <jim@meyering.net>
41793 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
41794 compare a pointer against a literal "0". That caused failures with
41795 at least HP-UX's hpcc.
41797 2006-09-22 Simon Josefsson <jas@extundo.com>
41801 * modules/gc-hmac-sha1:
41802 * modules/gc-hmac-md5:
41804 * modules/gc-arcfour: Distribute more files.
41806 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41808 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
41809 (gl_linked_iterator_from_to): Initialize struct completely.
41810 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
41811 (gl_tree_iterator_from_to): Likewise
41812 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
41813 * lib/gl_array_list.c [lint] (gl_array_iterator)
41814 (gl_array_iterator_from_to): Likewise.
41815 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
41816 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
41817 (gl_carray_iterator_from_to): Likewise.
41819 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
41820 * lib/md4.c (md4_process_block): Remove unused variable.
41821 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
41822 parentheses for clarity.
41824 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41826 * modules/bison-i18n (Depends-on): Add gettext.
41828 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41830 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
41831 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41832 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
41833 also add missing comma that caused broken test.
41834 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
41835 stdlib.h, for `abort'.
41836 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
41838 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
41839 include unistd.h if present, for `rmdir'.
41840 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
41842 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
41843 in the process include standard headers for prototypes.
41844 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
41845 gets declared on GNU/Linux.
41846 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
41847 unistd.h, for `rmdir'.
41848 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
41850 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
41852 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
41854 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
41856 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41858 * gnulib-tool (func_version): Create output all at once. This
41859 may help avoid triggering unnecessary SIGPIPEs, and at any
41860 rate it doesn't hurt.
41862 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41863 Bruno Haible <bruno@clisp.org>
41865 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
41866 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
41867 * m4/signed.m4 (bh_C_SIGNED): Likewise.
41869 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
41870 (gl_FUNC_VASPRINTF): Invoke it.
41872 2006-09-22 Bruno Haible <bruno@clisp.org>
41874 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
41875 getloadavg.c as first argument.
41877 2006-09-22 Bruno Haible <bruno@clisp.org>
41879 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
41880 at the beginning of the gl_INIT macro.
41881 * modules/getloadavg (configure.ac): Pass $gl_source_base to
41884 2006-09-22 Bruno Haible <bruno@clisp.org>
41886 * gnulib-tool (func_create_megatestdir): Don't include the config-h
41888 Suggested by Ralf Wildenhues.
41890 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
41892 Import this patch from libc:
41894 2006-09-06 Jakub Jelinek <jakub@redhat.com>
41896 * lib/regex_internal.c (re_string_reconstruct): Handle
41897 offset < pstr->valid_raw_len && pstr->offsets_needed case.
41898 Ensure no bytes read before raw_mbs array. Pass a saved copy of
41899 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
41900 re_string_context_at.
41902 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
41904 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
41905 gl_REGEX now does it for us.
41906 (gl_REGEX): Add test taken from
41907 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
41909 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
41910 Check that large offsets work. Modernize Autoconf usages.
41911 Prefer "yes" to mean a good thing rather than a bad.
41912 Don't put "#define mkstemp" in config.h, as this might interfere
41913 with standard system headers that "#define mkstemp mkstemp64".
41915 * modules/mkstemp (Depends-on): Add extensions, so that
41916 mkstemp is visible on some platforms.
41917 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
41918 (Include): Change to "mkstemp.h" from <stdlib.h>.
41919 (Files): Add mkstemp.h.
41921 * lib/mkstemp.h: New file, since some standard headers
41923 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
41924 Include "mkstemp.h".
41925 Make the _LIBC code resemble glibc original more,
41926 e.g., use K&R style.
41927 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
41928 (mkstemp): Remove, since mkstemp.h does this for us.
41929 * lib/stdlib--.h: Include mkstemp.h.
41931 Import this patch from libc:
41933 2006-04-07 Ulrich Drepper <drepper@redhat.com>
41935 * lib/tempname.c (__gen_tempname): Change attempts_min
41936 into a macro. Use preprocessor to decide how to initialize
41937 attempts [Coverity CID 67].
41939 2006-09-20 Bruno Haible <bruno@clisp.org>
41941 * lib/mkdtemp.c: Import from libc.
41942 2006-04-07 Ulrich Drepper <drepper@redhat.com>
41943 * sysdeps/posix/tempname.c (__gen_tempname): Change
41944 attempts_min into a macro. Use preprocessor to decide how to
41945 initialize attempts [Coverity CID 67].
41946 2001-11-27 Paul Eggert <eggert@twinsun.com>
41947 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
41948 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
41950 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41952 * gnulib-tool (func_exit): New function, to allow to pass the
41953 exit status portably through the trap. Use everywhere.
41954 (--help, --version): Signal a write error.
41955 (trap): catch SIGPIPE, for write errors.
41956 Exit at the end of the trap, with the correct exit status.
41958 2006-09-19 Karl Berry <karl@gnu.org>
41960 * doc/gnulib.texi: note about the license texinfo files.
41962 2006-09-19 Eric Blake <ebb9@byu.net>
41964 * gnulib-tool: Avoid space-tab.
41966 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
41968 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
41969 that prevented coreutils 6.1 from building. Problem reported
41970 by Petter Reinholdtsen.
41972 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
41974 * gnulib-tool (avoidlist): Fix typo that broke options like
41975 --avoid=lock that are used by coreutils bootstrap.
41977 2006-09-18 Mark D. Baushke <mdb@gnu.org>
41979 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
41980 more systematically.
41982 2006-09-18 Jim Meyering <jim@meyering.net>
41984 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
41986 2006-09-18 Bruno Haible <bruno@clisp.org>
41988 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
41990 2006-09-18 Bruno Haible <bruno@clisp.org>
41992 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
41993 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
41994 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
41995 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
41996 * m4/gettext.m4: Require autoconf >= 2.52.
41997 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
41998 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
41999 of gl_cv_header_inttypes_h.
42001 2006-09-18 Bruno Haible <bruno@clisp.org>
42003 * lib/javaversion.c: Include configmake.h.
42005 2006-09-18 Bruno Haible <bruno@clisp.org>
42007 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
42008 avoid that the while loops be executed in a subshell.
42010 2006-09-18 Bruno Haible <bruno@clisp.org>
42012 * MODULES.html.sh (func_module): Break long lines.
42013 Suggested by Bruce Korb <bkorb@gnu.org>.
42015 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42017 Speed up by a factor of 1.12.
42018 * gnulib-tool (nl): New variable.
42019 (func_import): Rewrite include directive extraction to only read each
42022 2006-09-17 Bruno Haible <bruno@clisp.org>
42024 * modules/javaversion (Makefile.am): Remove DEFS setting.
42025 (Depends-on): Add configmake, for PKGDATADIR definition.
42027 2006-09-17 Bruno Haible <bruno@clisp.org>
42029 * gnulib-tool (func_create_testdir): Rewrite all files at once.
42031 2006-09-17 Bruno Haible <bruno@clisp.org>
42033 * gnulib-tool (func_append): New function, stolen from libtool.m4.
42034 (func_modules_transitive_closure, func_modules_add_dummy,
42035 func_modules_to_filelist, func_import, func_create_testdir,
42036 func_create_megatestdir, ...): Use it wherever possible.
42037 Suggested by Ralf Wildenhues.
42039 2006-09-16 Karl Berry <karl@gnu.org>
42041 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
42042 to avoid sectioning errors.
42043 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
42044 [ifinfo]: blank line after @center-ed titles.
42045 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
42046 Spell FSF address consistently with others.
42047 (These changes approved by rms.)
42049 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42051 Speed up by a factor of 1.61.
42052 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
42053 already checked module names again.
42055 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42057 Speed up by a factor of 1.13.
42058 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
42059 for new_files, and the input to func_add_or_update.
42061 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42063 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
42064 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
42066 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
42068 * modules/mkancesdirs (Depends-on): Add fcntl.
42069 * modules/savewd: New file.
42070 * MODULES.html.sh (File system functions): Add savewd.
42072 * modules/configmake (Makefile.am): Add support for the
42073 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
42075 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
42077 * m4/savewd.m4: New file.
42079 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
42081 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
42082 (dirchownmod): New arg FD. All callers changed.
42083 Use FD rather than opening the directory ourself, as opening is
42084 now the caller's responsibility.
42085 * lib/dirchownmod.h: Likewise.
42086 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
42087 hosts that require <sys/types.h> before <sys/stat.h>. Include
42088 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
42089 (test_dir): Remove.
42090 (mkancesdirs): Return length of prefix of FILE that has already
42091 been made, or -2 if there is a child doing the work. Redo
42092 algorithm so that it is O(N) rather than O(N**2). Optimize away
42093 ".", and treat ".." specially since it might stray back into
42094 already-created areas. Use a subprocess if necessary. New arg
42095 WD; all users changed. MAKE_DIR function should now return 1
42096 if it creates a directory that is not readable. Return -2 if
42097 a child process is spun off.
42098 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
42099 Adjust signature to match code.
42100 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
42101 (make_dir_parents): Use a subprocess if necessary. New arg WD;
42103 * lib/savewd.c, lib/savewd.h: New files.
42105 2006-09-15 Jim Meyering <jim@meyering.net>
42107 * modules/rename-dest-slash: New module.
42108 * MODULES.html.sh (posix_compat): Add it here.
42110 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
42112 2006-09-15 Jim Meyering <jim@meyering.net>
42114 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
42117 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
42119 2006-09-15 Jim Meyering <jim@meyering.net>
42121 * lib/rename-dest-slash.c (has_trailing_slash): Use
42122 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
42123 (rpl_rename_dest_slash): Perform the cheaper trailing slash
42124 test before testing whether SRC is a directory.
42125 Suggestions from Bruno Haible.
42127 Avoid a warning about an unused variable.
42128 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
42129 into the #ifdef block where it's used.
42131 * lib/rename-dest-slash.c: New file.
42133 2006-09-14 Bruno Haible <bruno@clisp.org>
42135 * lib/allocsa.c: Include <config.h> unconditionally.
42136 * lib/asnprintf.c: Likewise.
42137 * lib/asprintf.c: Likewise.
42138 * lib/c-strcasecmp.c: Likewise.
42139 * lib/c-strcasestr.c: Likewise.
42140 * lib/c-strncasecmp.c: Likewise.
42141 * lib/c-strstr.c: Likewise.
42142 * lib/classpath.c: Likewise.
42143 * lib/clean-temp.c: Likewise.
42144 * lib/concatpath.c: Likewise.
42145 * lib/copy-file.c: Likewise.
42146 * lib/csharpcomp.c: Likewise.
42147 * lib/csharpexec.c: Likewise.
42148 * lib/execute.c: Likewise.
42149 * lib/fatal-signal.c: Likewise.
42150 * lib/findprog.c: Likewise.
42151 * lib/fwriteerror.c: Likewise.
42152 * lib/gl_array_list.c: Likewise.
42153 * lib/gl_array_oset.c: Likewise.
42154 * lib/gl_avltree_list.c: Likewise.
42155 * lib/gl_avltree_oset.c: Likewise.
42156 * lib/gl_avltreehash_list.c: Likewise.
42157 * lib/gl_carray_list.c: Likewise.
42158 * lib/gl_linked_list.c: Likewise.
42159 * lib/gl_linkedhash_list.c: Likewise.
42160 * lib/gl_list.c: Likewise.
42161 * lib/gl_oset.c: Likewise.
42162 * lib/gl_rbtree_list.c: Likewise.
42163 * lib/gl_rbtree_oset.c: Likewise.
42164 * lib/gl_rbtreehash_list.c: Likewise.
42165 * lib/imaxabs.c: Likewise.
42166 * lib/imaxdiv.c: Likewise.
42167 * lib/javacomp.c: Likewise.
42168 * lib/javaexec.c: Likewise.
42169 * lib/javaversion.c: Likewise.
42170 * lib/linebreak.c: Likewise.
42171 * lib/localcharset.c: Likewise.
42172 * lib/lock.c: Likewise.
42173 * lib/mbchar.c: Likewise.
42174 * lib/mbswidth.c: Likewise.
42175 * lib/mkdtemp.c: Likewise.
42176 * lib/pipe.c: Likewise.
42177 * lib/printf-args.c: Likewise.
42178 * lib/printf-parse.c: Likewise.
42179 * lib/progname.c: Likewise.
42180 * lib/progreloc.c: Likewise.
42181 * lib/readlink.c: Likewise.
42182 * lib/sh-quote.c: Likewise.
42183 * lib/stpcpy.c: Likewise.
42184 * lib/stpncpy.c: Likewise.
42185 * lib/strcasecmp.c: Likewise.
42186 * lib/strcasestr.c: Likewise.
42187 * lib/strcspn.c: Likewise.
42188 * lib/striconv.c: Likewise.
42189 * lib/strncasecmp.c: Likewise.
42190 * lib/strnlen1.c: Likewise.
42191 * lib/strstr.c: Likewise.
42192 * lib/strtok_r.c: Likewise.
42193 * lib/tls.c: Likewise.
42194 * lib/tmpdir.c: Likewise.
42195 * lib/unicodeio.c: Likewise.
42196 * lib/unsetenv.c: Likewise.
42197 * lib/vasnprintf.c: Likewise.
42198 * lib/vasprintf.c: Likewise.
42199 * lib/wait-process.c: Likewise.
42200 * lib/xallocsa.c: Likewise.
42201 * lib/xsetenv.c: Likewise.
42202 * lib/xstriconv.c: Likewise.
42204 2006-09-13 Simon Josefsson <jas@extundo.com>
42206 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
42207 that internally, suggested by Ralf Wildenhues
42208 <Ralf.Wildenhues@gmx.de>.
42210 2006-09-13 Simon Josefsson <jas@extundo.com>
42212 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
42214 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42216 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
42218 * lib/_fpending.c: Include <config.h> unconditionally, since we no
42219 longer worry about uses that don't define HAVE_CONFIG_H.
42220 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
42221 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
42222 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
42223 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
42224 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
42225 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
42226 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
42227 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
42228 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
42229 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
42230 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
42231 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
42232 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
42233 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
42234 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
42235 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
42236 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
42237 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
42238 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
42239 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
42240 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
42241 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
42242 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
42243 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
42244 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
42245 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
42246 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
42247 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
42248 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
42249 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
42250 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
42251 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
42252 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
42253 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
42254 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
42255 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
42256 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
42257 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
42258 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
42259 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
42260 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
42263 2006-09-13 Eric Blake <ebb9@byu.net>
42265 * lib/getopt.c: Fix typo in last commit.
42267 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
42269 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
42272 2006-09-12 Jim Meyering <jim@meyering.net>
42274 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
42275 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
42276 Reported by Nelson H. F. Beebe.
42278 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
42280 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
42281 program_invocation_name and program_invocation_short_name are
42283 * lib/argp-namefrob.h: Move declarations of program_invocation_name
42284 and program_invocation_short_name to argp.h, so they are visible
42286 * lib/argp.h: Likewise
42288 2006-09-10 Bruno Haible <bruno@clisp.org>
42290 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
42291 m4/inttypes_h.m4, m4/uintmax_t.m4.
42293 2006-09-10 Bruno Haible <bruno@clisp.org>
42295 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
42296 gl_AC_TYPE_UINTMAX_T.
42298 2006-09-10 Bruno Haible <bruno@clisp.org>
42300 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
42302 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
42304 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
42305 convention. Text proposed by Bruno Haible.
42306 (struct argp_option): Document the use of N_() wrappers.
42308 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
42309 '\v', and translate the two parts separately, instead of feeding
42310 the whole string to gettext. This allows to exclude
42311 '\v' from the strings visible to the translator by writing doc
42312 strings as N_("..") "\v" N_("..").
42314 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
42316 * config/srclist.txt: Undo latest change; the bug was fixed.
42318 2006-09-09 Bruno Haible <bruno@clisp.org>
42320 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
42321 assignments if building a library without libtool.
42322 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
42323 in func_emit_lib_Makefile_am.
42324 (func_import): When building a static library libfoo.a, arrange to
42325 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
42326 (func_create_testdir): Likewise.
42327 * modules/gc (configure.ac, Makefile.am): If building statically,
42328 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
42329 * modules/iconvme (configure.ac, Makefile.am): Likewise.
42330 * modules/striconv (configure.ac, Makefile.am): Likewise.
42331 Based on a suggestion by Ralf Wildenhues.
42333 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
42335 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
42336 Check for unistd.h too, since Autoconf doesn't assume POSIX.
42339 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
42340 Add year_2050_test to catch glibc bug 2821
42341 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
42343 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
42344 Prefer #ifdef to #if.
42346 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
42347 Return from 'main' instead of calling 'exit'.
42349 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
42351 * lib/mktime.c (guess_time_tm): Fix bug where mktime
42352 returned the maximum time_t value rather than (time_t) -1.
42353 Problem originally reported by William Bardwell
42354 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
42356 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
42358 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
42361 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
42363 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
42366 2006-09-08 Jim Meyering <jim@meyering.net>
42368 Don't make generated files read-only. That would bother too many
42369 people. However, do retain the ability to work when targets are
42370 read-only: remove the destination and temporary files before writing
42371 them (when generated via sed or echo), or by using the -f option for
42372 both cp and mv commands. Suggestion to use -f from Paul Eggert.
42373 * modules/alloca-opt, modules/argz, modules/arpa_inet:
42374 * modules/byteswap, modules/configmake, modules/fcntl:
42375 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
42376 * modules/localcharset, modules/netinet_in, modules/poll:
42377 * modules/stdbool, modules/stdint, modules/sys_select:
42378 * modules/sys_socket, modules/sys_stat, modules/sysexits:
42380 2006-09-08 Jim Meyering <jim@meyering.net>
42382 Avoid new build failure on FreeBSD 6.0.
42383 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
42384 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
42385 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
42387 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42389 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
42391 2006-09-07 Jim Meyering <jim@meyering.net>
42393 Fix global typo in last change: use chmod u-w, not chmod u-x.
42394 Spotted by Paul Eggert and Bruce Korb.
42395 * modules/alloca-opt, modules/argz, modules/arpa_inet:
42396 * modules/byteswap, modules/configmake, modules/fcntl:
42397 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
42398 * modules/localcharset, modules/netinet_in, modules/poll:
42399 * modules/stdbool, modules/stdint, modules/sys_select:
42400 * modules/sys_socket, modules/sys_stat, modules/sysexits:
42402 2006-09-06 Jim Meyering <jim@meyering.net>
42404 Make generated files be read-only.
42405 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
42406 Ensure that each generated file is now read-only.
42407 * modules/argz: Likewise.
42408 * modules/arpa_inet: Likewise.
42409 * modules/byteswap: Likewise.
42410 * modules/configmake: Likewise.
42411 * modules/fcntl: Likewise.
42412 * modules/fnmatch: Likewise.
42413 * modules/getopt: Likewise.
42414 * modules/glob: Likewise.
42415 * modules/inttypes: Likewise.
42416 * modules/netinet_in: Likewise.
42417 * modules/poll: Likewise.
42418 * modules/stdbool: Likewise.
42419 * modules/stdint: Likewise.
42420 * modules/sys_select: Likewise.
42421 * modules/sys_socket: Likewise.
42422 * modules/sys_stat: Likewise.
42423 * modules/sysexits: Likewise.
42424 * modules/localcharset: Same as above, but continue using temporary
42425 file named "t-$@" (why different?) rather than the "$@-t" used
42428 * modules/sysexits (Makefile.am): Replace literal occurrences
42429 of "sysexit.h" more readable, and more consistent, "$@".
42431 2006-09-06 Bruno Haible <bruno@clisp.org>
42433 * modules/striconv: New file.
42434 * modules/xstriconv: New file.
42435 * MODULES.html.sh (Internationalization functions): Add striconv,
42438 2006-09-06 Bruno Haible <bruno@clisp.org>
42440 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
42441 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
42442 not using libtool correctly.
42444 2006-09-06 Bruno Haible <bruno@clisp.org>
42446 * lib/striconv.h: New file.
42447 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
42449 * lib/xstriconv.h: New file.
42450 * lib/xstriconv.c: New file.
42452 2006-09-06 Bruno Haible <bruno@clisp.org>
42454 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
42457 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42459 * lib/argz_.h: Sync from Libtool.
42461 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
42462 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42464 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
42466 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
42468 * modules/trim: New file.
42470 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
42472 * lib/trim.h: New file.
42473 * lib/trim.c: New file.
42475 2006-09-05 Bruno Haible <bruno@clisp.org>
42477 * MODULES.html.sh (String handling): Add trim.
42479 2006-09-04 Karl Berry <karl@gnu.org>
42481 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
42482 until next release.
42484 2006-09-03 Bruno Haible <bruno@clisp.org>
42486 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
42489 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
42491 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
42492 not gl_GETLOADAVG. Omit unneeded semicolons.
42493 Problems reported by Ralf Wildenhues in
42494 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
42495 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
42496 at the end, which is the usual gnulib style.
42498 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
42499 of doing all the work ourselves.
42500 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
42501 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
42503 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
42505 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
42506 Problem reported by Ralf Wildenhues in
42507 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
42509 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
42510 HAVE_STRUCT_STATFS_F_FSTYPENAME.
42512 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
42514 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
42515 yesterday's patch by changing test -n to test -z.
42517 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
42519 * modules/getloadavg (Files): Add m4/getloadavg.m4.
42520 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
42521 the former is now obsolescent.
42523 * modules/chdir-long (Depends-on): Add fcntl.
42525 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
42527 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
42528 obsolescent, and programs should use gnulib instead.
42529 * m4/getloadavg.m4: New file, with contents taken from Autoconf
42530 but with prefixes changed.
42532 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
42534 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
42535 or stdbool.h, because they might not exist while configuring.
42537 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
42538 Don't include unistd.h or limits.h; not needed, since chdir-long.h
42540 (O_DIRECTORY): Remove.
42542 2006-08-31 Eric Blake <ebb9@byu.net>
42544 * gnulib-tool: Don't let emacs change spaces to TAB.
42546 2006-08-31 Bruno Haible <bruno@clisp.org>
42548 * gnulib-tool: When calling func_import more than once, do it in a
42550 Reported by Eric Blake <ebb9@byu.net>.
42552 2006-08-31 Bruno Haible <bruno@clisp.org>
42554 * gnulib-tool (nl): Remove variable.
42555 (sed_transform_lib_file): Use more robust test for config-h module.
42556 (func_import): Fix typo in 2006-08-25 patch.
42558 2006-08-31 Bruno Haible <bruno@clisp.org>
42560 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
42561 specified, augment Makefile.am variables instead of assigning them.
42563 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42565 Work around a bug in both the Linux and SunOS 64-bit kernels:
42566 nanosleep mishandles sleeps for longer than 2**31 seconds.
42567 Problem reported by Frank v Waveren in
42568 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
42569 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
42570 Check for nanosleep bug.
42571 (LIB_NANOSLEEP): Append clock_gettime library if needed.
42573 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42575 Work around a bug in both the Linux and SunOS 64-bit kernels:
42576 nanosleep mishandles sleeps for longer than 2**31 seconds.
42577 Problem reported by Frank v Waveren in
42578 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
42579 * lib/nanosleep.c (BILLION): New constant.
42580 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
42581 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
42584 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42586 * modules/nanosleep (Depends-on): Add gettime.
42588 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42589 and Simon Josefsson <jas@extundo.com>
42590 and Oskar Liljeblad <oskar@osk.mine.nu>
42592 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
42593 * gnulib-tool (func_import): New license type 'unmodifiable license
42595 * modules/fdl: Use it. Longer description.
42596 * module/gpl, module/lgpl: New files.
42598 2006-08-30 Jim Meyering <jim@meyering.net>
42600 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
42601 shadowing the parameter.
42603 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42607 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42609 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
42610 sharing with gnulib. Report by Eric Blake.
42612 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
42614 * modules/isapipe: New file.
42615 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
42617 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
42619 * modules/configmake (Makefile.am): Add a comment, and omit
42620 the CONFIGMAKE_ prefix from generated macro names. Suggested
42623 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
42625 * m4/isapipe.m4: New file.
42627 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
42629 * lib/isapipe.c, lib/isapipe.h: New files.
42631 2006-08-29 Jim Meyering <jim@meyering.net>
42633 * modules/configmake (Makefile.am): Make configmake.h depend on
42634 Makefile. Otherwise, a stale configmake.h could hang around.
42636 2006-08-29 Eric Blake <ebb9@byu.net>
42638 * lib/error.c (error_at_line, print_errno_message): Match libc, after
42639 resolution of upstream bug 3044.
42641 2006-08-29 Bruno Haible <bruno@clisp.org>
42643 * modules/localcharset (Depends-on): Add configmake.
42644 (Makefile.am): Remove setting of LIBDIR through DEFS.
42646 2006-08-29 Bruno Haible <bruno@clisp.org>
42648 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
42651 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
42653 * modules/fcntl: New file.
42654 * modules/chdir-safer (Depends-on): Add fcntl.
42655 * modules/fts: Likewise.
42656 * modules/mkdir-p: Likewise.
42658 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
42659 This undoes the most recent change, since we're now addressing the
42660 problem in a different way.
42662 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
42663 into output, since the output might be called Makefile.am even
42664 if $makefile_name is something different.
42665 (func_import): Use $makefile_am rather than
42666 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
42669 * modules/inttypes (Files): Add m4/inttypes-h.m4.
42671 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
42673 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
42674 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
42675 recent change to stdint.m4, since we're now addressing the problem in a
42678 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
42680 * m4/fcntl_h.m4: New file.
42682 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
42684 * lib/fcntl_.h: New file.
42685 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
42687 * lib/dirchownmod.c: Likewise.
42688 * lib/fts.c: Likewise.
42690 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
42691 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
42692 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
42693 just before including <inttypes.h>, to avoid circular inclusion.
42695 2006-08-28 Jim Meyering <jim@meyering.net>
42697 * doc/visibility.texi: Actually read and correct the grammar of the
42698 sentence affected by yesterday's change.
42700 2006-08-28 Eric Blake <ebb9@byu.net>
42702 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
42705 2006-08-28 Eric Blake <ebb9@byu.net>
42707 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
42709 2006-08-28 Eric Blake <ebb9@byu.net>
42711 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
42713 2006-08-28 Bruno Haible <bruno@clisp.org>
42715 * modules/c-strstr: New file, from GNU gettext.
42716 * MODULES.html.sh (String handling): Add c-strstr.
42718 2006-08-28 Bruno Haible <bruno@clisp.org>
42720 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
42722 Reported by Eric Blake.
42724 2006-08-28 Bruno Haible <bruno@clisp.org>
42726 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
42727 (VASNPRINTF): Return a string of length > INT_MAX without failing.
42728 * lib/vasprintf.c: Include errno.h, limits.h.
42729 (EOVERFLOW): New fallback definition.
42730 (vasprintf): Test here whether the string length is > INT_MAX.
42731 * lib/vsnprintf.c: Include errno.h, limits.h.
42732 (EOVERFLOW): New fallback definition.
42733 (vsnprintf): Fix bug when generated string was too long for the buffer.
42734 Test here whether the string length is > INT_MAX.
42736 2006-08-28 Bruno Haible <bruno@clisp.org>
42738 * lib/inttypes_.h (SCNX*): Remove definitions.
42739 Reported by Eric Blake.
42741 2006-08-28 Bruno Haible <bruno@clisp.org>
42743 * lib/c-strstr.h: New file, from GNU gettext.
42744 * lib/c-strstr.c: New file, from GNU gettext.
42746 2006-08-28 Bruno Haible <bruno@clisp.org>
42748 * gnulib-tool: Reorder some statements.
42750 2006-08-28 Bruno Haible <bruno@clisp.org>
42752 * gnulib-tool: New option --makefile-name.
42753 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
42755 (func_import): Write $makefile_name to the cache file, and read it from
42756 there unless explicitly specified. Use $makefile_name as file name
42757 instead of Makefile.am. Adjust the recommendations accordingly.
42759 2006-08-28 Bruno Haible <bruno@clisp.org>
42761 * gnulib-tool (func_verify_module): Check against misapplying patch.
42763 2006-08-28 Bruno Haible <bruno@clisp.org>
42765 * gnulib-tool (func_relativize, func_relconcat): New functions.
42766 Give an error if --local-dir is given with --update.
42767 Remove trailing slashes from $local_gnulib_dir.
42768 (func_import): Store the relativized $local_gnulib_dir in
42769 gnulib-cache.m4, and read it from there if not specified explicitly.
42771 2006-08-28 Bruno Haible <bruno@clisp.org>
42773 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
42774 is the current directory. Respect also $local_gnulib_dir.
42776 2006-08-28 Bruno Haible <bruno@clisp.org>
42777 Simon Josefsson <jas@extundo.com>
42780 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
42782 2006-08-27 Jim Meyering <jim@meyering.net>
42784 * doc/visibility.texi: Remove duplicate word: "pointer".
42786 2006-08-26 Bruno Haible <bruno@clisp.org>
42788 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
42789 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
42790 (Makefile.am): Create inttypes.h from inttypes_.h.
42791 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
42793 * modules/imaxabs: New file.
42795 * modules/imaxdiv: New file.
42797 2006-08-26 Bruno Haible <bruno@clisp.org>
42799 * m4/inttypes.m4: New file.
42800 * m4/_inttypes_h.m4: Remove file.
42801 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
42803 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
42805 * m4/imaxabs.m4: New file.
42807 * m4/imaxdiv.m4: New file.
42809 2006-08-26 Bruno Haible <bruno@clisp.org>
42811 * lib/inttypes_.h: New file.
42812 * lib/inttypes.h: Remove file.
42813 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
42815 * lib/imaxabs.c: New file.
42817 * lib/imaxdiv.c: New file.
42819 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
42821 New config-h module, so that "make" output needn't be cluttered
42822 by -DHAVE_CONFIG_H.
42823 * MODULES.html.sh (Support for building libraries and executables):
42825 * modules/config-h: New file.
42826 * gnulib-tool (nl, sed_transform_lib_file): New vars.
42827 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
42828 the config-h module is used.
42830 New configmake module, so that "make" output needn't be cluttered
42831 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
42832 * MODULES.html.sh (Support for building libraries and executables):
42834 * modules/configmake: New file.
42836 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
42838 * m4/config-h.m4: New file.
42840 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
42842 * config/srclist.txt: Add elisp-comp.
42844 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
42846 * MODULES.html.sh (Support for building libraries and executables):
42848 * build-aux/elisp-comp: New file.
42849 * modules/elisp-comp: New file.
42851 2006-08-24 Bruno Haible <bruno@clisp.org>
42853 * gnulib-tool (func_create_testdir): Use non-default values of
42854 sourcebase and m4base.
42856 2006-08-24 Bruno Haible <bruno@clisp.org>
42858 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
42861 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
42863 * modules/openat (Depends-on): Add lchown.
42865 2006-08-23 Bruno Haible <bruno@clisp.org>
42867 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
42868 of gl_LOCK_EARLY instead of gl_LOCK.
42870 2006-08-23 Bruno Haible <bruno@clisp.org>
42872 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
42874 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
42876 2006-08-23 Bruno Haible <bruno@clisp.org>
42878 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
42881 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
42882 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
42883 (gl_LOCK): New macro.
42885 2006-08-22 Simon Josefsson <jas@extundo.com>
42887 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
42890 2006-08-22 Simon Josefsson <jas@extundo.com>
42892 * MODULES.html.sh: Add "Support for maintaining and release
42895 * build-aux/gnupload: New file, from coreutils.
42897 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
42899 Avoid the need for AC_LIBSOURCES in m4 macros.
42900 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
42901 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
42902 * modules/check-version (EXTRA_DIST): Add check-version.h.
42903 * modules/crc (EXTRA_DIST): Add crc.h.
42904 * modules/des (EXTRA_DIST): Add des.h.
42905 * modules/gc (EXTRA_DIST): Add gc.h.
42906 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
42907 * modules/getline (EXTRA_DIST): Add getline.h.
42908 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
42909 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
42910 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
42911 * modules/md2 (EXTRA_DIST): Add md2.h.
42912 * modules/md4 (EXTRA_DIST): Add md4.h.
42913 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
42914 * modules/read-file (EXTRA_DIST): Add read-file.h.
42915 * modules/readline (EXTRA_DIST): Add readline.h.
42916 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
42917 rijndael-api-fst.h.
42919 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
42921 * m4/rijndael.m4 (gl_ARCFOUR):
42922 * m4/arctwo.m4 (gl_ARCTWO):
42923 * m4/check-version.m4 (gl_CHECK_VERSION):
42924 * m4/crc.m4 (gl_CRC):
42925 * m4/des.m4 (gl_DES):
42926 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
42927 * m4/gc.m4 (gl_GC):
42928 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
42929 * m4/getline.m4 (gl_FUNC_GETLINE):
42930 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
42931 * m4/hmac-md5.m4 (gl_HMAC_MD5):
42932 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
42933 * m4/md2.m4 (gl_MD2):
42934 * m4/md4.m4 (gl_MD4):
42935 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
42936 * m4/read-file.m4 (gl_FUNC_READ_FILE):
42937 * m4/readline.m4 (gl_FUNC_READLINE):
42938 * m4/rijndael.m4 (gl_RIJNDAEL):
42939 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
42940 to get the necessary .h files and whatnot.
42942 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
42944 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
42945 gnulib rather than the other way around.
42946 * config/srclistvars.sh (COREUTILS): Remove.
42948 2006-08-22 Jim Meyering <jim@meyering.net>
42950 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
42952 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
42954 2006-08-22 Eric Blake <ebb9@byu.net>
42956 * modules/regexprops-generic: New file.
42957 * MODULES.html.sh (Support for building documentation): List it.
42959 2006-08-22 Eric Blake <ebb9@byu.net>
42961 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
42962 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42963 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
42964 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
42966 2006-08-22 Bruno Haible <bruno@clisp.org>
42968 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
42969 and lib_LTLIBRARIES like the other lib_* variables.
42971 2006-08-22 Bruno Haible <bruno@clisp.org>
42973 * build-aux/x-to-1.in: New file, from GNU gettext.
42975 2006-08-22 Bruno Haible <bruno@clisp.org>
42977 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
42980 2006-08-22 Bruno Haible <bruno@clisp.org>
42982 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
42985 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
42988 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
42990 Problem reported by Bruno Haible.
42992 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
42994 Avoid the need for AC_LIBSOURCES in m4 macros.
42995 * modules/acl (EXTRA_DIST): Add acl.h.
42996 * modules/argmatch (Files): Add m4/argmatch.m4.
42997 (configure.ac): Add gl_ARGMATCH.
42998 (EXTRA_DIST): Renamed from lib_SOURCES, for
42999 consistency with the other modules. Remove argmatch.c.
43000 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
43001 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
43002 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
43003 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
43004 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
43005 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
43006 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
43007 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
43008 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
43009 * modules/closeout (EXTRA_DIST): Add closeout.h.
43010 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
43011 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
43012 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
43013 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
43014 dirname.h; remove basename.c and stripslash.c.
43015 * modules/exclude (EXTRA_DIST): Add exclude.h.
43016 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
43017 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
43018 * modules/file-type (EXTRA_DIST): Add file-type.h.
43019 * modules/filemode (EXTRA_DIST): Add filemode.h.
43020 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
43021 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43022 * modules/fpending (EXTRA_DIST): Add __fpending.h.
43023 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
43024 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
43025 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
43026 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
43027 * modules/getdate (EXTRA_DIST): Add getdate.c.
43028 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
43029 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
43030 * modules/getpass (EXTRA_DIST): Add getpass.h.
43031 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
43032 * modules/group-member (EXTRA_DIST): Add group-member.h.
43033 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
43034 * modules/hash (EXTRA_DIST): Add hash.h.
43035 * modules/human (EXTRA_DIST): Add human.h.
43036 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
43037 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
43038 * modules/lchown (EXTRA_DIST): Add lchown.h.
43039 * modules/long-options (EXTRA_DIST): Add long-options.h.
43040 * modules/lstat (EXTRA_DIST): Add lstat.h.
43041 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
43042 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
43043 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
43044 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
43045 * modules/memxor (EXTRA_DIST): Add memxor.h.
43046 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
43047 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
43048 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
43049 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
43050 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
43051 * modules/physmem (EXTRA_DIST): Add physmem.h.
43052 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
43053 * modules/posixver (EXTRA_DIST): Add posixver.h.
43054 * modules/quote (EXTRA_DIST): Add quote.h.
43055 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
43056 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
43057 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
43058 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
43059 regex_internal.h regexec.c.
43060 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
43061 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
43062 * modules/same (EXTRA_DIST): Add same.h.
43063 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
43064 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
43065 * modules/savedir (EXTRA_DIST): Add savedir.h.
43066 * modules/sha1 (EXTRA_DIST): Add sha1.h.
43067 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
43068 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
43069 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
43070 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
43071 * modules/strdup (EXTRA_DIST): Add strdup.h.
43072 * modules/strftime (EXTRA_DIST): Add strftime.h.
43073 * modules/strndup (EXTRA_DIST): Add strndup.h.
43074 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
43075 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
43076 * modules/time_r (EXTRA_DIST): Add time_r.h.
43077 * modules/timespec (EXTRA_DIST): Add timespec.h.
43078 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43079 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
43080 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
43081 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
43082 * modules/userspec (EXTRA_DIST): Add userspec.h.
43083 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
43084 * modules/utimens (EXTRA_DIST): Add utimens.h.
43085 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
43086 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
43087 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
43088 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
43089 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
43090 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
43091 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
43092 * modules/yesno (EXTRA_DIST): Add yesno.h.
43094 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
43096 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
43098 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
43099 * m4/dev-ino.m4, same-inode.m4: Remove.
43101 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
43102 * m4/acl.m4 (AC_FUNC_ACL):
43103 * m4/backupfile.m4 (gl_BACKUPFILE):
43104 * m4/c-strtod.m4 (gl_C99_STRTOLD):
43105 * m4/canon-host.m4 (gl_CANON_HOST):
43106 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
43107 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
43108 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
43109 * m4/cloexec.m4 (gl_CLOEXEC):
43110 * m4/close-stream.m4 (gl_CLOSE_STREAM):
43111 * m4/closeout.m4 (gl_CLOSEOUT):
43112 * m4/dirfd.m4 (gl_FUNC_DIRFD):
43113 * m4/dirname.m4 (gl_DIRNAME):
43114 * m4/exclude.m4 (gl_EXCLUDE):
43115 * m4/exitfail.m4 (gl_EXITFAIL):
43116 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
43117 * m4/file-type.m4 (gl_FILE_TYPE):
43118 * m4/filemode.m4 (gl_FILEMODE):
43119 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
43120 * m4/fpending.m4 (gl_FUNC_FPENDING):
43121 * m4/fprintftime.m4 (gl_FPRINTFTIME):
43122 * m4/fts.m4 (gl_FUNC_FTS):
43123 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
43124 * m4/getdate.m4 (gl_GETDATE):
43125 * m4/gethrxtime.m4 (gl_GETHRXTIME):
43126 * m4/getpagesize.m4 (gl_GETPAGESIZE):
43127 * m4/getpass.m4 (gl_FUNC_GETPASS):
43128 * m4/gettime.m4 (gl_GETTIME):
43129 * m4/getugroups.m4 (gl_GETUGROUPS):
43130 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
43131 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
43132 * m4/hard-locale.m4 (gl_HARD_LOCALE):
43133 * m4/hash.m4 (gl_HASH):
43134 * m4/idcache.m4 (gl_IDCACHE):
43135 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
43136 * m4/lchown.m4 (gl_FUNC_LCHOWN):
43137 * m4/long-options.m4 (gl_LONG_OPTIONS):
43138 * m4/lstat.m4 (gl_FUNC_LSTAT):
43139 * m4/md5.m4 (gl_MD5):
43140 * m4/memcasecmp.m4 (gl_MEMCASECMP):
43141 * m4/memcoll.m4 (gl_MEMCOLL):
43142 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
43143 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
43144 * m4/memxor.m4 (gl_MEMXOR):
43145 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
43146 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
43147 * m4/modechange.m4 (gl_MODECHANGE):
43148 * m4/mountlist.m4 (gl_MOUNTLIST):
43149 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
43150 * m4/openat.m4 (gl_FUNC_OPENAT):
43151 * m4/pathmax.m4 (gl_PATHMAX):
43152 * m4/physmem.m4 (gl_PHYSMEM):
43153 * m4/posixtm.m4 (gl_POSIXTM):
43154 * m4/posixver.m4 (gl_POSIXVER):
43155 * m4/quote.m4 (gl_QUOTE):
43156 * m4/quotearg.m4 (gl_QUOTEARG):
43157 * m4/readtokens.m4 (gl_READTOKENS):
43158 * m4/readutmp.m4 (gl_READUTMP):
43159 * m4/regex.m4 (gl_REGEX):
43160 * m4/safe-read.m4 (gl_SAFE_READ):
43161 * m4/safe-write.m4 (gl_SAFE_WRITE):
43162 * m4/same.m4 (gl_SAME):
43163 * m4/save-cwd.m4 (gl_SAVE_CWD):
43164 * m4/savedir.m4 (gl_SAVEDIR):
43165 * m4/settime.m4 (gl_SETTIME):
43166 * m4/sha1.m4 (gl_SHA1):
43167 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
43168 * m4/stat-macros.m4 (gl_STAT_MACROS):
43169 * m4/stat-time.m4 (gl_STAT_TIME):
43170 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
43171 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
43172 * m4/strdup.m4 (gl_FUNC_STRDUP):
43173 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
43174 * m4/strndup.m4 (gl_FUNC_STRNDUP):
43175 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
43176 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
43177 * m4/time_r.m4 (gl_TIME_R):
43178 * m4/timespec.m4 (gl_TIMESPEC):
43179 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
43180 * m4/unlinkdir.m4 (gl_UNLINKDIR):
43181 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
43182 * m4/userspec.m4 (gl_USERSPEC):
43183 * m4/utimecmp.m4 (gl_UTIMECMP):
43184 * m4/utimens.m4 (gl_UTIMENS):
43185 * m4/xalloc.m4 (gl_XALLOC):
43186 * m4/xgetcwd.m4 (gl_XGETCWD):
43187 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
43188 * m4/xreadlink.m4 (gl_XREADLINK):
43189 * m4/xstrtod.m4 (gl_XSTRTOD):
43190 * m4/yesno.m4 (gl_YESNO):
43191 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43192 to get the necessary .h files and whatnot.
43194 2006-08-21 Mark D. Baushke <mdb@gnu.org>
43195 Bruno Haible <bruno@clisp.org>
43197 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
43198 /bin/sh understanding of '!' conditional negation.
43200 2006-08-21 Jim Meyering <jim@meyering.net>
43202 * modules/openat (Depends-on): Really alphabetize.
43204 * modules/acl (Depends-on): Add error and quote.
43206 * check-module (find_included_lib_files): Add at-func.c to the
43207 ok-to-include-more-than-once white list.
43209 * modules/openat (Depends-on): Add lstat. Alphabetize.
43211 2006-08-21 Bruno Haible <bruno@clisp.org>
43213 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43214 Emit a pkgdata_DATA variable only if some snippets add contents to it.
43215 Reported by Martin Lambers <marlam@marlam.de>.
43217 2006-08-21 Bruno Haible <bruno@clisp.org>
43219 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
43220 specify an installation location, don't emit a noinst_LIBRARIES or
43221 noinst_LTLIBRARIES assignment.
43223 2006-08-21 Bruno Haible <bruno@clisp.org>
43226 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
43227 BeOS has mbrtowc() but no <wctype.h>.
43229 2006-08-21 Bruno Haible <bruno@clisp.org>
43232 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
43235 2006-08-21 Bruno Haible <bruno@clisp.org>
43238 * lib/mbchar.h: Include <wctype.h> only if it exists.
43240 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
43242 Remove files that are no longer needed by their respective modules.
43243 * m4/obstack.m4: Remove.
43244 * m4/strerror_r.m4: Remove.
43245 * m4/uint32_t.m4: Remove.
43246 * m4/uintptr_t.m4: Remove.
43247 * m4/ullong_max.m4: Remove.
43248 * m4/xstrtoimax.m4: Remove.
43249 * m4/xstrtoumax.m4: Remove.
43251 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
43252 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
43253 dependencies now capture this.
43255 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
43256 Do not use AC_LIBSOURCES, since gnulib modules now do this.
43257 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
43258 * m4/human.m4 (gl_HUMAN): Likewise.
43259 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
43260 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
43262 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
43264 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
43265 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
43267 * m4/human.m4 (gl_HUMAN): Likewise.
43268 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
43269 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
43270 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
43271 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
43272 * m4/xstrtol (gl_XSTRTOL): Likewise.
43274 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
43275 AC_TYPE_LONG_LONG_INT.
43276 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
43277 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
43278 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
43279 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
43281 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
43284 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
43285 (gl_PREREQ_XSTRTOUL): Remove.
43287 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
43289 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
43292 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
43294 Add and change modules to make it easier for coreutils to use
43296 * modules/backupfile (Files): Remove m4/d-ino.m4.
43297 (Depends-on): Add d-ino.
43298 * modules/cycle-check (Depends-on): Add stdint.
43299 (lib_SOURCES): Add cycle-check.h.
43300 * modules/d-ino: New module.
43301 * modules/d-type: New module.
43302 * modules/error (Files): Remove m4/strerror_r.m4.
43303 * modules/filemode (Files): Add m4/st_dm_mode.m4.
43304 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43305 m4/inttypes_h.m4, m4/uintmax_t.m4.
43306 (Depends-on): Add stdint.
43307 (lib_SOURCES): Add fsusage.h.
43308 * modules/getcwd (Files): Remove d-ino.m4.
43309 (Depends-on): Add d-ino.
43310 * modules/getndelim2 (Depends-on): Add stdint.
43311 * modules/glob (Files): Remove m4/d-type.m4.
43312 (Depends-on): Add d-type.
43313 * modules/host-os: New module.
43314 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43315 m4/inttypes_h.m4, m4/uintmax_t.m4.
43316 * Depends-on: Add stdint.
43317 (lib_SOURCES): Add human.h.
43318 * modules/inttostr (Files): Remove m4/intmax_t.m4,
43319 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
43320 m4/uintmax_t.m4, m4/ulonglong.m4.
43321 (Depends-on): Add stdint.
43322 (EXTRA_DIST): Add inttostr.h.
43323 * modules/lchmod: New module.
43324 * modules/link-follow: New module.
43325 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
43326 (Depends-on): Add lchmod.
43327 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
43328 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
43329 (Depends-on): Add stdint.
43330 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
43331 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
43332 (Depends-on): Add stdint.
43333 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
43334 * modules/perl: New module.
43335 * modules/regex (Depends-on): Add stdint.
43336 * modules/rmdir-errno: New module.
43337 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
43339 (Depends-on): Add stdint.
43340 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
43342 (Depends-on): Add stdint.
43343 * modules/unlink-busy: New module.
43344 * modules/utimecmp (Depends-on): Add stdint.
43345 * modules/uptime: New module.
43346 * modules/winsz-ioctl: New module.
43347 * modules/winsz-termios: New module.
43348 * modules/xnanosleep (Depends-on): Add nanosleep.
43349 * modules/ullong_max: Remove.
43350 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
43351 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
43352 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
43353 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
43354 (Depends-on): Add inttypes.
43355 (lib_SOURCES): Add xstrtol.h.
43356 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
43357 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
43358 * MODULES.html.sh: Move 'assert' into the assert section.
43359 Move 'dummy' into the linking section.
43361 Add section for compatibility checks for POSIX:2001 functions,
43362 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
43363 winsz-ioctl, and winsz-termios into it.
43365 Add top-level Misc section and put host-os, perl, and uptime
43368 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
43370 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
43371 now assume the stdint module. Do not include inttypes.h.
43372 * lib/fsusage.h: Likewise.
43373 * lib/getndelim2.c: Likewise.
43374 * lib/human.h: Likewise.
43375 * lib/inttostr.h: Likewise.
43376 * lib/obstack.c: Likewise.
43377 * lib/regex_internal.h: Likewise.
43378 * lib/tempname.c: Likewise.
43379 * lib/utimecmp.c: Likewise.
43380 * lib/xstrtol.h: Likewise.
43382 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
43384 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
43385 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
43386 * lib/xtime.h: Likewise.
43388 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
43390 * modules/openat (Files): Add lib/fchmodat.c.
43391 Fixes problem reported by Jay Youngman.
43393 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
43395 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
43396 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
43398 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
43399 Bruno Haible <bruno@clisp.org>
43401 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
43402 and is a script that invokes bison. Tighten the code. Add comments.
43404 2006-08-18 Jim Meyering <jim@meyering.net>
43406 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
43407 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
43408 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
43409 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
43411 2006-08-18 Bruno Haible <bruno@clisp.org>
43413 * modules/bison-i18n: New file.
43414 * MODULES.html.sh (Internationalization functions): Add it.
43416 2006-08-18 Bruno Haible <bruno@clisp.org>
43418 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
43419 sys/statvfs.h. When getmntinfo was found, check its declaration and
43420 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
43422 2006-08-18 Bruno Haible <bruno@clisp.org>
43424 * m4/bison-i18n.m4: New file, from bison.
43426 2006-08-18 Bruno Haible <bruno@clisp.org>
43428 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
43429 (ME_DUMMY): Treat "kernfs" as a dummy.
43430 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
43432 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
43434 Update from coreutils.
43436 2006-08-15 Jim Meyering <jim@meyering.net>
43438 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
43440 2006-01-17 Jim Meyering <jim@meyering.net>
43442 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
43444 2006-01-11 Jim Meyering <jim@meyering.net>
43446 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
43447 Check for the lchmod function.
43449 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
43451 Update from coreutils.
43453 * lib/__fpending.h: Add copyright notice.
43454 * lib/fprintftime.h: Likewise.
43455 * lib/savedir.c: Use (C) in copyright notice.
43456 * lib/savedir.h: Likewise.
43458 2006-08-15 Jim Meyering <jim@meyering.net>
43460 * lib/at-func.c: New file, with the logic of all emulated at-functions.
43461 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
43462 in support of the EXPECTED_ERRNO macro.
43463 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
43464 definitions. Instead, define the appropriate symbols and include
43466 * lib/mkdirat.c (mkdirat): Likewise.
43467 * lib/fchmodat.c (fchmodat): Likewise.
43468 (ENOSYS): Remove definition.
43469 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
43470 it. Don't include "unistd--.h" -- it wasn't ever used.
43472 2006-01-17 Jim Meyering <jim@meyering.net>
43474 Rewrite fts.c not to change the current working directory,
43475 by using openat, fstatat, fdopendir, etc..
43477 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
43478 (HAVE_OPENAT_SUPPORT): Define.
43479 [_LIBC] (fchdir): Don't undef or define; no longer used.
43480 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
43481 Now, this `function' always succeeds, and consumes its file descriptor
43482 parameter -- so callers must not close such FDs. Update callers.
43483 (diropen_fd, opendirat, cwd_advance_fd): New functions.
43484 (diropen): Add parameter, SP. Adjust all callers.
43485 Implement using diropen_fd, rather than open.
43486 (fts_open): Initialize new member, fts_cwd_fd.
43487 Remove fts_rft-setting code.
43488 (fts_close): Close fts_cwd_fd, if necessary.
43489 (__opendir2): Define in terms of opendir or opendirat,
43490 depending on whether the FST_NOCHDIR flag is set.
43491 (fts_build): Since fts_safe_changedir consumes its FD, and since
43492 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
43493 and close the dup'd file descriptor upon failure.
43494 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
43495 (fts_safe_changedir): Tweak semantics to reflect that this function
43496 now calls cwd_advance_fd and hence consumes its FD argument.
43497 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
43498 [struct FTS] (fts_rft): Remove now-unused member.
43499 [struct FTS] (fts_cycle.state): Improve comment.
43501 * lib/openat.c (openat_needs_fchdir): New function.
43502 * lib/openat.h (openat_needs_fchdir): Declare it.
43504 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
43506 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
43507 Problem and fix reported by Pádraig Brady in
43508 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
43510 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
43512 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
43514 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
43516 * lib/memcoll.c (memcoll): Optimize for the common case where the
43517 arguments are bytewise equal.
43519 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
43521 * doc/regexprops-generic.texi: Add a copyright notice.
43523 2006-08-15 Bruno Haible <bruno@clisp.org>
43525 * modules/tmpdir (License): Change to LGPL.
43527 2006-08-15 Bruno Haible <bruno@clisp.org>
43529 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
43532 2006-08-14 Simon Josefsson <jas@extundo.com>
43534 * config/srclist.txt: Add gnupload.
43536 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43538 Change copyright notice from LGPL 2 to GPL 2, since that's the
43539 standard form used in the gnulib repository.
43540 * tests/test-lock.c: Likewise.
43541 * tests/test-stdint.c: Likewise.
43542 * tests/test-tls.c: Likewise.
43544 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
43545 prelude-manager. User shorter URLs for GNU projects, without '?'.
43546 Add copyright notice.
43548 * check-module: Add copyright notice. Output a copyright
43549 notice if "--version" is specified.
43550 * modules/COPYING: New file.
43551 * tests/test-getaddrinfo.c: Add copyright notice.
43552 * tests/test-verify.c: Likewise.
43554 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43556 Change copyright notice from LGPL 2 to GPL 2, since that's the
43557 standard form used in the gnulib repository.
43558 * lib/lock.c: LGPL -> GPL.
43559 * lib/lock.h: Likewise.
43560 * lib/strnlen1.c: Likewise.
43561 * lib/strnlen1.h: Likewise.
43562 * lib/tls.c: Likewise.
43563 * lib/tls.h: Likewise.
43564 * lib/tmpdir.c: Likewise.
43566 * lib/TODO: Remove; this belongs only in coreutils.
43568 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43570 Add copyright notices to long-enough files that lack them, since
43571 otherwise the files aren't clearly free. Use the same notice that
43572 getdate.texi already uses.
43573 * doc/alloca-opt.texi: Add copyright notice.
43574 * doc/alloca.texi: Likewise.
43575 * doc/ctime.texi: Likewise.
43576 * doc/functions.texi: Likewise.
43577 * doc/gcd.texi: Likewise.
43578 * doc/gnulib-tool.texi: Likewise.
43579 * doc/inet_ntoa.texi: Likewise.
43580 * doc/visibility.texi: Likewise.
43582 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
43583 * doc/quote.texi: Add copyright notice.
43585 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
43586 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
43587 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
43588 Mention SunOS 5.11. Mention that everything before SunOS 5.7
43589 is now obsolete, and give a pointer to the Sun list.
43590 Add copyright notice.
43592 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43594 * config/srclistvars.sh: Add copyright notice.
43596 2006-08-14 Eric Blake <ebb9@byu.net>
43598 Import the following change from libc:
43600 2006-08-12 Ulrich Drepper <drepper@redhat.com>
43603 * lib/misc/error.c: Add space between program name and message if file
43606 2006-08-12 Karl Berry <karl@gnu.org>
43608 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
43609 remove, these originate in gnulib now.
43611 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43613 * doc/Makefile (standards.info standards.html standards.dvi):
43614 Also depend on make-stds.texi.
43616 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
43618 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
43619 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
43621 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
43622 in wchar_t. Problem reported by Eric Blake.
43624 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
43625 LEN is smaller than SIZE. Suggested by Bruno Haible.
43626 Also, help the compiler to keep LEN in a register.
43628 2006-08-11 Eric Blake <ebb9@byu.net>
43630 * users.txt: Sort. Add tar.
43632 2006-08-11 Bruno Haible <bruno@clisp.org>
43634 * users.txt: New file.
43636 2006-08-11 Bruno Haible <bruno@clisp.org>
43638 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
43639 before <wchar.h>. Needed for OSF/1 and BSD/OS.
43641 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
43643 * modules/snprintf (Depends-on): Remove minmax.
43644 (Maintainer): Add self and Bruno.
43646 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
43648 * lib/.cppi-disable: Add snprintf.h, socket_.h.
43649 * lib/snprintf.c: Include <errno.h> and <limits.h>.
43650 (EOVERFLOW): Define if the system does not.
43651 Do not include "minmax.h"; it wasn't used.
43652 (snprintf): Don't assume size_t promotes to an unsigned type.
43653 Fix bug when generated string was too long for the buffer: the
43654 buffer's contents are supposed to be the initial prefix of the
43655 output. Don't assume vasnprintf returns EOVERFLOW if the size
43656 exceeds INT_MAX; do the check ourselves.
43658 Import the following changes from libc:
43660 2006-06-02 Jakub Jelinek <jakub@redhat.com>
43662 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
43663 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
43664 set wc to the byte which couldn't be converted.
43665 (re_string_reconstruct): Don't clear valid_raw_len before calling
43666 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
43667 tip_context using re_string_context_at.
43669 2006-05-02 Ulrich Drepper <drepper@redhat.com>
43671 * lib/posix/regex.h: g++ still cannot handled [restrict].
43673 2006-04-21 Ulrich Drepper <drepper@redhat.com>
43675 * lib/posix/regex.h: Remove special handling for VMS.
43677 2006-08-10 Jim Meyering <jim@meyering.net>
43679 * modules/same-inode: New module.
43680 * modules/dev-ino: New module.
43681 * modules/cycle-check: Depend on these modules, rather than simply
43682 including their .h files.
43683 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
43684 required via m4/cycle-check.m4.
43685 * modules/same: Depend on new same-inode module, rather than
43686 including same-inode.h.
43687 * modules/chdir-safer: New file.
43689 * modules/chown (Depends-on): Add stat-macros.
43691 2006-08-10 Jim Meyering <jim@meyering.net>
43693 * m4/cycle-check.m4: New file.
43694 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
43695 * m4/dev-ino.m4, m4/same-inode.m4: New files.
43697 2006-08-10 Eric Blake <ebb9@byu.net>
43699 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
43700 in from original proposal.
43702 2006-08-10 Eric Blake <ebb9@byu.net>
43703 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43705 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
43708 2006-08-10 Bruno Haible <bruno@clisp.org>
43710 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
43713 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
43715 Sync from coreutils.
43717 2006-07-19 Mike Frysinger <vapier@gentoo.org>
43719 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
43720 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
43722 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
43724 * modules/restrict: Remove; no longer needed now that we assume
43725 Autoconf 2.59 or later.
43726 * MODULES.html.sh: Remove 'restrict'.
43727 * modules/argp (Depends-on): Remove 'restrict'.
43728 * modules/base64 (Depends-on): Likewise.
43729 * modules/gc (Depends-on): Likewise.
43730 * modules/getaddrinfo (Depends-on): Likewise.
43731 * modules/glob (Depends-on): Likewise.
43732 * modules/inet_ntop (Depends-on): Likewise.
43733 * modules/inet_pton (Depends-on): Likewise.
43734 * modules/memxor (Depends-on): Likewise.
43735 * modules/regex (Depends-on): Likewise.
43736 * modules/strtok_r (Depends-on): Likewise.
43737 * modules/time_r (Depends-on): Likewise.
43739 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
43741 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
43742 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
43743 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
43744 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
43745 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
43746 * m4/memxor.m4 (gl_MEMXOR): Likewise.
43747 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
43748 gl_C_RESTRICT replaced by AC_C_RESTRICT.
43750 Merge from coreutils.
43751 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
43752 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
43753 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
43754 * m4/time_r.m4 (gl_TIME_R): Likewise.
43756 2006-08-09 Karl Berry <karl@gnu.org>
43758 * config/srclist.txt: no more gettext-tools, per Bruno.
43760 2006-08-08 Eric Blake <ebb9@byu.net>
43762 * modules/verror: New module.
43763 * MODULES.html.sh: Document it.
43765 2006-08-08 Eric Blake <ebb9@byu.net>
43767 * lib/verror.h, lib/verror.c: New files.
43769 2006-08-08 Eric Blake <ebb9@byu.net>
43771 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
43772 verror_at_line output complies with GNU Coding Standards even when
43775 2006-08-07 Bruno Haible <bruno@clisp.org>
43777 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
43779 Reported by Ralf Wildenhues.
43781 2006-08-07 Bruno Haible <bruno@clisp.org>
43783 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
43784 in an AC_DEFUN. Needed so that the autoconf snippets can use
43787 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43789 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43790 Initialize pkgdata_DATA.
43791 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
43794 2006-08-06 Eric Blake <ebb9@byu.net>
43796 * lib/error.h: Fold in some upstream changes from glibc.
43797 * lib/error.c: Likewise.
43799 2006-08-04 Bruno Haible <bruno@clisp.org>
43801 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43802 Make the mostlyclean-local rule depend on mostlyclean-generic.
43803 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
43805 2006-07-31 Bruno Haible <bruno@clisp.org>
43807 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
43808 <stdlib.h>, <string.h>.
43810 2006-07-30 Bruno Haible <bruno@clisp.org>
43812 * modules/readlink (License): Change to LGPL.
43814 2006-07-30 Bruno Haible <bruno@clisp.org>
43816 * modules/javaversion (Makefile.am): Distribute javaversion.java and
43817 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
43818 set PKGDATADIR to point to it.
43820 2006-07-30 Bruno Haible <bruno@clisp.org>
43822 * modules/csharpexec (configure.ac): Comment out macro invocation.
43823 * modules/javaexec (configure.ac): Likewise.
43824 * modules/javacomp-script (configure.ac): Likewise.
43826 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
43828 2006-07-30 Bruno Haible <bruno@clisp.org>
43830 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
43833 2006-07-30 Bruno Haible <bruno@clisp.org>
43835 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
43837 2006-07-30 Bruno Haible <bruno@clisp.org>
43839 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43840 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
43843 2006-07-29 Bruno Haible <bruno@clisp.org>
43845 Make it possible for gnulib-tool to work with locally modified or
43846 augmented gnulib repositories.
43847 * gnulib-tool (func_usage): Document --local-dir option.
43848 (local_gnulib_dir): New variable.
43849 Handle --local-dir option.
43850 (func_lookup_file): New function.
43851 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
43852 (func_get_description, func_get_filelist, func_get_description,
43853 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
43854 func_get_automake_snippet, func_get_include_directive,
43855 func_get_license, func_get_maintainer): Use func_lookup_file.
43856 (func_import, func_create_testdir): Use func_lookup_file.
43858 2006-07-29 Bruno Haible <bruno@clisp.org>
43860 * modules/setenv (Depends-on): Add unistd.
43862 2006-07-29 Bruno Haible <bruno@clisp.org>
43864 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
43866 2006-07-29 Bruno Haible <bruno@clisp.org>
43868 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
43870 2006-07-29 Bruno Haible <bruno@clisp.org>
43872 * gnulib-tool (import, update): If there is no Makefile.am, look at
43873 aclocal.m4, instead of bailing out.
43875 2006-07-29 Bruno Haible <bruno@clisp.org>
43877 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
43878 Categorize the options by when they are useful.
43880 2006-07-29 Bruno Haible <bruno@clisp.org>
43882 * gnulib-tool (func_usage): Document option --no-libtool.
43883 Handle option --no-libtool.
43884 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
43885 for changed semantics of $libtool variable.
43886 (func_import): Likewise. If libtool is not used, show this through
43887 an option --no-libtool.
43888 (func_create_testdir): Update.
43890 2006-07-29 Bruno Haible <bruno@clisp.org>
43892 * gnulib-tool (func_import): Extend error message about missing
43895 2006-07-29 Bruno Haible <bruno@clisp.org>
43897 * gnulib-tool (func_import): Don't create the $docbase directory if
43898 there is no file to store there.
43900 2006-07-29 Bruno Haible <bruno@clisp.org>
43902 * gnulib-tool (autoconf_minversion): If a --dir option is given and
43903 relevant, look for configure.ac there, not in the current directory.
43904 Also use a simple search for AC_PREREQ, not "autoconf --trace".
43906 2006-07-29 Bruno Haible <bruno@clisp.org>
43908 * gnulib-tool (SORT): New variable.
43909 (func_usage): Undocument --assume-autoconf option.
43910 Remove --assume-autoconf option handling.
43911 (autoconf_minversion): Determine from the contents of configure.ac.
43912 (func_import): Remove autoconf_minversion handling.
43913 Suggested by Eric Blake.
43915 2006-07-29 Bruno Haible <bruno@clisp.org>
43917 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
43919 2006-07-29 Bruno Haible <bruno@clisp.org>
43921 * config/srclist.txt (*setenv.[ch]): Remove rules.
43923 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
43925 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
43927 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
43929 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
43932 2006-07-28 Simon Josefsson <jas@extundo.com>
43934 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
43935 * modules/inet_pton (Depends-on): Likewise.
43937 2006-07-28 Simon Josefsson <jas@extundo.com>
43939 * m4/netinet_in_h.m4: New file.
43941 2006-07-28 Simon Josefsson <jas@extundo.com>
43943 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
43946 2006-07-28 Simon Josefsson <jas@extundo.com>
43948 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
43951 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
43953 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
43954 setgid on directories only if they set these bits.
43955 * lib/modechange.h: Remove obsolete comment about masks.
43957 2006-07-28 Eric Blake <ebb9@byu.net>
43959 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
43962 2006-07-28 Bruno Haible <bruno@clisp.org>
43964 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
43966 2006-07-28 Bruno Haible <bruno@clisp.org>
43968 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
43970 2006-07-28 Bruno Haible <bruno@clisp.org>
43972 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
43973 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
43975 Avoids link error on FreeBSD 4.x.
43976 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43978 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
43980 * lib/mbswidth.c (iswcntrl): Likewise.
43982 2006-07-27 Bruno Haible <bruno@clisp.org>
43984 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
43987 2006-07-27 Bruno Haible <bruno@clisp.org>
43989 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
43990 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
43993 2006-07-26 Eric Blake <ebb9@byu.net>
43995 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
43997 2006-07-26 Eric Blake <ebb9@byu.net>
43999 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
44000 like mingw that lack mkstemp.
44001 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
44002 avoid compilation warning on mingw.
44004 2006-07-26 Bruno Haible <bruno@clisp.org>
44006 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
44007 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
44008 INT_FAST*_MIN, INTPTR_MIN.
44010 2006-07-25 Bruno Haible <bruno@clisp.org>
44012 * modules/version-etc (Depends-on): Add stdarg.
44014 2006-07-25 Bruno Haible <bruno@clisp.org>
44016 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
44019 2006-07-25 Bruno Haible <bruno@clisp.org>
44021 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
44022 defined in <stdarg.h> or config.h.
44024 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
44026 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
44027 (gl_STDIO_SAFER): Remove.
44029 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
44031 * MODULES.html.sh (File stream based Input/Output):
44032 Add fopen-safer, tmpfile-safer; remove stdio-safer.
44033 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
44034 * modules/fopen-safer, modules/tmpfile-safer: New files.
44035 * modules/stdio-safer: Remove.
44037 2006-07-24 Bruno Haible <bruno@clisp.org>
44039 * modules/tmpdir: New file.
44040 * MODULES.html.sh (File system functions): Add it.
44042 2006-07-24 Bruno Haible <bruno@clisp.org>
44044 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
44045 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
44047 2006-07-24 Bruno Haible <bruno@clisp.org>
44049 * modules/clean-temp: New file.
44051 2006-07-24 Bruno Haible <bruno@clisp.org>
44053 * m4/tmpdir.m4: New file, from GNU gettext.
44055 2006-07-24 Bruno Haible <bruno@clisp.org>
44057 * lib/tmpdir.h: New file, from GNU gettext.
44058 * lib/tmpdir.c: New file, from GNU gettext.
44060 2006-07-24 Bruno Haible <bruno@clisp.org>
44062 * lib/clean-temp.h: New file, from GNU gettext.
44063 * lib/clean-temp.c: New file, from GNU gettext.
44065 2006-07-23 Eric Blake <ebb9@byu.net>
44067 * modules/stdio-safer (Files): Add tmpfile-safer.c.
44068 (Depends-on): Add binary-io.
44070 2006-07-23 Eric Blake <ebb9@byu.net>
44072 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
44074 2006-07-23 Eric Blake <ebb9@byu.net>
44076 * lib/tmpfile-safer.c: New file.
44077 * lib/stdio-safer.h (fopen_safer): Add prototype.
44078 * lib/stdio--.h (tmpfile): Make safer.
44080 2006-07-23 Bruno Haible <bruno@clisp.org>
44082 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
44083 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
44084 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
44085 gl_linked_remove_at): Use it.
44087 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44088 and Simon Josefsson <jas@extundo.com>
44090 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
44092 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
44094 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
44096 * modules/close-stream: New file.
44097 * modules/closeout (Description): Make it clear that it exits
44098 with a diagnostic on error.
44099 (Depends-on): Add close-stream. Remove fpending, stdbool.
44100 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
44102 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
44104 * m4/close-stream.m4: New file.
44106 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
44108 * lib/close-stream.c, lib/close-stream.h: New files.
44110 2006-07-22 Bruno Haible <bruno@clisp.org>
44112 Merge from GNU gettext 0.15.
44114 2006-05-01 Bruno Haible <bruno@clisp.org>
44116 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
44118 2006-07-22 Bruno Haible <bruno@clisp.org>
44120 * modules/javaversion: New file.
44121 * MODULES.html.sh (Java): Add javaversion.
44123 2006-03-12 Bruno Haible <bruno@clisp.org>
44125 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
44127 2005-12-04 Bruno Haible <bruno@clisp.org>
44129 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
44132 2006-06-21 Bruno Haible <bruno@clisp.org>
44134 Avoid warnings from recent versions of mcs.
44135 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
44136 -o, -L, -r any more. Use options documented since mcs-1.0
44137 instead. Similarly for -g.
44139 2005-12-04 Bruno Haible <bruno@clisp.org>
44141 * build-aux/csharpcomp.sh.in: Suffix for resources is
44142 .resources, not .resource.
44144 2005-07-09 Bruno Haible <bruno@clisp.org>
44146 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
44148 Reported by Mark Junker <mjscod@gmx.de>.
44150 2006-07-22 Bruno Haible <bruno@clisp.org>
44152 * modules/gettext: Upgrade to gettext-0.15.
44153 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
44155 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
44157 2006-07-22 Bruno Haible <bruno@clisp.org>
44159 Merge from GNU gettext 0.15.
44161 2006-03-25 Bruno Haible <bruno@clisp.org>
44163 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
44165 2006-07-21 Bruno Haible <bruno@clisp.org>
44167 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
44170 2006-05-09 Bruno Haible <bruno@clisp.org>
44172 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
44173 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
44174 for the conftestver execution.
44176 2006-05-01 Bruno Haible <bruno@clisp.org>
44178 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
44179 optional target-version argument. Verify that the compiler
44180 groks source of the specified source-version, or add -source
44181 option as necessary. Verify that the compiler produces
44182 bytecode in the specified target-version, or add -target and
44183 -source options as necessary. Make the result of the test
44184 available as variable CONF_JAVAC. Also log error output in
44187 2006-03-11 Bruno Haible <bruno@clisp.org>
44189 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
44191 2006-05-09 Bruno Haible <bruno@clisp.org>
44193 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
44194 CLASSPATH_SEPARATOR to a semicolon.
44196 2006-03-12 Bruno Haible <bruno@clisp.org>
44198 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
44199 available as variable CONF_JAVA, for subsequent autoconf
44200 tests. Also log error output in config.log.
44202 2006-07-19 Bruno Haible <bruno@clisp.org>
44204 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
44205 that getline works on glibc2 systems. Needed to avoid trouble
44207 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
44209 2005-12-04 Bruno Haible <bruno@clisp.org>
44211 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
44212 launcher (untested).
44214 2005-12-04 Bruno Haible <bruno@clisp.org>
44216 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
44218 2006-07-22 Bruno Haible <bruno@clisp.org>
44220 * gettext.m4: Update from GNU gettext-0.15.
44221 * nls.m4: Likewise.
44223 * inttypes-pri.m4: Likewise.
44224 * inttypes-h.m4: Renamed from inttypes.m4.
44225 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
44227 2006-07-22 Bruno Haible <bruno@clisp.org>
44229 Merge from GNU gettext 0.15.
44231 2005-07-05 Bruno Haible <bruno@clisp.org>
44233 * printf-args.c (printf_fetchargs): Work around broken
44234 definition of wint_t on mingw.
44236 2005-02-12 Bruno Haible <bruno@clisp.org>
44238 * xallocsa.h: Add extern "C" for C++.
44240 2006-05-17 Bruno Haible <bruno@clisp.org>
44242 Cygwin portability.
44243 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
44245 2006-04-30 Bruno Haible <bruno@clisp.org>
44247 * progreloc.c: Include <mach-o/dyld.h> if available.
44248 (find_executable): Use _NSGetExecutablePath when possible.
44250 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
44252 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
44255 2005-12-29 Bruno Haible <bruno@clisp.org>
44257 * progreloc.c (set_program_name_and_installdir): Fix
44260 2005-12-04 Bruno Haible <bruno@clisp.org>
44262 Cygwin portability.
44263 * progreloc.c: Include <windows.h> also on Cygwin.
44264 (find_executable): Add support for Cygwin.
44265 (set_program_name_and_installdir): Handle also platforms with
44268 2006-07-11 Bruno Haible <bruno@clisp.org>
44270 * javacomp.c: Fix a comment.
44271 Reported by Jim Meyering.
44273 2006-04-30 Bruno Haible <bruno@clisp.org>
44275 * javacomp.h (compile_java_class): Add source_version,
44276 target_version arguments.
44277 * javacomp.c: Rewritten to choose only a compiler that
44278 respects the specified source_version and target_version.
44280 2006-06-27 Bruno Haible <bruno@clisp.org>
44282 Assume correct S_ISDIR macro.
44283 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
44285 2006-07-22 Bruno Haible <bruno@clisp.org>
44287 * javaversion.h: New file, from GNU gettext.
44288 * javaversion.c: New file, from GNU gettext.
44289 * javaversion.java: New file, from GNU gettext.
44290 * javaversion.class: New file, from GNU gettext.
44292 2006-05-17 Bruno Haible <bruno@clisp.org>
44294 Cygwin portability.
44295 * javaexec.c (execute_java_class): Test for jview program
44298 2006-04-09 Bruno Haible <bruno@clisp.org>
44300 * fatal-signal.c: Don't include string.h.
44301 (at_fatal_signal): Use a copying loop instead of memcpy.
44303 2005-12-04 Bruno Haible <bruno@clisp.org>
44305 * csharpexec.c: Add support for 'clix' launcher (untested).
44306 (execute_csharp_using_sscli): New function.
44307 (execute_csharp_program): Call it.
44309 2006-06-21 Bruno Haible <bruno@clisp.org>
44311 Avoid warnings from recent versions of mcs.
44312 * csharpcomp.c (compile_csharp_using_mono): Don't use options
44313 -o, -L, -r any more. Use options documented since mcs-1.0
44314 instead. Similarly for -g.
44316 2005-07-09 Bruno Haible <bruno@clisp.org>
44318 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
44320 Reported by Mark Junker <mjscod@gmx.de>.
44322 2006-06-17 Bruno Haible <bruno@clisp.org>
44324 * config.charset: Update for NetBSD 3.0.
44326 2006-05-17 Bruno Haible <bruno@clisp.org>
44328 Cygwin portability.
44329 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
44331 2006-05-16 Bruno Haible <bruno@clisp.org>
44333 * localcharset.c [CYGWIN]: Include <windows.h>.
44334 (get_charset_aliases): For Cygwin, return the same CPxxx
44335 aliases list as under WIN32.
44336 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
44337 the environment variables. Fall back to GetACP().
44339 2006-04-05 Bruno Haible <bruno@clisp.org>
44341 * config.charset: Update Juan Manuel Guerrero's address.
44343 2005-02-12 Bruno Haible <bruno@clisp.org>
44345 * allocsa.h: Add extern "C" for C++.
44347 2005-02-10 Bruno Haible <bruno@clisp.org>
44349 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
44350 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
44352 2006-07-22 Bruno Haible <bruno@clisp.org>
44354 * gettext.h: Update to GNU gettext-0.15.
44356 2006-07-22 Bruno Haible <bruno@clisp.org>
44358 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
44359 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
44360 lib-prefix.m4, longdouble.m4, ssize_t.m4.
44362 2006-07-21 Eric Blake <ebb9@byu.net>
44364 * modules/stdlib-safer: New file.
44365 * MODULES.html.sh (File stream based Input/Output): Add
44368 2006-07-21 Eric Blake <ebb9@byu.net>
44370 * lib/stdlib-safer.h: New file from coreutils, required by
44373 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
44375 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
44377 2006-07-20 Bruno Haible <bruno@clisp.org>
44379 * gnulib-tool: Recognize new option --assume-autoconf.
44380 (autoconf_minversion): New variable.
44381 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
44383 2006-07-20 Bruno Haible <bruno@clisp.org>
44385 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
44387 2006-07-19 Derek R. Price <derek@ximbiot.com>
44389 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
44390 Reindent and repaginate.
44392 2006-07-19 Derek Price <derek@ximbiot.com>
44394 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
44397 2006-07-17 Bruno Haible <bruno@clisp.org>
44399 * modules/list: New file.
44400 * modules/array-list: New file.
44401 * modules/carray-list, modules/carray-list-tests: New files.
44402 * modules/linked-list, modules/linked-list-tests: New files.
44403 * modules/avltree-list, modules/avltree-list-tests: New files.
44404 * modules/rbtree-list, modules/rbtree-list-tests: New files.
44405 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
44406 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
44407 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
44408 * modules/oset: New file.
44409 * modules/array-oset: New file.
44410 * modules/avltree-oset, modules/avltree-oset-tests: New files.
44411 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
44412 * tests/test-carray_list.c: New file.
44413 * tests/test-linked_list.c: New file.
44414 * tests/test-avltree_list.c: New file.
44415 * tests/test-rbtree_list.c: New file.
44416 * tests/test-linkedhash_list.c: New file.
44417 * tests/test-avltreehash_list.c: New file.
44418 * tests/test-rbtreehash_list.c: New file.
44419 * tests/test-avltree_oset.c: New file.
44420 * tests/test-rbtree_oset.c: New file.
44421 * MODULES.html.sh (Container data structures): New section.
44423 2006-07-17 Bruno Haible <bruno@clisp.org>
44425 * m4/gl_list.m4: New file.
44427 2006-07-17 Bruno Haible <bruno@clisp.org>
44429 * lib/gl_list.h: New file.
44430 * lib/gl_list.c: New file.
44431 * lib/gl_array_list.h: New file.
44432 * lib/gl_array_list.c: New file.
44433 * lib/gl_carray_list.h: New file.
44434 * lib/gl_carray_list.c: New file.
44435 * lib/gl_linked_list.h: New file.
44436 * lib/gl_linked_list.c: New file.
44437 * lib/gl_anylinked_list1.h: New file.
44438 * lib/gl_anylinked_list2.h: New file.
44439 * lib/gl_avltree_list.h: New file.
44440 * lib/gl_avltree_list.c: New file.
44441 * lib/gl_anyavltree_list1.h: New file.
44442 * lib/gl_anyavltree_list2.h: New file.
44443 * lib/gl_rbtree_list.h: New file.
44444 * lib/gl_rbtree_list.c: New file.
44445 * lib/gl_anyrbtree_list1.h: New file.
44446 * lib/gl_anyrbtree_list2.h: New file.
44447 * lib/gl_anytree_list1.h: New file.
44448 * lib/gl_anytree_list2.h: New file.
44449 * lib/gl_linkedhash_list.h: New file.
44450 * lib/gl_linkedhash_list.c: New file.
44451 * lib/gl_anyhash_list1.h: New file.
44452 * lib/gl_anyhash_list2.h: New file.
44453 * lib/gl_avltreehash_list.h: New file.
44454 * lib/gl_avltreehash_list.c: New file.
44455 * lib/gl_rbtreehash_list.h: New file.
44456 * lib/gl_rbtreehash_list.c: New file.
44457 * lib/gl_anytreehash_list1.h: New file.
44458 * lib/gl_anytreehash_list2.h: New file.
44460 * lib/gl_oset.h: New file.
44461 * lib/gl_oset.c: New file.
44462 * lib/gl_array_oset.h: New file.
44463 * lib/gl_array_oset.c: New file.
44464 * lib/gl_avltree_oset.h: New file.
44465 * lib/gl_avltree_oset.c: New file.
44466 * lib/gl_rbtree_oset.h: New file.
44467 * lib/gl_rbtree_oset.c: New file.
44468 * lib/gl_anytree_oset.h: New file.
44470 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
44472 * m4/mkancesdirs.m4: New file.
44473 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
44474 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
44475 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
44478 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
44480 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
44481 * lib/mkancesdirs.h: New files.
44482 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
44483 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
44484 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
44485 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
44486 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
44487 callers changed. Revamp internals significantly, by not
44488 attempting to create directories that are temporarily more
44489 permissive than the final results. Do not attempt to use
44490 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
44491 This removes some race conditions, fixes some bugs, and simplifies
44492 things. Use new dirchownmod function to do owner and mode changes.
44493 * lib/mkdir-p.h: Likewise.
44494 * lib/modechange.c (octal_to_mode): New function.
44495 (struct mode_change): New member mentioned.
44496 (make_node_op_equals): New arg mentioned. All callers changed.
44497 (mode_compile): Keep track of which mode bits the user has explicitly
44499 (mode_adjust): New arg DIR, so that we implement the X op correctly.
44500 New arg PMODE_BITS, to keep track of which mode bits the user
44501 mentioned; it treats S_ISUID and S_ISGID speciall.
44502 All callers changed.
44503 * lib/modechange.h: Likewise.
44505 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
44507 * MODULES.html.sh: Add mkancestors.
44508 * modules/mkancesdirs: New module.
44509 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
44510 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
44511 The chdir-safer and afs files are now orphans; I'll remove them
44512 unless someone speaks up.
44513 Add lib/dirchownmod.c, lib/dirchownmod.h.
44514 (Depends-on): Remove alloca, chown, save-cwd, dirname.
44515 Add lchown, mkancesdirs.
44516 (Maintainer): Add self.
44518 2006-07-15 Karl Berry <karl@gnu.org>
44520 * gnulib-tool: help message wording/arrangement.
44522 2006-07-14 Simon Josefsson <jas@extundo.com>
44524 * doc/gnulib.texi (Libtool and Windows): New section.
44526 2006-07-12 Simon Josefsson <jas@extundo.com>
44528 * modules/gendocs (License): Fix license, approved by Karl.
44530 2006-07-12 Eric Blake <ebb9@byu.net>
44532 * MODULES.html.sh: Add gendocs.
44534 2006-07-11 Eric Blake <ebb9@byu.net>
44536 * modules/fdl: New module, to install doc/fdl.texi.
44537 * MODULES.html.sh: Add new section for documentation modules.
44538 * gnulib-tool: Avoid space-tab.
44539 (--doc-base): New option, to manage files from doc.
44541 2006-07-11 Eric Blake <ebb9@byu.net>
44543 * m4/absolute-header.m4: Fix comments to match recent change.
44545 2006-07-11 Eric Blake <ebb9@byu.net>
44547 * gnulib-tool: List --doc-base before --tests-base.
44549 2006-07-11 Derek R. Price <derek@ximbiot.com>
44551 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
44553 2006-07-11 Bruno Haible <bruno@clisp.org>
44555 * README: Mention where to put documentation.
44557 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44559 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
44561 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
44563 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
44566 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
44568 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
44569 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
44570 "no/such/file/stdint.h" when there is no such file, so that
44571 the resulting C code can be parsed by dodgy compilers.
44572 Problems reported by Bob Proulx.
44574 2006-07-10 Derek R. Price <derek@ximbiot.com>
44576 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
44577 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
44578 macros into the GNU _D_EXACT_NAMLEN.
44579 * lib/savedir.c: Likewise.
44580 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
44582 2006-07-10 Derek R. Price <derek@ximbiot.com>
44583 and Paul Eggert <eggert@cs.ucla.edu>
44585 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
44587 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
44588 macros into the GNU _D_EXACT_NAMLEN.
44590 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
44592 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
44593 around the absolute name, to work around a problem with the HP-UX
44594 11.23 native C compiler, reported by Bob Proulx.
44596 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
44598 * doc/maintain.texi, make-stds.texi: Sync from
44599 <http://savannah.gnu.org/projects/gnustandards>.
44601 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
44603 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
44605 2006-07-09 Jim Meyering <jim@meyering.net>
44607 * m4/glob.m4: Remove a doubled word in a comment.
44609 2006-07-09 Jim Meyering <jim@meyering.net>
44611 * lib/argp-pv.c: Remove a doubled word in a comment.
44612 * lib/check-version.c (check_version): Likewise.
44613 * lib/javacomp.c (compile_java_class): Likewise.
44615 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
44617 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
44618 for the benefit of people using Autoconf 2.60. If you want to
44619 support older Autoconf versions you can copy m4/onceonly_2_57.m4
44620 (or m4/onceonly.m4, if pre-2.57) manually.
44622 2006-07-08 Jim Meyering <jim@meyering.net>
44624 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
44626 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
44627 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
44630 2006-07-08 Jim Meyering <jim@meyering.net>
44632 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
44634 2006-07-07 Simon Josefsson <jas@extundo.com>
44636 * tests/test-crc.c: Change expected crc value, the test vector
44637 were probably computed using the old broken crc.c?
44639 2006-07-06 Simon Josefsson <jas@extundo.com>
44641 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
44642 now the canonical place for the M4 file).
44644 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
44645 from the sys_socket dependency now.
44647 * modules/inet_pton (Files): Ditto.
44649 * modules/inet_ntop (Files): Ditto.
44651 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
44653 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
44654 not gl_PREREQ_GETUSERSHELL.
44656 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44658 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
44659 with only one argument, for Autoconf 2.60.
44660 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
44661 expand to nothing, so add a shell command to avoid syntax error.
44662 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
44664 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44666 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
44668 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
44670 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
44671 no longer needed. Check for isblank decl.
44672 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
44673 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
44676 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
44678 * lib/getloadavg.c: Use __VMS, not VMS.
44679 * lib/getopt.c: Likewise.
44680 * lib/getpagesize.h: Likewise.
44681 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
44682 and probably does not work.
44684 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
44686 * lib/.cppi-disable: Add wcwidth.
44687 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
44688 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
44689 (ISGRAPH): Remove. All uses changed to isgraph.
44690 (FOLD) [!defined _LIBC]: Remove special case.
44691 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
44692 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
44694 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
44697 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
44699 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
44700 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
44701 brackets. Other minor changes to suppress some compiler
44704 2006-07-06 Derek R. Price <derek@ximbiot.com>
44705 and Paul Eggert <eggert@cs.ucla.edu>
44707 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
44708 of invoking obsolescent AC_HEADER_DIRENT macro.
44709 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
44710 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
44711 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44712 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
44713 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
44714 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44715 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
44716 * m4/readdir.m4: Remove; no longer needed.
44718 2006-07-06 Derek R. Price <derek@ximbiot.com>
44719 and Paul Eggert <eggert@cs.ucla.edu>
44721 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
44722 Don't worry about this obsolete case any more.
44723 (HAVE_DIR): Remove. All uses removed; we now assume you can read
44725 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
44726 worry about this obsolete case any more.
44727 * lib/fts.c: Likewise.
44728 * lib/getcwd.c: Likewise.
44729 * lib/glob.h: Likewise.
44730 * lib/savedir.c: Likewise.
44732 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
44734 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
44735 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
44736 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
44739 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44740 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
44741 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
44743 * m4/getdate.m4 (gl_GETDATE): Likewise.
44744 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
44745 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
44746 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
44747 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44748 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
44749 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44750 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
44753 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
44755 * lib/memcasecmp.c: Include <limits.h>.
44756 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
44757 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
44758 Don't assume isdigit succeeds only on '0' through '9'.
44760 2006-07-05 Eric Blake <ebb9@byu.net>
44762 * modules/getaddrinfo (Depends-on): Add snprintf.
44764 2006-07-05 Eric Blake <ebb9@byu.net>
44766 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
44767 to avoid 'header present but could not be compiled' on cygwin.
44769 2006-07-05 Eric Blake <ebb9@byu.net>
44771 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
44772 missing from netdb.h.
44773 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
44775 2006-07-05 Derek R. Price <derek@ximbiot.com>
44777 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
44779 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
44780 * m4/getdate.m4 (gl_GETDATE): Likewise.
44781 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
44782 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
44783 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
44784 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44785 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44787 2006-07-05 Derek R. Price <derek@ximbiot.com>
44789 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
44790 All uses of is_space replaced by isspace.
44791 * lib/exit.h: Don't talk about STDC_HEADERS.
44792 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
44793 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
44794 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
44795 replaced by isprint etc.
44796 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
44797 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
44798 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
44799 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
44800 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
44801 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
44803 2006-07-05 Bruno Haible <bruno@clisp.org>
44805 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
44806 the function exists, before testing against AIX.
44807 Reported by Martin Lambers <marlam@marlam.de>.
44809 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
44811 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
44812 From Mark D. Baushke.
44814 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
44816 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
44817 to the absolute name, not just one, to bypass Sun C 5.8's
44818 "warning: #include of /usr/include/... may be non-portable".
44820 2006-07-04 Eric Blake <ebb9@byu.net>
44822 * modules/dirname-tests: New test module.
44823 * tests/test-dirname.c: New file, replacing dirname.c
44824 TEST_DIRNAME section that was recently deleted.
44826 2006-07-04 Bruno Haible <bruno@clisp.org>
44828 Assume ANSI C header files and <ctype.h> functions.
44829 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
44830 (mbsnwidth): Use isprint, iscntrl instead.
44832 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
44834 Merge from coreutils.
44835 * MODULES.html.sh: Add xstrtold.
44836 * modules/xstrtold: New file.
44837 * modules/cycle-check (Files): Add lib/same-inode.h.
44838 * modules/dirname (Files): Add m4/double-slash-root.m4.
44839 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
44840 * modules/mkdir-p (Files): Add lib/same-inode.h.
44841 * modules/same (Files): Add lib/same-inode.h.
44843 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
44845 * m4/absolute-header.m4: Renamed from full-header-path.m4.
44846 This is to keep the terminology clean; POSIX talks about
44847 "absolute pathnames", not "full pathnames", but the GNU
44848 Coding Standards say to use "path" for something else;
44849 so use "absolute" to keep both sides happy.
44850 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
44851 Set gl_absolute_header, not gl_full_header_path.
44852 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
44853 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
44856 Merge from coreutils.
44858 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
44860 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
44861 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
44862 want to require the building of c-strtod.o.
44863 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
44864 needs -lm directly.
44865 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
44867 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
44869 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
44870 --as-needed option if available. Problem reported by Albert Chin in
44871 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
44872 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
44873 cc merely issues a bunch of annoying warnings for --as-needed
44874 (this problem was reported by Bob Proulx). Also, try linking with
44875 -lm to detect a bug in binutils 2.16 (this problem was reported
44876 by Ralf Wildenhues).
44878 2006-06-18 Jim Meyering <jim@meyering.net>
44880 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
44881 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
44883 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
44884 also check for glibc-2.4's abort-inducing bug.
44886 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
44887 Low-probability clean-up should be to use rmdir to get rid of
44888 the just-created directory, not unlink.
44890 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
44891 configure fail, and request a bug report to inform us about it.
44892 Add a comment that, barring reports to the contrary, in 2007 we'll
44893 assume ftruncate is universally available.
44895 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
44897 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
44899 2006-03-12 Jim Meyering <jim@meyering.net>
44901 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
44902 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
44903 * m4/same.m4 (gl_SAME): Likewise.
44904 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
44906 2006-03-11 Eric Blake <ebb9@byu.net>
44908 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
44909 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
44910 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
44911 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
44913 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
44915 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
44916 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
44917 reported by Mark D. Baushke, one in
44918 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
44920 Merge from coreutils.
44922 * lib/.cppi-disable: Add stdint_.h.
44923 * lib/.cvsignore: Add stdint.h.
44925 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
44927 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
44928 both double and long double versions.
44929 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
44930 * lib/xstrtold.c: New file.
44931 * lib/xstrtod.h (xstrtold): New decl.
44933 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
44935 * lib/filemode.c (setst): Remove.
44936 (strmode): Rewrite to avoid setst. This makes the code shorter,
44937 (arguably) clearer, and the generated code is a bit smaller on my
44938 Debian GNU/Linux stable x86 host.
44940 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
44942 * lib/filemode.c: Include "filemode.h" first, to test the interface.
44943 Assume that filemode.h includes sys/types.h and sys/stat.h.
44944 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
44945 (ftypelet): Reorder to put common cases first, for efficiency.
44946 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
44948 (strmode): Renamed from mode_string, and now stores 12 bytes instead
44949 of 10, for compatibility with FreeBSD. All callers changed.
44950 (filemodestring): Now stores 12 bytes instead of 10, and sets file
44951 types that can't be deduced solely from st_mode. First arg is now a
44953 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
44954 (strmode): Renamed from mode_string.
44955 (filemodestring): New decl.
44956 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
44957 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
44959 (S_ISPORT, S_ISWHT): New macros, if not already defined.
44961 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
44963 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
44964 fsusage.h now does that. Include fsusage.h first, to test interface.
44965 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
44966 at most one method (the old code could have generated decls that
44967 didn't conform to C89, not that this was ever exercised).
44968 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
44970 2006-03-19 Jim Meyering <jim@meyering.net>
44972 Work even in a chroot where d_ino values for entries in "/"
44973 don't match the stat.st_ino values for the same names.
44974 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
44975 number, iterate through all entries again, using lstat instead.
44976 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
44977 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
44979 * lib/getcwd.c (__getcwd): Clarify a comment.
44980 Use memcpy in place of a call to strcpy.
44982 2006-03-12 Jim Meyering <jim@meyering.net>
44984 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
44985 matches that of the current directory (which we're about to chdir ".."
44986 out of), then save the dev-ino of the parent, instead.
44988 * lib/same-inode.h (SAME_INODE): New file/macro.
44989 * lib/chdir-safer.c (SAME_INODE): Remove definition.
44990 Include "same-inode.h", instead.
44991 * lib/same.c: Likewise.
44992 * lib/cycle-check.h: Include "same-inode.h".
44993 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
44994 * lib/cycle-check.c (SAME_INODE): Remove definition.
44995 * lib/root-dev-ino.h: Include "same-inode.h".
44997 2006-03-11 Eric Blake <ebb9@byu.net>
44999 * lib/same.c (same_name): s/base_name/last_component/
45000 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
45001 * lib/filenamecat.c (file_name_concat): Likewise.
45003 2006-03-11 Eric Blake <ebb9@byu.net>,
45004 Paul Eggert <eggert@cs.ucla.edu>
45006 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
45007 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
45009 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
45010 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
45011 (last_component): New method.
45012 * lib/dirname.c (dir_len): Determine when drive letters need a
45013 subsequent slash. Preserve // when it is special.
45014 (dir_name): Don't append dot when drive letter is absolute.
45015 [TEST_DIRNAME]: Move into a full-blown gnulib test.
45016 * lib/basename.c (base_name): New semantics - malloc the result.
45017 Preserve // when it is special. Preserve relative files that look
45018 like drive letters.
45019 (base_len): Preserve // when it is special.
45020 (last_component): New method, similar to old base_name semantics.
45021 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
45022 base_name. Strip redundant slashes from ///.
45024 2006-07-03 Jim Meyering <jim@meyering.net>
45026 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
45027 macro is used before the first cycle_check call.
45029 2006-07-03 Eric Blake <ebb9@byu.net>
45031 * modules/dirname (Depends-on): Add xstrndup.
45033 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
45035 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
45036 test cases, so that config.log is a bit easier to follow.
45038 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
45040 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
45041 both are 64 bits, since this seems to be the tradition, and this
45042 prevents gcc -Wformat from warning about usages with PRIuMAX. If
45043 we ever run into a host that prefers long long to long in this
45044 case, we'll need another configure-time test. Problem reported by
45047 2006-07-02 Eric Blake <ebb9@byu.net>
45049 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
45051 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
45053 * modules/inttypes (Depends-on): No longer depends on stdint.
45054 * modules/stdint (Description): Say more about assumptions.
45055 Say that the fast types might differ. Say macros are used.
45056 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
45057 (Makefile.am): Revise list of substituted symbols to match
45059 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
45060 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
45061 * tests/test-stdint.c (verify_same_types)
45062 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
45063 the code conforms to C99/C89.
45064 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
45065 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
45067 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
45069 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
45070 but fix a bug, by requiring at least 64 bits.
45071 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
45072 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
45073 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
45074 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
45076 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
45077 changes. Make 2.59 a prerequisite. Check and substitute for
45078 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
45079 inttypes.h. Do not use special include files; just use the
45080 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
45081 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
45082 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
45083 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
45084 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
45085 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
45086 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
45087 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
45088 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
45089 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
45090 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
45091 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
45092 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
45093 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
45094 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
45095 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
45096 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
45097 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
45098 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
45099 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
45100 WINT_MAX. Check for C99 conformance more strictly, by detecting
45101 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
45102 not check for things that C99 does not require, e.g., int8_t. If
45103 a test isn't needed unless <stdint.h> isn't working, and is
45104 unlikely to be needed for any other reason, then don't do it
45105 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
45106 size_t, since we assume C89 freestanding at least. Do not check
45107 for sig_atomic_t, wchar_t, or wint_t, since the code now does
45108 the right thing even if the types are not defined. Instead use:
45109 (gl_STDINT_TYPE_PROPERTIES): New macro.
45110 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
45111 testing whether <sys/types.h> clashes, as Autoconf does this for
45112 us now. All uses removed.
45113 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
45114 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
45115 (gl_CHECK_TYPE_SAME):
45116 Remove; no longer needed.
45117 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
45118 exists, since we'll return 0 anyway in that case.
45119 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
45121 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
45123 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
45124 possible collision with system files.
45125 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
45126 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
45127 WCHAR_MIN and WCHAR_MAX in this case.
45128 (<stddef.h>): Do not include; no longer needed.
45129 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
45130 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
45131 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
45132 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
45133 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
45134 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
45135 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
45136 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
45137 !defined(__c99))]: Include in this case too, since it's harmless
45139 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
45140 dangerous to do so.
45141 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
45142 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
45143 (_STDINT_MIN, _STDINT_MAX): New macros.
45144 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
45145 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
45146 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
45147 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
45148 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
45149 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
45150 macros, not typedefs; this simplifies things quite a bit.
45151 Use long int for all types narrower than int64_t.
45152 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
45153 Define in terms of long long int or int64_t or long int,
45154 not int64_t or int32_t. This saves some compile-time testing.
45155 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
45156 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
45157 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
45158 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
45159 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
45160 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
45161 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
45162 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
45163 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
45164 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
45165 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
45166 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
45167 undef any previous version and define our own version, for
45168 simplicity and consistency with the new macros for types.
45169 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
45170 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
45171 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
45172 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
45173 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
45174 @WINT_T_SUFFIX@ to keep things simple here.
45175 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
45176 Simplify by assuming typical 8/16/32/64 host, since we're
45177 already doing that elsewhere anyway.
45178 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
45179 and assume long long int is 64 bits if available. This
45180 speeds up 'configure'.
45182 2006-07-01 Eric Blake <ebb9@byu.net>
45184 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
45185 Reported by Andreas Buening.
45187 2006-07-01 Eric Blake <ebb9@byu.net>
45189 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
45191 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
45193 * lib/getaddrinfo.c: fixed typo
45195 2006-06-29 Jim Meyering <jim@meyering.net>
45197 * modules/strftime (Maintainer): Add my name, since with the
45198 FPRINTFTIME changes strftime.c has forked from glibc.
45200 2006-06-29 Eric Blake <ebb9@byu.net>
45202 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
45204 2006-06-29 Eric Blake <ebb9@byu.net>
45206 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
45208 2006-06-29 Eric Blake <ebb9@byu.net>
45210 * lib/stat_.h: New file.
45212 2006-06-29 Eric Blake <ebb9@byu.net>
45214 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
45215 unused static function.
45217 2006-06-29 Eric Blake <ebb9@byu.net>
45219 * doc/functions.texi (Function Portability): Document missing lstat
45222 2006-06-29 Eric Blake <ebb9@byu.net>
45224 * MODULES.html.sh: Add sys_stat.
45225 * modules/sys_stat: New module.
45226 * modules/mkstemp (Depends-on): Add sys_stat.
45228 2006-06-29 Derek R. Price <derek@ximbiot.com>
45230 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
45232 2006-06-29 Derek R. Price <derek@ximbiot.com>
45234 * m4/c-bs-a.m4: Removed.
45236 2006-06-29 Derek R. Price <derek@ximbiot.com>
45238 * lib/strftime.c: Assume strftime() exists.
45240 2006-06-29 Derek Price <derek@ximbiot.com>
45242 * modules/c-bs-a: Removed - \a is C89.
45243 * MODULES.html.sh: Remove c-bs-a.
45245 2006-06-29 Bruno Haible <bruno@clisp.org>
45247 * modules/wcwidth (License): Change to LGPL.
45249 2006-06-28 Simon Josefsson <jas@extundo.com>
45251 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
45254 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
45257 2006-06-28 Simon Josefsson <jas@extundo.com>
45259 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
45261 2006-06-28 Simon Josefsson <jas@extundo.com>
45263 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
45264 functions there. It will succeed on Windows XP, but on Windows
45265 2000 and (presumably) earlier, it will fail, and use the internal
45267 (use_win32_p): New function.
45268 (getaddrinfo): Use strtoul on servname, to support numeric ports.
45269 Support AI_NUMERICSERV to disable getservbyname.
45270 (getnameinfo): New function, only supports
45271 NI_NUMERICHOST|NI_NUMERICSERV for now.
45273 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
45274 only have some of them. Add AI_NUMERICSERV. Add prototype for
45277 2006-06-28 Eric Blake <ebb9@byu.net>
45279 * modules/wcwidth: New file.
45280 * modules/mbchar (Depends-on): Add wcwidth.
45281 * modules/mbswidth (Depends-on): Add wcwidth.
45282 * MODULES.html.sh: Add wcwidth.
45284 2006-06-28 Eric Blake <ebb9@byu.net>
45286 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
45287 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
45289 2006-06-28 Eric Blake <ebb9@byu.net>
45291 * lib/xvasprintf.h: Fix comments.
45293 2006-06-28 Eric Blake <ebb9@byu.net>
45295 * lib/mbchar.h (wcwidth): Include wcwidth.h.
45296 * lib/mbswidth.c (wcwidth): Move from here...
45297 * lib/wcwidth.h: ...to this new file.
45299 2006-06-28 Derek R. Price <derek@ximbiot.com>
45301 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
45303 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
45305 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
45307 2006-06-28 Derek R. Price <derek@ximbiot.com>
45309 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
45310 Autoconf 2.60 says this stuff was obsolete.
45312 2006-06-28 Bruno Haible <bruno@clisp.org>
45314 * modules/wcwidth (Files): Add m4/wchar_t.m4.
45316 2006-06-28 Bruno Haible <bruno@clisp.org>
45318 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
45321 2006-06-28 Bruno Haible <bruno@clisp.org>
45323 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
45324 declaration for wcwidth.
45325 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
45327 2006-06-28 Bruno Haible <bruno@clisp.org>
45329 * lib/mkdtemp.c [MINGW]: Include <io.h>.
45330 (mkdir): Define using _mkdir.
45332 2006-06-28 Bruno Haible <bruno@clisp.org>
45334 * lib/getaddrinfo.h: Fix POSIX URL.
45335 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
45337 (use_win32_p): Make static.
45338 (getaddrinfo): Reject service name if it is empty or does not consist
45339 solely of decimal digits, or if its value is > 65535.
45340 (getnameinfo): Remove useless casts.
45342 2006-06-27 Simon Josefsson <jas@extundo.com>
45344 * modules/sys_select: New file, suggested by Bruno Haible, Paul
45345 Eggert and Martin Lambers.
45347 2006-06-27 Simon Josefsson <jas@extundo.com>
45349 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
45350 Eggert and Martin Lambers.
45352 2006-06-27 Bruno Haible <bruno@clisp.org>
45354 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
45355 result to 0, not to empty.
45356 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
45358 2006-06-27 Bruno Haible <bruno@clisp.org>
45360 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
45362 2006-06-26 Simon Josefsson <jas@extundo.com>
45364 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
45367 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
45369 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
45370 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
45371 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
45373 2006-06-26 Mark D. Baushke <mdb@gnu.org>
45375 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
45377 2006-06-26 Bruno Haible <bruno@clisp.org>
45379 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
45381 2006-06-26 Bruno Haible <bruno@clisp.org>
45383 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
45385 2006-06-26 Bruno Haible <bruno@clisp.org>
45387 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
45388 SGI C compiler in pre-C99 mode.
45389 Suggested by Mark D. Baushke and Larry Jones.
45391 2006-06-26 Bruno Haible <bruno@clisp.org>
45393 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
45395 Reported by Mark D. Baushke and Larry Jones.
45397 2006-06-26 Bruno Haible <bruno@clisp.org>
45399 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
45401 Suggested by Mark D. Baushke and Larry Jones.
45403 2006-06-23 Simon Josefsson <jas@extundo.com>
45404 Bruno Haible <bruno@clisp.org>
45406 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
45407 Emit mostlyclean-local rule.
45408 (func_emit_tests_Makefile_am): Likewise.
45409 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
45411 2006-06-23 Mark D. Baushke <mdb@gnu.org>
45413 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
45415 2006-06-23 Bruno Haible <bruno@clisp.org>
45417 * tests/test-stdint.c: Update to match ISO C 99 Technical
45420 2006-06-23 Bruno Haible <bruno@clisp.org>
45422 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
45424 2006-06-23 Bruno Haible <bruno@clisp.org>
45426 * lib/stdint_.h: Treat IRIX like OpenBSD.
45428 2006-06-23 Bruno Haible <bruno@clisp.org>
45430 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
45431 ISO C 99 Technical Corrigendum 1.
45433 2006-06-22 Simon Josefsson <jas@extundo.com>
45435 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
45438 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
45440 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
45441 needed. Some compiler complained about some of them. Problem reported
45443 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
45445 2006-06-21 Simon Josefsson <jas@extundo.com>
45447 * tests/test-getaddrinfo.c: New file.
45449 * modules/getaddrinfo-tests: New file.
45451 * MODULES.html.sh: Add inet_pton.
45453 * modules/inet_pton: New file.
45455 2006-06-21 Simon Josefsson <jas@extundo.com>
45457 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
45458 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
45459 of using the (limited) gnulib implementation on Windows XP.
45461 * m4/inet_pton.m4: New file.
45463 2006-06-21 Simon Josefsson <jas@extundo.com>
45465 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
45468 * lib/socket_.h: Don't define WINVER.
45470 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
45471 slightly modified to work in gnulib.
45473 2006-06-21 Simon Josefsson <jas@extundo.com>
45475 * doc/gnulib.texi (Windows sockets): Add.
45477 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
45479 * lib/read-file.c (fread_file): Start with buffer allocation of
45480 0 bytes rather than 1 byte; this simplifies the code.
45481 Don't invoke feof; it's not needed. Refactor to avoid duplicate
45482 code to free buffer and save/restore errno.
45483 (internal_read_file): Remove unused local.
45485 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
45487 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
45488 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
45489 Problem reported by Denis Excoffier in
45490 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
45492 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
45494 * modules/sys_socket, modules/socklen: Include sys/types since
45495 FreeBSD 4.x's sys/socket.h needs it.
45497 2006-06-19 Simon Josefsson <jas@extundo.com>
45499 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
45501 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
45503 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
45505 2006-06-19 Bruno Haible <bruno@clisp.org>
45507 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
45508 and FULL_PATH_INTTYPES_H in angle brackets.
45509 Reported by Mark D. Baushke <mdb@gnu.org>.
45511 2006-06-17 Eric Blake <ebb9@byu.net>
45513 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
45516 2006-06-17 Bruno Haible <bruno@clisp.org>
45518 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
45521 2006-06-17 Bruno Haible <bruno@clisp.org>
45523 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
45524 whether errno is declared. Assume <errno.h> declares errno.
45526 2006-06-17 Bruno Haible <bruno@clisp.org>
45528 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
45530 2006-06-17 Bruno Haible <bruno@clisp.org>
45532 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
45533 problem on Solaris 2.5.1.
45535 2006-06-16 Eric Blake <ebb9@byu.net>
45537 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
45538 * lib/unicodeio.c [!defined errno]: Likewise.
45539 * lib/strtol.c [!defined errno]: Likewise.
45540 * lib/strtod.c [!defined errno]: Likewise.
45542 2006-06-15 Eric Blake <ebb9@byu.net>
45544 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
45546 2006-06-15 Eric Blake <ebb9@byu.net>
45548 * config/srclist.txt (ssize_t.m4): Lose sync.
45550 2006-06-15 Bruno Haible <bruno@clisp.org>
45552 * modules/stdint (Files): Include m4/full-header-path.m4,
45553 m4/size_max.m4, m4/wchar_t.m4.
45554 (Makefile.am): Many more substitutions.
45555 * modules/stdint-tests: New file.
45556 * tests/test-stdint.c: New file.
45558 2006-06-15 Bruno Haible <bruno@clisp.org>
45560 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
45561 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
45562 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
45563 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
45564 gl_CHECK_TYPE_SAME): New macros.
45566 2006-06-15 Bruno Haible <bruno@clisp.org>
45568 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
45570 2006-06-15 Bruno Haible <bruno@clisp.org>
45572 * lib/stdint_.h: Rewritten to be fully auto-configured.
45573 Fixes bug on HP-UX/IA64.
45575 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
45577 * lib/getdate.y (__attribute__): Don't define if already defined.
45578 Problem reported by Larry Jones.
45579 * lib/utimens.c (__attribute__): Likewise.
45581 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
45583 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
45584 reported by Andreas Schwab.
45586 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45587 Bruno Haible <bruno@clisp.org>
45589 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
45590 check for the declaration of strnlen and a run test that exposes the
45591 AIX 5.1 strnlen bug. In the failure case, #define strndup to
45594 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45595 Bruno Haible <bruno@clisp.org>
45597 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
45599 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45601 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
45602 compile test, for Tru64 4.0D.
45604 2006-05-28 Karl Berry <karl@gnu.org>
45606 * config/srclist.txt (printf-args.c): lose sync.
45608 2006-05-26 Martin Lambers <marlam@marlam.de>
45610 * lib/getpass.c: Updates the test for the native W32 API, and adds
45611 missing includes, thus fixing compilation warnings.
45613 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
45615 * lib/exclude.c (exclude_fnmatch): New function.
45616 (excluded_file_name): Call exclude_fnmatch.
45617 * lib/exclude.h (excluded_file_name): New prototype
45619 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
45621 * lib/tempname.c (small_open, large_open): New macros.
45622 (__open, __open64) [!_LIBC]: Remove.
45623 (__gen_tempname): Use small_open and large_open instead of __open
45624 and __open64. This fixes a portability bug on HP-UX 11.11i
45625 reported by Simon Wing-Tang in
45626 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
45628 2006-05-24 Bruno Haible <bruno@clisp.org>
45630 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
45631 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
45632 Reported by Thorsten Maerz <torte@netztorte.de> via
45633 Aaron Stone <aaron@serendipity.cx>.
45635 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
45637 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
45638 gl_ rather than jm_. Link, don't run, so that cross-compiles are
45639 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
45640 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
45641 not really conditional on the cache.
45642 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
45644 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
45646 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
45647 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
45648 (my_usleep): Don't mishandle maximum value.
45650 2006-05-19 Jim Meyering <jim@meyering.net>
45652 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
45654 2006-05-17 Bruno Haible <bruno@clisp.org>
45656 Cygwin portability.
45657 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
45659 2006-05-17 Bruno Haible <bruno@clisp.org>
45661 * lib/stdint_.h: Fix recognition of Cygwin.
45663 2006-05-15 Bruno Haible <bruno@clisp.org>
45665 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
45666 on libtool patch by Ralf Wildenhues.
45668 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
45670 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
45671 test for C99 conformance; (bool) 0.5 is an integer constant
45672 expression, but (bool) -0.5 is not. Problem reported by Fedor
45673 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
45675 2006-05-11 Simon Josefsson <jas@extundo.com>
45677 * m4/xvasprintf.m4: Fix obvious typo.
45679 2006-05-11 Jim Meyering <jim@meyering.net>
45681 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
45684 2006-05-10 Simon Josefsson <jas@extundo.com>
45686 * lib/md4.c: Typo fix, update copyright years.
45687 (K1, K2): Don't use L because it turn computations into 64-bit on
45690 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
45692 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
45693 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
45694 unwanted sign propagation, e.g., on hosts with 64-bit int.
45695 There still are some problems with reeelly weird theoretical hosts
45696 (e.g., 33-bit int) but it's not worth worrying about now.
45697 * lib/sha1.c (rol): Likewise.
45698 (K1, K2, K3, K4): Remove unnecessary L suffix.
45700 2006-05-10 Bruno Haible <bruno@clisp.org>
45702 * lib/des.c: Cast to avoid warnings.
45704 2006-05-09 Bruno Haible <bruno@clisp.org>
45706 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
45707 (Depends-on): Depend also on xsize, stdarg.
45708 (configure.ac): Add gl_XVASPRINTF.
45710 2006-05-09 Bruno Haible <bruno@clisp.org>
45712 * m4/xvasprintf.m4: New file.
45714 2006-05-09 Bruno Haible <bruno@clisp.org>
45716 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
45717 (EOVERFLOW): Define fallback value.
45718 (xstrcat): New function.
45719 (xvasprintf): Recognize the special case of a string concatenation.
45721 2006-05-08 Eric Blake <ebb9@byu.net>
45723 * gnulib-tool (func_version): Base copyright year on CVS date.
45724 (func_emit_copyright_notice): New function.
45725 (func_emit_lib_Makefile_am): Use it.
45726 (func_emit_tests_Makefile_am): Likewise.
45727 (func_import): Likewise.
45729 2006-05-08 Bruno Haible <bruno@clisp.org>
45731 * modules/stdarg: New file.
45732 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
45734 2006-05-08 Bruno Haible <bruno@clisp.org>
45736 * m4/stdarg.m4: New file, from GNU gettext.
45738 2006-05-08 Bruno Haible <bruno@clisp.org>
45740 * config/srclist.txt (build-aux/config.rpath): different from latest
45743 2006-05-08 Bruno Haible <bruno@clisp.org>
45745 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
45747 2006-05-05 Jim Meyering <jim@meyering.net>
45749 * m4/warning.m4: New file, derived from bison's file by the same name.
45751 2006-05-03 Bruno Haible <bruno@clisp.org>
45753 * lib/stdint_.h: Shorter URL.
45754 * lib/inttypes.h: Likewise.
45756 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
45758 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
45760 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
45762 * lib/verify.h: Document the internals better. Most of this change
45763 was written by Bruno Haible.
45765 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
45767 * doc/verify.texi: New file, partly based on a proposal by
45770 2006-05-02 Bruno Haible <bruno@clisp.org>
45772 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
45774 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
45776 2006-04-29 Bruno Haible <bruno@clisp.org>
45778 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
45779 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
45781 2006-04-29 Bruno Haible <bruno@clisp.org>
45783 * gnulib-tool: Make --update option actually work.
45785 2006-04-29 Bruno Haible <bruno@clisp.org>
45787 * doc/gcd.texi: New file.
45788 * doc/gnulib.texi: Include it.
45790 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
45792 * lib/getdate.y (get_date): When adding relative date, start with the
45793 initial time, not with the result of the first mktime call.
45795 2006-04-25 Bruno Haible <bruno@clisp.org>
45797 * gnulib-tool (func_import): Output the include directives in three
45798 blocks, sorted separately.
45799 Reported by Ben Pfaff <blp@cs.stanford.edu>.
45801 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
45803 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
45804 to define main with arguments, for C++. Reported by Eric Blake.
45805 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
45806 Prefer 'int main ()' to 'int main (void)', for C++.
45807 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
45808 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
45809 for 'main', for C99 and C++.
45811 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
45813 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
45814 Don't assume that exit status -1 is valid.
45815 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45816 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
45817 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
45818 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
45819 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
45820 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
45821 not AC_TRY_RUN. Use return, not exit. Don't assume that
45822 functions can be used without declaring them, or that you can
45823 exit with status -1.
45824 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
45826 2006-04-24 Karl Berry <karl@gnu.org>
45828 * config/srclist.txt (longdouble.m4): sync lost.
45830 2006-04-24 Eric Blake <ebb9@byu.net>
45832 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
45834 2006-04-24 Bruno Haible <bruno@clisp.org>
45836 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
45837 poll() implementation in AIX.
45838 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45840 2006-04-24 Bruno Haible <bruno@clisp.org>
45842 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
45843 assigned exactly once.
45845 2006-04-23 Claudio Fontana <claudio@gnu.org>
45846 Bruno Haible <bruno@clisp.org>
45848 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
45849 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
45852 2006-04-23 Bruno Haible <bruno@clisp.org>
45854 * modules/copy-file: Depend on unistd.
45855 * modules/execute: Likewise.
45856 * modules/fatal-signal: Likewise.
45857 * modules/findprog: Likewise.
45858 * modules/mkdtemp : Likewise.
45859 * modules/pipe: Likewise.
45860 * modules/wait-process: Likewise.
45862 2006-04-23 Bruno Haible <bruno@clisp.org>
45864 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
45865 condition was already detected.
45866 Reported by Ben Pfaff <blp@cs.stanford.edu>.
45868 2006-04-23 Bruno Haible <bruno@clisp.org>
45870 * lib/copy-file.c: Include <unistd.h> unconditionally.
45871 * lib/execute.c: Likewise.
45872 * lib/fatal-signal.c: Likewise.
45873 * lib/findprog.c: Likewise.
45874 * lib/mkdtemp.c: Likewise.
45875 * lib/pipe.h: Likewise.
45876 * lib/pipe.c: Likewise.
45877 * lib/wait-process.h: Likewise.
45879 2006-04-23 Bruno Haible <bruno@clisp.org>
45881 * gnulib-tool (func_usage): Fix --import description. Document
45883 (func_import): Create temporary file in a temporary directory, if
45884 --dry-run is specified. Silence errors from 'grep' when there are no
45885 m4 files in $m4dir.
45886 (func_create_testdir): Silence errors from 'grep' when there are no
45887 m4 files in $m4dir.
45888 Reported by Karl Berry <karl@freefriends.org>.
45890 2006-04-20 Bruno Haible <bruno@clisp.org>
45892 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
45893 one argument, so that the code will be portable to Autoconf 2.60.
45894 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
45895 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45896 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
45898 2006-04-19 Derek Price <derek@ximbiot.com>
45899 Eric Blake <ebb9@byu.net>
45901 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
45902 rather than "/full/path.h". Update comment to match. Shorten &
45903 generalize m4_translit call via AS_TR_CPP.
45905 2006-04-19 Derek Price <derek@ximbiot.com>
45906 Eric Blake <ebb9@byu.net>
45908 * lib/inttypes.h: Correct grammar in comment.
45910 2006-04-18 Derek Price <derek@ximbiot.com>
45911 Paul Eggert <eggert@cs.ucla.edu>
45913 * modules/inttypes: New file.
45914 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
45916 2006-04-18 Derek Price <derek@ximbiot.com>
45917 Paul Eggert <eggert@cs.ucla.edu>
45919 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
45922 2006-04-18 Derek Price <derek@ximbiot.com>
45923 Paul Eggert <eggert@cs.ucla.edu>
45925 * lib/inttypes.h: New file.
45926 * lib/strtoimax.c: Assume <inttypes.h>.
45928 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
45930 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
45931 isn't mounted. Problem reported by Kir Kolyshkin.
45933 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
45935 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
45936 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
45938 * lib/regex.h (RE_DUP_MAX): Update comment to match current
45941 2006-04-12 Eric Blake <ebb9@byu.net>
45943 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
45944 is now done automatically by the corresponding Autoconf macro.
45946 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
45948 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
45951 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
45953 Merge regex changes from libc, removing some of our
45954 POSIX-conformance changes that were rejected and redoing them in a
45955 less-intrusive way.
45957 * lib/regcomp.c (re_compile_internal, init_dfa):
45958 Length arg is now size_t, not Idx. All uses changed.
45959 (peek_token): Forward decl now says internal_function.
45960 (__re_error_msgid, __re_error_msgid_idx):
45961 Now static rather than extern with attribute_hidden.
45962 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
45963 For some reason libc prefers K&R style defns for external functions.
45964 (regerror) [!defined _LIBC]: Likewise.
45965 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
45966 (seek_collating_symbol_entry, lookup_collation_sequence_value):
45967 (build_range_exp, build_collating_symbol):
45968 Use K&R-style defn.
45969 (re_compile_fastmap): Use '\0' to memset, not 0.
45970 (utf8_sb_map): Make the calculations more obvious.
45971 (init_dfa, parse_bracket_exp, build_charclass_op):
45972 Call calloc and cast result, as glibc does.
45973 (init_word_char, fetch_token, peek_token, peek_token_bracket):
45974 (build_range_exp, build_collating_symbol):
45975 Now internal functions.
45977 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
45979 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
45980 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
45981 Don't depend on VMS; depend on __VMS instead, for POSIX
45982 namespace cleanness.
45983 (regoff_t): Define to ssize_t, not long int.
45985 Remove the REG_ macros named below. Instead, make the old names
45986 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
45988 (REG_BACKSLASH_ESCAPE_IN_LISTS):
45989 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
45990 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
45991 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
45992 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
45993 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
45994 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
45995 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
45996 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
45997 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
45998 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
45999 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
46000 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
46001 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
46002 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
46003 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
46004 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
46006 Remove. All uses replaced by the old RE_* names.
46007 (RE_BACKSLASH_ESCAPE_IN_LISTS):
46008 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
46009 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
46010 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
46011 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
46012 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
46013 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
46014 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
46015 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
46016 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
46017 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
46018 Don't bother having these macros be independent of each others'
46019 values, since they no longer exist in the POSIX name space.
46021 Rename the following member names back to their old names,
46022 unless !__USE_GNU_REGEX. All uses changed back.
46023 (buffer): Renamed from re_buffer.
46024 (allocated): Renamed from re_allocated.
46025 (used): Renamed from re_used.
46026 (syntax): Renamed from re_syntax.
46027 (fastmap): Renamed from re_fastmap.
46028 (translate): Renamed from re_translate.
46029 (can_be_null): Renamed from re_can_be_null.
46030 (regs_allocated): Renamed from re_regs_allocated.
46031 (fastmap_accurate): Renamed from re_fastmap_accurate.
46032 (no_sub): Renamed from re_no_sub.
46033 (not_bol): Renamed from re_not_bol.
46034 (not_eol): Renamed from re_not_eol.
46035 (newline_anchor): Renamed from re_newline_anchor.
46036 (num_regs): Renamed from rm_num_regs.
46037 (start): Renamed from rm_start.
46038 (end): Renamed from rm_end.
46040 (free_state): Move up a bit.
46042 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
46043 #define to be empty.
46044 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
46045 when that is what is intended.
46046 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
46047 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
46049 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
46050 All uses changed back to re_malloc, etc. It's now the caller's
46051 responsibility to check for overflow; all callers changed.
46052 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
46053 (re_x2nrealloc): Remove.
46054 (free_state): Remove decl.
46056 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
46057 (re_set_registers, re_exec):
46058 Use K&R-style defn.
46060 2006-01-31 Roland McGrath <roland@redhat.com>
46062 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
46063 Reported by Mike Frysinger <vapier@gentoo.org>.
46065 2006-01-15 Andreas Jaeger <aj@suse.de>
46068 * lib/regex_internal.c (re_string_reconstruct): Adjust for
46069 build_wcs_upper_buffer change.
46070 (build_wcs_upper_buffer): Change return type.
46072 2005-12-10 Ulrich Drepper <drepper@redhat.com>
46074 * lib/regex_internal.h: Include <stdint.h> if available.
46076 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
46078 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
46080 2005-10-14 Ulrich Drepper <drepper@redhat.com>
46082 * lib/regcomp.c: Adjust for changed secondary hash function.
46084 2005-09-30 Ulrich Drepper <drepper@redhat.com>
46086 * lib/regex.h: Pretty printing.
46087 Clean up namespace a bit.
46089 2005-09-30 Jakub Jelinek <jakub@redhat.com>
46091 * lib/regexec.c (update_cur_sifted_state, check_arrival,
46092 check_arrival_add_next_nodes): Avoid using uninitialized variable.
46094 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
46095 Ulrich Drepper <drepper@redhat.com>
46098 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
46100 (bitset_word_t): Renamed from bitset_word. All uses changed.
46102 2005-09-22 Ulrich Drepper <drepper@redhat.com>
46105 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
46106 * lib/regcomp.c: Remove unnecessary uses of
46107 unsigned RE_TRANSLATE_TYPE.
46108 * lib/regex_internal.h: Likewise.
46109 * lib/regex_internal.c: Likewise.
46110 * lib/regexec.c: Likewise.
46111 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
46113 2005-09-07 Ulrich Drepper <drepper@redhat.com>
46115 * lib/regexec.c (find_recover_state): Remove unnecessary
46117 (transit_state_bkref): Make DFA a const pointer.
46118 (get_subexp): Likewise.
46119 (check_arrival): Likewise.
46120 (update_cur_sifted_state): Likewise.
46121 (re_search_internal): Likewise.
46122 (prune_impossible_nodes): Likewise.
46123 (acquire_init_state_context): Likewise.
46124 (proceed_next_node): Likewise.
46125 (set_regs): Likewise.
46126 (free_fail_stack_return): Likewise.
46127 (check_arrival_expand_ecl): Mark DFA parameter as const.
46128 (check_arrival_expand_ecl_sub): Likewise.
46129 (check_subexp_limits): Likewise.
46130 (sub_epsilon_src_nodes): Likewise.
46131 (add_epsilon_src_nodes): Likewise.
46132 (merge_state_array): Likewise.
46133 (update_regs): Likewise.
46134 (build_trtable): Likewise.
46135 (sift_states_backward): Mark MCTX parameter as const.
46136 (build_sifted_states): Likewise.
46137 (update_cur_sifted_state): Likewise.
46138 (sift_states_mkref): Likewise.
46139 (check_arrival_expand_ecl): Mark eclosure as const.
46140 (check_dst_limits_calc_pos_1): Likewise.
46141 * lib/regex_internal.h (re_match_context_t): Make dfa a const
46144 2005-09-06 Ulrich Drepper <drepper@redhat.com>
46146 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
46147 (transit_state_sb): Likewise.
46148 (transit_state_mb): Likewise.
46149 (sift_states_iter_mb): Likewise.
46150 (check_arrival_add_next_nodes): Likewise.
46151 (check_node_accept_bytes): Change first parameter to pointer-to-const.
46152 [_LIBC] (re_search_2_stub): Use mempcpy.
46154 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
46155 mbrtowc for very simple UTF-8 case.
46157 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
46158 a pointer-to-const.
46159 (re_acquire_state_context): Likewise.
46160 * lib/regex_internal.h: Adjust prototypes.
46162 * lib/regex.c: Prevent using C++ compilers.
46164 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
46165 (re_acquire_state_context): Likewise.
46167 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
46169 * modules/regex (Depends-on): Add ssize_t.
46171 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
46173 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
46176 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
46178 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
46180 2006-03-29 Mark D. Baushke <mdb@gnu.org>
46181 Bruno Haible <bruno@clisp.org>
46183 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
46184 <sys/types.h> and <inttypes.h>.
46186 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46188 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
46189 `__error_t_defined', so argp.h will not typedef the former.
46191 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
46193 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
46194 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
46195 glibc names. Even if glibc is changed to conform to POSIX, the
46196 traditional names will be available anyway, since regex depends on
46197 the extensions module. Also, fix a longstanding typo in the
46198 implementation of Spencer ERE test #75 from grep 2.3. Problems
46199 reported by Emanuele Giaquinta. Also, change sense of cached
46200 variable, so that the message makes sense.
46202 2006-03-24 Simon Josefsson <jas@extundo.com>
46204 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
46205 including some doc fixes.
46206 (base64_encode_alloc): Fix +1 bug on allocation failures.
46208 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46210 * lib/base64.c (base64_encode): Do not read past end of array with
46211 unsanitized input on systems with CHAR_BIT > 8.
46213 2006-03-24 Eric Blake <ebb9@byu.net>
46215 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
46217 2006-03-22 Karl Berry <karl@gnu.org>
46219 * config/srclist.txt (*setenv.[ch]): get from coreutils.
46220 * config/srclistvars.sh (COREUTILS): new var.
46222 2006-03-17 Jim Meyering <jim@meyering.net>
46224 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
46225 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
46227 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
46229 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
46230 no longer needs it. Instead, check that regoff_t is as least
46231 as wide as ptrdiff_t.
46233 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
46234 so that our regex.h stays compatible with the installed regex.
46235 This is helpful for installers who configure --without-included-regex.
46236 Problem reported by Emanuele Giaquinta.
46238 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
46240 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
46241 Typedef to long int, not to off_, as POSIX will likely change
46244 2006-03-15 Eric Blake <ebb9@byu.net>
46246 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
46248 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
46250 * lib/argp-help.c (validate_uparams): Fix typo
46251 * lib/argp-parse.c (argp_default_options): Consistently begin help
46252 messages with a lowercase letter.
46254 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
46256 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
46257 overrun buffers and shouldn't be used (much as gets shouldn't be
46259 * lib/time_r.c (asctime_r, ctime_r): Likewise.
46261 2006-03-08 Simon Josefsson <jas@extundo.com>
46263 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
46264 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46266 2006-03-08 Simon Josefsson <jas@extundo.com>
46268 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
46269 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46271 2006-03-08 Simon Josefsson <jas@extundo.com>
46273 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
46274 signal that configure disabled the device.
46276 2006-03-08 Simon Josefsson <jas@extundo.com>
46278 * build-aux/maint.mk: Fix refresh-po, to handle no translated
46281 2006-03-07 Simon Josefsson <jas@extundo.com>
46283 * modules/getopt (Depends-on): Add unistd.
46285 * modules/unistd: New file.
46287 2006-03-07 Simon Josefsson <jas@extundo.com>
46289 * modules/gc-random: New file.
46291 2006-03-07 Simon Josefsson <jas@extundo.com>
46293 * m4/unistd_h.m4: New file.
46295 2006-03-07 Simon Josefsson <jas@extundo.com>
46297 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
46298 test to be side-effect free by storing the result in the cache
46299 variable gl_cv_lib_readline, and moving the assignment of
46300 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
46301 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46303 2006-03-07 Simon Josefsson <jas@extundo.com>
46305 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
46306 error on missing devices (the functions will return an error).
46308 * m4/gc.m4: Move random stuff to gc-random.m4
46310 2006-03-07 Simon Josefsson <jas@extundo.com>
46312 * lib/unistd_.h: New file.
46314 2006-03-07 Simon Josefsson <jas@extundo.com>
46316 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
46318 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
46320 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
46321 Problem reported by Juan Manuel Guerrero.
46323 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
46325 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
46327 * lib/getlogin_r.c: Likewise.
46328 * lib/getlogin_r.h: Likewise.
46329 * lib/glob.c: Likewise.
46330 * lib/pagealign_alloc.c: Likewise.
46331 * lib/unistd_.h: Remove; no longer needed.
46333 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
46335 * MODULES.html.sh (Support for systems lacking POSIX:2001):
46337 * modules/c-stack (Depends-on): Add unistd.
46338 * modules/getlogin_r: Likewise.
46339 * modules/glob: Likewise.
46340 * modules/pagealign_alloc: Likewise.
46341 * modules/unistd (Files): Remove lib/unistd_.h.
46342 (EXTRA_DIST): Remove.
46343 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
46345 (MOSTLYCLEANFILES): Remove unistd.h-t.
46347 2006-03-03 Simon Josefsson <jas@extundo.com>
46349 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
46351 2006-03-03 Simon Josefsson <jas@extundo.com>
46353 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
46356 2006-03-03 Simon Josefsson <jas@extundo.com>
46358 * build-aux/maint.mk: Add indent target.
46360 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
46362 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
46363 our replacement poll.h in any case, to avoid a differing
46364 declaration from a system header. Seen on AIX.
46366 2006-03-01 Simon Josefsson <jas@extundo.com>
46368 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
46371 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
46373 * modules/gettime (Depends-on): Add extensions module.
46374 * modules/nanosleep (Depends-on): Likewise.
46375 * modules/settime (Depends-on): Likewise.
46377 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
46379 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
46380 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
46382 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46383 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
46385 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
46386 not "==". Reported by Ralf Wildenhues.
46388 2006-03-01 Karl Berry <karl@gnu.org>
46390 * doc/Copyright/request-*: new files, synced from gnuorg.
46392 2006-03-01 Karl Berry <karl@gnu.org>
46394 * config/srclist.txt (Copyright/*): new entries.
46396 2006-02-28 Simon Josefsson <jas@extundo.com>
46398 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
46400 2006-02-27 Simon Josefsson <jas@extundo.com>
46402 * lib/base64.h: Indent #define's. From Jim Meyering
46403 <jim@meyering.net>.
46405 2006-02-27 Jim Meyering <jim@meyering.net>
46407 Revert the change of 2006-02-24, so these files can continue
46408 to be sync'd from gettext.
46409 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
46412 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
46414 * modules/intprops: New file.
46415 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
46417 * modules/getloadavg (Files): Remove lib/intprops.h.
46418 (Depends-on): Add intprops.
46419 * modules/human: Likewise.
46420 * modules/inttostr: Likewise.
46421 * modules/openat: Likewise.
46422 * modules/sig2str: Likewise.
46423 * modules/userspec: Likewise.
46424 * modules/utimecmp: Likewise.
46425 * modules/xnanosleep: Likewise.
46426 * modules/xstrtol: Likewise.
46428 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
46430 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
46431 * modules/lock-tests (TESTS): Use $(EXEEXT).
46432 * modules/tls-tests: Likewise.
46433 * modules/argp-tests: Likewise.
46434 (check_PROGRAMS): New var, replacing...
46435 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
46437 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46439 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
46442 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
46444 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
46446 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46448 Sync from coreutils.
46449 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
46452 2006-02-22 Jim Meyering <jim@meyering.net>
46454 Sync from coreutils.
46455 * m4/chdir-safer.m4: New file.
46457 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
46459 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
46460 AT_FDCWD exceeds INT_MAX.
46461 * lib/openat.h (AT_FDCWD): Likewise.
46463 2006-02-17 Eric Blake <address@hidden>
46465 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
46467 2006-02-16 Simon Josefsson <jas@extundo.com>
46469 * modules/getaddrinfo (Depends-on): Add sys_socket.
46471 2006-02-15 Simon Josefsson <jas@extundo.com>
46473 * build-aux/maint.mk: Add dsyntax-check rule.
46475 2006-02-15 Eric Blake <ebb9@byu.net>
46477 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
46478 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
46479 'present but cannot compile' warnings on cygwin.
46480 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
46481 use ws2tcpip.h if sys/socket.h works.
46482 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
46483 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
46485 2006-02-14 Simon Josefsson <jas@extundo.com>
46487 * modules/maintainer-makefile (Files): Rename.
46489 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
46490 and (the local) Makefile.cfg to maint-cfg.mk.
46492 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
46495 * modules/maintainer-makefile: New module.
46497 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
46498 severaly stripped to make it possible to build it up from scratch
46499 with reliable tests.
46501 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
46502 fixes to permit overriding the default actions when configure and
46503 makefile are not available.
46505 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
46507 Sync from coreutils.
46508 * modules/lstat (Depends-on): Don't depend on xalloc.
46509 (License): Change from GPL to LGPL, since this is now simply a
46510 replacement for a libc function.
46512 2006-02-14 Jim Meyering <jim@meyering.net>
46514 Sync from coreutils.
46516 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
46517 failure on deficient systems, and simplify gnulib lgpl dependencies.
46518 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
46519 xmalloc/lstat combination. Based on a patch from Bruno Haible.
46521 * lib/xalloc-die.c: Remove unused definition of N_.
46523 2006-02-14 Jim Meyering <jim@meyering.net>
46525 Sync from coreutils.
46526 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
46527 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
46528 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
46529 double-quote uses of that variable, to accommodate the rare case in
46530 which getmntent is available in none of the libraries checked. This
46531 happens at least on FreeBSD 5.0.
46533 2006-02-13 Simon Josefsson <jas@extundo.com>
46535 * gnulib-tool (Usage): Fix --import, from
46536 karl@freefriends.org (Karl Berry).
46538 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
46540 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
46542 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
46544 * lib/argp-namefrob.h: Restore changes accidentally lost during the
46545 "autoupdate" on 2005-12-12.
46547 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
46549 * modules/closeout (Depends-on): Remove atexit.
46551 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
46553 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
46554 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
46556 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
46558 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
46559 __EXTENSIONS__ if this causes compilation to fail. Problem
46560 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
46561 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
46563 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
46565 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
46566 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
46567 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
46570 2006-01-26 Simon Josefsson <jas@extundo.com>
46572 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
46573 prototype is visible on mingw32.
46575 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
46578 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
46581 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
46583 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
46584 attempt to open for write; this always fails, at least on POSIX
46585 hosts. This reinstates the 2006-01-09 change, which was
46586 inadvertently removed.
46588 2006-01-26 Bruno Haible <bruno@clisp.org>
46590 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
46591 Reported by Paul Eggert.
46593 2006-01-26 Bruno Haible <bruno@clisp.org>
46594 Paul Eggert <eggert@cs.ucla.edu>
46596 * lib/stdbool_.h (_Bool)
46597 [(! (defined __cplusplus || defined __BEOS__)
46598 && !defined __GNUC__
46599 && !(defined __HP_cc || defined __xlc__
46600 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
46601 || defined __sgi))]:
46602 #define to signed char in these cases too; this simplifies
46603 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
46604 etc., separately) and makes it more conservative.
46606 2006-01-25 Simon Josefsson <jas@extundo.com>
46608 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
46609 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
46610 ws2tcpip.h with WINVER=0x0501. All for mingw32.
46612 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
46614 * lib/argp-namefrob.h: Bugfix. Remove stray #
46616 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
46618 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
46619 so that we test the test.
46620 Check for yet another HP-UX cc bug involving *bool |= bool.
46622 2006-01-25 Karl Berry <karl@gnu.org>
46624 * config/srclist.txt (vasnprintf.c): sync lost.
46626 2006-01-25 Jim Meyering <jim@meyering.net>
46628 Sync from the stable (b5) branch of coreutils:
46630 * lib/fts.c (fts_children): Don't let close() clobber errno from
46633 * lib/fts.c (fts_stat): When following a symlink-to-directory,
46634 don't necessarily interpret stat-fails+lstat-succeeds as indicating
46635 a dangling symlink. That can also happen at least for ELOOP.
46636 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
46637 FYI, this bug predates the inclusion of fts.c in coreutils.
46639 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
46640 in their own block, so pre-c99 compilers don't object.
46642 Avoid the double-free (first in fts_read, second in fts_close) that
46643 would occur when an `active' directory is made inaccessible (e.g.,
46644 via chmod a-x) during a traversal.
46645 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
46646 before returning. Reproduce this failure by
46647 mkdir -p a/b; cd a; chmod a-x . b
46648 Reported by Stavros Passas.
46650 2006-01-25 Jim Meyering <jim@meyering.net>
46652 * lib/fileblocks.c: Remove more useless parentheses.
46653 * lib/readutmp.h: Likewise.
46655 2006-01-25 Bruno Haible <bruno@clisp.org>
46657 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
46659 Reported by Paul Eggert.
46661 2006-01-25 Bruno Haible <bruno@clisp.org>
46663 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
46664 rid of a trap command. For Solaris sh.
46665 Reported by Mark D. Baushke <mdb@gnu.org>.
46667 2006-01-24 Simon Josefsson <jas@extundo.com>
46669 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
46672 2006-01-24 Karl Berry <karl@gnu.org>
46674 * config/srclist.txt (argp-namefrob.h): sync lost.
46676 2006-01-24 Jim Meyering <jim@meyering.net>
46678 * modules/openat (Files): Add lib/intprops.h.
46679 From Mark D. Baushke.
46681 2006-01-24 Jim Meyering <jim@meyering.net>
46683 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
46684 Reported by Mark D. Baushke.
46686 2006-01-24 Jim Meyering <jim@meyering.net>
46688 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
46690 2006-01-24 Bruno Haible <bruno@clisp.org>
46692 * modules/strnlen (Maintainer): Change from glibc to all.
46694 2006-01-24 Bruno Haible <bruno@clisp.org>
46696 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
46697 Patch by Paul Eggert.
46699 2006-01-24 Bruno Haible <bruno@clisp.org>
46701 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
46703 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
46706 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
46707 'signed char' to avoid problems with the built-in _Bool type.
46708 Reported by Paul Eggert on 2005-11-26.
46710 2006-01-24 Bruno Haible <bruno@clisp.org>
46712 * gnulib-tool (func_import): Avoid constructing complicated sed
46713 expressions inside backquote.
46714 Report and solution by Mark D. Baushke <mdb@gnu.org>.
46716 2006-01-23 Ulrich Drepper <drepper@redhat.com>
46718 These changes imported from libc.
46719 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
46720 test and two separate function calls.
46721 * lib/strndup.c (__strndup): Add libc_hidden_def.
46723 2006-01-23 Simon Josefsson <jas@extundo.com>
46725 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
46726 Remove the test_*_SOURCES variable: automake infers it by default.
46727 * modules/tls-tests: Likewise.
46729 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
46731 Work around porting bugs reported by Dieter in
46732 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
46733 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
46734 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
46735 Include "getopt.h" first, to check interface.
46736 (getenv): Declare only if defined HAVE_DECL_GETENV &&
46738 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
46739 (__strndup): Revert to K&R-style function dfns, the glibc style.
46740 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
46741 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
46742 Include strnlen.h first, to get prototype properly.
46743 (strnlen): Renamed from __strnlen.
46746 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
46748 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
46750 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
46752 * config/srclist.txt: Adjust to reflect glibc reorganization.
46753 This affects only comments.
46755 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
46757 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
46758 Reported by Bruce Korb <bkorb@gnu.org>.
46760 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
46762 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
46763 to pacify gcc -Wswitch-default.
46765 2006-01-22 Bruno Haible <bruno@clisp.org>
46767 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
46768 temporary buffer for sprintf, take into account the precision also
46769 for 'd', 'i', 'u', 'o', 'x', 'X'.
46771 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
46773 * modules/argp-tests: New module
46774 * tests/test-argp.c: New file
46775 * tests/test-argp-2.sh: New file
46777 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
46779 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
46780 (__argp_base_name): Removed
46781 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
46783 (__argp_base_name): Provide macro definition or extern declaration
46784 depending on the configuration
46786 2006-01-20 Simon Josefsson <jas@extundo.com>
46788 * modules/inet_ntop (Depends-on): Depend on sys_socket.
46790 2006-01-20 Simon Josefsson <jas@extundo.com>
46792 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
46794 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
46796 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
46797 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
46798 Suggested by Bruno Haible.
46800 2006-01-20 Karl Berry <karl@gnu.org>
46802 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
46803 until changes propagate, I guess.
46805 2006-01-19 Simon Josefsson <jas@extundo.com>
46807 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
46809 2006-01-19 Simon Josefsson <jas@extundo.com>
46811 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
46813 2006-01-19 Simon Josefsson <jas@extundo.com>
46815 * gnulib-tool: Set check_PROGRAMS.
46817 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
46818 modules/des-tests, modules/gc-arcfour-tests,
46819 modules/gc-arctwo-tests, modules/gc-des-tests,
46820 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
46821 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
46822 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
46823 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
46824 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
46825 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
46826 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
46829 2006-01-18 Simon Josefsson <jas@extundo.com>
46831 * modules/socklen (Depends-on): Depend on sys_socket.
46833 2006-01-18 Simon Josefsson <jas@extundo.com>
46835 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
46836 modules/des-tests, modules/gc-arcfour-tests,
46837 modules/gc-arctwo-tests, modules/gc-des-tests,
46838 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
46839 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
46840 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
46841 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
46842 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
46843 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
46844 $(EXEEXT) to automake TESTS variable, for mingw32.
46846 2006-01-17 Simon Josefsson <jas@extundo.com>
46848 * modules/socklen (Include): Need sys/socket.h.
46850 2006-01-17 Bruno Haible <bruno@clisp.org>
46852 * modules/ssize_t (Include): Add <sys/types.h>.
46854 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
46856 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
46857 it's not portable and it doesn't work with cross-compiles.
46858 Problem reported by Bruno Haible. Fix missing-$ typo in
46859 'test "gl_cv_ignore_unused_libraries" ...' that prevented
46860 -zignore from being used with Sun's C compiler.
46862 2006-01-12 Simon Josefsson <jas@extundo.com>
46864 * lib/base64.c: Fix warning, reported by Bruno Haible
46865 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
46867 2006-01-12 Bruno Haible <bruno@clisp.org>
46869 * modules/ldd: New file.
46870 * build-aux/ldd.sh.in: New file.
46871 * MODULES.html.sh (Support for building libraries and executables): Add
46874 2006-01-12 Bruno Haible <bruno@clisp.org>
46876 * m4/ldd.m4: New file.
46878 2006-01-12 Bruno Haible <bruno@clisp.org>
46880 * gnulib-tool (func_import, func_create_testdir): Don't go into an
46881 endless loop while replacing $auxdir with build-aux.
46883 2006-01-11 Simon Josefsson <jas@extundo.com>
46885 * lib/stdint_.h (SIZE_MAX): Add missing (.
46887 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
46889 Sync from coreutils.
46890 * lib/md5.c: Fix commentary typos.
46891 (alignof, UNALIGNED_P): No need for a GCC-specific version.
46892 * lib/md5.h (__attribute__): Remove; unused.
46893 * lib/sha1.c: Fix commentary to match md5 better.
46894 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
46895 so that we don't need to worry about alignment. All uses changed.
46896 This merges the 2005-10-28 md5 change into sha1.
46898 2006-01-11 Jim Meyering <jim@meyering.net>
46900 Sync from coreutils.
46901 * lib/md5.c (OP): Fix spacing.
46903 2006-01-11 Bruno Haible <bruno@clisp.org>
46905 Ensure automatic ordering between gl_LOCK and gl_ARGP.
46906 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
46907 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
46909 2006-01-11 Bruno Haible <bruno@clisp.org>
46911 Ensure automatic ordering between gl_LOCK and gl_ARGP.
46912 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
46913 the "early" section as well.
46915 2006-01-11 Bruno Haible <bruno@clisp.org>
46917 Avoid "ar: no archive members specified" error on MacOS X.
46918 * gnulib-tool (func_modules_add_dummy): New function.
46919 (func_import, func_create_testdir): Invoke it.
46921 2006-01-11 Bruno Haible <bruno@clisp.org>
46923 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
46924 with $auxdir in AC_CONFIG_FILES statements.
46926 2006-01-11 Bruno Haible <bruno@clisp.org>
46928 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46929 Initialize also noinst_HEADERS to empty.
46931 2006-01-11 Bruno Haible <bruno@clisp.org>
46933 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
46935 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
46938 2006-01-11 Bruno Haible <bruno@clisp.org>
46940 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
46941 overridable by the user.
46942 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46944 2006-01-10 Simon Josefsson <jas@extundo.com>
46946 * modules/sys_socket: New file.
46948 2006-01-10 Simon Josefsson <jas@extundo.com>
46950 * m4/sys_socket_h.m4: New file.
46952 2006-01-10 Simon Josefsson <jas@extundo.com>
46954 * lib/socket_.h: New file.
46956 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
46958 * modules/readutmp (Maintainer): Add myself.
46960 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
46962 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
46963 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
46964 People who are still concerned with buggy memcmp implementations
46965 can invoke gl_FUNC_MEMCMP themselves.
46967 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
46969 * lib/regex_internal.h (BITSET_WORD_BITS):
46970 Work around a bug in 64-bit PGC (before version 6.1-2), where the
46971 preprocessor mishandles large unsigned values as if they were signed.
46972 Problem reported by Claudio Fontana in
46973 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
46975 2006-01-10 Jim Meyering <jim@meyering.net>
46977 Avoid the double-free (first in fts_read, second in fts_close) that
46978 would occur when an `active' directory is made inaccessible (e.g.,
46979 via chmod a-x) during a traversal.
46980 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
46981 before returning. Reproduce this failure by
46982 mkdir -p a/b; cd a; chmod a-x . b
46983 Reported by Stavros Passas.
46985 Sync from coreutils.
46986 * lib/sha1.c: Tweak grammar in a comment.
46988 2006-01-10 Jim Meyering <jim@meyering.net>
46990 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
46991 Patch by Joerg Sonnenberger.
46993 2006-01-10 Bruno Haible <bruno@clisp.org>
46995 * modules/readutmp: Depend on module free.
46996 * modules/strtok_r: Depend on module restrict.
46998 2006-01-10 Bruno Haible <bruno@clisp.org>
47000 * modules/gettext (configure.ac): Add an invocation of
47001 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
47003 2006-01-10 Bruno Haible <bruno@clisp.org>
47005 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
47006 Reported by Werner Lemberg <wl@gnu.org>.
47008 2006-01-10 Bruno Haible <bruno@clisp.org>
47010 * lib/localcharset.c: Update from GNU gettext.
47012 2006-01-10 Bruno Haible <bruno@clisp.org>
47014 * lib/argp.h (__const): Remove macro. Use const instead.
47015 * lib/argp-fmtstream.h (__const): Likewise.
47016 * lib/glob_.h (__const): Remove macro.
47017 * lib/glob-libc.h: Use const instead of __const.
47019 2006-01-10 Bruno Haible <bruno@clisp.org>
47021 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
47023 Needed to avoid an automake error regarding the 'gettext' module.
47025 2006-01-09 Simon Josefsson <jas@extundo.com>
47027 * modules/inet_ntop (Depends-on): Add restrict.
47029 2006-01-09 Simon Josefsson <jas@extundo.com>
47031 * modules/gc-rijndael-tests (License): Put under LGPL.
47033 * modules/gc-des-tests (License): Likewise.
47035 * modules/gc-arcfour-tests (License): Likewise.
47037 * modules/gc-arctwo-tests (License): Likewise.
47039 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
47041 * modules/gc-hmac-sha1-tests (Files): Likewise.
47043 * modules/gc-hmac-md5-tests (License): Likewise.
47045 * modules/gc-sha1-tests (License): Likewise.
47047 * modules/gc-md5-tests (License): Likewise.
47049 * modules/gc-md4-tests (License): Likewise.
47051 * modules/gc-md2-tests (License): Likewise.
47053 * modules/gc-tests (License): Likewise.
47055 * modules/des-tests (License): Likewise.
47057 * modules/md4-tests (License): Likewise.
47059 * modules/md2-tests (License): Likewise.
47061 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47063 Sync from coreutils:
47065 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
47066 * modules/lib-ignore: New file.
47067 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
47068 chdir-safer.m4, lchmod.m4.
47069 * modules/openat: Add mkdirat.c, openat-priv.h.
47071 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47073 Sync from coreutils.
47074 * m4/lib-ignore.m4: New file.
47075 * m4/lchmod.m4: New file.
47077 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47079 Sync from coreutils.
47080 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
47081 for write access: POSIX says that must fail.
47082 * lib/fts.c (diropen): Likewise.
47083 * lib/save-cwd.c (save_cwd): Likewise.
47084 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
47085 well, for minor improvements on hosts that lack O_DIRECTORY.
47086 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
47087 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
47088 Fall back on chown if open failed with EACCES.
47090 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
47091 Report an error at compile-time if only a 1-second nominal clock
47092 resolution is found.
47094 * lib/lchmod.h: New file.
47095 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
47096 (make_dir_parents): Use lchown rather than chown, and
47097 lchmod rather than chmod.
47099 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
47100 dummies too. Problem with "none" reported by Bob Proulx. Problem with
47101 "proc" reported by n0dalus.
47103 * lib/mountlist.c: Include <limits.h>.
47104 (dev_from_mount_options)
47105 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
47106 New function. It no longer assumes "dev=" has the System V meaning
47107 on Linux (since it doesn't). It also parses "dev=" more carefully.
47108 (read_file_system_list)
47109 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
47110 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
47113 * lib/posixtm.h (PDS_PRE_2000): New macro.
47114 * lib/posixtm.c (year): Arg is now syntax_bits rather than
47115 allow_century. All usages changed. Reject dates outside the range
47116 1969-1999 if PDS_PRE_2000 is used.
47118 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47120 Sync from coreutils.
47121 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
47122 (Time of day items): Mention the possibility of leap seconds.
47123 Problem reported by Dr. David Alan Gilbert.
47125 2006-01-09 Jim Meyering <jim@meyering.net>
47127 Sync from coreutils.
47129 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
47131 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
47133 * lib/modechange.c (mode_compile): Reject an invalid mode string
47134 that starts with an octal digit. From Andreas Gruenbacher.
47136 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
47137 and dup to open_safer and dup_safer, respectively.
47138 (openat_permissive): Fix typo in comment.
47140 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
47141 "gettext.h"; either no longer needed or are guaranteed by openat.h.
47142 (_): Remove; no longer needed.
47143 (openat): Renamed from rpl_openat; no need for rpl_openat
47144 since openat.h renames openat for us.
47145 Replace most of the body with a call to openat_permissive,
47146 to avoid duplicate code.
47147 Port to (probably hypothetical) environments were mode_t is
47149 (openat_permissive): Require mode arg, so that we can check
47150 types better. Put it just after flags. Change cwd failure
47151 indicator from pointer-to-bool to pointer-to-errno-value.
47152 All callers changed.
47153 Invoke openat_save_fail and/or openat_restore_fail if
47154 cwd_errno is null, so that openat can call us.
47155 (openat_permissive, fdopendir, fstatat, unlinkat):
47156 Simplify errno handling to avoid some duplicate code,
47157 as it's OK to set errno on success.
47158 * lib/openat.h: Revamp code so that function macros depend on
47159 __OPENAT_PREFIX only, not also on AT_FDCWD.
47160 (openat_ro): Remove. Caller changed to use openat_permissive.
47161 (openat_permissive): Now a macro, if not a function.
47162 (openat_restore_fail, openat_save_fail): Now always functions,
47163 since mkdirat needs them even if __OPENAT_PREFIX is defined.
47165 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
47167 * lib/mkdirat.c: Include openat-priv.h.
47168 Remove definitions of macros defined therein.
47169 * lib/openat.c: Likewise.
47171 * lib/mkdirat.c (mkdirat): New file and function.
47172 * lib/openat.h (mkdirat): Declare.
47174 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
47176 * lib/openat.h (openat_permissive): Declare.
47177 (openat_ro): Define.
47179 * lib/openat.c (EXPECTED_ERRNO): New macro.
47180 (openat_permissive): New function -- used in remove.c rewrite.
47181 (all functions): Set errno just before returning, only if there
47182 was an actual failure.
47183 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
47185 Emulate openat-family functions using Linux's procfs, if possible.
47186 Idea and some code based on Ulrich Drepper's glibc changes.
47188 * lib/openat.c: (BUILD_PROC_NAME): New macro.
47189 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
47190 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
47191 before falling back on save_cwd and restore_cwd.
47192 (fdopendir, fstatat, unlinkat): Likewise.
47194 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
47195 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
47197 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
47198 as second argument to va_arg. Otherwise, some versions of gcc
47199 warn that `if this code is reached, the program will abort'.
47201 2006-01-09 Jim Meyering <jim@meyering.net>
47203 Sync from coreutils.
47204 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
47205 Require openat-priv.h.
47207 2006-01-09 Bruno Haible <bruno@clisp.org>
47209 * modules/strnlen (Include): Use strnlen.h.
47211 2006-01-09 Bruno Haible <bruno@clisp.org>
47213 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
47215 2006-01-09 Bruno Haible <bruno@clisp.org>
47217 * lib/sysexit_.h (EX_OK): New macro.
47218 Suggested by Martin Lambers <marlam@marlam.de>.
47220 2006-01-09 Bruno Haible <bruno@clisp.org>
47222 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
47223 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
47225 2006-01-09 Bruno Haible <bruno@clisp.org>
47227 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
47230 2006-01-09 Bruno Haible <bruno@clisp.org>
47232 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
47233 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
47234 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
47235 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
47237 2006-01-09 Bruno Haible <bruno@clisp.org>
47239 * build-aux/javacomp.sh.in: New file, moved from lib/.
47240 * modules/javacomp-script (Files): Update.
47241 (configure.ac): Add AC_CONFIG_FILES invocation.
47242 (EXTRA_DIST): Remove variable.
47244 * build-aux/javaexec.sh.in: New file, moved from lib/.
47245 * modules/javaexec (Files): Update.
47246 (configure.ac): Add AC_CONFIG_FILES invocation.
47247 (EXTRA_DIST): Remove javaexec.sh.in.
47249 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
47250 * modules/csharpcomp-script (Files): Update.
47251 (configure.ac): Add AC_CONFIG_FILES invocation.
47252 (EXTRA_DIST): Remove variable.
47254 * build-aux/csharpexec.sh.in: New file, moved from lib/.
47255 * modules/csharpexec (Files): Update.
47256 (configure.ac): Add AC_CONFIG_FILES invocation.
47257 (EXTRA_DIST): Remove csharpexec.sh.in.
47259 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
47261 Sync from coreutils.
47263 Add POSIX ACL support
47264 * lib/acl.h (copy_acl, set_acl): Add declarations.
47265 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
47266 systems other than Linux.
47267 (chmod_or_fchmod): New function: use fchmod when possible,
47268 and chmod otherwise.
47269 (file_has_acl): Add a POSIX ACL implementation, with a
47270 Linux-specific subcase.
47271 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
47272 S_ISVTX from one file to another. Fall back to fchmod/chmod when
47273 acls are unsupported.
47274 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
47275 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
47278 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
47280 Sync from coreutils.
47281 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
47283 2006-01-07 Bruno Haible <bruno@clisp.org>
47285 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
47288 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
47290 * lib/strftime.c (tzname): Don't declare if it is already #defined.
47291 Problem reported for Mingw by Mark Junker.
47293 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
47295 * README: Gnulib normally doesn't generate a tarball.
47297 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
47299 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
47300 long int, not int, for nanosecond counts, so that people who are
47301 used to POSIX struct timespec won't be surprised. Reported by Jim
47304 2005-12-28 Bruno Haible <bruno@clisp.org>
47306 * build-aux/config.rpath: Update from GNU gettext.
47308 2005-12-16 Jim Meyering <jim@meyering.net>
47310 * modules/fprintftime: New module.
47311 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
47313 2005-12-16 Jim Meyering <jim@meyering.net>
47315 * m4/fprintftime.m4: New file.
47317 2005-12-16 Jim Meyering <jim@meyering.net>
47319 * lib/fprintftime.c, lib/fprintftime.h: New files.
47321 2005-12-15 Simon Josefsson <jas@extundo.com>
47323 * modules/socklen (configure.ac): Fix M4 macro name, to align with
47326 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
47328 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
47329 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
47331 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
47333 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
47334 * lib/argp-help.c (fill_in_uparams): Check if the constructed
47335 struct uparams is valid. Fall back to the default values if it is
47338 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
47340 * modules/argp (Files): Add argp-pin.c
47341 (Depends-on): dirname
47342 (lib_SOURCES): Add argp-pin.c
47344 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
47346 * m4/argp.m4: Check if program_invocation_name and
47347 program_invocation_short_name are declared and define appropriate
47348 macros if they are not.
47350 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
47352 * lib/argp-help.c (__argp_base_name): New function
47353 (__argp_short_program_name): Rewrite using __argp_base_name
47354 * lib/argp-namefrob.h: Define program_invocation_name and
47355 program_invocation_short_name if requested
47356 (__argp_base_name): Add prototype
47357 * lib/argp-parse.c (argp_def): Use gettext wrappers
47358 (argp_default_parser): Use __argp_base_name
47359 * lib/argp-pin.c: New file. Defines program_invocation_name and
47360 program_invocation_short_name on systems that lack them.
47362 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
47364 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
47365 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
47366 porting problem reported by Georg Schwarz in
47367 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
47369 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
47371 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
47372 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
47373 porting problem reported by Georg Schwarz in
47374 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
47376 2005-12-05 Bruno Haible <bruno@clisp.org>
47378 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
47379 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
47380 Reported by Mark Junker <mjscod@gmx.de>.
47382 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
47384 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
47385 Use implementation from Albert Chin, with some
47386 comments/corrections by Stepan Kasal and myself.
47388 2005-12-02 Bruno Haible <bruno@clisp.org>
47390 * gnulib-tool (func_import): Accept GPLed build tool modules when
47392 * modules/csharpcomp-script: New file.
47393 * modules/csharpcomp: Depend on it.
47394 * modules/javacomp-script: New file.
47395 * modules/javacomp: Depend on it.
47396 Suggested by Simon Josefsson.
47398 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
47400 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
47401 statement, to work around an HP-UX 10.20 compiler bug reported by
47404 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
47406 * modules/savedir (Depends-on): Add openat.
47408 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
47410 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
47411 (uintmax_t) [defined uintmax_t]: Do not declare.
47412 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
47413 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
47414 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
47415 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
47416 sake of portability to weird hosts that C allows (though we don't
47417 know of any practical examples).
47419 * lib/savedir.h (fdsavedir): New decl.
47420 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
47421 contains most of the former guts of savedir.
47422 (savedir): Use savedirstream.
47423 Include "openat.h".
47425 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
47427 * modules/obstack (Files): Add m4/ulonglong.m4.
47428 Problem reported by Davide Angelocola.
47430 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
47432 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
47433 coreutils no longer futzes with rounding modes.
47435 2005-11-14 Jim Meyering <jim@meyering.net>
47437 * lib/mkstemp-safer.c: Include <config.h>, required for possible
47438 replacement of mkstemp.
47440 2005-11-10 Simon Josefsson <jas@extundo.com>
47442 * lib/readline.c: Remove EOL.
47444 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
47446 * modules/gethrxtime (Depends-on): Add gettime.
47448 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
47450 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
47451 or gettimeofday; no longer needed.
47453 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
47455 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
47457 (gethrxtime) [! (HAVE_NANOUPTIME
47458 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
47459 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
47460 our own approximation.
47462 2005-11-08 Eric Blake <ebb9@byu.net>
47464 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
47466 2005-11-08 Eric Blake <ebb9@byu.net>
47468 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
47470 2005-11-04 Bruno Haible <bruno@clisp.org>
47472 * gnulib-tool: Implement --update mode.
47474 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
47476 Fix porting problem reported by Theodoros V. Kalamatianos.
47477 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
47478 Don't assume that futimes failing means we must fail.
47480 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
47482 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
47483 variables to suggest the intended function of the PATH_MAX check.
47485 2005-10-30 Kean Johnston <jkj@sco.com>
47487 Trivial changes to support SCO systems.
47488 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
47490 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
47491 where __ptr is null when no I/O is pending.
47493 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
47495 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
47496 leave errno alone. Problem reported by Dmitry V. Levin.
47498 2005-10-28 Simon Josefsson <jas@extundo.com>
47500 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
47503 * tests/test-gc-md2.c, tests/test-md2.c: New files.
47505 * modules/md2, modules/md2-tests: New files.
47507 2005-10-28 Simon Josefsson <jas@extundo.com>
47509 * m4/inet_ntop.m4: More tests.
47511 * m4/gc-md2.m4, md2.m4: New file.
47513 2005-10-28 Simon Josefsson <jas@extundo.com>
47515 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
47516 "restrict" keywords, as per POSIX. Protect the function
47517 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
47518 Don't use K&R prototypes. Check the sprintf return values.
47519 Re-define EAFNOSUPPORT if not present. Indent.
47521 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
47522 suggested by Bruno Haible <bruno@clisp.org>.
47524 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
47526 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
47528 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
47531 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
47533 * lib/md2.h, lib/md2.c: New files.
47535 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
47537 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
47538 errno alone. Problem reported by Frederic Jolliton.
47540 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
47542 * modules/verify (License): Change from GPL to LGPL. This is a
47543 tiny module and there are apparently near-equivalents that are
47544 under the BSD license.
47546 2005-10-24 Simon Josefsson <jas@extundo.com>
47548 * modules/sha1: Relicense to LGPL.
47550 2005-10-24 Simon Josefsson <jas@extundo.com>
47552 * lib/md4.h: Shrink buffer size, now that we changed the type.
47554 2005-10-23 Simon Josefsson <jas@extundo.com>
47556 * gnulib-tool (func_import): Fix --tests-base.
47558 2005-10-22 Simon Josefsson <jas@extundo.com>
47560 * modules/arcfour (Depends-on): Need stdint.
47562 2005-10-22 Simon Josefsson <jas@extundo.com>
47564 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
47565 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
47567 2005-10-22 Simon Josefsson <jas@extundo.com>
47569 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
47570 suggested by Bruno Haible <bruno@clisp.org>.
47572 2005-10-22 Simon Josefsson <jas@extundo.com>
47574 * lib/crc.h: Include stddef.h, for size_t.
47576 2005-10-22 Simon Josefsson <jas@extundo.com>
47578 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
47579 arcfour_context struct (simplify test vector testing in GNU
47582 2005-10-21 Simon Josefsson <jas@extundo.com>
47584 * modules/des, modules/des-tests: New files.
47586 * modules/gc-des, modules/gc-des-tests: New files.
47588 * tests/test-des.c, tests/test-gc-des.c: New file.
47590 2005-10-21 Simon Josefsson <jas@extundo.com>
47592 * modules/arctwo, modules/arctwo-tests: New files.
47594 * tests/test-arctwo.c: New file.
47596 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
47598 * tests/test-gc-arctwo.c: New file.
47600 2005-10-21 Simon Josefsson <jas@extundo.com>
47602 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
47603 Bruno Haible <bruno@clisp.org>.
47605 * m4/gc-des.m4: New file.
47607 2005-10-21 Simon Josefsson <jas@extundo.com>
47609 * m4/arctwo.m4: New file.
47611 * m4/gc-arctwo.m4: New file.
47613 2005-10-21 Simon Josefsson <jas@extundo.com>
47615 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
47618 2005-10-21 Simon Josefsson <jas@extundo.com>
47620 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
47623 * lib/hmac-sha1.c (hmac_sha1): Likewise.
47625 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
47626 Bruno Haible <bruno@clisp.org>.
47628 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
47631 2005-10-21 Simon Josefsson <jas@extundo.com>
47633 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
47635 2005-10-21 Simon Josefsson <jas@extundo.com>
47637 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
47639 2005-10-21 Simon Josefsson <jas@extundo.com>
47641 * lib/des.h, lib/des.c: New files.
47643 * lib/gc-gnulib.c: Support DES.c
47645 2005-10-21 Simon Josefsson <jas@extundo.com>
47647 * lib/arctwo.h, lib/arctwo.c: New files.
47649 * lib/gc-gnulib.c: Support ARCTWO.
47651 2005-10-21 Simon Josefsson <jas@extundo.com>
47653 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
47654 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47656 2005-10-21 Simon Josefsson <jas@extundo.com>
47658 * gnulib-tool (func_import, func_create_testdir): Define automake
47659 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
47660 Makefile.am snippet),
47661 suggested by Bruno Haible <bruno@clisp.org>.
47663 * modules/gc (Makefile.am): Use it.
47665 2005-10-21 Bruno Haible <bruno@clisp.org>
47667 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
47670 2005-10-19 Simon Josefsson <jas@extundo.com>
47672 * tests/test-gc-rijndael.c: New file.
47674 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
47676 2005-10-19 Simon Josefsson <jas@extundo.com>
47678 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
47681 2005-10-19 Simon Josefsson <jas@extundo.com>
47683 * tests/test-gc-arcfour.c: New file.
47685 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
47687 2005-10-19 Simon Josefsson <jas@extundo.com>
47689 * modules/gc-md4, modules/gc-md4-tests: New file.
47691 * tests/test-gc-md4.c: New file.
47693 2005-10-19 Simon Josefsson <jas@extundo.com>
47695 * m4/gc-md4.m4: New file.
47697 2005-10-19 Simon Josefsson <jas@extundo.com>
47699 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
47700 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
47703 2005-10-19 Simon Josefsson <jas@extundo.com>
47705 * m4/gc-arcfour.m4: New file.
47707 * m4/gc-rijndael.m4: New file.
47709 2005-10-19 Simon Josefsson <jas@extundo.com>
47711 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
47713 2005-10-19 Simon Josefsson <jas@extundo.com>
47715 * lib/gc-gnulib.c: Support ARCFOUR.
47717 2005-10-19 Simon Josefsson <jas@extundo.com>
47719 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
47722 * lib/gc.h: Add ECB enum type.
47724 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
47726 2005-10-18 Simon Josefsson <jas@extundo.com>
47728 * tests/test-md5.c: New file.
47730 * modules/md5-tests: New file.
47732 2005-10-18 Simon Josefsson <jas@extundo.com>
47734 * tests/test-md4.c: New file.
47736 * modules/md4, modules/md4-tests: New files.
47738 2005-10-18 Simon Josefsson <jas@extundo.com>
47740 * m4/md4.m4: New file.
47742 2005-10-18 Simon Josefsson <jas@extundo.com>
47744 * lib/md4.h, lib/md4.c: New files, based on md5.?.
47746 2005-10-17 Stepan Kasal <kasal@ucw.cz>
47748 * gnulib-tool (func_create_testdir): Omit the second check whether
47749 BUILT_SOURCES in nonempty.
47751 2005-10-17 Simon Josefsson <jas@extundo.com>
47753 * tests/test-rijndael.c: New file.
47755 2005-10-17 Simon Josefsson <jas@extundo.com>
47757 * modules/sha1: Depend on stdint instead of md5.
47759 * modules/md5: Depend on stdint, remove uint32_t.
47761 2005-10-17 Simon Josefsson <jas@extundo.com>
47763 * modules/gc-sha1-tests: New file.
47765 * tests/test-gc-sha1.c: New file.
47767 2005-10-17 Simon Josefsson <jas@extundo.com>
47769 * m4/md5.m4: Remove call to uint32_t.m4.
47771 2005-10-17 Simon Josefsson <jas@extundo.com>
47773 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
47775 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
47778 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
47780 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
47782 2005-10-17 Simon Josefsson <jas@extundo.com>
47784 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
47786 2005-10-17 Simon Josefsson <jas@extundo.com>
47788 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
47790 2005-10-17 Simon Josefsson <jas@extundo.com>
47792 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
47794 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
47796 2005-10-17 Bruno Haible <bruno@clisp.org>
47798 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
47799 that it can also be used in a test.
47801 2005-10-16 Bruno Haible <bruno@clisp.org>
47803 * gnulib-tool (func_emit_tests_Makefile_am): Also define
47804 TESTS_ENVIRONMENT, so that individual tests can augment it.
47806 * gnulib-tool (func_create_testdir): Use an intermediate target for
47807 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
47808 macros, like $(ALLOCA_H), which cannot be passed through the command
47811 2005-10-15 Simon Josefsson <jas@extundo.com>
47813 * modules/rijndael-tests: New file.
47815 * modules/rijndael: New file.
47817 2005-10-15 Simon Josefsson <jas@extundo.com>
47819 * m4/rijndael.m4: New file.
47821 2005-10-15 Simon Josefsson <jas@extundo.com>
47823 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
47825 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
47827 2005-10-14 Simon Josefsson <jas@extundo.com>
47829 * tests/test-arcfour.c: New file.
47831 * modules/arcfour, modules/arcfour-tests: New files.
47833 2005-10-14 Simon Josefsson <jas@extundo.com>
47835 * m4/arcfour.m4: New file.
47837 2005-10-14 Simon Josefsson <jas@extundo.com>
47839 * lib/arcfour.h, lib/arcfour.c: New files.
47841 2005-10-14 Roland McGrath <roland@redhat.com>
47843 Import from libc. [BZ #1331]
47844 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
47846 Reported by Matej Vela <vela@debian.org>.
47848 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
47850 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
47851 include <wchar.h>; no longer needed.
47853 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
47855 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
47857 2005-10-14 Jakub Jelinek <jakub@redhat.com>
47858 and Ulrich Drepper <drepper@redhat.com>
47861 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
47862 instead of inline stream orientation test and two separate
47863 function calls. Pay no attention to USE_IN_LIBIO.
47865 2005-10-13 Simon Josefsson <jas@extundo.com>
47867 * modules/gc-hmac-md5-tests: New file.
47869 * tests/test-gc-hmac-sha1.c: New file.
47871 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
47873 * modules/gc-hmac-md5-tests: New file.
47875 * tests/test-gc-md5.c: New file.
47877 * modules/gc-md5-tests: New file.
47879 2005-10-13 Simon Josefsson <jas@extundo.com>
47881 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
47882 Move memory allocation outside of loop.
47884 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
47886 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
47887 intermediate directory is in a read-only file system. Problem
47888 reported by Eric Blake.
47890 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
47892 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
47894 2005-10-12 Simon Josefsson <jas@extundo.com>
47896 * tests/test-hmac-sha1.c: New file.
47898 * modules/hmac-sha1-tests: New file.
47900 * modules/hmac-sha1: New file.
47902 2005-10-12 Simon Josefsson <jas@extundo.com>
47904 * modules/gc-sha1: New file.
47906 2005-10-12 Simon Josefsson <jas@extundo.com>
47908 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
47910 * tests/test-gc-pbkdf2-sha1.c: New file.
47912 2005-10-12 Simon Josefsson <jas@extundo.com>
47914 * modules/gc-md5, modules/gc-hmac-md5: New files.
47916 * modules/gc (Files): Remove md5, memxor and hmac files.
47918 2005-10-12 Simon Josefsson <jas@extundo.com>
47920 * m4/gc-pbkdf2-sha1.m4: New file.
47922 * m4/gc-hmac-sha1.m4: New file.
47924 * m4/gc-sha1: New file.
47926 * m4/hmac-sha1.m4: New file.
47928 2005-10-12 Simon Josefsson <jas@extundo.com>
47930 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
47932 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
47934 2005-10-12 Simon Josefsson <jas@extundo.com>
47936 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
47937 suggested by Bruno Haible <bruno@clisp.org>.
47939 2005-10-12 Simon Josefsson <jas@extundo.com>
47941 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
47943 2005-10-12 Simon Josefsson <jas@extundo.com>
47945 * lib/gc-pbkdf2-sha1.c: New file.
47947 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
47949 2005-10-12 Simon Josefsson <jas@extundo.com>
47951 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
47953 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
47955 2005-10-12 Simon Josefsson <jas@extundo.com>
47957 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
47958 GC_USE_HMAC_MD5, respectively.
47960 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
47961 (gc_md5): Fix typo.
47963 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
47965 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
47967 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
47969 2005-10-12 Bruno Haible <bruno@clisp.org>
47971 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
47972 Reported by Stepan Kasal <kasal@ucw.cz>.
47974 2005-10-11 Simon Josefsson <jas@extundo.com>
47976 * tests/test-crc.c: New file.
47978 * modules/crc, modules/crc-tests: New files.
47980 2005-10-11 Simon Josefsson <jas@extundo.com>
47982 * m4/crc.m4: New file.
47984 2005-10-11 Simon Josefsson <jas@extundo.com>
47986 * lib/gc.h: Add gc_hash and gc_hash_buffer.
47988 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
47990 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
47992 2005-10-11 Simon Josefsson <jas@extundo.com>
47994 * lib/crc.h, lib/crc.c: New files.
47996 * lib/gc.h (gc_hash_buffer): Add doc.
47998 2005-10-11 Bruno Haible <bruno@clisp.org>
48000 * modules/c-strcasestr: New file.
48001 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
48003 2005-10-11 Bruno Haible <bruno@clisp.org>
48005 * modules/c-strcase: New file.
48006 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
48008 2005-10-11 Bruno Haible <bruno@clisp.org>
48010 * lib/strcasecmp.c: Include limits.h.
48011 (strcasecmp): Avoid integer overflow on exotic platforms.
48012 * lib/strncasecmp.c: Include limits.h.
48013 (strncasecmp): Avoid integer overflow on exotic platforms.
48014 Reported by Paul Eggert.
48016 2005-10-11 Bruno Haible <bruno@clisp.org>
48018 * lib/c-strcasestr.h: New file, from GNU gettext.
48019 * lib/c-strcasestr.c: New file, from GNU gettext.
48021 2005-10-11 Bruno Haible <bruno@clisp.org>
48023 * lib/c-strcase.h: New file, from GNU gettext.
48024 * lib/c-strcasecmp.c: New file, from GNU gettext.
48025 * lib/c-strncasecmp.c: New file, from GNU gettext.
48027 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
48029 * modules/mempcpy (License): GPL -> LGPL.
48030 * modules/strchrnul (License): Likewise.
48031 * modules/sysexits (License): Likewise.
48033 2005-10-08 Simon Josefsson <jas@extundo.com>
48035 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
48037 2005-10-07 Simon Josefsson <jas@extundo.com>
48039 * m4/memxor.m4: Remove gl_C_RESTRICT call.
48041 2005-10-06 Simon Josefsson <jas@extundo.com>
48043 * tests/test-hmac-md5.c: New file.
48045 * modules/hmac-md5-tests: New file.
48047 * modules/hmac-md5: New file.
48049 2005-10-06 Simon Josefsson <jas@extundo.com>
48051 * m4/hmac-md5.m4: New file.
48053 * m4/memxor.m4: Require gl_C_RESTRICT.
48055 2005-10-06 Simon Josefsson <jas@extundo.com>
48057 * lib/memxor.c (memxor): Avoid casts and warnings.
48059 2005-10-06 Simon Josefsson <jas@extundo.com>
48061 * lib/hmac-md5.c: New file.
48063 * lib/hmac.h: New file.
48065 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
48067 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
48068 promotes to int, not unsigned int, to catch the AIX 5.3
48071 2005-10-05 Simon Josefsson <jas@extundo.com>
48073 * modules/memxor: New file.
48075 * modules/iconv (Files): Move config.rpath to havelib, it is used
48078 * modules/havelib (Files): Add config.rpath.
48080 2005-10-05 Simon Josefsson <jas@extundo.com>
48082 * m4/memxor.m4: New file.
48084 2005-10-05 Simon Josefsson <jas@extundo.com>
48086 * lib/memxor.c (memxor): Fix compiler error.
48088 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
48089 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
48091 * lib/memxor.h, lib/memxor.c: New files.
48093 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
48094 we assume all systems have it, suggested by Jim Meyering
48095 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
48096 any systems lack sys/socket.h; mingw32 is known to lack it, but we
48097 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
48100 2005-10-05 Simon Josefsson <jas@extundo.com>
48102 * config/srclist.txt: Add glibc bug 1423 for md5.h.
48104 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
48106 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
48107 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
48108 needed, since the source code now assumes these .h files.
48110 2005-10-05 Derek Price <derek@ximbiot.com>
48112 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
48114 2005-10-05 Bruno Haible <bruno@clisp.org>
48116 * modules/stdint (License): Change to LGPL.
48118 2005-10-04 Simon Josefsson <jas@extundo.com>
48120 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
48121 D. Baushke" <mdb@gnu.org>.
48123 2005-10-04 Bruno Haible <bruno@clisp.org>
48125 * lib/verify.h (verify_true): Provide alternative definition for C++.
48127 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
48129 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
48130 (SSIZE_MAX): New macro, if not already defined.
48131 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
48134 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
48136 Sync from coreutils.
48137 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
48138 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
48139 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
48140 ULLONG_MAX doesn't work with 2.7.2.1.
48142 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
48144 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
48147 * modules/exclude (Depends-on): Depend on verify.
48148 * modules/strtoimax (Depends-on): Likewise.
48149 * modules/utimecmp (Depends-on): Likewise.
48151 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
48153 * lib/exclude.c: Include verify.h.
48154 (verify): Remove. All callers changed to use verify.h's version.
48155 * lib/strtoimax.c: Likewise.
48156 * lib/utimecmp.c: Likewis.e
48158 Sync from coreutils.
48159 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
48160 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
48161 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
48162 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
48163 bother returning ENOSYS if settimeofday or stime fails; just let
48164 them return whatever errno they want to return.
48165 * lib/utimens.c: Include unistd.h, for dup2.
48166 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
48167 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
48169 2005-10-02 Jim Meyering <jim@meyering.net>
48171 Sync from coreutils.
48172 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
48173 from glibc-2.2.5 that fails for read-only files.
48175 2005-10-02 Jim Meyering <jim@meyering.net>
48177 Sync from coreutils.
48178 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
48179 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
48180 `#if HAVE_CONFIG_H'.
48181 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
48182 Remove AT_FDCWD test.
48183 Do not consume the fd unless successful.
48184 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
48185 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
48186 block, so that we don't even try to compile it if settimeofday is
48187 available. This works around a compilation failure on OSF1 V5.1,
48188 due to stime requiring a `long int*' while tv_sec is `int'.
48190 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
48192 Sync from coreutils.
48193 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
48194 against `yes', rather than just testing for nonempty.
48196 2005-10-01 Simon Josefsson <jas@extundo.com>
48198 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
48201 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
48202 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
48203 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
48204 freeaddrinfo and gai_strerror are declared by the POSIX headers.
48205 Check if struct addrinfo is declared.
48207 2005-10-01 Simon Josefsson <jas@extundo.com>
48209 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
48210 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
48211 AI_* and EAI_* definitions. Protect function declarations.
48213 2005-10-01 Jim Meyering <jim@meyering.net>
48215 Sync from coreutils.
48217 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
48218 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
48219 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
48220 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48221 in the inet and nsl libraries. Required on Solaris 5.7.
48223 2005-10-01 Jim Meyering <jim@meyering.net>
48225 Sync from coreutils.
48226 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48227 in the inet and nsl libraries. Required on Solaris 5.7.
48229 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
48231 * lib/getdelim.c (getdelim): Remove unused variables.
48233 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
48235 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
48236 so that the code works even with ancient cpp. Portability problem
48237 with GCC 2.7.2.1 reported by Thomas M.Ott.
48239 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
48241 * modules/regex (Depends-on): Add strcase.
48243 * modules/gethostname (Licence): Change from GPL to LGPL, since
48244 gethostname.c is a trivial implementation of a standard library
48246 * modules/poll (License): Change from GPL to LGPL, since it's
48247 derived from LGPL code.
48249 2005-09-27 Jim Meyering <jim@meyering.net>
48251 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
48254 * lib/intprops.h (signed_type_or_expr__): Define.
48255 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
48256 for unsigned types.
48258 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
48260 * lib/verify.h (verify_expr): Remove, replacing with:
48261 (verify_true): New macro that returns true instead of void.
48262 (verify_type__): Remove.
48263 (verify): Use verify_true rather than verify_type__.
48265 2005-09-26 Bruno Haible <bruno@clisp.org>
48267 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
48269 (lib_SOURCES): Remove mbchar.c.
48270 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
48271 (Files): Add m4/mbrtowc.m4.
48272 * modules/mbiter: Likewise.
48273 * modules/mbuiter: Likewise.
48275 2005-09-26 Bruno Haible <bruno@clisp.org>
48277 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
48278 compile mbchar.c if they are not both present.
48279 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
48280 * m4/mbiter.m4 (gl_MBITER): Likewise.
48281 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
48282 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
48283 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
48285 2005-09-25 Jim Meyering <jim@meyering.net>
48287 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
48288 also uses socklen_t.
48290 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
48292 * lib/utimens.c (ENOSYS): Define if not already defined.
48293 (futimens): Support having a null PATH if the file descriptor
48296 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
48298 (__attribute): Define to empty unless GCC 3.1 or later.
48299 This works around a core dump on OpenBSD 3.4, which has GCC
48300 2.95.3, which dumps core when given __attribute__(()). It also
48301 simplifies other tests, since we really don't want to bother with
48302 worrying about which ancient version of GCC supported what.
48303 Original problem reported by Yoann Vandoorselaere, with part of
48304 the fix suggested by Derek Price.
48306 2005-09-24 Jim Meyering <jim@meyering.net>
48308 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
48309 so we can once again use a positive bitfield width of 1 -- now we
48310 don't have to explain why we were using a bitfield width of 2.
48312 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
48314 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
48315 and similarly for the other external symbols. Problem reported
48318 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
48319 bug reported by Jim Meyering.
48321 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
48322 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
48323 not needed, since socklen is a prerequisite module.
48325 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
48327 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
48328 Problem reported by Eric Blake.
48329 (getaddrinfo): Initialize se so that it's not garbage.
48330 Redo internal storage allocation so that it doesn't make unportable
48331 assumptions about alignment.
48334 * lib/utimens.c (futimens): Use futimesat if available.
48335 Prefer it to futimes since it doesn't have the futimes bug.
48337 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
48338 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
48339 Instead, declare a function that returns a pointer to an array,
48340 and use verify_type__ to declare the size of the array.
48341 Problem and germ of a solution reported by Bruno Haible.
48342 (verify_type__): Use 2, not 1, for bitfield size, to avoid
48343 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
48345 2005-09-23 Jim Meyering <jim@meyering.net>
48347 Sync from coreutils.
48348 Correct build failure (socklen_t not defined) on at least
48349 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
48350 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
48352 2005-09-23 Jim Meyering <jim@meyering.net>
48354 * modules/getaddrinfo (Depends-on): Add socklen.
48356 2005-09-23 Bruno Haible <bruno@clisp.org>
48358 * tests/test-verify.c: New file.
48360 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
48362 Sync from coreutils.
48364 * modules/argmatch (Depends-on): Add verify.
48365 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
48367 * modules/save-cwd (Depends-on): Likewise.
48369 * modules/openat (Files): Add lib/openat-die.c.
48370 (Depends-on): Remove error, exitfail.
48373 * modules/verify: New file.
48374 * MODULES.html.sh (Diagnostics <assert.h>): New section,
48375 with "verify" module.
48377 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
48379 Sync from coreutils.
48381 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
48382 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
48383 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
48384 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
48385 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
48386 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
48387 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
48388 Don't bother checking for string.h, stdlib.h, unistd.h.
48389 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
48390 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
48392 * m4/jm-macros.m4 (gl_MACROS): Likewise.
48393 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
48395 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
48396 (gl_GETDATE): Use it.
48398 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
48400 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
48402 Sync from coreutils.
48404 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
48406 * lib/argmatch.h: Include verify.h
48407 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
48408 (ARGMATCH_ASSERT): Remove; unused.
48409 * lib/canonicalize.c: Assume STDC_HEADERS.
48410 * lib/exclude.c: Include "strcase.h".
48411 * lib/regex_internal.h [!defined _LIBC]: Likewise.
48412 * lib/getusershell.c: Include stdio--.h rather than stdio.h
48414 (getusershell): Call fopen, not fopen_safer.
48415 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
48416 Do not include unistd-safer.h.
48417 (save_cwd): Don't call fd_safer; no longer needed
48418 now that we include fcntl--.h.
48420 * lib/getdate.y (relative_time): New type.
48421 (RELATIVE_TIME_0): New constant.
48422 (parser_control): Use relative_time instead of doing it ourselves.
48423 (%union): Add new relative_time rel member.
48424 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
48426 (relunit, relunit_snumber): Now of type rel.
48427 (zone, rel, relunit, get_date): Adjust to above changes.
48429 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
48430 Do not include unistd-safer.h.
48431 (getloadavg): Don't call fd_safer; no longer needed
48432 now that we include fcntl--.h.
48434 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
48435 (make_dir_parents): Treat ENOSYS like EEXIST.
48437 Improve quality of diagnostics on restore_cwd failure.
48438 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
48439 (make_dir_parents): Last arg is now int * (for errno), not bool *.
48440 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
48441 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
48442 each time through the loop. Do not diagnose restore_cwd failure;
48443 that is the caller's job (and perhaps the caller does not care).
48445 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
48446 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
48447 If the file already exists but is not a directory, don't bother
48448 to try to make its parents.
48449 Close potential file descriptor leak if we can't chdir("/") (!).
48450 Don't always return true if chdir($PWD) fails; return true only
48451 if the requested action was done successfully (except for the
48453 Don't log final directory unless we actually made it.
48454 Refactor to avoid duplicate code to fix up permissions.
48455 Don't attempt to fix up parent permissions if chdir($PWD) fails.
48457 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
48458 to make it a bit faster and (I hope) clearer.
48459 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
48460 Fix bug in formats like %2N.
48462 * lib/verify.h: New file.
48464 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
48466 Sync from coreutils.
48467 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
48469 2005-09-22 Jim Meyering <jim@meyering.net>
48471 Sync from coreutils.
48473 * m4/lstat.m4 (gl_FUNC_LSTAT):
48474 Use AC_LIBSOURCES to require lstat.c and lstat.h.
48475 Remove obsolete comment.
48476 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
48477 * m4/xstrtod.m4: Likewise.
48479 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
48481 2005-09-22 Jim Meyering <jim@meyering.net>
48483 Sync from coreutils.
48485 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
48487 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
48488 the .tm_year member, since otherwise gcc-4.0 would now warn about
48489 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
48491 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
48492 order to avoid an unsuppressible warning from gcc on 64-bit systems.
48494 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
48495 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
48496 when run in a time zone for which daylight savings time is in effect
48497 for the starting date.
48499 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
48500 stop us from restricting permissions of just-created absolute-named
48502 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
48503 to restore initial working directory.
48504 * lib/mkdir-p.c (make_dir_parents): New parameter:
48505 different_working_dir, to tell caller if/when we change the working
48506 directory and are unable to return to the initial one.
48507 * lib/mkdir-p.h (make_dir_parents): Update prototype.
48508 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
48509 `return false'. This fixes a bug introduced on 2004-07-30.
48511 * lib/openat.c (fdopendir): Be sure to close the supplied
48512 file descriptor before returning. This makes our replacement
48513 implementation a little closer to Solaris's, where fdopendir
48514 ties the file descriptor to the returned DIR* pointer.
48515 * lib/openat.c (unlinkat): New function.
48516 * lib/openat.h (unlinkat): Add prototype.
48517 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
48518 (openat_restore_fail): Rename from openat_restore_die.
48519 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
48521 Provide an alternative to exiting immediately upon save_cwd or
48522 restore_cwd failure. Now, an application can arrange e.g.,
48523 to perform a longjump in that case.
48524 * lib/openat.c: Include dirname.h.
48525 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
48526 (rpl_openat, fdopendir, fstatat): Call openat_save_die
48527 and openat_restore_die rather than calling error directly.
48528 Don't include "error.h" or "exitfail.h"; they're no longer needed.
48530 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
48531 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
48534 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
48535 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
48536 int utc, int nanoseconds);
48538 date should not have to allocate a megabyte of virtual memory to
48539 handle a format argument like +%1048575T. When implemented with
48540 strftime, it must allocate such a buffer, use strftime to fill it
48541 in, print it, then free it.
48542 With fprintftime, it simply prints everything and exits.
48543 With no need for memory allocation, that's one fewer way to fail.
48544 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
48545 optional field width, not before, so we accept %9:z, not %:9z.
48546 (my_strftime): Be sure to use L_('x') for literals.
48548 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
48549 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
48550 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
48551 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
48552 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
48553 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
48554 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
48555 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
48556 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
48557 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
48558 * lib/xgethostname.c, lib/xreadlink.c:
48559 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
48561 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
48562 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
48563 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
48564 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
48565 and don't include <sys/file.h>).
48567 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
48569 Sync from coreutils.
48571 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
48572 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
48573 [!LDAV_DONE]: Avoid unused variable warning.
48575 2005-09-21 Bruno Haible <bruno@clisp.org>
48577 * lib/unicodeio.h (unicode_to_mb): New declaration.
48579 2005-09-20 Derek Price <derek@ximbiot.com>
48581 * lib/getaddrinfo.c: Don't include <netdb.h> included from
48584 2005-09-20 Bruno Haible <bruno@clisp.org>
48586 * gnulib-tool: Remove trailing slashes from the values specified for
48587 --source-base, --m4-base, --tests-base, --aux-dir.
48588 Suggested by Simon Josefsson <jas@extundo.com>.
48590 2005-09-20 Bruno Haible <bruno@clisp.org>
48592 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
48593 func_modules_to_filelist, func_import, func_create_testdir): Make all
48594 sorting results locale-independent, so that gnulib-cache.m4 doesn't
48595 change when gnulib-tool is invoked in a different locale.
48597 2005-09-19 Simon Josefsson <jas@extundo.com>
48599 * m4/socklen.m4: Fix typo.
48601 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
48603 Use a consistent style for including <config.h>.
48604 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
48605 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
48606 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
48607 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
48608 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
48609 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
48610 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
48611 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
48612 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
48613 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
48614 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
48615 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
48616 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
48617 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
48618 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
48619 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
48620 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
48621 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
48622 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
48623 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
48624 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
48625 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
48626 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
48627 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
48628 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
48629 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
48630 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
48631 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
48632 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
48633 lib/xstrtoumax.c, lib/yesno.c:
48634 Standardize inclusion of config.h.
48635 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
48636 lib/inttostr.h: Removed inclusion of config.h from header files.
48637 * lib/inttostr.c: Adjusted in-tree users.
48638 * lib/timespec.h: Remove superfluous warning to include config.h.
48639 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
48640 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
48641 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
48642 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
48643 config.h with HAVE_CONFIG_H.
48645 2005-09-19 Jim Meyering <jim@meyering.net>
48647 * modules/pathmax (License): Change to LGPL.
48649 2005-09-19 Derek Price <derek@ximbiot.com>
48651 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
48653 2005-09-19 Bruno Haible <bruno@clisp.org>
48655 * gnulib-tool (import): Provide default for --tests-base.
48657 2005-09-19 Bruno Haible <bruno@clisp.org>
48659 * doc/quote.texi: New file, extracted from gnulib.texi.
48660 * doc/ctime.texi: New file, extracted from gnulib.texi.
48661 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
48662 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
48663 * doc/gnulib.texi: Include them.
48665 2005-09-18 Bruno Haible <bruno@clisp.org>
48668 * gnulib-tool (func_readlink): New function.
48669 (func_ln_if_changed): Use it.
48671 2005-09-18 Bruno Haible <bruno@clisp.org>
48673 * gnulib-tool: Support --with-tests also with --import.
48674 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
48675 (func_import): Use variables $testsbase and $inctests. Emit a
48676 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
48677 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
48678 SUBDIRS += $testsdir.
48679 (func_create_testdir): Update.
48681 2005-09-18 Bruno Haible <bruno@clisp.org>
48683 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
48684 instead of $dry_run.
48685 (func_cp_if_changed, func_mv_if_changed): Remove functions.
48686 (func_ln_if_changed): Don't handle dry-run here.
48687 (func_import): In dry-run mode, detect more precisely which actions
48688 would be performed, and don't use "...ing" verbs.
48690 2005-09-18 Bruno Haible <bruno@clisp.org>
48692 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
48693 (func_import): Use join on two temporary files instead of three nested
48694 loops, in order to determine which files are new or old.
48696 2005-09-18 Bruno Haible <bruno@clisp.org>
48698 * gnulib-tool (func_import): Comment out code that spits out the
48699 new files with --dry-run.
48701 2005-09-18 Bruno Haible <bruno@clisp.org>
48703 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
48705 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
48707 * lib/stat-time.h: New file.
48708 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
48709 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
48710 in a different way.
48711 (timespec_cmp): New function.
48712 * lib/utimecmp.c: Include stat-time.h.
48713 (SYSCALL_RESOLUTION): Depend on whether various struct stat
48714 members exist, not on the obsolescent ST_MTIM_NSEC.
48715 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
48717 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
48719 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
48721 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
48723 * MODULES.html.sh (File system functions): Add stat-time.
48724 * modules/stat-time: New file.
48725 * modules/timespec (Files): Remove m4/st_mtim.m4; this
48726 is now done in a different way, by the stat-time module.
48727 * modules/utimecmp (Depends-on): Add stat-time.
48729 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
48731 * m4/st_mtim.m4: Remove. Superseded by...
48732 * m4/stat-time.m4: New file.
48733 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
48734 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
48736 2005-09-15 Derek Price <derek@ximbiot.com>
48738 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
48740 2005-09-15 Derek Price <derek@ximbiot.com>
48742 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
48743 * lib/regex_internal.c: Ditto, using this...
48744 (__GNUC_PREREQ): ...new macro.
48745 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
48747 (__GNUC_PREREQ): ...this new macro.
48749 * lib/strstr.h: Include string.h. Define strstr as a macro here.
48751 2005-09-15 Derek Price <derek@ximbiot.com>
48752 Paul Eggert <eggert@cs.ucla.edu>
48754 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
48755 changes, consolidating in...
48756 * lib/regex_internal.h: ...this file.
48758 2005-09-13 Jim Meyering <jim@meyering.net>
48760 * lib/canon-host.c: Filter through gnu indent and reword comments
48762 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
48764 2005-09-13 Derek Price <derek@ximbiot.com>
48766 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
48768 Reported by Jim Meyering <jim@meyering.net>.
48770 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
48772 * lib/base64.c: Typo.
48773 (base64_encode): Put b64str in initialized data section.
48775 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
48777 Merge glibc and coreutils changes into gnulib, plus a few
48779 * lib/md5.c: Use #error rather than a string.
48780 (CYCLIC): New macro, from glibc source. Use it instead of rol.
48781 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
48782 (__attribute__): Define to empty for non recent-GCC.
48783 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
48784 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
48785 Renamed from their non-__ counterparts, with new macros replacing
48786 them if not _LIBC. Add __THROW attribute.
48788 (struct md5_ctx): Align buffer if using GCC.
48789 * lib/sha1.h (struct sha1_ctx): Likewise.
48790 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
48791 The old name was backwards.
48792 (NOTSWAP): Remove; not used.
48793 (rol): New macro, moved here from md5.h.
48794 (sha1_process_block): Remove a FIXME that doesn't make sense.
48796 2005-09-12 Derek Price <derek@ximbiot.com>
48798 Return usable errors from canon-host.
48799 * lib/canon-host.h: New file.
48800 * lib/canon-host.c (canon_host): Wrap...
48801 (canon_host_r): ...this new function, which now relies exclusively on
48803 (ch_strerror): New function.
48804 (last_cherror): New global.
48805 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
48807 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
48809 (freeaddrinfo): Free ai->ai_canonname when set.
48811 2005-09-12 Derek Price <derek@ximbiot.com>
48813 Make canon-host require getaddrinfo.
48814 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
48815 AC_LIBSOURCE canon-host.h. Call...
48816 (gl_PREREQ_CANON_HOST): ...this new function, which requires
48818 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
48820 2005-09-12 Derek Price <derek@ximbiot.com>
48822 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
48824 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
48826 2005-09-12 Derek Price <derek@ximbiot.com>
48828 * lib/gai_strerror.c: Include config.h when available. Include
48829 getaddrinfo.h before other headers to test interface.
48830 Reported by Larry Jones <lawrence.jones@ugs.com>.
48832 2005-09-12 Derek Price <derek@ximbiot.com>
48833 Paul Eggert <eggert@cs.ucla.edu>
48835 * modules/glob (Files): Add glob-libc.h.
48837 2005-09-12 Derek Price <derek@ximbiot.com>
48838 Paul Eggert <eggert@cs.ucla.edu>
48840 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
48841 glob_.h, glob-libc.h.
48842 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
48844 2005-09-12 Derek Price <derek@ximbiot.com>
48845 Paul Eggert <eggert@cs.ucla.edu>
48847 * lib/glob-libc.h: Renamed from glob_.h. The new version is
48848 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
48849 protecting things that should be done only in gnulib contexts.
48850 * lib/glob_.h: New file, containing only the glob things needed for
48852 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
48853 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
48854 (glob, globfree, glob_pattern_p): Now defined simply in terms of
48855 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
48856 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
48857 and to respect the namespace rules better.
48859 2005-09-08 Simon Josefsson <jas@extundo.com>
48861 * modules/socklen: New file.
48863 2005-09-08 Simon Josefsson <jas@extundo.com>
48865 * m4/socklen.m4: New file.
48867 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
48869 * modules/utimens (Files): Add m4/utimbuf.m4, since
48870 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
48871 Reported by Sergey Poznyakoff.
48873 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
48875 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
48876 definitions, since that's the preferred style in glibc.
48877 Fix a minor spacing issue, and update copyright notice to match
48880 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
48882 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
48884 2005-09-06 Simon Josefsson <jas@extundo.com>
48886 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
48887 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
48889 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
48891 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
48894 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
48896 * config/srclist.txt: Add glibc bug 1302.
48898 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
48900 Change bitset word type from unsigned int to unsigned long int,
48901 as this has better performance on typical 64-bit hosts.
48902 Port bitset code to hosts with unusual word sizes.
48903 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
48904 (build_collating_symbol):
48905 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
48906 argument is a bitset. This is merely a style issue, but it makes
48907 it clearer that an entire array is expected.
48908 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
48909 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
48910 Port to the case where bitset_word is not the same as unsigned int.
48911 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
48912 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
48914 * lib/regexec.c (check_dst_limits_calc_pos_1,
48915 check_subexp_matching_top):
48916 (build_trtable, group_nodes_into_DFAstates):
48918 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
48919 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
48920 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
48921 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
48922 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
48923 * lib/regcomp.c (optimize_subexps, lower_subexp):
48924 Work even if bitset_word has holes in its bitwise representation.
48925 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
48926 * lib/regexec.c (check_dst_limits_calc_pos_1,
48927 check_subexp_matching_top):
48929 * lib/regex_internal.c (re_string_reconstruct):
48930 Don't assume UCHAR_MAX == 255.
48931 * lib/regex_internal.h (bitset_set_all): Likewise.
48932 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
48934 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
48935 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
48937 (BITSET_WORD_MAX): New macro.
48938 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
48939 (bitset_set_all, bitset_copy): Now inline functions, not macros.
48940 (bitset_empty, bitset_copy):
48941 Prefer sizeof (bitset) to multiplying it out ourselves.
48942 (bitset_not_merge): Remove; unused.
48943 (bitset_contain): Return bool, not unsigned int with one bit on.
48944 All callers changed.
48945 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
48946 alignment than re_node_set; do this by defining a new internal
48947 type struct dests_alloc and using it to allocate memory.
48949 2005-09-05 Bruno Haible <bruno@clisp.org>
48951 * gnulib-tool (func_import): Fix comparison in handling of symbolic
48954 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
48956 * modules/size_max (Makefile.am): Add size_max.h
48958 2005-09-04 Derek Price <derek@ximbiot.com>
48960 * gnulib-tool (func_import): Fix reversed $symbolic logic.
48962 2005-09-03 Simon Josefsson <jas@extundo.com>
48964 * gnulib-tool: Fix typo.
48966 2005-09-03 Simon Josefsson <jas@extundo.com>
48968 * config/srclist.txt: Add glibc bug 1293.
48970 2005-09-03 Derek Price <derek@ximbiot.com>
48972 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
48973 From Larry Jones <lawrence.jones@ugs.com>.
48975 2005-09-02 Simon Josefsson <jas@extundo.com>
48977 * modules/socklen: New file.
48979 2005-09-02 Simon Josefsson <jas@extundo.com>
48981 * modules/havelib: New module.
48983 * modules/gettext, modules/iconv, modules/lock, modules/readline:
48986 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
48988 Check for arithmetic overflow when calculating sizes, to prevent
48989 some buffer-overflow issues. These patches are conservative, in the
48990 sense that when I couldn't determine whether an overflow was possible,
48991 I inserted a run-time check.
48992 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
48994 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
48995 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
48996 (re_xnrealloc, re_x2nrealloc): New inline functions.
48997 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
48998 parse_bracket_exp):
48999 (build_equiv_class, build_charclass): Check for arithmetic overflow
49000 in size expression calculations.
49001 * lib/regex_internal.c (re_string_realloc_buffers):
49002 (build_wcs_upper_buffer, re_node_set_add_intersect):
49003 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
49004 (re_dfa_add_node, register_state): Likewise.
49005 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
49006 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
49007 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
49008 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
49010 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
49012 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
49013 m4/ulonglong.m4. Problem reported by Martin Lambers.
49015 2005-09-02 Bruno Haible <bruno@clisp.org>
49017 Support for lib vs. lib64 distinction on biarch platforms.
49018 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
49019 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
49020 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
49022 2005-09-02 Bruno Haible <bruno@clisp.org>
49024 * gnulib-tool (import): In the other first-use case, provide defaults
49027 2005-09-02 Bruno Haible <bruno@clisp.org>
49029 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
49030 patches not yet found in the latest gettext release.
49032 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
49034 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
49035 to avoid a collision with bits/local_lim.h in glibc.
49036 All uses changed. Problem reported by Dmitry V. Levin in
49037 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
49039 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
49040 bugs in int versus size_t comparisons.
49041 (re_string_context_at): Fix bug where the code assumed that
49044 Use bool where appropriate.
49045 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
49046 All callers changed.
49047 (calc_eclosure_iter): Likewise, for ROOT arg.
49048 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
49049 (build_charclass_op): Likewise, for NON_MATCH arg.
49050 * lib/regex_internal.c (re_string_allocate, re_string_construct):
49051 (re_string_construct_common): Likewise, for ICASE arg.
49052 * lib/regexec.c (re_search_2_stub, re_search_stub):
49053 Likewise, for RET_LEN arg.
49054 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
49055 (set_regs): Likewise, for FL_BACKTRACK arg.
49056 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
49057 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
49058 (calc_eclosure_iter, parse_bracket_exp):
49059 Use bool for internal variables that are booleans.
49060 * lib/regexec.c (re_search_internal, check_matching,
49061 proceed_next_node):
49062 (set_regs, build_sifted_states, sift_states_bkref):
49063 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
49064 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
49065 (find_collation_sequence_value):
49067 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
49068 (re_node_set_compare):
49069 Return bool, not int. All callers changed.
49070 * lib/regexec.c (check_halt_node_context, check_dst_limits):
49071 (build_trtable, check_node_accept): Likewise.
49072 * lib/regex_internal.h: Include stdbool.h.
49074 Fix bugs uncovered when converting to bool.
49075 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
49076 failure instead of charging ahead blindly.
49077 * lib/regex_internal.c (register_state): Likewise.
49078 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
49079 for freeing internal storage.
49080 (group_nodes_into_DFA_states): Use unsigned int, not int, for
49081 bitset pieces used as boolean, to avoid undefined behavior
49082 on hosts that do int overflow checking.
49084 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
49086 * config/srclist.txt: Add glibc bugs 1285-1287.
49088 2005-09-01 Jim Meyering <jim@meyering.net>
49090 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
49091 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
49092 Require gl_STAT_MACROS, too.
49094 2005-09-01 Bruno Haible <bruno@clisp.org>
49096 * gnulib-tool (import): In the first-use case, provide defaults.
49098 2005-09-01 Bruno Haible <bruno@clisp.org>
49100 * gnulib-tool (func_import): Remove the .tmp files.
49102 2005-09-01 Bruno Haible <bruno@clisp.org>
49104 * gnulib-tool (func_import): Fix handling of symbolic links.
49106 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49108 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
49109 old glibc regex code mishandles strings longer than 2**31 bytes.
49110 This patch fixes this when the regex code is used in gnulib
49111 (i.e., outside glibc).
49113 This patch should not affect the use of the regex code inside
49114 glibc. No doubt this problem also needs to be handled for glibc
49115 as well, but the result will be an incompatible change to the
49116 glibc ABI, and the old ABI will have to be supported too. That
49117 can be the the subject for another patch.
49119 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
49120 governing whether the rest of this patch is active. By default,
49121 the macro is disabled and the patch has no effect.
49122 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
49123 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
49124 (struct re_pattern_buffer, re_search, re_search_2, re_match):
49125 (re_match_2, re_set_registers): Use the new types.
49126 * lib/regex_internal.h (Idx, re_hashval_t): New types.
49127 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
49129 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
49130 (re_string_context_at, bin_tree_t, re_dfastate_t):
49131 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
49132 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
49133 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
49134 (re_string_char_size_at, re_string_wchar_at):
49135 (re_string_elem_size_at):
49136 Use the new types and macros to port to 64-bit hosts.
49137 Use unsigned types for internal values, so that the code
49138 mostly works even for arrays larger than SSIZE_MAX.
49139 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
49140 (search_duplicated_node, calc_eclosure_iter, fetch_number):
49141 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
49142 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
49143 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
49144 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
49145 (calc_inveclosure, parse_dup_op, build_range_exp):
49146 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
49147 (fetch_number, create_token_tree, mark_opt_subexp):
49149 * lib/regex_internal.c (re_string_construct_common,
49150 create_ci_newstate):
49151 (create_cd_newstate, re_string_allocate, re_string_construct):
49152 (re_string_realloc_buffers, build_wcs_upper_buffer):
49153 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
49154 (re_string_reconstruct, re_string_peek_byte_case):
49155 (re_string_fetch_byte_case, re_string_context_at):
49156 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
49157 (re_node_set_init_copy, re_node_set_add_intersect):
49158 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49159 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49160 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
49161 (re_acquire_state, re_acquire_state_context, register_state):
49163 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
49164 search_cur_bkref_entry):
49165 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
49166 (re_search_internal, re_search_2_stub, re_search_stub)
49167 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
49168 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
49169 (update_cur_sifted_state, check_dst_limits):
49170 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
49171 (check_subexp_limits, sift_states_bkref, merge_state_array):
49172 (check_subexp_matching_top, get_subexp, get_subexp_sub):
49173 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
49174 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
49175 (expand_bkref_cache, check_node_accept_bytes):
49176 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
49177 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
49178 (acquire_init_state_context, check_halt_node_context):
49179 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
49180 (sift_states_backward, clean_state_log_if_needed):
49181 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
49182 (find_recover_state, transit_state_sb, transit_state_mb):
49183 (transit_state_bkref, build_trtable, match_ctx_clean):
49185 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
49186 to work around an assumption that REG_MISSING is negative.
49188 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
49189 (seek_collating_symbol_entry) [defined _LIBC]:
49190 (lookup_collation_sequence_value) [defined _LIBC]:
49191 (build_range_exp, build_collating_symbol) [defined _LIBC]:
49192 Use prototypes rather than old-style function definitions.
49193 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
49194 (transit_state_sb) [0]:
49195 (find_collation_sequence_value) [defined _LIBC]: Likewise.
49197 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
49200 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
49201 (optimize_subexps, lower_subexp):
49202 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
49203 since the signed shift might overflow. Use 1u<<31 instead.
49204 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49206 * lib/regexec.c (check_dst_limits_calc_pos_1,
49207 check_subexp_matching_top): Likewise.
49209 * lib/regcomp.c (optimize_subexps, lower_subexp):
49210 Use CHAR_BIT rather than 8, for clarity.
49211 * lib/regexec.c (check_dst_limits_calc_pos_1):
49212 (check_subexp_matching_top): Likewise.
49213 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
49214 have to worry about portability issues when shifting it left.
49215 Remove no-longer-needed test for table_size > 0.
49216 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
49217 in a word, as the resulting behavior is undefined.
49218 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
49219 in one case, a <= should have been an <, and in another case the
49220 whole test was missing.
49221 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
49222 the standard name CHAR_BIT.
49223 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
49224 this is not true on one's complement and signed-magnitude hosts.
49226 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
49228 (struct re_dfa_t): Remove unused member states_alloc.
49229 * lib/regcomp.c (init_dfa): Don't initialize unused members.
49231 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49233 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
49234 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
49235 and large-file glibc and in 32-bit large-file Solaris.
49237 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49239 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
49240 lengths fit in regoff_t; this isn't true if regoff_t is the same
49242 * lib/regex.c (re_search_internal): 5th arg is LAST_START
49243 (= START + RANGE) instead of RANGE. This avoids overflow
49244 problems when regoff_t is the same width as size_t.
49245 All callers changed.
49246 (re_search_2_stub): Check for overflow when adding the
49247 sizes of the two strings.
49248 (re_search_stub): Check for overflow when adding START
49249 to RANGE; if it occurs, substitute the extreme value.
49251 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49253 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
49255 2005-08-31 Jim Meyering <jim@meyering.net>
49257 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
49258 a pointer-to-const.
49259 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
49260 (register_state): Likewise.
49261 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
49262 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
49263 (group_nodes_into_DFAstates): Likewise.
49265 2005-08-31 Jim Meyering <jim@meyering.net>
49267 * check-module: Add a FIXME comment.
49269 2005-08-31 Eric Blake <ebb9@byu.net>
49271 * modules/unistd-safer (Files): Add unistd--.h.
49272 * modules/stdio-safer (Files): Add stdio--.h.
49274 2005-08-31 Derek Price <derek@ximbiot.com>
49276 * lib/getdelim.c (getdelim): Return EOF on EOF.
49277 Reported by Larry Jones <lawrence.jones@ugs.com>.
49279 2005-08-31 Bruno Haible <bruno@clisp.org>
49281 Avoid unnecessary diffs in the generated lib/Makefile.am.
49282 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
49283 the generated files.
49284 (func_import): Don't set cmd.
49286 2005-08-31 Bruno Haible <bruno@clisp.org>
49288 * lib/strstr.c: Include <stddef.h>, for NULL.
49289 * lib/strcasestr.c: Likewise.
49290 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49292 2005-08-31 Bruno Haible <bruno@clisp.org>
49294 * gnulib-tool: New option --macro-prefix.
49295 (func_import): Use macro_prefix.
49296 (import): Handle option --macro-prefix.
49298 2005-08-31 Bruno Haible <bruno@clisp.org>
49300 * gnulib-tool (import): Rename most ac_* variables to cached_*.
49301 Also use new variables cached_lgpl, cached_libtool.
49303 2005-08-31 Bruno Haible <bruno@clisp.org>
49305 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
49306 always instantiating them.
49308 2005-08-31 Bruno Haible <bruno@clisp.org>
49310 * gnulib-tool (func_import): Read the previous cached settings
49311 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
49312 earlier added by gnulib but are now dropped. Warn when a gnulib file
49313 overwrites a non-gnulib file.
49315 2005-08-31 Bruno Haible <bruno@clisp.org>
49317 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
49318 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
49319 projects that don't keep autogenerated files in CVS. Put into
49320 actioncmd only the specified modules, not the transitive closure.
49322 2005-08-31 Bruno Haible <bruno@clisp.org>
49324 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
49325 Create directories that shall be filled.
49326 (import): Don't look for gl_* macros in configure.ac. Recurse across
49327 all directories containing a gnulib-cache.m4 files, if meaningful.
49329 2005-08-31 Bruno Haible <bruno@clisp.org>
49331 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
49332 (import): Set seen_libtool when we see gl_LIBTOOL.
49334 2005-08-31 Bruno Haible <bruno@clisp.org>
49336 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
49337 declaration macro definitions from generated gnulib.m4.
49339 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
49341 * lib/iconvme.h: Add prototype for iconv_alloc.
49343 2005-08-29 Simon Josefsson <jas@extundo.com>
49345 * lib/iconvme.c: Fix errno.
49347 2005-08-29 Bruno Haible <bruno@clisp.org>
49349 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
49350 that it works when the directory contains spaces.
49352 2005-08-29 Bruno Haible <bruno@clisp.org>
49354 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
49356 2005-08-29 Bruno Haible <bruno@clisp.org>
49358 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
49361 2005-08-29 Bruno Haible <bruno@clisp.org>
49362 and Stepan Kasal <kasal@ucw.cz>
49364 * check-module: If more parameters are given, check each of them
49365 separately; add more exceptions, as noted by Jim Meyering.
49366 (check_module): New procedure.
49367 (%exempt_header): Now contains all exceptions.
49369 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
49371 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
49373 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
49375 * lib/iconvme.c: Split iconv_string into iconv_alloc.
49377 2005-08-28 Bruno Haible <bruno@clisp.org>
49379 * m4/gnulib-tool.m4: New file.
49381 2005-08-27 Jim Meyering <jim@meyering.net>
49383 * modules/unistd-safer (Files): Add pipe-safer.c.
49384 * modules/fcntl-safer (Files): Add creat-safer.c.
49386 2005-08-27 Jim Meyering <jim@meyering.net>
49388 * m4/stdlib-safer.m4: New file. From coreutils.
49389 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
49390 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
49391 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
49392 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
49393 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
49395 2005-08-27 Jim Meyering <jim@meyering.net>
49397 * lib/fopen-safer.c: Merge minor changes from coreutils.
49398 * lib/dup-safer.c: Likewise.
49399 * lib/fd-safer.c: Likewise.
49401 Merge from coreutils.
49402 * lib/stdio--.h: New file.
49403 * lib/stdlib--.h: New file.
49404 * lib/mkstemp-safer.c: New file.
49406 GNU tar needs these.
49407 * lib/pipe-safer.c: New file.
49408 * lib/creat-safer.c: New file.
49409 * lib/fcntl--.h (creat): Define to creat_safer.
49410 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
49411 * lib/unistd--.h (pipe): Define to pipe_safer.
49412 * lib/unistd-safer.h: Declare pipe_safer.
49414 2005-08-26 Simon Josefsson <jas@extundo.com>
49416 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
49417 Haible <bruno@clisp.org>.
49419 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
49421 * lib/regex_internal.h: Remove all references to
49422 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
49424 (bitset_not, bitset_merge, bitset_not_merge):
49425 (bitset_mask, re_string_allocate, re_string_construct):
49426 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
49427 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
49428 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
49429 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
49430 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49431 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49432 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
49433 (re_acquire_state_context):
49434 Remove unnecessary forward decls.
49435 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
49436 Put __attribute at function definition,
49437 now that the function decl has been removed.
49438 * lib/regex_internal.c (re_string_peek_byte_case):
49439 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
49442 2005-08-25 Stepan Kasal <kasal@ucw.cz>
49444 * m4/regex.m4: Add AC_PREREQ(2.50).
49445 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
49447 2005-08-25 Simon Josefsson <jas@extundo.com>
49449 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
49452 2005-08-25 Simon Josefsson <jas@extundo.com>
49454 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
49455 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
49456 GLIBC specific code.
49458 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
49460 Make regex safe for g++. This fixes one real bug (an "err"
49461 that should have been "*err"). g++ problem reported by
49463 * lib/regex_internal.h (re_calloc): New macro, consistent with
49464 re_malloc etc. All callers of calloc changed to use re_calloc.
49465 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
49466 not int. All callers changed.
49467 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
49468 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
49469 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
49470 (find_recover_state): Change "err" to "*err"; this fixes what
49471 appears to be a real bug.
49472 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
49475 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
49477 * modules/regex (Depends-on): Add malloc, since the code
49478 assumes that !malloc(0) means failure.
49480 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
49482 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
49484 alloca modernization/simplification for regex.
49485 * lib/regex.c: Remove portability cruft for alloca. This no longer
49486 needs to be at the start of the file, and can be moved into
49487 regex_internal.h and simplified.
49488 * lib/regex_internal.h: Include <alloca.h>.
49489 (__libc_use_alloca) [!defined _LIBC]: New macro.
49490 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
49491 now works outside glibc.
49493 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
49495 * config/srclist.txt: Add glibc bugs 1241, 1245.
49497 2005-08-25 Jim Meyering <jim@meyering.net>
49499 * lib/open-safer.c: Include <config.h>.
49500 Otherwise, we'd lose LARGEFILE support in any file using
49503 2005-08-25 Bruno Haible <bruno@clisp.org>
49505 * m4/minmax.m4: Require autoconf 2.52.
49506 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
49507 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
49508 alternatives of translit over the alphabet.
49509 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
49511 2005-08-24 Simon Josefsson <jas@extundo.com>
49513 * tests/test-getpass.c: New file.
49515 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
49517 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
49518 for GNU regex features.
49520 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
49522 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
49523 * lib/regex.h (regerror): Likewise.
49525 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
49526 requires this. (The code never needed it.)
49528 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
49529 All uses of recently-renamed identifiers changed to use the new,
49530 POSIX-compliant names. The code will build and run just fine
49531 without these changes, but it's better to eat our own dog food
49532 and use the standard-conforming names.
49534 * lib/regex.h: Fix a multitude of POSIX name space violations.
49535 These changes have an effect only for programs that define
49536 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
49537 do not change anything for programs compiled in the normal way.
49538 Also, there is no effect on the ABI.
49540 (_REGEX_SOURCE): New macro.
49541 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
49542 defined and _GNU_SOURCE is not; this fixes a name space violation.
49544 Rename the following macros to obey POSIX requirements.
49545 The old names are still visible as macros if _REGEX_SOURCE is defined.
49546 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
49547 RE_BACKSLASH_ESCAPE_IN_LISTS.
49548 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
49549 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
49550 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
49551 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
49552 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
49553 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
49554 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
49555 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
49556 (REG_INTERVALS): renamed from RE_INTERVALS.
49557 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
49558 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
49559 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
49560 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
49561 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
49562 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
49563 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
49564 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
49565 RE_UNMATCHED_RIGHT_PAREN_ORD.
49566 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
49567 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
49568 (REG_DEBUG): renamed from RE_DEBUG.
49569 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
49570 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
49571 unusual, since we can't clash with the POSIX REG_ICASE.
49572 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
49573 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
49574 (REG_NO_SUB): renamed from RE_NO_SUB.
49575 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
49576 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
49577 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
49578 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
49579 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
49580 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
49581 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
49582 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
49583 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
49584 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
49585 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
49586 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
49587 RE_SYNTAX_POSIX_MINIMAL_BASIC.
49588 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
49589 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
49590 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
49591 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
49592 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
49593 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
49594 (REG_FIXED): Renamed from REGS_FIXED.
49595 (REG_NREGS): Renamed from RE_NREGS.
49597 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
49598 of other REG_* macros, since POSIX says the user is allowed to
49599 #undef these macros selectively.
49601 (reg_errcode_t): Update comment stating what other tables need
49604 Rename the following enum values to obey POSIX requirements.
49605 The old names are still visible as macros.
49606 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
49607 is not defined, since GNU is supposed to be a superset of POSIX as
49608 much as possible, and since we want reg_errcode_t to be a signed
49609 type for implementation consistency.
49610 (_REG_NOERROR): Renamed from REG_NOERROR.
49611 (_REG_NOMATCH): Renamed from REG_NOMATCH.
49612 (_REG_BADPAT): Renamed from REG_BADPAT.
49613 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
49614 (_REG_ECTYPE): Renamed from REG_ECTYPE.
49615 (_REG_EESCAPE): Renamed from REG_EESCAPE.
49616 (_REG_ESUBREG): Renamed from REG_ESUBREG.
49617 (_REG_EBRACK): Renamed from REG_EBRACK.
49618 (_REG_EPAREN): Renamed from REG_EPAREN.
49619 (_REG_EBRACE): Renamed from REG_EBRACE.
49620 (_REG_BADBR): Renamed from REG_BADBR.
49621 (_REG_ERANGE): Renamed from REG_ERANGE.
49622 (_REG_ESPACE): Renamed from REG_ESPACE.
49623 (_REG_BADRPT): Renamed from REG_BADRPT.
49624 (_REG_EEND): Renamed from REG_EEND.
49625 (_REG_ESIZE): Renamed from REG_ESIZE.
49626 (_REG_ERPAREN): Renamed from REG_ERPAREN.
49627 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
49628 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
49629 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
49630 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
49632 (_REG_RE_NAME, _REG_RM_NAME): New macros.
49633 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
49634 changed. But support the old name if the new one is not defined
49635 and if _REGEX_SOURCE.
49637 Change the following member names in struct re_pattern_buffer.
49638 The old names are still supported if !_REGEX_SOURCE.
49639 The new names are always supported, regardless of _REGEX_SOURCE.
49640 (re_buffer): Renamed from buffer.
49641 (re_allocated): Renamed from allocated.
49642 (re_used): Renamed from used.
49643 (re_syntax): Renamed from syntax.
49644 (re_fastmap): Renamed from fastmap.
49645 (re_translate): Renamed from translate.
49646 (re_can_be_null): Renamed from can_be_null.
49647 (re_regs_allocated): Renamed from regs_allocated.
49648 (re_fastmap_accurate): Renamed from fastmap_accurate.
49649 (re_no_sub): Renamed from no_sub.
49650 (re_not_bol): Renamed from not_bol.
49651 (re_not_eol): Renamed from not_eol.
49652 (re_newline_anchor): Renamed from newline_anchor.
49654 Change the following member names in struct re_registers.
49655 The old names are still supported if !_REGEX_SOURCE.
49656 The new names are always supported, regardless of _REGEX_SOURCE.
49657 (rm_num_regs): Renamed from num_regs.
49658 (rm_start): Renamed from start.
49659 (rm_end): Renamed from end.
49661 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
49662 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
49663 Prepend __ to parameter names.
49665 Undo yesterday's changes.
49667 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
49669 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
49670 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
49673 2005-08-24 Jim Meyering <jim@meyering.net>
49675 Sync from coreutils.
49676 * m4/fcntl-safer.m4: New file.
49678 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
49679 and object files for this module.
49681 2005-08-24 Jim Meyering <jim@meyering.net>
49683 Sync from coreutils.
49684 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
49686 2005-08-24 Jim Meyering <jim@meyering.net>
49688 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
49689 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
49691 2005-08-24 Jim Meyering <jim@meyering.net>
49693 * modules/fcntl-safer: New module.
49694 * modules/fts (Depends-on): Add fcntl-safer.
49695 * MODULES.html.sh (File descriptor based Input/Output):
49698 2005-08-24 Bruno Haible <bruno@clisp.org>
49700 Support for unit test modules.
49701 * modules/README: Mention tests modules.
49702 * modules/TEMPLATE-TESTS: New file.
49703 * gnulib-tool: New options --extract-tests-module, --with-tests and
49704 --tests-base (unused for the moment).
49705 (testsbase, inctests): New variables.
49706 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
49707 (func_verify_module): Exclude TEMPLATE-TESTS.
49708 (func_verify_nontests_module, func_verify_tests_module): New functions.
49709 (func_get_dependencies): Add implicit dependency for tests modules.
49710 (func_get_tests_module): New function.
49711 (func_modules_transitive_closure): When --with-tests was specified,
49712 include the unit tests as well, unless explicitly avoided.
49713 (func_emit_lib_Makefile_am): Ignore the tests modules here.
49714 (func_emit_tests_Makefile_am): New function.
49715 (func_create_testdir): When --with-tests was specified, emit a
49717 * MODULES.html.sh (Future developments): Update.
49719 2005-08-24 Bruno Haible <bruno@clisp.org>
49721 * modules/tls-tests: New file.
49722 * tests/test-tls.c: New file, from GNU gettext.
49724 2005-08-24 Bruno Haible <bruno@clisp.org>
49726 * modules/lock-tests: New file.
49727 * tests/test-lock.c: New file, from GNU gettext.
49729 2005-08-24 Bruno Haible <bruno@clisp.org>
49731 * lib/lock.h: Add multiple inclusion guard.
49732 * lib/tls.h: Add multiple inclusion guard.
49734 2005-08-24 Bruno Haible <bruno@clisp.org>
49736 * gnulib-tool: Add support for the --aux-dir option to
49737 --create-testdir, --create-megatestdir, --test, --megatest.
49738 (func_create_testdir, func_create_megatestdir): Optionally emit a
49739 AC_CONFIG_AUX_DIR directive.
49740 (create-testdir, create-megatestdir, test, megatest): Provide a
49741 default value for $auxdir.
49743 2005-08-24 Bruno Haible <bruno@clisp.org>
49745 * gnulib-tool (import): Use compound statement instead of subshell
49748 2005-08-24 Bruno Haible <bruno@clisp.org>
49750 * gnulib-tool (import): Change --aux-dir default to "build-aux".
49752 2005-08-24 Bruno Haible <bruno@clisp.org>
49754 * gnulib-tool (func_version): Update.
49756 2005-08-24 Bruno Haible <bruno@clisp.org>
49758 * gnulib-tool (func_import, func_create_testdir,
49759 func_create_megatestdir): Quote all autoconf macro arguments.
49761 2005-08-24 Bruno Haible <bruno@clisp.org>
49763 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
49764 option --force, because --force causes the aclocal.m4 of each
49765 subdirectory to be newer than the corresponding config.h.in.
49767 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
49769 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
49770 All contents moved to gl_REGEX.
49771 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
49772 assume that it does.
49774 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
49776 * lib/regex.h (REG_NOSYS)
49777 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
49778 Define, since POSIX requires it as of 2001.
49780 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
49781 New private symbol, used to keep the enum signed in all cases.
49782 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
49784 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
49786 * lib/regex_internal.c (re_string_skip_chars, register_state):
49788 Remove forward decls; no longer needed now that we use prototypes.
49789 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
49790 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
49791 (clean_state_log_if_needed): Likewise.
49793 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
49795 * config/srclist.txt: Add glibc bugs 1231-1233.
49797 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
49799 Fix problems reported by Sam Steingold in
49800 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
49801 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
49802 assumed that reg_errcode_t is a signed type, which is not
49803 necessarily true if _XOPEN_SOURCE is not defined.
49804 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
49805 since some compilers warn about it otherwise.
49807 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
49809 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
49810 (init_word_char, create_initial_state, duplicate_node_closure):
49811 (fetch_token, peek_token_bracket, build_range_exp):
49812 (build_collating_symbol): Remove forward decls; no longer needed
49813 now that we use prototypes.
49816 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
49817 (re_compile_fastmap_iter, regcomp, regerror, regfree):
49818 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
49819 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
49820 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
49821 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
49822 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
49823 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
49824 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
49825 (build_range_exp, build_collating_symbol, parse_bracket_exp):
49826 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
49827 (build_charclass, build_charclass_op, fetch_number, create_tree):
49828 (create_token_tree, mark_opt_subexp, duplicate_tree):
49829 Use prototypes rather than old-style definitions.
49831 * lib/regex_internal.c:
49832 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
49833 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
49834 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
49835 (re_string_reconstruct, re_string_peek_byte_case):
49836 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
49837 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
49838 (re_node_set_init_copy, re_node_set_add_intersect):
49839 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49840 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49841 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
49842 (re_acquire_state, re_acquire_state_context, register_state):
49843 (create_ci_newstate, create_cd_newstate, free_state):
49845 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
49847 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
49848 (re_search_internal, prune_impossible_nodes):
49849 (acquire_init_state_context, check_matching, static):
49850 (check_halt_node_context, check_halt_state_context, proceed_next_node):
49851 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
49852 (update_regs, sift_states_backward, build_sifted_states):
49853 (clean_state_log_if_needed, merge_state_array):
49854 (update_cur_sifted_state, add_epsilon_src_nodes):
49855 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
49856 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
49857 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
49858 (find_recover_state, check_subexp_matching_top, transit_state_mb):
49859 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
49860 (check_arrival, check_arrival_add_next_nodes):
49861 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
49862 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
49863 (check_node_accept_bytes, check_node_accept, extend_buffers):
49864 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
49865 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
49869 * lib/regex_internal.h:
49870 (re_string_allocate, re_string_construct, re_string_reconstruct):
49871 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
49872 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
49873 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
49874 (re_string_context_at, re_string_peek_byte_case):
49875 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
49876 is defined, since we now use prototypes always.
49878 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
49879 C89 or better. All uses removed.
49881 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
49883 * config/srclist.txt: Add glibc bugs 1220-1227.
49885 2005-08-20 Jim Meyering <jim@meyering.net>
49887 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
49888 of unused local, dfa.
49890 2005-08-20 Bruno Haible <bruno@clisp.org>
49892 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
49894 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
49896 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
49897 (re_node_set_insert_last, re_dfa_add_node):
49898 Rename local variables to avoid GCC shadowing warnings.
49900 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
49902 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
49903 [defined lint]: Suppress bogus uninitialized-variable warnings.
49905 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
49906 and let the caller return REG_ESPACE if out of space. This
49907 removes an uninitialied-variable warning with GCC 4.0.1, and also
49908 avoids taking the address of a local variable. All callers
49911 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
49913 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
49914 $LIBCSRC/posix/regexec.c.
49915 Add glibc bug 1217 for regcomp.c.
49917 2005-08-19 Jim Meyering <jim@meyering.net>
49919 * lib/regexec.c (proceed_next_node): Redo local variables to
49920 avoid GCC shadowing warnings.
49922 2005-08-18 Bruno Haible <bruno@clisp.org>
49924 * lib/strstr.c (strstr): Fix return value in multibyte case.
49925 * lib/strcasestr.c (strcasestr): Likewise.
49927 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
49929 * lib/regex.h: Remove useless space-before-tab. From coreutils.
49931 2005-08-17 Jim Meyering <jim@meyering.net>
49933 Make the %s format (seconds since the epoch) work for a negative
49934 number and when used with a zero-padded field width, e.g. %015s.
49936 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
49937 label so that it precedes the code to set `digits'. Otherwise,
49938 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
49939 print `00-22'. Now, it prints `-0022', as it should.
49941 2005-08-17 Bruno Haible <bruno@clisp.org>
49943 * modules/strstr (Files): Add m4/mbrtowc.m4.
49944 (Depends-on): Add mbuiter.
49946 2005-08-17 Bruno Haible <bruno@clisp.org>
49948 * modules/strcasestr: New file.
49949 * MODULES.html.sh (String handling, based on ANSI C 89): Add
49952 2005-08-17 Bruno Haible <bruno@clisp.org>
49954 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
49956 2005-08-17 Bruno Haible <bruno@clisp.org>
49958 * modules/mbuiter: New file.
49959 * MODULES.html.sh (Extended multibyte and wide character utilities):
49962 2005-08-17 Bruno Haible <bruno@clisp.org>
49964 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
49965 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
49967 2005-08-17 Bruno Haible <bruno@clisp.org>
49969 * m4/strcasestr.m4: New file.
49971 2005-08-17 Bruno Haible <bruno@clisp.org>
49973 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
49974 * lib/strstr.c: Completely rewritten, with multibyte locale support.
49976 2005-08-17 Bruno Haible <bruno@clisp.org>
49978 * lib/strcasestr.h: New file.
49979 * lib/strcasestr.c: New file.
49981 2005-08-17 Bruno Haible <bruno@clisp.org>
49983 * lib/strcasecmp.c: Use mbuiter.h.
49985 2005-08-17 Bruno Haible <bruno@clisp.org>
49987 * lib/mbuiter.h: New file.
49989 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
49991 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
49992 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
49993 and gl_GETOPT are both invoked via different paths (as happens
49994 with GNU tar CVS because it uses both argp and getopt), the former
49997 2005-08-16 Bruno Haible <bruno@clisp.org>
49999 * modules/tls: New file.
50000 * MODULES.html.sh (Multithreading): Add tls.
50002 2005-08-16 Bruno Haible <bruno@clisp.org>
50004 * modules/strnlen1: New file.
50005 * MODULES.html.sh (String handling): Add strnlen1.
50007 2005-08-16 Bruno Haible <bruno@clisp.org>
50009 * modules/strcase (Files): Add m4/mbrtowc.m4.
50010 (Depends-on): Add strnlen1, mbchar.
50012 2005-08-16 Bruno Haible <bruno@clisp.org>
50014 * modules/mbiter: New file.
50015 * MODULES.html.sh (Extended multibyte and wide character utilities):
50018 2005-08-16 Bruno Haible <bruno@clisp.org>
50020 * modules/mbfile: New file.
50021 * MODULES.html.sh (Extended multibyte and wide character utilities):
50024 2005-08-16 Bruno Haible <bruno@clisp.org>
50026 * modules/mbchar: New file.
50027 * MODULES.html.sh (Extended multibyte and wide character utilities):
50030 2005-08-16 Bruno Haible <bruno@clisp.org>
50032 * m4/tls.m4: New file, from GNU gettext.
50034 2005-08-16 Bruno Haible <bruno@clisp.org>
50036 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
50038 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
50040 2005-08-16 Bruno Haible <bruno@clisp.org>
50042 * m4/mbiter.m4: New file.
50044 2005-08-16 Bruno Haible <bruno@clisp.org>
50046 * m4/mbfile.m4: New file.
50048 2005-08-16 Bruno Haible <bruno@clisp.org>
50050 * m4/mbchar.m4: New file.
50052 2005-08-16 Bruno Haible <bruno@clisp.org>
50054 * lib/tls.h: New file, from GNU gettext.
50055 * lib/tls.c: New file, from GNU gettext.
50057 2005-08-16 Bruno Haible <bruno@clisp.org>
50059 * lib/strnlen1.h: New file.
50060 * lib/strnlen1.c: New file.
50062 2005-08-16 Bruno Haible <bruno@clisp.org>
50064 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
50065 (mbi_init): Update.
50066 (mbi_avail, mbi_advance): Let the iteration end before the terminating
50067 NUL byte, not after it.
50069 2005-08-16 Bruno Haible <bruno@clisp.org>
50071 * lib/strcase.h (strcasecmp): Add note in comments.
50072 * lib/strncasecmp.c: Use code from strcasecmp.c.
50073 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
50074 (strcasecmp): Work correctly in multibyte locales.
50076 2005-08-16 Bruno Haible <bruno@clisp.org>
50078 * lib/mbiter.h: New file.
50080 2005-08-16 Bruno Haible <bruno@clisp.org>
50082 * lib/mbfile.h: New file.
50084 2005-08-16 Bruno Haible <bruno@clisp.org>
50086 * lib/mbchar.h: New file.
50087 * lib/mbchar.c: New file.
50089 2005-08-16 Bruno Haible <bruno@clisp.org>
50091 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
50092 the valid ones. Makes the comparison operations transitive:
50093 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
50094 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
50096 2005-08-15 Simon Josefsson <jas@extundo.com>
50098 * modules/ssize_t (License): Change to 'unlimited'.
50100 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
50102 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
50104 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
50105 Add comments for each pending glibc patch.
50107 2005-08-15 Bruno Haible <bruno@clisp.org>
50109 * lib/regex.h (__restrict_arr): Don't define to __restrict if
50110 __cplusplus is defined.
50112 2005-08-14 Jim Meyering <jim@meyering.net>
50114 Sync from coreutils.
50116 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
50117 Use the hash-table-based cycle-detection code not just when
50118 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
50119 Reported by James Youngman in
50120 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
50121 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
50122 FTS_TIGHT_CYCLE_CHECK.
50123 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
50124 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
50126 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
50127 * lib/fts.c (fd_safer): Remove decl.
50128 Include fcntl--.h rather than unistd-safer.h
50129 (fts_safe_changedir): Don't call fd_safer; no longer needed
50130 now that we include fcntl--.h.
50132 2005-08-12 Simon Josefsson <jas@extundo.com>
50134 * modules/getndelim2: Use ssize_t module.
50135 * modules/getnline: Likewise.
50136 * modules/safe-read: Likewise.
50137 * modules/xreadlink: Likewise.
50139 * modules/ssize_t: New file.
50141 2005-08-12 Simon Josefsson <jas@extundo.com>
50143 * m4/readline.m4: Look for termcap, curses or ncurses if required.
50145 2005-08-12 Simon Josefsson <jas@extundo.com>
50147 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50150 2005-08-12 Simon Josefsson <jas@extundo.com>
50152 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
50153 readline, getdelim and check_version.
50154 (Support for systems lacking ISO C 99: Sizes of integer types):
50157 2005-08-12 Bruno Haible <bruno@clisp.org>
50159 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
50161 2005-08-11 Simon Josefsson <jas@extundo.com>
50163 * modules/readline: New file.
50165 * modules/strnlen (Files): Add strnlen.h.
50167 2005-08-11 Simon Josefsson <jas@extundo.com>
50169 * m4/readline.m4: New file.
50171 2005-08-11 Simon Josefsson <jas@extundo.com>
50173 * lib/readline.h, readline.c: New file.
50175 2005-08-11 Simon Josefsson <jas@extundo.com>
50177 * doc/gnulib.texi (Initial import, Finishing touches): Mention
50180 2005-08-11 Bruno Haible <bruno@clisp.org>
50182 * lib/strnlen.h (strnlen): Change parameter name to match comment.
50184 2005-08-10 Stepan Kasal <kasal@ucw.cz>
50186 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
50188 2005-08-10 Simon Josefsson <jas@extundo.com>
50190 * tests/test-iconvme.c: New file.
50192 2005-08-10 Simon Josefsson <jas@extundo.com>
50194 * m4/strnlen.m4: New file.
50196 * m4/strndup.m4: Don't check for strnlen declaration, done in
50199 2005-08-10 Simon Josefsson <jas@extundo.com>
50201 * lib/strndup.c: Use strnlen.h.
50203 * lib/strnlen.h: New file.
50205 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
50209 2005-08-02 Simon Josefsson <jas@extundo.com>
50211 * modules/readline: New file.
50213 2005-08-02 Simon Josefsson <jas@extundo.com>
50215 * modules/getdelim: New file.
50217 * modules/getline: Rewrite, don't use getndelim2.
50219 2005-08-02 Simon Josefsson <jas@extundo.com>
50221 * m4/getline.m4: Separate out getdelim stuff into separate module.
50223 * m4/getdelim.m4: New file.
50225 2005-08-02 Simon Josefsson <jas@extundo.com>
50227 * lib/getline.h, getline.c: Rewrite.
50229 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
50231 2005-07-31 Bruno Haible <bruno@clisp.org>
50233 * lib/lock.h (gl_lock_initializer): New macro.
50234 (gl_lock_define_initialized): Use it.
50235 (gl_rwlock_initializer): New macro.
50236 (gl_rwlock_define_initialized): Use it.
50237 (gl_recursive_lock_initializer): New macro.
50238 (gl_recursive_lock_define_initialized): Use it.
50240 2005-07-30 Karl Berry <karl@gnu.org>
50242 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
50243 Report from Ben Pfaff, regarding getopt.
50245 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
50247 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
50249 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
50250 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
50251 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
50252 (gl_GETOPT): Use the new macros. Most of the implementation
50253 is moved to the new macros. This is for programs like Emacs
50254 that don't want all the functionality of gl_GETOPT.
50256 2005-07-26 Bruno Haible <bruno@clisp.org>
50258 * m4/lock.m4: Update from GNU gettext.
50260 2005-07-26 Bruno Haible <bruno@clisp.org>
50262 * lib/lock.h: Update from GNU gettext.
50263 * lib/lock.c: Update from GNU gettext.
50265 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
50267 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
50268 obsolescent AC_TRY_RUN. Include the default includes files, for
50271 2005-07-24 Bruno Haible <bruno@clisp.org>
50273 * modules/visibility: New file.
50274 * MODULES.html.sh (Misc): Add visibility.
50276 2005-07-24 Bruno Haible <bruno@clisp.org>
50278 * m4/visibility.m4: New file.
50280 2005-07-24 Bruno Haible <bruno@clisp.org>
50282 * doc/visibility.texi: New file.
50284 2005-07-22 Bruno Haible <bruno@clisp.org>
50286 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
50287 $(ALLOCA_H), redundant through BUILT_SOURCES.
50288 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
50289 redundant through BUILT_SOURCES.
50290 * modules/byteswap (Makefile.am): Remove explicit dependency on
50291 $(BYTESWAP_H), redundant through BUILT_SOURCES.
50292 * modules/fnmatch (Makefile.am): Remove explicit dependency on
50293 $(FNMATCH_H), redundant through BUILT_SOURCES.
50294 * modules/getopt (Makefile.am): Remove explicit dependency on
50295 $(GETOPT_H), redundant through BUILT_SOURCES.
50296 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
50297 redundant through BUILT_SOURCES.
50298 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
50299 redundant through BUILT_SOURCES.
50300 * modules/stdbool (Makefile.am): Remove explicit dependency on
50301 $(STDBOOL_H), redundant through BUILT_SOURCES.
50302 * modules/stdint (Makefile.am): Remove explicit dependency on
50303 $(STDINT_H), redundant through BUILT_SOURCES.
50304 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
50305 Remove explicit dependency on $(SYSEXITS_H).
50306 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
50308 2005-07-18 Simon Josefsson <jas@extundo.com>
50310 * lib/check-version.c (check_version): Accept identical versions too.
50312 2005-07-18 Bruno Haible <bruno@clisp.org>
50314 * modules/lock: New file.
50315 * MODULES.html.sh (Multithreading): New section.
50317 2005-07-18 Bruno Haible <bruno@clisp.org>
50319 * m4/lock.m4: New file, from GNU gettext.
50321 2005-07-18 Bruno Haible <bruno@clisp.org>
50323 * lib/lock.h: New file, from GNU gettext.
50324 * lib/lock.c: New file, from GNU gettext.
50326 2005-07-18 Bruno Haible <bruno@clisp.org>
50328 * lib/lock.h (gl_once_t): New type.
50329 (gl_once_define, gl_once): New macros.
50330 * lib/lock.c (fresh_once): New variable.
50331 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
50334 2005-07-16 Simon Josefsson <jas@extundo.com>
50336 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
50337 workaround, suggested by Bruno.
50339 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
50341 * modules/xalloc (Depends-on): Add xalloc-die.
50342 * modules/xvasprintf (Depends-on): Add xalloc-die.
50344 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
50346 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
50347 with a minor change.
50349 2005-07-15 Bruno Haible <bruno@clisp.org>
50351 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
50352 When using lib/poll.c, define poll as rpl_poll.
50354 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
50356 * modules/argp (Depends-on): Remove unlocked-io.
50358 2005-07-14 Derek Price <derek@ximbiot.com>
50360 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
50361 for glob symlink bug.
50363 2005-07-14 Bruno Haible <bruno@clisp.org>
50365 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
50366 Instead, test for *_unlocked function declarations directly.
50368 2005-07-11 Simon Josefsson <jas@extundo.com>
50370 * modules/size_max: New file.
50372 * modules/xsize: Depend on size_max module for size_max.m4.
50374 2005-07-11 Simon Josefsson <jas@extundo.com>
50376 * lib/size_max.h: New file.
50378 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
50380 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
50381 copyright symbol and the year.
50382 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
50383 (version_etc_va): Use parameterized copyright notice.
50384 Reword to conform to the current GNU coding standards.
50386 2005-07-11 Karl Berry <karl@gnu.org>
50388 * doc/gnulib.texi (Quoting): new node.
50389 (Initial import): more info, from Patrice.
50391 2005-07-11 Bruno Haible <bruno@clisp.org>
50393 * gnulib-tool (func_usage): Document option --avoid.
50394 (Command line options): Handle --avoid.
50395 (func_acceptable): New function.
50396 (func_modules_transitive_closure): Use it.
50398 2005-07-11 Bruno Haible <bruno@clisp.org>
50400 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
50401 Reported by Jim Meyering.
50403 2005-07-10 Bruno Haible <bruno@clisp.org>
50405 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
50406 Needed when size_t is smaller than 'unsigned int'.
50407 Reported by Paul Eggert.
50409 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
50411 * modules/argp (Depends-on): Add unlocked-io
50413 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
50415 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
50418 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
50420 * config/srclist.txt: Comment out regcomp.c, since we have a porting
50423 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
50424 and Paul Eggert <eggert@cs.ucla.edu>
50426 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
50427 in wint_t, not wchar_t. Remove now-unnecessary cast.
50429 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
50431 * modules/regex (Files): Add lib/regex_internal.c,
50432 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
50433 (Depends-on): Add extensions.
50434 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
50436 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
50438 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
50440 * m4/same.m4 (gl_SAME): Likewise.
50441 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
50443 * m4/regex.m4: Adjust to new libc regex implementation.
50444 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
50445 all the .c and .h parts of (the new) regex.
50446 Quote the m4 stuff better.
50447 Check for RE_ICASE bug of old gnulib.
50448 Check for REG_STARTEND of recent libc.
50449 Rename local variables from jm_* to gl_*.
50450 Quote operand of "test -f".
50451 Say "recent enough" version of libc, not "version 2".
50452 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
50453 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
50454 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
50455 Remove check for btowc, isascii.
50456 Require AM_LANGINFO_CODESET.
50458 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
50460 * lib/regex.c, regex.h: Sync from libc.
50461 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
50463 New files, synced from libc, except that regex_internal.h
50464 currently has a small porting fix.
50466 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
50468 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
50469 regex_internal.c, regexec.c.
50470 Add regex_internal.h too, but as a comment, since the libc version
50471 is currently broken in gnulib mode.
50473 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
50475 Support programs like Emacs that use gnulib but not gettext.
50476 * MODULES.html.sh (Internationalization functions): Add gettext-h.
50477 * modules/gettext-h: New file.
50478 * modules/gettext (Files): Remove lib/gettext.h.
50479 (Depends-on): Add gettext-h.
50480 (Makefile.am): Remove lib_SOURCES.
50481 * modules/argmatch, modules/c-stack, modules/closeout:
50482 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
50483 * modules/execute, modules/file-type, modules/getaddrinfo:
50484 * modules/getopt, modules/human, modules/javacomp:
50485 * modules/javaexec, modules/mkdir-p, modules/obstack:
50486 * modules/openat, modules/pagealign_alloc, modules/pipe:
50487 * modules/quotearg, modules/regex, modules/rpmatch:
50488 * modules/unicodeio, modules/userspec, modules/version-etc:
50489 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
50491 Depend on gettext-h, not gettext.
50493 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
50495 * gnulib-tool (func_import): Add support for 'public domain' license.
50496 * modules/alloca, modules/atexit, modules/memmove:
50497 Now public domain, not GPL.
50498 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
50499 * modules/realloc, modules/strerror, modules/strtod:
50502 2005-07-05 Bruno Haible <bruno@clisp.org>
50504 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
50505 autoconf CVS. Needed for mingw.
50507 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
50509 Remove the dependency of the strftime module on the tzset module.
50510 * modules/strftime (Depends-on): Remove dependency on tzset.
50512 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
50514 Remove the dependency of the strftime module on the tzset module.
50515 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
50516 gl_FUNC_TZSET_CLOBBER.
50518 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
50520 Remove the dependency of the strftime module on the tzset module.
50521 * lib/strftime.c (my_strftime)
50522 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
50523 Copy the input structure, to work around some of the bug with
50524 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
50525 Solaris releases, you should also use the tzset module, but we won't
50526 require it as a dependency any more since we don't want LGPLed code
50527 to depend on GPLed code.
50529 2005-07-02 Jim Meyering <jim@meyering.net>
50531 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
50532 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
50533 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
50534 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
50536 2005-07-02 Jim Meyering <jim@meyering.net>
50538 * lib/backupfile.c (backup_args): Change a `0' to NULL.
50540 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
50542 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
50543 declares only 'struct timespec;' (!).
50545 2005-07-01 Jim Meyering <jim@meyering.net>
50547 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
50548 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
50549 * lib/save-cwd.c, tempname.c:
50550 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
50551 and don't include <sys/file.h>).
50553 2005-06-29 Jim Meyering <jim@meyering.net>
50555 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
50556 type name. Use the variable name instead.
50557 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
50560 2005-06-28 Simon Josefsson <jas@extundo.com>
50562 * modules/check-version (Files): Add check-version.m4.
50564 2005-06-28 Simon Josefsson <jas@extundo.com>
50566 * m4/check-version.m4: New file, suggested by Jim Meyering
50567 <jim@meyering.net>.
50569 2005-06-28 Simon Josefsson <jas@extundo.com>
50571 * lib/check-version.h, lib/check-version.c: New files.
50573 2005-06-28 Simon Josefsson <jas@extundo.com>
50575 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
50576 collision with global variable. Better indentation. Don't
50577 increment buffer pointer beyond buffer end. Based on comments
50578 from Paul Eggert <eggert@cs.ucla.edu>.
50580 * lib/base64.h: Indent.
50582 2005-06-28 Simon Josefsson <jas@extundo.com>
50584 * doc/gnulib.texi (Library version handling): New section.
50586 2005-06-28 Jim Meyering <jim@meyering.net>
50588 * check-module (find_included_lib_files): Hard-code another
50589 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
50590 but modules/fts-lgpl (correctly) does not list those files.
50592 * modules/canonicalize (Files): Add lib/pathmax.h.
50594 2005-06-25 Simon Josefsson <jas@extundo.com>
50596 * modules/check-version: New file.
50598 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
50600 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
50601 initializer of struct addrinfo, as an indication that we don't
50602 care how many members the structure has.
50604 2005-06-24 Derek Price <derek@ximbiot.com>
50605 and Bruno Haible <bruno@clisp.org>
50607 Remove stat module & update lstat.
50608 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
50609 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
50610 * m4/stat.m4: Remove this file.
50612 2005-06-24 Derek Price <derek@ximbiot.com>
50613 and Bruno Haible <bruno@clisp.org>
50615 Remove stat module & update lstat.
50616 * lib/stat.c: Remove this file...
50617 (slash_aware_lstat): ...moving this content and its support...
50618 * lib/lstat.c (rpl_lstat): ...into here.
50619 * lib/lstat.h: New file.
50621 2005-06-24 Derek Price <derek@ximbiot.com>
50622 and Bruno Haible <bruno@clisp.org>
50624 Remove stat module & update lstat.
50625 * config/srclist.txt (libc sources): Remove stat.
50627 2005-06-24 Derek Price <derek@ximbiot.com>
50628 and Bruno Haible <bruno@clisp.org>
50630 Remove stat module & update lstat.
50631 * MODULES.html.sh (stat): Remove.
50632 * MODULES.html: Regenerated.
50633 * modules/lstat (Description): Correct function name.
50634 (Files): Add "lstat.h".
50635 (Depends-on): Remove stat, add xalloc, stat-macros.
50636 * modules/stat: Remove this file.
50637 (Include): Add "lstat.h", remove <sys/stat.h>.
50639 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
50641 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
50642 (ranged_convert): Don't save conversion in a temporary struct.
50643 This causes a warning with GCC 4.0.0, and anyway in the typical
50644 case it's not worth the extra 100 bytes or so of code.
50645 (ranged_convert, __mktime_internal): When calling a function via a
50646 pointer P, use P () rather than (*P) (), as we now assume C89 or
50649 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
50651 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
50652 "who -r" failed to give output. Problem reported by Tim Waugh.
50654 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
50655 (xcalloc): Use it to avoid needless tests.
50656 Problem reported by Jim Meyering.
50658 2005-06-20 Derek Price <derek@ximbiot.com>
50660 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
50661 unnecessary for Autoconfs > 2.59c.
50663 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
50665 * lib/argp.h (__option_is_short): Check upper limit of
50666 __key. Isprint() requires its argument to have the value
50667 of an unsigned char or EOF.
50669 2005-06-16 Jim Meyering <jim@meyering.net>
50671 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
50672 when either N or S is zero.
50674 2005-06-16 Derek Price <derek@ximbiot.com>
50676 * m4/bison.m4: Declare YACC & YFLAGS precious.
50678 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
50680 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
50681 multibyte string or pattern, fall back on unibyte matching.
50682 Problem reported by James Youngman.
50684 2005-06-08 Bruno Haible <bruno@clisp.org>
50686 * modules/csharpcomp: New file.
50687 * MODULES.html.sh (C#): Add csharpcomp.
50689 2005-06-08 Bruno Haible <bruno@clisp.org>
50691 * m4/csharpcomp.m4: New file, from GNU gettext.
50693 2005-06-08 Bruno Haible <bruno@clisp.org>
50695 * lib/csharpcomp.h: New file, from GNU gettext.
50696 * lib/csharpcomp.c: New file, from GNU gettext.
50697 * lib/csharpcomp.sh.in: New file, from GNU gettext.
50699 2005-06-08 Bruno Haible <bruno@clisp.org>
50701 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
50704 2005-06-07 Derek Price <derek@ximbiot.com>
50707 * lib/glob_.h: Indent nested #ifdef.
50709 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
50711 Sync from coreutils.
50712 Use "file name" when talking about file names, instead of "filename"
50713 or "path", as per the GNU coding standards.
50714 * lib/mkdir-p.c: Renamed from makepath.c.
50715 (make_dir_parents): Renamed from make_path. All callers changed.
50716 * lib/mkdir-p.h: Likewise. All includers changed.
50717 * lib/filenamecat.c: Renamed from path-concat.c.
50718 (file_name_concat): Renamed from path_concat. All callers changed.
50719 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
50720 * lib/filenamecat.h: Likewise. All includers changed.
50721 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
50722 in comments or local variable names.
50723 * lib/basename.c: Likewise.
50724 * lib/canonicalize.c, canonicalize.h: Likewise.
50725 * lib/dirname.c, dirname.h: Likewise.
50726 * lib/euidaccess.c: Likewise.
50727 * lib/exclude.c: Likewise
50728 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
50729 * lib/fsusage.c, fsuage.h: Likewise.
50730 * lib/fts.c, fts_.h: Likewise.
50731 * lib/getcwd.c: Likewise.
50732 * lib/getloadavg.c: Likewise.
50733 * lib/mkstemp.c: Likewise.
50734 * lib/mountlist.c, mountlist.h: Likewise.
50735 * lib/openat.c, openat.h: Likewise.
50736 * lib/readlink-stub.c: Likewise.
50737 * lib/readutmp.c, readutmp.h: Likewise.
50738 * lib/rename.c: Likewise.
50739 * lib/rmdir.c: Likewise.
50740 * lib/same.c: Likewise.
50741 * lib/savedir.c: Likewise.
50742 * lib/stripslash.c: Likewise.
50743 * lib/tempname.c: Likewise.
50744 * lib/xreadlink.c: Likewise.
50745 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
50747 * lib/exclude.h: Likewise.
50749 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
50750 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50751 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
50752 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50753 * lib/pathmax.h: Include <limits.h> unconditionally, since other
50754 files have been getting away with it for years (MORE/BSD 4.3
50756 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
50757 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50759 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
50760 Define to 256, not 255, as per modern POSIX.
50762 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
50764 Sync from coreutils.
50765 Use "file name" when talking about file names, instead of "filename"
50766 or "path", as per the GNU coding standards.
50767 * MODULES.html.sh: mkdir-p renamed from makepath.
50768 filenamecat renamed from path-concat.
50769 * modules/filenamecat: Renamed from modules/path-concat.
50770 (Files): filenamecat.h and filenamecat.c renamed from
50771 path-concat.h and path-concat.c.
50772 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
50773 (Include): filenamecat.h, not path-concat.h.
50774 * modules/mkdir-p: Renamed from modules/makepath.
50775 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
50777 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
50778 (Include): mkdir-p.h, not makepath.h.
50780 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
50782 Sync from coreutils.
50783 * m4/mkdir-p.m4: Renamed from makepath.m4.
50784 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
50785 Rename files from makepath.c to mkdir-p.c, and from
50786 makepath.h to mkdir-p.h.
50787 * m4/filenamecat.m4: Renamed from path-concat.m4.
50788 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
50789 Rename files from path-concat.c to filenamecat.c,
50790 and from path-concat.h to filenamecat.h.
50791 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
50792 "file name" in local variables or comments.
50793 * m4/rename.m4: Likewise.
50795 2005-06-01 Bruno Haible <bruno@clisp.org>
50797 * modules/csharpexec: New file.
50798 * MODULES.html.sh (C#): New section.
50800 2005-06-01 Bruno Haible <bruno@clisp.org>
50802 * m4/csharp.m4: New file, from GNU gettext.
50803 * m4/csharpexec.m4: New file, from GNU gettext.
50805 2005-06-01 Bruno Haible <bruno@clisp.org>
50807 * lib/csharpexec.h: New file, from GNU gettext.
50808 * lib/csharpexec.c: New file, from GNU gettext.
50809 * lib/csharpexec.sh.in: New file, from GNU gettext.
50811 2005-05-31 Derek Price <derek@ximbiot.com>
50812 Paul Eggert <eggert@cs.ucla.edu>
50815 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
50817 2005-05-31 Derek Price <derek@ximbiot.com>
50818 Paul Eggert <eggert@cs.ucla.edu>
50821 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
50823 2005-05-29 Derek Price <derek@ximbiot.com>
50825 * config/srclist.txt (glob_.h, glob.c): Add these files.
50827 2005-05-29 Derek Price <derek@ximbiot.com>
50829 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
50830 * modules/glob: New file.
50831 * modules/getlogin_r: Add link to POSIX spec in description.
50833 2005-05-29 Derek Price <derek@ximbiot.com>
50834 Paul Eggert <eggert@cs.ucla.edu>
50836 * m4/glob.m4: New file.
50838 2005-05-29 Derek Price <derek@ximbiot.com>
50839 Paul Eggert <eggert@cs.ucla.edu>
50841 * lib/glob_.h, lib/glob.c: New files.
50843 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
50845 * modules/fts (Files): Remove m4/inttypes-pri.m4.
50846 * modules/fts-lgpl (Depends-on): Remove gettext.
50848 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
50850 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
50851 and don't require gt_INTTYPES_PRI.
50853 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
50855 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
50857 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
50858 the configuration hassle isn't worth it.
50859 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
50860 (LONGEST_MODIFIER, PRIuMAX): Remove.
50862 2005-05-27 Bruno Haible <bruno@clisp.org>
50864 * lib/getlogin_r.h: Remove second include of <stddef.h>.
50866 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
50868 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
50869 _POSIX_PTHREAD_SEMANTICS for Solaris.
50871 2005-05-25 Derek Price <derek@ximbiot.com>
50873 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
50875 2005-05-25 Derek Price <derek@ximbiot.com>
50876 Paul Eggert <eggert@cs.ucla.edu>
50878 * modules/getlogin_r, m4/getlogin_r.m4: New files.
50879 * lib/getlogin_r.c, getlogin_r.h: New files.
50881 2005-05-25 Bruno Haible <bruno@clisp.org>
50882 Derek Price <derek@ximbiot.com>
50884 * lib/getlogin_r.h: Simplify API documentation.
50886 2005-05-23 Derek Price <derek@ximbiot.com>
50888 * modules/minmax (Files): Add m4/minmax.m4.
50889 (configure.ac): Add gl_MINMAX.
50891 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
50893 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
50894 so that unistd-safer.h (GPL'ed code) need not be included.
50896 2005-05-22 Bruno Haible <bruno@clisp.org>
50898 * m4/minmax.m4: New file.
50899 Based on a patch by Derek Price <derek@ximbiot.com>.
50901 2005-05-22 Bruno Haible <bruno@clisp.org>
50903 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
50904 (INT64_MIN): Fix definition.
50905 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
50907 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
50908 NEED_SIGNED_INT_TYPES.
50910 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
50911 HAVE_SYSTEM_INTTYPES.
50913 2005-05-22 Bruno Haible <bruno@clisp.org>
50915 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
50916 Also include <sys/param.h> if it defines MIN, MAX.
50917 Based on a patch by Derek Price <derek@ximbiot.com>.
50919 2005-05-21 Jim Meyering <jim@meyering.net>
50921 * modules/fts (Files): Add m4/inttypes-pri.m4.
50922 (Depends-on): Add lstat and remove gettext. Alphabetize.
50924 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
50927 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
50928 (setup_dir, free_dir): New functions.
50929 (enter_dir, leave_dir): Define trivial
50930 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
50931 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
50932 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
50933 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
50934 Move to fts-cycle.c.
50935 (fts_open): Use setup_dir.
50936 (fts_close): Use free_dir.
50937 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
50938 This adds a label and some gotos, but the alternatives were messier.
50939 Check for memory allocation failure when entering a dir.
50940 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
50941 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
50942 (FTS): New member fts_cycle, that is a union that contains the
50943 old active_dir_ht and cycle_state. All uses changed to mention
50944 fts_cycle.ht and fts_cycle.state.
50945 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
50946 fts.c, with the following changes:
50947 (setup_dir, free_dir): New functions.
50948 (enter_dir): Now returns bool. Return true if successful, false
50949 if memory exhausted. All callers changed.
50950 Do not bother partly cleaning up on
50951 memory allocation failure; that is free_dir's job.
50952 However, free ad if hash_insert fails, to avoid memory leak.
50953 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
50954 fts->fts_options to see which union member to use.
50956 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
50958 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
50959 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
50961 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
50963 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
50965 2005-05-20 Jim Meyering <jim@meyering.net>
50967 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
50968 Now a macro, to pacify GCC.
50970 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
50972 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
50975 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
50977 * lib/chown.c (rpl_chown): Return -1 on failure.
50979 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
50981 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
50982 Don't check for stddef.h.
50983 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
50984 don't use its results.
50985 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
50986 since we include them unconditionally. Don't require
50987 AM_STDBOOL_H, since stdbool is a prerequisite.
50988 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
50989 since we assume C89 or better.
50990 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
50991 as we don't use their results.
50992 Don't check for fchdir, memmove, memset, strrchr, as we use
50993 them unconditionally.
50994 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
50995 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
50997 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
50999 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
51000 Include <stddef.h> unconditionally, since we assume C89 now.
51001 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
51002 * lib/fts.c: Include fts_.h first, to check interface.
51003 Do not include intprops.h; no longer needed.
51004 Include cycle-check.h and hash.h, since fts_.h no longer does.
51005 Remove unnecessary casts of closedir to void.
51006 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
51007 decide whether to decrement nlinks.
51008 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
51009 (FTS): Use struct hash_table * instead of Hash_table, so that
51010 we no longer need to include hash.h here.
51012 2005-05-18 Jim Meyering <jim@meyering.net>
51014 * modules/dirfd (License): Change to LGPL. Most of the code
51015 is already in the public domain.
51017 2005-05-18 Jim Meyering <jim@meyering.net>
51019 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
51020 Reported by Yoann Vandoorselaere.
51022 2005-05-17 Jim Meyering <jim@meyering.net>
51024 * m4/fts.m4: New file, from coreutils.
51026 2005-05-17 Jim Meyering <jim@meyering.net>
51028 * lib/fts.c, lib/fts_.h: New files, from coreutils.
51030 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
51032 Sync from coreutils.
51033 * m4/unlinkdir.m4: New file.
51035 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
51037 Sync from coreutils.
51038 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
51039 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
51040 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
51041 White space changes only.
51042 * lib/makepath.c (make_path): Port to hosts where leading "//" is
51044 * lib/yesno.c: Include getline.h, not ctype.h.
51045 (yesno): Don't remove leading white space; POSIX doesn't allow it.
51046 Use getline to remove arbitrary restriction on response length.
51048 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
51050 * config/srclist-update: Spell out "Street" in FSF postal
51051 mail address; this is the style the FSF seems to prefer.
51053 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
51054 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
51055 this updates FSF postal mail address.
51057 Sync from coreutils.
51058 * modules/unlinkdir: New file.
51059 * modules/yesno (Depends-on): Add getline.
51060 * MODULES.html.sh (File system functions): Add unlinkdir.
51062 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
51064 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
51066 Change the initial comment to refer to GPL, not LGPL.
51067 gnulib-tool will change it to LGPL as needed.
51069 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
51070 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
51071 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
51072 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
51073 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
51074 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
51075 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
51076 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
51077 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
51078 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
51079 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
51080 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
51081 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
51082 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
51083 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
51084 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
51085 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
51086 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
51087 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
51088 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
51089 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
51090 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
51091 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
51092 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
51093 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
51094 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
51095 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
51096 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
51097 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
51098 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
51099 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
51100 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
51101 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
51102 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
51103 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
51104 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
51105 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
51106 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
51107 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
51108 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
51109 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
51110 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
51111 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
51112 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
51113 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
51114 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
51115 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
51116 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
51117 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
51118 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
51119 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
51120 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
51121 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
51122 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
51123 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
51124 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
51125 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
51126 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
51127 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
51128 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
51129 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
51130 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
51131 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
51132 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
51133 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
51134 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
51135 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
51136 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
51137 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
51138 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
51139 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
51140 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
51141 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
51142 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
51143 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
51144 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
51145 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
51146 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
51147 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
51148 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
51149 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
51150 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
51151 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
51152 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
51153 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
51154 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
51155 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
51156 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
51157 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
51158 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
51159 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
51160 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
51161 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
51162 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
51163 lib/yesno.c, lib/yesno.h:
51164 Update FSF postal mail address.
51166 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
51168 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
51169 tests/test-memmem.c, tests/test-stpncpy.c:
51170 Update FSF postal mail address.
51172 2005-05-13 Bruno Haible <bruno@clisp.org>
51174 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
51175 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
51176 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
51177 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
51178 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
51179 Add support for 64-bit integers in the MSVC compiler.
51181 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51183 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
51185 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
51187 * gnulib-tool (func_import): Sort and uniquify recommended includes.
51189 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
51191 * doc/getdate.texi (General date syntax): Don't say that date
51192 date --iso-8601=ns generates acceptable dates; it doesn't yet.
51193 Problem reported by Nic Ferrier.
51195 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51197 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
51198 specified in ai_socktype. Fix invalid ai_protocol
51199 check. ai_protocol is usually set to 0 or depending on
51200 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
51201 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
51202 ai_socktype / ai_protocol in the returned addrinfo structure.
51204 2005-05-10 Simon Josefsson <jas@extundo.com>
51206 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
51207 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51209 2005-05-10 Karl Berry <karl@gnu.org>
51211 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
51212 (from http://www.gnu.org/licenses).
51213 * doc/COPYING.LIB: also rename to COPYING.LESSER.
51214 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
51217 2005-05-10 Karl Berry <karl@gnu.org>
51219 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
51220 (COPYING.DOC): remove.
51222 * config/srclist-update: new FSF address.
51224 2005-05-10 Derek Price <derek@ximbiot.com>
51226 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
51229 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51230 Bruno Haible <bruno@clisp.org>
51232 * modules/inet_ntop: New file.
51233 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51236 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51237 Bruno Haible <bruno@clisp.org>
51239 * m4/inet_ntop.m4: New file.
51241 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51242 Bruno Haible <bruno@clisp.org>
51244 * lib/inet_ntop.h: New file.
51245 * lib/inet_ntop.c: New file, from glibc with modifications.
51247 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
51249 * modules/time_r (License): Change to LGPL.
51250 * modules/extensions (License): Change to LGPL. Actually,
51251 the license is more permissive than that, but currently gnulib-tool
51252 doesn't know how to handle more-permissive licenses.
51254 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
51255 Problem reported by Dave Love.
51257 2005-05-08 Jim Meyering <jim@meyering.net>
51259 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
51262 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
51264 * modules/argmatch (Depends-on): Add stdbool.
51265 * modules/backupfile (Depends-on): Likewise.
51266 * modules/chdir-long (Depends-on): Likewise.
51267 * modules/closeout (Depends-on): Likewise.
51268 * modules/cycle-check (Depends-on): Likewise.
51269 * modules/dirname (Depends-on): Likewise.
51270 * modules/fnmatch (Depends-on): Likewise.
51271 * modules/fsusage (Depends-on): Likewise.
51272 * modules/fwriteerror (Depends-on): Likewise.
51273 * modules/getcwd (Depends-on): Likewise.
51274 * modules/getloadavg (Depends-on): Likewise.
51275 * modules/hard-locale (Depends-on): Likewise.
51276 * modules/makepath (Depends-on): Likewise.
51277 * modules/mountlist (Depends-on): Likewise.
51278 * modules/nanosleep (Depends-on): Likewise.
51279 * modules/posixtm (Depends-on): Likewise.
51280 * modules/quotearg (Depends-on): Likewise.
51281 * modules/readtokens (Depends-on): Likewise.
51282 * modules/readtokens0 (Depends-on): Likewise.
51283 * modules/readutmp (Depends-on): Likewise.
51284 * modules/save-cwd (Depends-on): Likewise.
51285 * modules/strftime (Depends-on): Likewise.
51286 * modules/userspec (Depends-on): Likewise.
51287 * modules/utimecmp (Depends-on): Likewise.
51288 * modules/xgetcwd (Depends-on): Likewise.
51289 * modules/xnanosleep (Depends-on): Likewise.
51290 * modules/xstrtod (Depends-on): Likewise.
51291 * modules/yesno (Depends-on): Likewise.
51293 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
51295 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
51298 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
51300 Merge from coreutils. Among other things,
51301 add bulletproofing for cases where stdin, stdout, or stderr are closed.
51302 * lib/fd-safer.c: New file.
51303 * lib/fcntl-safer.h, open-safer.c: Remove.
51304 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
51305 * lib/dup-safer.c: Include unistd-safer.h first.
51306 Don't include errno.h.
51307 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
51308 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
51309 * lib/file-type.c: Rely on file-type.h change.
51310 * lib/getloadavg.c: Include unistd-safer.h.
51311 (getloadavg): Use safer open.
51312 * lib/getusershell.c: Include "stdio-safer.h".
51313 (getusershell): Use safer fopen.
51314 * lib/long-options.c (long_options): Use NULL rather than 0.
51315 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
51317 * lib/modechange.c: Likewise.
51318 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
51319 (MODE_DONE): New constant.
51320 (struct mode_change): Remove 'next' member.
51321 (make_node_op_equals): New function; like the old one of the
51322 same name, except it allocates an array.
51323 (mode_compile, mode_create_from_ref): Use it.
51324 (mode_compile): Allocate result as an array, not a linked list.
51325 Parse octal string ourself, so that we catch mistakes like "+0".
51326 (mode_adjust): Arg is an array, not a linked list.
51327 * lib/modechange.c: Include stat-macros.h, xalloc.h.
51328 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
51329 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
51330 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
51331 Remove. This is now stat-macros.h's job.
51332 (talloc): Remove. All callers replaced by xalloc, so that
51333 our invokers don't have to worry about reporting memory failures.
51334 (make_node_op_equals): Remove.
51335 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
51337 (struct mode_change): Moved here from modechange.h.
51338 (mode_append_entry): Remove.
51339 (mode_compile): Remove MASKED_OPS arg, since it encouraged
51340 apps to have incorrect behavior. Use simpler algorithm for head
51341 and tail. Don't futz with umask; that's now the job of mode_adjust.
51342 Detect more invalid usages rather than having somewhat-random behavior.
51343 Don't insert an "a=" action, as that leads to incorrect behavior.
51344 (mode_compile, mode_create_from_ref): Return NULL on error instead
51345 of an enum, since now there's only one way to have an error. All
51347 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
51348 at the correct time. Simplify calculation of "+u" and its ilk.
51349 Don't mishandle "+X".
51350 (mode_free): Remove "register" and localize decls.
51351 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
51352 (struct mode_change): Move to modechange.c; callers don't
51353 need to see this stuff.
51354 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
51355 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
51356 (mode_change, mode_adjust): Reflect the new signatures noted above.
51357 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
51358 that might redefine system include files.
51359 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
51360 (my_usleep): Use NULL rather than (void *) 0.
51361 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
51362 Use siginterrupt to specify that system calls should be interrupted.
51363 (rpl_nanosleep): Move initialization of suspended closer to call of
51365 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
51366 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
51367 (desirable_utmp_entry): New function.
51368 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
51369 using x2nrealloc, to simplify logic.
51370 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
51371 size calculation. Do not assume utmp file is a regular file.
51372 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
51373 (READ_UTMP_CHECK_PIDS): New constant.
51374 * lib/save-cwd.c: Include unistd-safer.h.
51375 (save_cwd): Use fd_safer.
51376 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
51377 [!_LIBC] Include "stat-macros.h" instead.
51378 * lib/unistd-safer.h (fd_safer): New decl.
51380 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
51382 * modules/getloadavg (Depends-on): Add unistd-safer.
51383 * modules/getusershell (Depends-on): Add stdio-safer.
51384 * modules/lstat (Depends-on): Remove xalloc.
51385 * modules/mkstemp (Depends-on): Add stat-macros.
51386 * modules/modechange (Depends-on): Remove xstrtol.
51387 Add stat-macros, xalloc.
51388 * modules/save-cwd (Depends-on): Add unistd-safer.
51389 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
51390 * modules/unistd-safer (Files): Add lib/fd-safer.c
51391 (Makefile.am): Remove lib_SOURCES.
51393 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
51394 Remove fcntl-safer; unistd-safer supersedes it.
51396 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
51398 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
51400 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
51401 (gl_PREREQ_CHOWN): Remove.
51402 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
51403 it. Don't require AC_HEADER_STAT.
51404 (gl_PREREQ_LSTAT): Remove.
51405 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
51406 Don't require AC_HEADER_STAT.
51407 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
51408 (gl_PREREQ_RMDIR): Remove.
51409 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
51410 mention stat-macros.h or AC_HEADER_STAT, since we'll make
51411 the stat-macros module a prerequisite.
51412 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
51413 * m4/filemode.m4 (gl_FILEMODE): Likewise.
51414 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
51415 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
51416 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
51418 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
51419 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
51421 * m4/fcntl-safer.m4: Remove.
51422 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
51423 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
51424 Invoke gl_PREREQ_FD_SAFER.
51425 (gl_PREREQ_FD_SAFER): New macro.
51426 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
51427 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
51428 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
51429 Remove duplicate call to AC_LIBOBJ(readutmp).
51430 (gl_PREREQ_READUTMP): Remove. All uses inlined.
51432 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
51433 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
51435 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
51437 * MODULES.html.sh (Misc): Add byteswap.
51439 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
51441 * modules/getcwd (Depends-on): Add extensions.
51442 * modules/openat (Depends-on): Likewise.
51444 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
51446 * modules/byteswap: New file.
51448 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
51450 * m4/byteswap.m4: New file.
51452 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
51454 * lib/byteswap_.h: New file.
51456 2005-04-25 Karl Berry <karl@gnu.org>
51458 * m4/gettext.m4: Update from GNU gettext 0.14.4.
51460 2005-04-25 Albert Chin <china@thewrittenword.com>
51462 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
51465 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
51467 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
51468 (func_ln_if_changed) Remove forcibly for no error message
51469 in case file does not exist.
51471 2005-04-19 Simon Josefsson <jas@extundo.com>
51473 * gnulib-tool (Options): Make --symlink mean --symbolic.
51475 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
51477 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
51479 2005-04-16 Simon Josefsson <jas@extundo.com>
51481 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
51483 2005-04-15 Simon Josefsson <jas@extundo.com>
51485 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
51487 2005-04-15 Simon Josefsson <jas@extundo.com>
51489 * gnulib-tool: Rename --symlink to --symbolic.
51491 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
51493 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
51494 symbolic links to files instead of copying/moving. Add --aux-dir,
51495 specifying directory relative --dir where auxiliary build tools
51498 2005-04-14 Bruno Haible <bruno@clisp.org>
51500 * modules/allocsa (License): Change to LGPL.
51501 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51503 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
51505 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
51506 that "UTC +1 second" continues to work. Problem reported
51507 by Dmitry V. Levin.
51508 (relunit_snumber): New rule.
51511 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
51513 * lib/getdate.y (universal_time_zone_table): New constant.
51514 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
51515 universal_time_zone_table.
51516 (lookup_zone): Prefer universal_time_zone_table to
51517 local_time_zone_table, so that "GMT" time stamps are allowed in
51518 London during the summer. Problem reported by Ian Abbott.
51520 2005-04-12 Jim Meyering <jim@meyering.net>
51522 * lib/human.c (humblock): Set *options even when returning due to
51523 xstrtoumax conversion failure. Thanks to a used-uninitialized
51524 warning from gcc-4.
51526 2005-04-09 Jim Meyering <jim@meyering.net>
51528 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
51529 -Wuninitialized: initialize tm0.tm_year.
51531 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
51533 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
51534 count, since there's no maximum. All uses changed.
51535 Add member dsts_seen.
51536 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
51538 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
51539 Use pc_rels_seen to decide whther a date is absolute.
51541 * lib/getdate.y (number): Don't overwrite year.
51542 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
51545 2005-04-02 Simon Josefsson <jas@extundo.com>
51547 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
51548 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
51550 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
51552 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
51553 where no absolute path name can be longer than PATH_MAX.
51555 2005-03-27 Jim Meyering <jim@meyering.net>
51557 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
51559 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
51561 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
51562 "one's complement" -> "ones' complement" in comment, as per Knuth.
51563 "value of type" -> "type or expression" in comment.
51564 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
51566 2005-03-26 Jim Meyering <jim@meyering.net>
51569 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
51570 Correct typos: s/or/of/.
51572 2005-03-26 Jim Meyering <jim@meyering.net>
51574 * modules/check-include-files: Move to ../ and rename to...
51575 * check-module: ...this.
51577 2005-03-25 Jim Meyering <jim@meyering.net>
51579 * modules/xvasprintf (Files): Add xalloc.h.
51581 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
51583 * modules/gettext (Files): config/config.rpath ->
51584 build-aux/config.rpath
51585 * modules/iconv (Files): Likewise.
51586 Problem reported by Oskar Liljeblad.
51588 2005-03-23 Jim Meyering <jim@meyering.net>
51590 * modules/check-include-files: New script to check for
51591 missing dependencies, multiple includes, etc.
51593 * modules/c-strtold (Depends-on): Add xalloc.
51594 * modules/c-strtod (Depends-on): Add xalloc.
51595 * modules/hash (Depends-on): Add xalloc.
51596 (Files): Remove lib/xalloc.h.
51598 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
51599 * modules/userspec (Files): Add lib/inttostr.h.
51601 2005-03-23 Jim Meyering <jim@meyering.net>
51603 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
51605 2005-03-22 Jim Meyering <jim@meyering.net>
51607 * modules/stat-macros: New module.
51608 * modules/canonicalize, modules/euidaccess, modules/file-type,
51609 * modules/filemode, modules/lchown, modules/makepath,
51610 * modules/rmdir, modules/stat: Depend on new stat-macros module
51611 rather than listing lib/stat-macros.h manually.
51612 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
51614 2005-03-22 Jim Meyering <jim@meyering.net>
51616 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
51618 2005-03-22 Bruno Haible <bruno@clisp.org>
51620 * config/srclist.txt: Replace target directory 'config' with
51622 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
51623 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
51626 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
51628 * modules/chdir-long (Depends-on): Add mempcpy.
51630 * modules/acl, modules/backupfile, modules/c-strtod,
51631 modules/c-strtold, modules/canon-host, modules/canonicalize,
51632 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
51633 modules/exclude, modules/exitfail, modules/file-type,
51634 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
51635 modules/getdate, modules/getline, modules/getpagesize,
51636 modules/getpass, modules/getugroups, modules/group-member,
51637 modules/hard-locale, modules/hash, modules/human, modules/idcache,
51638 modules/inttostr, modules/long-options, modules/makepath,
51639 modules/md5, modules/memcasecmp, modules/memcoll,
51640 modules/modechange, modules/mountlist, modules/path-concat,
51641 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
51642 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
51643 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
51644 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
51645 modules/strftime, modules/strndup, modules/strverscmp,
51646 modules/timespec, modules/unlocked-io, modules/userspec,
51647 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
51649 Remove lib_SOURCES line from Makefile.am section, as this is now
51650 done automatically by the corresponding Autoconf macro.
51652 2005-03-21 Jim Meyering <jim@meyering.net>
51654 Changes imported from coreutils.
51656 * lib/cycle-check.c: Don't include xalloc.h.
51658 * lib/path-concat.c: Don't include assert.h.
51659 (path_concat): Remove assertion that would have triggered
51660 for ABASE starting with more than one slash.
51661 Reported by Andreas Schwab.
51663 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
51664 properly when ABASE is an absolute file name.
51665 Correct the description of this function.
51666 Include <assert.h>.
51667 Add an assertion and a test driver.
51668 This fixes a bug introduced on 2004-07-02.
51669 Andreas Schwab reported the resulting failure of cp --parents:
51670 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
51672 2005-03-21 Jim Meyering <jim@meyering.net>
51674 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
51675 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
51677 2005-03-21 Jim Meyering <jim@meyering.net>
51678 and Paul Eggert <eggert@cs.ucla.edu>
51680 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
51681 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
51682 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
51683 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
51684 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
51685 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
51686 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
51687 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
51688 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
51689 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
51690 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
51691 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
51692 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
51693 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
51694 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
51695 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
51696 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
51699 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
51701 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
51702 (which shouldn't happen), generate nothing instead of returning 0
51703 immediately, so that nstrftime (NULL, ...) doesn't return 0.
51705 2005-03-16 Bruno Haible <bruno@clisp.org>
51707 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
51708 HAVE_LONGLONG_64BIT.
51710 2005-03-16 Bruno Haible <bruno@clisp.org>
51712 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
51713 HAVE_LONGLONG_64BIT.
51715 2005-03-16 Bruno Haible <bruno@clisp.org>
51717 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
51718 HAVE_LONGLONG_64BIT.
51720 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
51722 * lib/strftime.c (my_strftime): Prepend space to format so that we can
51723 reliably distinguish strftime failure from empty output on POSIX
51726 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
51728 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
51729 (iconv_string): Don't guess a size-zero buffer, as that might cause
51730 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
51731 result would be 'too large', where 'too large' is (heuristically)
51732 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
51733 overflow concerns. This will prevent some unwanted malloc failures
51734 when the inputs are very large.
51736 2005-03-15 Karl Berry <karl@gnu.org>
51738 * config/srclist.txt (config.rpath): from gettext.
51739 * config/config.rpath: update.
51741 2005-03-15 Bruno Haible <bruno@clisp.org>
51743 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
51746 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
51749 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
51752 2005-03-14 Simon Josefsson <jas@extundo.com>
51754 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
51757 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
51759 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
51760 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
51762 * lib/strtol.c: Likewise.
51764 2005-03-14 Jim Meyering <jim@meyering.net>
51766 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
51767 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
51768 to be nonzero so that we (and caller) can detect the difference
51769 between a valid zero-length expansion and an error return, even
51770 when the underlying strftime fails before writing anything into
51773 2005-03-14 Bruno Haible <bruno@clisp.org>
51775 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
51776 Update from GNU gettext 0.14.3.
51778 2005-03-10 Jim Meyering <jim@meyering.net>
51780 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
51782 2005-03-10 Jim Meyering <jim@meyering.net>
51784 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
51785 so that this module works on systems without fchdir.
51787 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
51789 Factor int-properties macros into a single file, except for
51790 glibc-related files.
51791 * lib/intprops.h: New file.
51792 * lib/getloadavg.c: Include it instead of limits.h.
51793 (INT_STRLEN_BOUND): Remove.
51794 * lib/human.c: Include intprops.h.
51795 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
51796 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
51798 * lib/inttostr.h: Include intprops.h instead of limits.h.
51799 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
51800 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
51801 for consistency with intprops.h.
51802 (time_t_is_integer, twos_complement_arithmetic): Use them.
51803 * lib/sig2str.h: Include <signal.h>, intprops.h.
51804 (INT_STRLEN_BOUND): Remove.
51805 * lib/strftime.c (TYPE_SIGNED): Remove.
51806 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
51807 * lib/strtol.c: Adjust comments to match intprops.h.
51808 * lib/userspec.c: Include intprops.h.
51809 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
51810 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
51811 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
51812 instead of rolling our own expressions.
51813 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
51815 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
51817 (my_strftime): Do not mishandle years close to INT_MAX, by doing
51818 the right thing even if adding 1900 would overflow. Similarly
51819 for tm_mon + 1 and tm_yday + 1.
51820 Make %Y always equivalent to %C%y, and similarly for %G and %g.
51821 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
51822 (DO_SIGNED_NUMBER): New macro.
51823 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
51825 2005-03-07 Bruno Haible <bruno@clisp.org>
51827 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
51829 2005-03-07 Bruno Haible <bruno@clisp.org>
51831 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
51833 2005-03-04 Derek R. Price <derek@ximbiot.com>
51835 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
51836 (func_import): Only replace files via --import when they have actually
51839 2005-03-03 Derek R. Price <derek@ximbiot.com>
51841 * m4/mmap-anon.m4: New file.
51842 * m4/pagealign_alloc.m4: New file.
51844 2005-03-03 Derek R. Price <derek@ximbiot.com>
51845 Bruno Haible <bruno@clisp.org>
51847 * modules/pagealign_alloc: New file.
51848 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
51850 2005-03-03 Derek R. Price <derek@ximbiot.com>
51851 Bruno Haible <bruno@clisp.org>
51853 * lib/pagealign_alloc.h: New file.
51854 * lib/pagealign_alloc.c: New file.
51856 2005-03-03 Bruno Haible <bruno@clisp.org>
51858 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
51859 Use an all-permissive copyright notice, recommended by RMS.
51861 2005-03-02 Bruno Haible <bruno@clisp.org>
51863 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
51864 of AIX, the replacement has to be done only after <string.h> is
51865 included, therefore not in config.h. stpncpy.h does the replacement,
51866 and stpncpy.c uses it.
51868 2005-03-02 Bruno Haible <bruno@clisp.org>
51870 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
51873 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
51875 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
51876 The workaround isn't strictly needed for POSIX conformance, and
51877 it's too much of a pain to configure and maintain. We'll ask
51878 people to fix their kernels instead.
51879 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
51880 (NANOSLEEP_BUG_WORKAROUND): Remove.
51881 (xnanosleep): Remove the workaround.
51883 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
51885 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
51886 Reported by Derek Price.
51887 (Include): Add "timespec.h".
51889 * modules/xnanosleep (Depends-on): Remove gethrxtime.
51891 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
51893 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
51894 to detect nanosleep bug.
51896 2005-03-01 Bruno Haible <bruno@clisp.org>
51898 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
51900 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
51902 * modules/gethrxtime: New file.
51903 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
51904 (Depends-on): Add gethrxtime.
51905 (configure.ac): Add gl_XNANOSLEEP.
51906 (Makefile.am): Remove lib_SOURCES line.
51908 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
51910 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
51911 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
51913 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
51915 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
51916 * lib/timespec.h (gettime): Return void, since it always
51917 succeeds now. All uses changed.
51918 * lib/gettime.c (gettime) Likewise.
51919 [HAVE_NANOTIME]: Prefer nanotime.
51920 Assume gettimeofday succeeds, as POSIX requires.
51921 Assime time () succeeds, since other code already does.
51922 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
51923 (timespec_subtract): Remove.
51924 (NANOSLEEP_BUG_WORKAROUND): New constant.
51925 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
51926 things considerably. Use it only on GNU/Linux hosts, since the
51927 workaround shouldn't be needed elsewhere.
51929 2005-02-24 Bruno Haible <bruno@clisp.org>
51931 * modules/gettext (Files): Add m4/glibc2.m4.
51933 2005-02-24 Bruno Haible <bruno@clisp.org>
51935 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
51936 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
51938 Update from GNU gettext 0.14.2.
51939 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
51941 2005-02-24 Bruno Haible <bruno@clisp.org>
51943 * lib/localcharset.c: Update from GNU gettext 0.14.2.
51944 * lib/config.charset: Update from GNU gettext 0.14.2.
51946 2005-02-24 Bruno Haible <bruno@clisp.org>
51948 * lib/gettext.h: Update from GNU gettext 0.14.2.
51950 2005-02-23 Simon Josefsson <jas@extundo.com>
51952 * m4/iconvme.m4: New file.
51954 2005-02-23 Jim Meyering <jim@meyering.net>
51956 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
51958 Thanks to Bruno Haible for catching it.
51960 2005-02-22 Simon Josefsson <jas@extundo.com>
51962 * modules/iconvme: New file.
51964 * MODULES.html.sh: Add iconvme.
51966 2005-02-22 Simon Josefsson <jas@extundo.com>
51968 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
51970 2005-02-22 Simon Josefsson <jas@extundo.com>
51972 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
51974 2005-02-22 Jim Meyering <jim@meyering.net>
51976 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
51979 2005-02-20 Neil Conway <neilc@samurai.com>
51981 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
51982 returned by OSX/Darwin if the specified buffer is not large
51983 enough for the hostname.
51985 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51987 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
51988 pass it to _help, otherwise the latter coredumps trying to
51989 dereference state.root_argp.
51991 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
51993 * modules/chdir-long (Depends-on): Add memrchr.
51994 * modules/memrchr (Files): Add lib/memrchr.h.
51995 (Include): "memrchr.h".
51997 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
51999 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
52001 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
52003 * lib/memrchr.h: New file.
52004 * lib/chdir-long.c: Include it.
52005 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
52006 Don't bother including stddef.h.
52008 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
52010 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
52012 Include <sys/types.h>, for dev_t.
52013 (ME_DUMMY, ME_REMOTE): Move from here....
52014 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
52015 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
52017 Include mountlist.h first, to test the interface.
52019 2005-01-29 Bruno Haible <bruno@clisp.org>
52021 * lib/progname.c (program_name): Initialize.
52022 Needed when linking statically on MacOS X.
52024 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
52026 Sync from coreutils.
52027 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
52028 (Depends-on): Add c-strtod.
52029 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
52031 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
52033 Sync from coreutils.
52034 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
52036 Remove files that are specific to coreutils.
52037 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
52039 2005-01-28 Bruno Haible <bruno@clisp.org>
52041 * modules/javacomp: New file.
52042 * MODULES.html.sh (Java): Add javacomp.
52044 2005-01-28 Bruno Haible <bruno@clisp.org>
52046 * m4/javacomp.m4: New file, from GNU gettext.
52048 2005-01-28 Bruno Haible <bruno@clisp.org>
52050 * lib/javacomp.sh.in: New file, from GNU gettext.
52051 * lib/javacomp.h: New file, from GNU gettext.
52052 * lib/javacomp.c: New file, from GNU gettext.
52054 2005-01-26 Simon Josefsson <jas@extundo.com>
52056 * lib/gai_strerror.c: Use GPL in header.
52058 2005-01-26 Bruno Haible <bruno@clisp.org>
52060 * modules/javaexec: New file.
52061 * MODULES.html.sh (Java): Add javaexec.
52063 2005-01-26 Bruno Haible <bruno@clisp.org>
52065 * m4/javaexec.m4: New file, from GNU gettext.
52067 2005-01-26 Bruno Haible <bruno@clisp.org>
52069 * lib/javaexec.sh.in: New file, from GNU gettext.
52070 * lib/javaexec.h: New file, from GNU gettext.
52071 * lib/javaexec.c: New file, from GNU gettext.
52073 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52075 * modules/lchown (Depends-on): Remove lchown.h
52077 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52079 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
52080 must be defined if the header file was not found, in order
52081 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
52083 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52085 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
52086 initializers for struct pentry_state.
52087 (__argp_error): Check return value of __asprintf
52088 (__argp_failure): Translate error message
52090 * lib/argp-parse.c: Removed braces around the expansion of N_()
52092 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
52094 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
52095 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
52096 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
52097 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
52098 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
52099 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
52100 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
52101 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
52102 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
52103 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
52104 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
52105 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
52106 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
52107 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
52108 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
52109 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
52110 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
52111 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
52112 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
52113 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
52114 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
52115 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
52116 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
52117 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
52118 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
52119 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
52120 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
52121 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
52122 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
52123 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
52124 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
52125 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
52126 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
52127 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
52128 xstrtol.m4, xstrtoumax.m4, yesno.m4:
52129 Use an all-permissive copyright notice, recommended by RMS.
52131 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
52133 * modules/chdir-long (Depends-on): Remove mempcpy.
52135 2005-01-21 Jim Meyering <jim@meyering.net>
52137 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
52138 same value as for Solaris 9.
52140 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
52141 component length. This included changing the parameter to be
52142 of type `char *' rather than `char const *'.
52143 * lib/chdir-long.h (chdir_long): Update prototype.
52145 * lib/openat.c (fdopendir, fstatat): New functions.
52146 * lib/openat.h: Include headers required for use of DIR and struct
52148 [AT_SYMLINK_NOFOLLOW]: Define.
52149 (fdopendir, fstatat): Add prototypes.
52151 2005-01-21 Bruno Haible <bruno@clisp.org>
52153 * modules/classpath: New file.
52154 * MODULES.html.sh (Java): Add classpath.
52156 2005-01-21 Bruno Haible <bruno@clisp.org>
52158 * lib/classpath.h: New file, from GNU gettext.
52159 * lib/classpath.c: New file, from GNU gettext.
52161 2005-01-20 Simon Josefsson <jas@extundo.com>
52163 * modules/version-etc-fsf: New file.
52165 2005-01-20 Simon Josefsson <jas@extundo.com>
52167 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
52168 * lib/version-etc.c: Remove version_etc_copyright.
52169 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
52170 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
52172 2005-01-20 Simon Josefsson <jas@extundo.com>
52174 * lib/base64.h (isbase64): Add.
52176 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
52177 using a unsigned prototype, don't inline.
52178 (base64_decode): Use it.
52180 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
52182 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
52185 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
52187 * lib/save-cwd.c (save_cwd): Remove code to support the case
52188 where fchdir is missing or flaky.
52190 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
52192 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
52194 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
52196 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
52197 AC_LIBSOURCES now does this.
52198 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
52199 with new ullong_max module.
52201 2005-01-19 Bruno Haible <bruno@clisp.org>
52203 * modules/sh-quote: New file.
52204 * MODULES.html.sh (Executing programs): Add sh-quote.
52206 2005-01-19 Bruno Haible <bruno@clisp.org>
52208 * lib/sh-quote.h: New file, from GNU gettext.
52209 * lib/sh-quote.c: New file, from GNU gettext.
52211 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
52213 Merge from coreutils.
52214 * m4/ullong_max.m4: New file.
52215 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
52216 (gl_MACROS): Assume localeconv exists.
52218 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
52220 Merge changes from coreutils, as described below in several
52221 changelogs dated today.
52223 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
52224 (O_DIRECTORY): Remove; not needed here, since "." must be
52225 a directory. All uses removed.
52226 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
52227 universal on Suns, and we also need to test for IRIX.
52228 Revamp code to use 'if' rather than '#if'.
52229 Avoid unnecessary comparison of cwd->desc to 0.
52231 * lib/utimens.c (futimens): Robustify the previous patch, by checking
52232 for known valid error numbers rather than observed invalid ones.
52234 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
52236 * modules/ullong_max: New file.
52238 * modules/chdir-long, modules/openat: New files.
52239 * modules/save-cwd (Depends-on): Depend on chdir-long.
52240 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
52242 2005-01-18 Jim Meyering <jim@meyering.net>
52244 Merge from coreutils.
52245 * m4/chdir-long.m4, m4/openat.m4: New files.
52246 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
52247 save-cwd.h. Add AC_LIBOBJ for save-cwd.
52248 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
52249 is sane and DOES follow symlinks. Besides, testing 20 different
52250 systems found no broken chown implementations.
52251 Prompted by a change in rsync's copy of this macro.
52252 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
52254 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
52256 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
52257 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
52258 NULL-means-set-to-current-time semantics.
52259 Remove temporary file immediately, rather than waiting
52260 for configure's at-exit trap code to do it.
52262 2005-01-18 Jim Meyering <jim@meyering.net>
52264 * lib/version-etc.c (version_etc_copyright): Update copyright date.
52266 * lib/utimens.c (futimens): Account for the fact that futimes
52267 can also fail with errno == ENOSYS or errno == ENOENT.
52268 Patch from Dmitry V. Levin.
52270 Change the name of the robust chdir function from chdir to chdir_long.
52271 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
52272 (restore_cwd): Use chdir_long, not chdir.
52273 * lib/chdir-long.c: Renamed from chdir.c.
52274 * lib/chdir-long.h: Renamed from chdir.h.
52275 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
52278 2005-01-18 Bruno Haible <bruno@clisp.org>
52280 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
52281 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
52282 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
52283 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
52284 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
52285 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
52286 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
52287 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
52288 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
52289 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
52290 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
52291 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
52292 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
52293 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
52294 Use an all-permissive copyright notice, recommended by RMS.
52296 2005-01-18 Bob Proulx <bob@proulx.com>
52298 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
52299 simplify offsetof() macro construct to avoid compile failure with
52300 native HP-UX 11.0 ANSI C compiler.
52302 2005-01-17 Bruno Haible <bruno@clisp.org>
52304 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
52305 redundant because stpncpy.m4 takes care of it.
52307 2005-01-17 Bruno Haible <bruno@clisp.org>
52309 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
52311 2005-01-17 Bruno Haible <bruno@clisp.org>
52313 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
52316 2005-01-17 Bruno Haible <bruno@clisp.org>
52318 * lib/fwriteerror.h (fwriteerror): Change specification to include
52320 * lib/fwriteerror.c: Include <stdbool.h>.
52321 (fwriteerror): At the end, close the file stream. Record whether
52322 stdout was already closed.
52324 2005-01-17 Bruno Haible <bruno@clisp.org>
52326 * lib/execute.c (environ): Declare if needed.
52327 * lib/pipe.c (environ): Likewise.
52328 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
52330 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52332 * modules/argp: Depend on vsnprintf
52334 2005-01-10 Jim Meyering <jim@meyering.net>
52336 * modules/closeout (Depends-on): Add atexit.
52338 2005-01-06 Bruno Haible <bruno@clisp.org>
52340 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
52342 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
52344 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
52345 definitions to be after all include files, to avoid collisions.
52346 Problem reported by Bob Proulx.
52348 2005-01-04 Jim Meyering <jim@meyering.net>
52350 Changes imported from coreutils.
52351 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
52352 as the mkstemp template, use a temporary directory and an
52353 8.3-friendly template to avoid trouble on systems like DJGPP.
52354 Reported by Juan M. Guerrero via Stepan Kasal.
52355 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
52356 close. Remove the temporary directory right away, rather than waiting
52357 for configure's at-exit trap code to do it.
52358 Suggestion from Stepan Kasal.
52360 2005-01-01 Simon Josefsson <jas@extundo.com>
52362 * gnulib-tool: Print #include directives when --import'ing.
52364 2004-12-28 Simon Josefsson <jas@extundo.com>
52366 * tests/test-base64.c: Include required header files. Remove
52369 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
52371 * modules/error (Depends-on): Remove gettext.
52373 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
52375 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
52376 not needed. This removes a dependency on the gettext module.
52377 [defined _LIBC]: Do not include <libintl.h>; not needed.
52379 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
52381 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
52382 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
52384 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
52386 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
52389 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
52391 * modules/getdate (Depends-on): Remove alloca-opt.
52393 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
52395 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
52397 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
52399 * lib/argp-parse.c: Include <stddef.h>.
52400 (alignof, alignto): New macros.
52401 (parser_init): Don't assume that void * is aligned sufficiently
52404 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
52405 need to extend the stack.
52406 (YYINITDEPTH): New macro, so that the initial stack isn't overly
52409 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52411 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
52413 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
52415 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
52416 (2004-10-24) change. Apparently this was a false alarm.
52418 * modules/getdate: Depend on alloca-opt, not alloca.
52420 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
52422 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
52423 Remove now-obsolete comment about AIX.
52424 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
52425 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
52426 (YYMAXDEPTH): New macro.
52428 2004-12-18 Simon Josefsson <jas@extundo.com>
52430 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
52432 2004-12-18 Bruno Haible <bruno@clisp.org>
52434 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
52436 2004-12-18 Bruno Haible <bruno@clisp.org>
52438 * lib/fatal-signal.c (fatal_signals): Make non-const.
52439 (init_fatal_signals): New function.
52440 (uninstall_handlers, install_handlers): Ignore signals that were set to
52442 (at_fatal_signal): Call init_fatal_signals.
52443 (init_fatal_signal_set): Likewise. Ignore signals that were set to
52445 Reported by Paul Eggert.
52447 2004-12-18 Bruno Haible <bruno@clisp.org>
52449 * doc/alloca.texi: New file.
52450 * doc/alloca-opt.texi: New file.
52452 2004-12-17 Jim Meyering <jim@meyering.net>
52454 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
52455 Otherwise, install-sh could exit with improper exit status when
52456 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
52458 2004-12-16 Simon Josefsson <jas@extundo.com>
52460 * tests/test-base64.c: Add license.
52462 2004-12-15 Stepan Kasal <address@hidden>
52464 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
52466 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
52468 * modules/getcwd (Files): Add m4/d-ino.m4.
52469 Suggested by Mark D. Baushke.
52471 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
52473 * lib/getdate.y (textint): New member "negative".
52474 (time_zone_hhmm): New function.
52475 Expect 14 shift-reduce conflicts, not 13.
52476 (o_colon_minutes): New rule.
52477 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
52478 (yylex): Set the "negative" member of signed numbers.
52480 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
52482 * doc/getdate.texi (Time of day items, Time zone items):
52483 Describe new formats +00:00, UTC+00:00.
52485 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
52487 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
52488 spurious "-l"s. Problem reported by Stepan Kasal.
52490 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
52492 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
52493 in Autoconf 2.59. Problem reported by Mark D. Baushke.
52495 2004-12-04 Simon Josefsson <jas@extundo.com>
52497 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
52498 Vandoorselaere <yoann@prelude-ids.org>.
52500 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
52502 Changes imported from coreutils.
52503 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
52505 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
52507 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
52509 Changes imported from coreutils.
52510 * lib/hard-locale.c: Assume <locale.h> exists.
52511 Include "strdup.h".
52512 (GLIBC_VERSION): New macro.
52513 (hard_locale): Assume setlocale exists.
52514 Rewrite to avoid #ifdef.
52515 Use strdup rather than malloc + strcpy.
52516 * lib/human.c: Assume <locale.h> exists.
52517 (human_readable): Assume localeconv exists.
52519 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
52521 * modules/hard-locale (Depends-on): Add strdup.
52523 2004-12-01 Jakub Jelinek <jakub@redhat.com>
52525 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
52526 convert T2, not T. (Imported from libc.)
52528 2004-11-30 Simon Josefsson <jas@extundo.com>
52530 * modules/restrict (License): Change to LGPL.
52532 2004-11-30 Simon Josefsson <jas@extundo.com>
52534 * m4/restrict.m4: Add copyright and copying conditions.
52536 2004-11-30 Simon Josefsson <jas@extundo.com>
52538 * m4/base64.m4: New file.
52540 2004-11-30 Simon Josefsson <jas@extundo.com>
52542 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
52545 * tests/test-base64.c: New file.
52547 * modules/base64: New file.
52549 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
52551 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
52552 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
52554 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
52556 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
52558 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
52559 (__getcwd.c): Don't restore errno; glibc doesn't.
52560 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
52561 first, falling back to our code only if its results look suspicious.
52562 Ensure that the resulting buffer is only as large as necessary.
52564 * lib/readutmp.c: Include readutmp.h first.
52565 Include <errno.h>, since readutmp.h no longer does that.
52566 * lib/readutmp.h: Don't include <errno.h>,
52567 <sys/param.h>, <time.h>; not needed to establish interface.
52568 (errno): Remove decl.
52569 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
52570 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
52571 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
52573 2004-11-28 Simon Josefsson <jas@extundo.com>
52575 * lib/base64.h, base64.c: New file.
52577 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
52579 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
52581 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
52583 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
52584 (Depends-on): Remove pathmax, same. Add mempcpy.
52585 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
52586 (Makefile.am): Append getcwd.h to lib_SOURCES.
52587 (Include): Add getcwd.h.
52588 (Maintainer): Change from Jim Meyering to "all, glibc",
52589 since getdate now uses intended-for-glibc code.
52590 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
52591 (Depends-on): Depend on getcwd. Do not depend on pathmax.
52593 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
52595 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
52596 HP's ANSI C compiler.
52597 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
52598 Declaring int functions causes warnings on some modern systems and
52599 shouldn't be needed to compile on ancient ones.
52600 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
52603 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
52604 with the following changes.
52605 (__set_errno): Parenthesize properly.
52606 Include <stdbool.h>.
52607 (MIN, MAX, MATCHING_INO): New macros.
52608 (__getcwd): Define with prototype, not K&R form.
52609 Use heuristics to allocate default buffer on stack if possible.
52610 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
52611 behavior, and to avoid the PATH_MAX limit when computing
52613 Use MATCHING_INO to compare inode number to file.
52614 Check for arithmetic overflow in size calculations.
52615 Fix bug in reallocation of dot array that caused getcwd to fail
52616 on directories nested deeper than 75.
52617 Be more careful about saving errno on error.
52618 Do not use realloc; use only free+malloc, as this is a bit
52619 more flexible and avoids a needless copy operation.
52620 Do not inspect st_dev and st_ino for symbolic links; POSIX
52621 doesn't specify the latter.
52622 Check for closedir errors.
52623 Avoid needless casts.
52624 Use "#ifdef weak_alias" around weak_alias, to be like other
52626 The following changes to getcwd.c have effect only when used in
52627 gnulib; they have no effect inside glibc proper.
52628 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
52629 as alloca isn't used.
52630 (alloca, __alloca): Likewise.
52631 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
52632 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
52633 unconditionally, as gnulib assumes C89 or better.
52634 Do not include <sys/param.h>.
52635 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
52636 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
52638 (NULL) [!defined NULL]: Remove; we assume C89 or better.
52639 Include <dirent.h> in a way that is compatible with modern Autoconf.
52640 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
52641 New macros, if not already defined.
52642 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
52643 Use "_LIBC", not "defined _LIBC", for consistency.
52644 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
52646 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
52647 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
52648 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
52649 credit only to Jim Meyering and adjust the copyright dates.
52650 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
52651 <stdlib.h>, <unistd.h>, "pathmax.h".
52652 Instead, include "xgetcwd.h" (first) and "getcwd.h".
52653 (INITIAL_BUFFER_SIZE): Remove.
52654 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
52656 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
52658 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
52659 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
52660 Use the _ONCE methods, for efficiency.
52661 Check for fcntl.h. In test program, include <errno.h>
52662 and <fcntl.h> if available. Remove old K&R cruft from
52663 test program. Check for common errors in GNU/Linux,
52664 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
52665 don't do AC_LIBOBJ, as that's getcwd.m4's job.
52666 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
52667 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
52669 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
52670 accommodate new getcwd.c.
52671 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
52672 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
52673 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
52674 that's all we need now.
52676 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52678 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
52679 argp-parse.c depends on getopt internals, that means we should
52680 always use our getopt, to be on the safe side.
52681 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
52682 order not to spoil the result of an eventual previous invocation
52683 of gl_GETOPT_SUBSTITUTE.
52685 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52687 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
52688 redefinition warnings. To avoid them, include the defines
52689 in `#if !defined __need_getopt ... #endif'. The only place
52690 where __getopt_argv_const is used is in definitions
52691 of getopt_long and getopt_long_only below, which are as well
52692 protected by `#ifndef __need_getopt'.
52693 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
52694 __need_getopt after including <stdio.h> and <unistd.h> These
52695 headers might have defined it.
52697 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
52699 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
52701 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
52703 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
52704 (futimens): New function, which uses futimes if available.
52705 (futimens, utimens): Support timespec==NULL, with same semantics
52706 as utime and utimens.
52707 * lib/utimens.h (futimens): New decl.
52709 2004-11-23 Jim Meyering <jim@meyering.net>
52711 * lib/getopt_.h: Remove trailing blanks.
52713 2004-11-23 Jim Meyering <jim@meyering.net>
52715 * lib/__fpending.c: Add comment.
52717 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
52719 * modules/canonicalize (Depends-on): Add xreadlink.
52720 Problem reported by James Youngman.
52722 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
52724 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
52726 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
52727 optopt): Use them instead of invoking ## directly; otherwise, the
52728 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
52730 2004-11-19 Bruno Haible <bruno@clisp.org>
52732 * lib/strtok_r.c: Move comments from here...
52733 * lib/strtok_r.h: ... to here.
52735 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
52737 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
52738 implementations that mishandle size_t overflow.
52740 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
52742 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
52743 might fail. Problem reported by Yoann Vandoorselaere.
52744 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
52745 implementations that mishandle size_t overflow.
52747 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
52749 * modules/canon-host (Depends-on): Add strdup.
52751 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
52753 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
52755 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
52757 * lib/canon-host.c: Include "strdup.h".
52758 (canon_host): Use getaddrinfo if available, so that IPv6 works.
52759 Use strdup instead of malloc/strcpy to duplicate strings.
52761 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
52762 (human_space_before_unit): New constant.
52763 * lib/human.c (human_readable): Support it.
52765 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
52766 (xgetcwd): Set errno correctly when failing.
52767 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
52768 the failure is actually due to a PATH_MAX problem.
52770 Further getopt changes to make it more likely that glibc will
52771 buy the changes back.
52772 * lib/getopt.c (POSIXLY_CORRECT): New constant.
52773 (getopt): Use it, so to preserve glibc semantic
52774 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
52775 when compiling for libc.
52776 * lib/getopt_.h (__getopt_argv_const): Bring it back.
52777 (getopt_long, getopt_long_only): Use it.
52779 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
52780 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
52781 (getopt): Argv is now char * const *, as per standard.
52782 (_getopt_internal_r, _getopt_internal): Argv is now char **,
52783 not char *__getopt_argv_const *.
52784 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
52785 _getopt_long_only_r): Likewise.
52786 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
52787 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
52788 _getopt_long_r, _getopt_long_only_r): Likewise.
52789 * lib/getopt_.h (__getopt_argv_const): Remove.
52790 (getopt): Argv is now char * const *, as per standard.
52792 * lib/getdate.y (tORDINAL): New token.
52793 (day, relunit): Allow it for relative times.
52794 (relative_time_table): Use tORDINAL for ordinals.
52796 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
52798 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
52799 Document that "second" isn't allowed as an ordinal number.
52801 2004-11-16 Jim Meyering <jim@meyering.net>
52803 * modules/closeout (Depends-on): Add fpending.
52805 2004-11-15 Jim Meyering <jim@meyering.net>
52807 * lib/closeout.c: Include "__fpending.h" once again.
52808 Include <stdbool.h>.
52809 (close_stdout): Don't fail just because stdout was closed initially,
52810 since some programs don't write to stdout in the normal course of
52811 operation (other than --version and --help), and we don't want this
52812 function to make e.g. `touch file >&-' fail.
52813 But do fail if it was closed and someone has tried to write to it.
52814 E.g., `printf foo >&-' must fail.
52816 2004-11-13 Jim Meyering <jim@meyering.net>
52818 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
52820 2004-11-12 Simon Josefsson <jas@extundo.com>
52822 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
52823 small doc fix is still pending.
52825 2004-11-11 Simon Josefsson <jas@extundo.com>
52827 * modules/strtok_r: New file.
52829 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52832 2004-11-11 Simon Josefsson <jas@extundo.com>
52834 * m4/strtok_r.m4: New file.
52836 * m4/getopt.m4: Replace opterr.
52838 2004-11-11 Simon Josefsson <jas@extundo.com>
52840 * lib/strtok_r.h, strtok_r.c: New file.
52842 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
52844 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
52845 of replacing opterr, getopt, etc. This should handle the
52846 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
52848 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
52850 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
52851 we can stop lying to compilers about the constness of argv when we
52852 are compiled outside glibc.
52853 (getopt, getopt_long, getopt_long_only): Use it.
52854 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
52855 _getopt_internal, getopt): Likewise.
52856 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
52857 _getopt_long_only_r): Likewise.
52858 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
52859 _getopt_long_r, _getopt_long_only_r): Likewise.
52861 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
52862 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
52863 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
52864 the other external symbols.
52865 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
52866 declaration, since the above renaming now works around collisions.
52868 2004-11-11 Jim Meyering <jim@meyering.net>
52870 * lib/linebreak.c: Remove trailing blanks.
52871 * lib/alloca_.h: Likewise.
52872 * lib/acosl.c: Likewise.
52873 * lib/euidaccess.c: Likewise.
52874 * lib/allocsa.h: Likewise.
52876 2004-11-10 Simon Josefsson <jas@extundo.com>
52878 * m4/getaddrinfo.m4: New file.
52880 2004-11-10 Simon Josefsson <jas@extundo.com>
52882 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
52884 2004-11-10 Simon Josefsson <jas@extundo.com>
52886 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52889 * modules/getaddrinfo: New file.
52891 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
52893 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
52895 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
52897 * lib/mktime.c (SHR): New macro, which is a portable
52898 substitute for >> that should work even on Crays.
52899 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
52900 Problem reported by Mark D. Baushke in
52901 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
52902 * lib/getdate.y (SHR): Likewise.
52904 * lib/strftime.c (SHR): Likewise.
52906 * lib/quotearg.c (struct quoting_options): Use unsigned int for
52907 quote_these_too, so that right shifts are well defined. All uses
52910 2004-11-10 Jim Meyering <jim@meyering.net>
52912 Ensure that no close failure goes unreported.
52913 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
52914 return early when it seems there's nothing to flush.
52915 Don't include __fpending.h.
52917 2004-11-10 Jim Meyering <jim@meyering.net>
52919 * modules/closeout (Depends-on): Remove fpending.
52921 2004-11-10 Jim Meyering <jim@meyering.net>
52923 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
52925 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
52927 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
52929 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
52930 and AC_REQUIRE when possible, to avoid duplicate checks.
52931 Check for <wchar.h>.
52933 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
52935 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
52937 2004-11-09 Bruno Haible <bruno@clisp.org>
52939 * m4/sockpfaf.m4: New file.
52941 2004-11-05 Bruno Haible <bruno@clisp.org>
52943 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
52944 Reported by Mark D. Baushke <mdb@cvshome.org>.
52946 2004-11-04 Bruno Haible <bruno@clisp.org>
52948 2004-09-11 Bruno Haible <bruno@clisp.org>
52949 * allocsa.valgrind: New file.
52950 2004-02-06 Bruno Haible <bruno@clisp.org>
52951 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
52952 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
52953 Reported by Christopher Seip <chris.seip@hp.com>.
52955 2004-11-04 Bruno Haible <bruno@clisp.org>
52957 * modules/allocsa (Files): Add lib/allocsa.valgrind.
52958 (Makefile.am): Distribute it.
52960 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
52962 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
52963 with errno == ERANGE if the buffer is too small.
52964 Problem reported by Mark D. Baushke.
52966 2004-11-03 Albert Chin <china@thewrittenword.com>
52967 Paul Eggert <eggert@cs.ucla.edu>
52969 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
52970 equivalent, substitute $ac_type for equivalent type rather than
52971 blindly using uint32_t *always* which won't work if uint32_t is not
52972 available. Define _UINT32_T to work around typedef of uint32_t if
52973 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
52976 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
52978 * m4/jm-macros.m4: Sync from coreutils.
52979 (gl_MACROS): Check for mbrlen, for pathchk.
52980 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
52982 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
52984 * lib/xreadlink.c (MAXSIZE): New macro.
52985 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
52986 size does not exceed MAXSIZE. Avoid cast.
52987 As suggested by Mark D. Baushke in
52988 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
52989 if readlink fails with buffer size just under MAXSIZE, try again
52992 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
52994 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
52996 2004-11-02 Derek R. Price <derek@ximbiot.com>
52997 and Paul Eggert <eggert@cs.ucla.edu>
52999 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
53000 (get_date): Overparenthesize to avoid GCC warning.
53002 2004-11-02 Bruno Haible <bruno@clisp.org>
53004 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
53007 2004-11-02 Bruno Haible <bruno@clisp.org>
53009 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
53010 function returns void.
53012 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
53014 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
53015 fflush_unlocked, flockfile, funlockfile, funlockfile,
53016 fputs_unlocked, putc_unlocked.
53018 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
53020 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53021 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
53024 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
53026 * modules/getdate (Files): Add doc/getdate.texi.
53027 (Depends-on): Add setenv, xalloc.
53029 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
53031 * lib/getdate.y: Add support for TZ="foo" within a date string.
53032 Fix some bugs near time_t boundaries. Reject dates with
53033 out-of-range components, e.g., "Sept 31".
53034 Include <stdlib.h>, "setenv.h", "xalloc.h".
53035 (ISDIGIT_LOCALE): Remove; unused.
53036 Note that the TZ and time functions used here are not reentrant.
53037 (mktime_ok, get_tz): New functions.
53038 (TZBUFSIZE): New constant.
53039 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
53040 This requires that we sometimes generate our own TZ="XXX..." setting.
53042 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
53044 * doc/getdate.texi: New file, from coreutils with modifications for
53045 the new TZ parsing.
53047 2004-10-27 Derek R. Price <derek@ximbiot.com>
53049 * lib/mktime.c (not_equal_tm): Remove redundant check.
53051 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
53053 * modules/regex (lib_SOURCES): Add regex.c.
53054 Reported by James Youngman in
53055 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
53057 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
53059 * lib/getdate.y: Use Bison 1.875 features, and some minor
53060 code cleanups. This change does not affect semantics.
53061 Don't include <stdlib.h>; no longer needed.
53062 Don't include unlocked-io.h; only the "#if TEST" code uses
53063 stdio, and performance isn't crucial there.
53064 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
53065 Bison 1.875 features as described below.
53066 All uses of "PC." replaced by "pc->".
53067 (YYSTYPE): Add a forward declaration.
53068 (yylex, yyerror): Use full prototypes in forward decls.
53069 Use "%pure-parser" rather than obsolescent "%pure_parser".
53070 Use %parse-param and %lex-param instead of obsolescent
53071 YYPARSE_PARAM and YYLEX_PARAM.
53072 (meridian_table, month_and_day_table, time_units_table,
53073 relative_time_table, time_zone_table, military_table,
53074 lookup_zone, lookup_word, get_date):
53075 Use NULL instead of 0 where appropriate.
53076 (to_hour): Avoid abort (), to avoid a dependency on
53078 (yyerror, yylex): Now accepts parser_control * arg.
53079 (main) [TEST]: Use '\0' rather than 0 for char.
53081 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
53083 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
53085 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
53087 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
53088 It's now the caller's responsibility to handle the case where
53089 !HAVE_GETPAGESIZE && !defined getpagesize.
53091 * lib/mktime.c (leapyear): Arg is long int, not int.
53093 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
53095 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
53097 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
53099 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
53100 missing. Problem reported by James Youngman.
53102 2004-10-16 Simon Josefsson <jas@extundo.com>
53104 * gnulib-tool: Fix comments. Fix parse problem.
53105 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
53107 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
53109 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
53110 implementation of getopt_long. Problem reported by Alexander Taler in:
53111 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
53113 2004-10-15 Bruno Haible <bruno@clisp.org>
53115 * gnulib-tool: Untabify. Initialize supplied_libname.
53116 (func_usage): More homogenous output.
53117 (func_modules_transitive_closure, func_modules_to_filelist,
53118 func_emit_lib_Makefile_am): New functions.
53119 (func_import): New function, extracted from big case statement. Use
53120 func_get_license, func_modules_transitive_closure,
53121 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
53122 opt_lgpl. Don't use test -a, as it's not portable.
53123 (func_create_testdir): Use func_modules_transitive_closure,
53124 func_modules_to_filelist, func_emit_lib_Makefile_am.
53126 2004-10-15 Bruno Haible <bruno@clisp.org>
53128 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
53130 2004-10-15 Bruno Haible <bruno@clisp.org>
53132 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
53133 the portions belonging to each module.
53134 Suggested by Derek Robert Price <derek@ximbiot.com>.
53136 2004-10-12 Simon Josefsson <jas@extundo.com>
53138 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53139 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
53142 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
53144 * modules/vsnprintf: New file.
53146 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
53148 * m4/vsnprintf.m4: New file.
53150 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
53152 * lib/vsnprintf.h: New file.
53153 * lib/vsnprintf.c: New file.
53155 2004-10-11 Bruno Haible <bruno@clisp.org>
53157 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
53160 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
53162 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
53164 2004-10-07 Bruno Haible <bruno@clisp.org>
53166 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
53167 fits into the provided buffer.
53169 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
53171 * lib/diacrit.c, diacrit.h: Add GPL notice.
53173 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
53175 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
53176 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
53177 This avoids a potential constant-folding bug.
53179 2004-10-05 Bruno Haible <bruno@clisp.org>
53181 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
53182 for the declaration of strsep.
53184 2004-10-05 Bruno Haible <bruno@clisp.org>
53186 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
53188 2004-10-04 Simon Josefsson <jas@extundo.com>
53190 * modules/memmem: New file.
53191 * tests/test-memmem.c: New file.
53192 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
53194 2004-10-04 Simon Josefsson <jas@extundo.com>
53196 * m4/memmem.m4: New file.
53198 2004-10-04 Simon Josefsson <jas@extundo.com>
53200 * lib/memmem.h: New file.
53201 * lib/memmem.c: New file, taken from glibc.
53203 2004-10-04 Simon Josefsson <jas@extundo.com>
53205 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
53206 '#ifdef USE_UNLOCKED_IO'.
53208 2004-10-04 Simon Josefsson <jas@extundo.com>
53210 * config/srclist.txt: Add memmem from glibc.
53212 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53214 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
53216 * modules/argmatch, modules/argp, modules/closeout, modules/error,
53217 modules/exclude, modules/getdate, modules/getline,
53218 modules/getndelim2, modules/getpass, modules/getpass-gnu,
53219 modules/getusershell, modules/linebuffer, modules/md5,
53220 modules/mountlist, modules/posixtm, modules/readtokens,
53221 modules/readutmp, modules/regex, modules/sha1,
53222 modules/version-etc, modules/yesno:
53223 Remove dependency on unlocked-io.
53225 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53227 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
53229 * m4/unlocked-io.m4: Add copyright notice.
53230 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
53232 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53234 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
53235 * lib/xmalloc.c (xmemdup): Likewise.
53236 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
53237 XFREE): Remove these long-obsolescent macros.
53238 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
53239 * lib/xstrdup.c: Remove.
53241 * lib/regex.c (re_comp): Cast gettext return value to char *,
53242 Problem reported by Martin Neitzel via Mark D. Baushke.
53244 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53246 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
53247 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
53248 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
53249 regex.c, sha1.c, version-etc.c, yesno.c:
53250 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
53251 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
53252 the includer's responsibility.
53254 Sync from coreutils.
53256 * lib/modechange.c (mode_compile): Don't decrement a pointer that
53257 points to the start of a string, as the C Standard says the
53258 resulting behavior is undefined.
53260 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
53261 simple -> simple_backups, numbered_existing ->
53262 numbered_existing_backups, numbered -> numbered_backups
53263 to avoid shadowing problems. All uses changed.
53264 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
53265 * lib/backupfile.c (check_extension, numbered_backup):
53266 Rename locals to avoid shadowing 'basename'.
53267 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
53270 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
53271 * lib/.cvsignore: Add getopt.h.
53273 2004-10-04 Bruno Haible <bruno@clisp.org>
53275 * modules/README: New file.
53276 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
53279 2004-10-02 Jim Meyering <jim@meyering.net>
53281 * lib/dirfd.h, getpagesize.h: Add copyright notice.
53283 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
53285 * modules/strsep: New file.
53287 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
53289 * m4/strsep.m4: New file.
53291 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
53293 * lib/strsep.h: New file.
53294 * lib/strsep.c: New file.
53296 2004-10-01 Simon Josefsson <jas@extundo.com>
53298 * lib/snprintf.c (snprintf): Handle size==0.
53300 2004-10-01 Simon Josefsson <jas@extundo.com>
53301 Bruno Haible <bruno@clisp.org>
53303 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
53304 (snprintf): Declare 'args'.
53306 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
53308 * lib/snprintf.c: Remove comments as to why each header is needed.
53310 2004-10-01 Bruno Haible <bruno@clisp.org>
53312 * MODULES.html.sh: Add strsep.
53314 2004-09-30 Simon Josefsson <jas@extundo.com>
53316 * modules/snprintf: New file.
53318 2004-09-30 Simon Josefsson <jas@extundo.com>
53320 * m4/snprintf.m4: New file.
53322 2004-09-30 Simon Josefsson <jas@extundo.com>
53324 * lib/snprintf.h, lib/snprintf.c: New files.
53326 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
53328 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
53329 (hol_entry_help): Never translate an empty string.
53330 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
53331 * lib/argp.h (OPTION_NO_TRANS): New option.
53333 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
53335 * modules/argp (Maintainer): Replace Simon Josefsson
53336 by Sergey Poznyakoff.
53338 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
53340 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
53341 changes merged back into glibc.
53343 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
53345 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
53347 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
53349 * lib/xvasprintf.c: Include xalloc.h.
53350 (xvasprintf): Use xalloc_die, not xmalloc_die.
53352 2004-09-29 Bruno Haible <bruno@clisp.org>
53354 * modules/alloca-opt: New file, derived from modules/alloca.
53355 * modules/allocsa: Depend on alloca-opt instead of alloca.
53356 * modules/setenv: Likewise.
53357 * modules/vasnprintf: Likewise.
53358 * MODULES.html.sh: Add alloca-opt.
53360 2004-09-28 Simon Josefsson <jas@extundo.com>
53362 * gnulib-tool: New parameter --lgpl, to asseert that modules are
53363 LGPL, and to replace license template from GPL to LGPL.
53365 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
53367 * modules/dummy: Change license to LGPL.
53369 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
53371 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
53373 2004-09-24 Simon Josefsson <jas@extundo.com>
53375 * modules/minmax (License): Change from GPL to LGPL.
53377 2004-09-23 Simon Josefsson <jas@extundo.com>
53379 * gnulib-tool (--import): Typo.
53381 2004-09-23 Simon Josefsson <jas@extundo.com>
53383 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
53385 2004-09-22 Bruno Haible <bruno@clisp.org>
53387 * modules/*: Add 'License' field.
53388 * gnulib-tool: Accept --extract-license option.
53389 (func_get_license): New function.
53391 2004-09-21 Bruno Haible <bruno@clisp.org>
53393 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
53394 Reported by Simon Josefsson.
53396 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
53398 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
53399 gl_AC_TYPE_LONG_LONG.
53401 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
53403 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
53405 2004-09-18 Simon Josefsson <jas@extundo.com>
53406 and Paul Eggert <eggert@cs.ucla.edu>
53408 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
53409 calls with autoreconf. Define GL_LIB.
53411 2004-09-14 Karl Berry <karl@gnu.org>
53413 * config/srclist.txt: unsync setenv.c, sigh.
53415 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
53417 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
53418 Problem reported by Bruno Haible in:
53419 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
53421 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
53423 * config/srclist.txt: Comment out argp-pvh.c.
53425 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
53427 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
53428 in case some system header has #define'd it. Problem reported by
53429 Soeren D. Schulze in
53430 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
53432 2004-09-09 Karl Berry <karl@gnu.org>
53434 * regex.[ch]: delete from the root. These were supposed to be
53435 synced with emacs cvs, but this has not happened for about
53436 a year, and anyway nothing else uses emacs regex.[ch].
53437 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
53438 lib/regex[.ch] is untouched.
53440 2004-09-09 Bruno Haible <bruno@clisp.org>
53442 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
53444 2004-09-09 Bruno Haible <bruno@clisp.org>
53446 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
53448 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
53450 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
53452 * modules/xvasprintf: New file.
53453 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
53455 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
53457 * lib/xvasprintf.h: New file.
53458 * lib/xvasprintf.c: New file.
53459 * lib/xasprintf.c: New file.
53461 2004-09-08 Bruno Haible <bruno@clisp.org>
53463 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
53465 2004-09-08 Bruno Haible <bruno@clisp.org>
53467 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
53468 length is > INT_MAX.
53469 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
53472 2004-09-08 Bruno Haible <bruno@clisp.org>
53474 * lib/stdint_.h: New file, taken from GNU clisp.
53476 2004-09-08 Bruno Haible <bruno@clisp.org>
53477 Oskar Liljeblad <oskar@osk.mine.nu>
53479 * modules/stdint: New file.
53480 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
53482 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
53484 Import from coreutils.
53485 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
53486 strings on unbounded length. alloca's performance benefits aren't
53487 that important here.
53488 (V_STRDUP): Remove.
53489 (parse_with_separator): New function, with most of the internals
53490 of the old parse_user_spec. Allow user to omit both user and group,
53491 for compatibility with FreeBSD.
53492 Clone only the user name, not the entire spec.
53493 Do not set *uid, *gid unless entirely successful.
53494 Avoid memory leak in some failing cases.
53495 Fix regression for USER.GROUP reported by Dmitry V. Levin in
53496 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
53497 (parse_user_spec): Rewrite to use parse_with_separator.
53499 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
53501 * modules/userspec: Don't depend on alloca.
53503 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
53505 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
53507 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
53509 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
53510 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
53511 utimecmp, utimens, xnanosleep. Rename sha to sha1.
53513 2004-08-16 Simon Josefsson <jas@extundo.com>
53515 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
53516 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
53517 Add --dry-run for --import.
53518 Let user provided command line parameters override configure.ac
53521 2004-08-12 Simon Josefsson <jas@extundo.com>
53523 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
53524 as discussed with Paul Eggert in threads rooted at
53525 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
53527 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
53528 Before, the test was empty, and relied on ELIDE_CODE in source
53530 (gl_PREREQ_GETOPT): New macro.
53531 (gl_GETOPT): Use them.
53533 2004-08-12 Simon Josefsson <jas@extundo.com>
53535 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
53536 * lib/getopt_.h: Renamed from getopt.h.
53538 2004-08-12 Simon Josefsson <jas@extundo.com>
53540 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
53541 Change default library name from libfoo to libgnu.
53542 Now, if you have a configure.ac that says:
53545 gl_MODULES(error getopt etcetera)
53547 you can import all you need by running:
53548 ../gnulib/gnulib-tool --import
53550 * modules/getopt (Files): Rename getopt.h to getopt_.h.
53551 (Makefile.am): Rewrite, use logic from argz.
53552 (Include): Use <getopt.h> instead of "getopt.h".
53554 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53556 * modules/argp (Files): Add m4/unlocked-io.m4.
53557 (Depends-on): Add extensions.
53559 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53561 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
53562 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
53563 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
53564 Check for program_invocation_name, program_invocation_short_name,
53565 flockfile, funlockfile, features.h, _getopt_long_only_r.
53567 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53569 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
53570 its complicated substitute.
53571 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
53572 and program_invocation_name.
53573 (__argp_basename) [!_LIBC]: Remove; the only use was
53574 replaced by its body.
53575 (__argp_short_program_name): Change condition from
53576 !defined __argp_short_program_name to
53577 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
53578 to match argp-namefrob.h.
53579 (__argp_failure): Don't assume strerror_r returns char *.
53580 * lib/argp-parse.c (N_): Define unconditionally.
53581 (argp_default_options): Fill out initializers with 0 to avoid
53584 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53586 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
53589 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
53591 Merge from coreutils.
53593 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
53595 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
53596 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
53598 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
53600 Merge from coreutils.
53602 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
53603 wmemchr or wmemcpy. Problem reported by Robert Dahlem
53604 for Reliant Unix 5.43.
53606 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
53607 (union fooround): Use uintmax_t, not long int.
53608 The rest is a merge from libc:
53609 [defined _LIBC]: Include <shlib-compat.h>.
53610 (_obstack) [defined _LIBC]: Remove after 2.3.4.
53612 * lib/settime.c (settime): Recode to avoid warning with
53615 * lib/strverscmp.c: Convert to UTF-8.
53617 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
53619 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
53622 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
53624 * modules/xalloc-die: New file.
53625 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
53627 * modules/md5 (Files): Add m4/uint32_t.m4.
53628 * modules/sha1: Renamed from modules/sha.
53630 Rename lib/sha.h to lib/sha1.h.
53631 Rename lib/sha.c to lib/sha1.c.
53632 Rename m4/sha.m4 to m4/sha1.m4.
53633 (lib_SOURCES): Likewise.
53634 (configure.ac): Rename gl_SHA to gl_SHA1.
53635 (Include): sha.h -> sha1.h.
53637 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
53639 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
53640 * m4/sha1.m4: Renamed from sha.m4.
53641 (gl_SHA1): Renamed from gl_SHA. All uses changed.
53643 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
53645 * lib/obstack.h (obstack_empty_p):
53646 Don't assume that chunk->contents is suitably aligned.
53647 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
53648 Likewise. Problem reported by Benno in
53649 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
53651 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
53652 readable. This could be improved further but it'd take some work.
53654 2004-08-08 Simon Josefsson <jas@extundo.com>
53656 * modules/xgethostname (Depends-on): Remove exit and error (not
53659 * modules/getpass-gnu: Add getpass.h.
53660 (Depends-on): Add stdbool.
53661 * modules/getpass: Add getpass.h.
53663 2004-08-08 Simon Josefsson <jas@extundo.com>
53665 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
53666 Check getpass declaration.
53668 2004-08-08 Simon Josefsson <jas@extundo.com>
53670 * lib/xgethostname.c: Don't include error.h (not used).
53672 * lib/getpass.h: Add.
53673 * lib/getpass.c: Include getpass.h first.
53675 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
53677 * lib/xalloc-die.c: New file.
53678 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
53680 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
53681 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
53683 (_, N_, xalloc_die): Move to xalloc-die.c.
53684 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
53685 so that we needn't mess with xalloc_msg_memory_exhausted.
53687 * lib/sha1.h: Renamed from sha.h.
53688 (SHA1_H): Renamed from _SHA_H.
53689 (sha1_ctx): Renamed from sha_ctx.
53690 (sha1_init_ctx): Renamed from sha_init_ctx.
53691 (sha1_process_block): Renamed from sha_process_block.
53692 (sha1_process_bytes): Renamed from sha_process_bytes.
53693 (sha1_finish_ctx): Renamed from sha_finish_ctx.
53694 (sha1_read_ctx): Renamed from sha_read_ctx.
53695 (sha1_stream): Renamed from sha_stream.
53696 (sha1_buffer): Renamed from sha_buffer.
53697 * lib/sha1.c: Likewise; renamed from sha.c.
53698 Do not include <sys/types.h>.
53699 Include <stddef.h> rather than <stdlib.h>.
53701 2004-08-08 Bruno Haible <bruno@clisp.org>
53703 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
53704 FILESYSTEM_PREFIX_LEN.
53705 * lib/progreloc.c: Likewise.
53706 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
53708 2004-08-06 Simon Josefsson <jas@extundo.com>
53710 * modules/progname (Depends-on): Don't depend on stdbool.
53712 2004-08-06 Simon Josefsson <jas@extundo.com>
53714 * modules/getsubopt: New file.
53715 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53718 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
53720 More merge from coreutils.
53722 * m4/utimens.m4, m4/utimecmp.m4: New files.
53723 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
53724 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
53725 prereq.m4, sha.m4: Import changes from coreutils.
53727 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
53729 More merge from coreutils.
53730 * modules/raise, modules/readtokens0, modules/utimens:
53731 * modules/utimecmp, module/xnanosleep: New files.
53732 * modules/strftime: Add lib/strftime.h.
53733 Change include from <time.h> to "strftime.h".
53734 * modules/yesno: Add lib/yesno.h.
53735 * modules/backupfile: Remove lib/addext.c.
53736 * modules/euidaccess: Add stat-macros.h.
53737 * modules/canonicalize, modules/euidaccess,
53738 modules/filemode, modules/lchown, modules/makepath,
53739 modules/rmdir, modules/stat: Likewise.
53741 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
53744 * lib/argp-help.c (make_hol, hol_append): Don't assume that
53745 SIZE_MAX is a valid preprocessor constant.
53746 (__argp_basename): Change from "#ifndef _LIBC"
53747 to "#ifndef __argp_short_program_name", so that
53748 we don't compile these functions for tar.
53750 More merges from coreutils.
53751 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
53752 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
53753 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
53754 * lib/addext.c: Remove; no longer needed.
53755 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
53756 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
53757 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
53758 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
53759 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
53760 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
53761 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
53762 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
53763 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
53764 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
53765 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
53766 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
53767 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
53768 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
53769 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
53770 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
53771 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
53772 Import changes from coreutils.
53774 2004-08-05 Simon Josefsson <jas@extundo.com>
53776 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
53778 2004-08-05 Simon Josefsson <jas@extundo.com>
53780 * m4/getsubopt.m4: New file.
53782 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
53784 Merge from coreutils.
53786 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
53787 * m4/getcwd-path-max.m4: New files.
53789 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
53790 FILESYSTEM_PREFIX_LEN ->
53791 FILE_SYSTEM_PREFIX_LEN.
53792 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
53793 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
53794 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
53795 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
53797 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
53798 prerequisite modules now handle the DOS stuff.
53799 Don't check for unistd.h.
53801 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
53803 Merge from coreutils.
53805 * lib/.gdb-history: Remove; this doesn't belong here.
53807 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
53808 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
53809 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
53810 * lib/getcwd.c: New files.
53812 * lib/dirname.h: Include <stdbool.h>.
53813 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
53814 for consistency with POSIX terminology. All uses changed.
53815 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
53816 (strip_trailing_slashes): Use bool for booleans.
53817 * lib/stripslash.c (strip_trailing_slashes): Likewise.
53819 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
53820 sometimes returns a positive errno value even when it succeeds.
53821 (print_errno_message) [!LIBC]: Fall back on strerror if
53822 __strerror_r fails.
53824 * lib/path-concat.c (mempcpy): Don't define if a system header defines
53825 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
53826 (longest_relative_suffix): New function.
53827 (path_concat): Use it. Assume first argument is not NULL.
53828 Port to DOS. Omit redundant separators.
53829 Report an error instead of returning NULL.
53830 Use mempcpy instead of memcpy.
53831 (xpath_concat): Remove: not declared or used.
53833 * lib/same.h: Include <stdbool.h>
53834 (same_name): Return bool, not int.
53835 * lib/same.c (same_name): Likewise.
53836 (errno): Don't declare; we assume C89 or better now.
53838 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
53839 if not already defined.
53841 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
53842 * lib/dup-safer.c (errno): Likewise.
53844 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
53846 Merge from coreutils.
53847 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
53848 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
53849 * modules/path-concat: Don't depend on strdup.
53851 2004-08-03 Simon Josefsson <jas@extundo.com>
53853 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
53854 * lib/progname.h: Don't include stdbool.h.
53856 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
53858 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
53859 * MODULES.html.sh (func_all_modules): Remove fatal.
53861 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
53863 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
53865 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
53867 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
53870 2004-08-02 Simon Josefsson <jas@extundo.com>
53872 * lib/getsubopt.h: New file, with comments from Bruno Haible.
53873 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
53874 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
53876 2004-08-01 Simon Josefsson <jas@extundo.com>
53878 * lib/xgetdomainname.c: Include stdlib.h, for free().
53880 2004-07-19 Bruno Haible <bruno@clisp.org>
53882 * MODULES.html.sh (func_all_modules): Add dummy.
53884 2004-07-16 Simon Josefsson <jas@extundo.com>
53886 * modules/dummy: New file.
53888 2004-07-16 Simon Josefsson <jas@extundo.com>
53890 * lib/dummy.c: New file.
53892 2004-07-16 Bruno Haible <bruno@clisp.org>
53894 * lib/backupfile.h: Add extern "C" for C++.
53895 * lib/closeout.h: Likewise.
53896 * lib/copy-file.h: Likewise.
53897 * lib/findprog.h: Likewise.
53898 * lib/full-write.h: Likewise.
53899 * lib/pathname.h: Likewise.
53900 * lib/progname.h: Likewise.
53901 * lib/stpcpy.h: Likewise.
53902 * lib/stpncpy.h: Likewise.
53903 * lib/strcase.h: Likewise.
53904 * lib/strstr.h: Likewise.
53905 * lib/xalloc.h: Likewise.
53907 * lib/mbswidth.h: Add extern "C" for C++.
53908 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
53910 2004-07-13 Robert Millan <robertmh@gnu.org>
53912 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
53914 2004-07-09 Simon Josefsson <jas@extundo.com>
53916 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
53917 failed without this.)
53919 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
53921 * modules/chown (Files): Add lib/fchown-stub.c, since
53922 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
53924 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
53926 * lib/fchown-stub.c: New file.
53928 2004-06-24 Jim Meyering <jim@meyering.net>
53930 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
53932 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
53934 * modules/argz: Omit "#include".
53936 * MODULES.html.sh (func_all_modules): Add calloc, to match
53937 2004-06-01 addition of calloc module.
53939 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
53941 * m4/argz.m4: New file, which is autoupdated from libtool.
53943 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
53945 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
53948 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
53950 * config/srclist-update: Don't insist on "USA." before the
53951 close-comment, as libtool omits the period and puts the */ on a
53953 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
53954 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
53956 2004-06-22 Gary V. Vaughan <gary@gnu.org>
53958 * modules/argz: New file.
53959 * MODULES.html.sh (func_all_modules): Add argz.
53961 2004-06-12 Jim Meyering <jim@meyering.net>
53962 and Paul Eggert <eggert@cs.ucla.edu>
53964 * modules/hash (Files): Add lib/xalloc.h.
53965 * modules/pipe (Depends-on): Add wait-process.
53966 * modules/stat (Depends-on): Add xalloc.
53967 * modules/userspec (Files): Add lib/userspec.h.
53970 Upgrade from gettext-0.13.
53971 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
53972 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
53973 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
53975 2004-06-10 Jim Meyering <jim@meyering.net>
53977 * lib/calloc.c: New file.
53979 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
53981 * lib/getdate.y (yylex): Allow space between sign and number.
53982 Problem reported by Dan Jacobson.
53984 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
53986 Merge from coreutils CVS.
53988 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
53989 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
53990 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
53991 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
53992 xstrtol.m4: Fix copyright date and/or serial number.
53994 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
53995 See if we need an fchown replacement.
53996 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
53997 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
53998 and use the replacement function if we detect either defect.
54000 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
54003 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
54004 and Jim Meyering <jim@meyering.net>
54006 Merge from coreutils CVS.
54008 * lib/stat-macros.h: New file, with contents from file-type.h
54009 and coreutils' system.h.
54010 * lib/file-type.c: Include "stat-macros.h".
54011 * lib/file-type.h (file_type): Move all macro definitions to new file,
54014 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
54015 Wrap old code with this conditional.
54016 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
54017 function that does not dereference symlinks.
54018 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
54020 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
54021 dependency problems.
54022 (xreadlink): Accept new arg SIZE, for efficiency.
54023 All decls and uses changed.
54024 * lib/xreadlink.h: Include <stddef.h>, for size_t.
54026 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
54027 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
54029 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
54032 2004-06-01 Jim Meyering <jim@meyering.net>
54034 * m4/calloc.m4: New file.
54036 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
54038 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
54039 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
54040 Also, fix a typo in a diagnostic.
54042 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
54044 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
54045 or AC_FUNC_REALLOC.
54047 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
54049 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
54050 macros to be defined.
54051 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
54052 the allocator returns NULL because the requested size is zero.
54054 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
54056 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
54057 var. Add comment explaining why libc still defines it. This
54058 merges the following patch from glibc:
54059 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
54061 2004-05-20 Andreas Schwab <schwab@suse.de>
54063 * m4/free.m4: Replace free if it not known to work, not the other
54066 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
54068 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
54069 present in glibc since revision 1.1 of this file.
54070 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
54071 obstack_alignment_mask, obstack_alloc, obstack_base,
54072 obstack_blank, obstack_blank_fast, obstack_chunk_size,
54073 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
54074 obstack_grow0, obstack_init, obstack_int_grow,
54075 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
54076 obstack_next_free, obstack_object_size, obstack_ptr_grow,
54077 obstack_ptr_grow_fast, obstack_room): Remove declarations of
54078 nonexistent functions.
54080 2004-05-18 Karl Berry <karl@gnu.org>
54082 * config/srclist.txt: break link for vasnprintf.c.
54084 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
54086 Port obstack to the AS/400, where pointers are 16 bytes wide and
54087 you cannot cast an integer to a valid pointer. This patch is
54088 currently waiting to be integrated into glibc; see
54089 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
54091 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
54092 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
54093 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
54094 (struct obstack): temp member is now a union of a pointer and
54095 an integer, instead of an integer. All integer uses changed.
54096 This does not affect the physical layout of struct obstack,
54097 except on hosts (like the AS/400) where the size or alignment of
54098 void * is greater than that of ptrdiff_t.
54099 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
54100 __STDC__)]: Store temporary in pointer member of union, not
54102 * lib/obstack.c: Include <stddef.h>, for offsetof.
54103 (struct fooalign): Remove; it doesn't need a name.
54104 (union fooround): Change double to long double, and add void *.
54105 (DEFAULT_ALIGNMENT): Use offsetof to compute.
54106 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
54107 not a macro. Hence the values are always int; so remove all
54108 casts-to-int in uses.
54110 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
54112 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
54113 we can get this patch merged into glibc.
54115 2004-05-17 Derek R. Price <derek@ximbiot.com>
54116 Paul Eggert <eggert@cs.ucla.edu>
54118 * m4/argp: Depend on alloca.
54120 2004-05-17 Derek R. Price <derek@ximbiot.com>
54121 Paul Eggert <eggert@cs.ucla.edu>
54123 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
54126 2004-05-17 Bruno Haible <bruno@clisp.org>
54128 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
54129 precision that consists of a '.' followed by an empty digit string.
54130 Patch by Tor Lillqvist <tml@iki.fi>.
54132 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
54134 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
54135 for backward compatibility with older code. We need our own
54136 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
54137 it under some other name, and our alloca.h will define it.
54139 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
54140 Derek Price <derek@ximbiot.com>
54142 * lib/alloca.c: Include <alloca.h>, to get our interface.
54143 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
54144 include <alloca.h> first. Use C89 prototype for alloca; this
54145 requires including <stddef.h> for size_t. Use extern "C" if C++.
54146 Use #elif for simplicity, since we can assume C89 now.
54147 Don't try to source the system alloca.h since it will not be found
54148 and to prevent recursively including its replacement.
54149 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
54150 * lib/regex.c: Likewise.
54152 2004-05-16 Derek Price <derek@ximbiot.com>
54153 Paul Eggert <eggert@cs.ucla.edu>
54155 getline cleanup. This changes the getndelim2 API: both order of
54156 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
54159 * lib/getline.c: Don't include stddef.h or stdio.h, since our
54160 interface does that.
54161 (getline): Always use getdelim, so that we don't have two
54162 copies of this code.
54163 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
54165 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
54166 (GETNDELIM2_MAXIMUM): New macro.
54167 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
54168 instead of the old practice of delim2==0. All callers changed.
54169 Return -1 on overflow, instead of returning junk.
54170 Do not set *linesize unless allocation succeeds.
54171 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
54172 that we include sys/types.h.
54173 * lib/getnline.h: Likewise.
54174 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
54175 (getndelim2): Reorder arguments.
54176 * lib/getnline.c (getnline, getndelim):
54177 Don't discard the NMAX argument.
54178 (getnline): Invoke getndelim, to avoid code duplication.
54179 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
54180 of (size_t) -1 by callers of the getnline family.
54182 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
54184 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
54185 Check for gettimeofday.
54186 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
54187 Check for settimeofday, stime.
54189 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
54191 * lib/nanosleep.c (suspended): Change its type from int to
54192 sig_atomic_t volatile.
54193 (first_call): Make it private to rpl_nanosleep, and have it
54194 be zero initially as that's a bit faster.
54195 (my_usleep): Round up fractional times instead of truncating them,
54196 as this is the usual meaning for 'sleep'.
54198 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
54200 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
54201 (ENOSYS): Define if not defined.
54202 (settime): Fall back on stime if it exists and settimeofday fails.
54203 But don't bother with fallbacks if a method fails with errno == EPERM.
54205 2004-05-11 Jim Meyering <jim@meyering.net>
54207 Prior to this change, the save_cwd caller required read access to the
54208 current directory on most systems (ones with the fchdir function).
54210 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
54211 fails, try write-only, and finally, resort to using xgetcwd.
54213 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
54215 * lib/obstack.c, obstack.h: Import changes from libc.
54217 2004-04-28 Bruno Haible <bruno@clisp.org>
54219 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
54220 also implicitly appends .exe to executables.
54221 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
54222 accepts Windows pathnames.
54223 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54224 Treat Cygwin like Windows, since it now accepts Windows pathnames.
54225 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54226 Treat Cygwin like Windows, since it now accepts Windows pathnames.
54227 Reported by Derek Robert Price <derek@ximbiot.com>.
54229 2004-04-21 Karl Berry <karl@gnu.org>
54231 * config/srclist.txt (localcharset.c): break sync.
54233 2004-04-20 Paul Eggert <eggert@twinsun.com>
54235 * m4/host-os.m4: Add a copyright notice.
54237 2004-04-20 Jim Meyering <jim@meyering.net>
54239 Change UTILS_ to gl_ in AC_DEFINE'd names.
54240 Change utils_- and jm_-prefixed variables, too.
54241 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
54242 UTILS_FUNC_MKDIR_TRAILING_SLASH.
54243 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
54245 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
54246 Don't emit trailing blanks.
54247 Also rename jm_-prefixed variables to have gl_ prefix.
54249 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
54250 Also rename jm_-prefixed variables to have gl_ prefix.
54252 * m4/jm-macros.m4: Reflect the renamings.
54253 * m4/prereq.m4: Likewise.
54255 2004-04-20 Jim Meyering <jim@meyering.net>
54257 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
54260 2004-04-20 Jim Meyering <jim@meyering.net>
54261 Bruno Haible <bruno@clisp.org>
54263 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
54264 memory when realloc fails.
54266 2004-04-19 Jim Meyering <jim@meyering.net>
54268 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
54269 now that readutmp.c may call `free (0)'.
54271 2004-04-19 Bruno Haible <bruno@clisp.org>
54273 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
54274 * m4/inttypes_h.m4: Likewise.
54275 * m4/stdint_h.m4: Likewise.
54276 * m4/intmax_t.m4: Likewise.
54277 * m4/uintmax_t.m4: Likewise.
54279 2004-04-18 Jim Meyering <jim@meyering.net>
54281 * m4/prereq.m4: Don't forbid jm_ prefix.
54283 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
54284 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
54285 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
54286 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
54287 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
54288 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
54289 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
54290 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
54291 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
54292 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
54293 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
54294 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
54295 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
54296 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
54297 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
54298 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
54299 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
54300 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
54301 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
54303 2004-04-18 Jim Meyering <jim@meyering.net>
54305 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
54306 failure, don't leak memory and do call END_UTMP_ENT.
54308 2004-04-16 Jim Meyering <jim@meyering.net>
54310 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
54311 coreutils' stat program.
54312 (gl_PREREQ): Don't require jm_PREREQ_STAT.
54314 2004-04-11 Paul Eggert <eggert@twinsun.com>
54316 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
54318 (CHAR_BIT): Remove, since we assume C89.
54319 Include <stdint.h> if available, as per current Autoconf CVS advice.
54321 2004-03-31 Jim Meyering <jim@meyering.net>
54323 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
54324 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
54325 * m4/xalloc.m4: Likewise.
54327 2004-03-30 Paul Eggert <eggert@twinsun.com>
54329 Merge from coreutils.
54331 * m4/inttostr.m4: New file.
54332 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
54333 Require AM_STDBOOL_H and gl_TIMESPEC instead.
54334 Require gl_CLOCK_TIME.
54335 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
54337 2004-03-30 Paul Eggert <eggert@twinsun.com>
54339 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
54340 not bool, to be more consistent with Unix conventions.
54341 Suggested by Bruno Haible.
54343 Merge from coreutils.
54345 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
54346 * lib/umaxtostr.c: New files.
54348 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
54349 the usual <time.h> dance.
54350 (get_date): Change signature to support fractional time stamps.
54351 All callers changed.
54352 * lib/getdate.y: Include "getdate.h" first, as we can now
54353 assume C89 and don't need to worry about 'const'.
54354 Similarly, include "unlocked-io.h" near start, not in middle.
54355 Include <limits.h>.
54356 (textint.value): Use long int rather than int.
54357 (textint.digits): Use size_t rather than int.
54358 (BILLION, LOG10_BILLION): New constants.
54359 (parser_control): New member rel_ns. Members day_ordinal,
54360 time_zone, month, day, hour, minutes, rel_year, rel_month,
54361 rel_day, rel_hour, rel_minutes, rel_seconds
54362 are now long int, not int. Member seconds is now struct timespec,
54363 not int. New member timespec_seen. Members dates_seen, days_seen,
54364 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
54366 (%union.intval): Now long int, not int.
54367 New member timespec.
54368 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
54369 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
54370 (spec): Now is a timespec or an item list.
54371 (timespec, items): New nonterminals.
54372 (time, rel, relunit, number, get_date):
54373 Add support for fractional seconds.
54374 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
54375 (gmtime, localtime, mktime): Remove decls; not needed with C89.
54376 (to_hour): First arg is now long int, not int.
54377 (to_year): Returns long int, not int.
54378 Don't treat year -70 like 70.
54379 (tm_diff): Returns long int, not int.
54380 (lookup_word): Use bool instead of int when appropriate.
54381 (yylex): Use size_t for count, not int.
54382 Detect overflow when parsing large integer constants.
54383 Add support for fractions.
54384 (get_date): Make pointers 'const' if possible.
54385 Use more-portable code to detect integer overflow.
54386 (main) [TEST]: Adjust to above changes. Test for localtime failure.
54387 Don't use ctime; it's not reliable if the year has >4 digits.
54389 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
54390 This is for compatibility with BSD.
54392 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
54393 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
54394 From coreutils' system.h.
54396 * lib/userspec.c: Don't include "posixver.h".
54397 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
54398 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
54399 compatible extension. Simplify code by removing a boolean int
54400 that was always nonzero if a string was nonnull.
54402 2004-03-30 Jim Meyering <jim@meyering.net>
54404 Merge from coreutils.
54406 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
54407 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
54408 on some systems one must include <grp.h> before it.
54409 Reported by Christian Krackowizer.
54411 2004-03-30 Jim Meyering <jim@meyering.net>
54413 Merge from coreutils.
54415 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
54417 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
54418 an empty input stream.
54420 * lib/readtokens.c: Include <stdbool.h>.
54421 (readtoken): Use `size_t' rather than int/long.
54422 All callers adjusted.
54423 Use `bool' rather than `int' where appropriate.
54424 Use memset rather than an explicit loop.
54425 Use x2nrealloc rather than xrealloc.
54426 Allow the use of `\0' as a delimiter.
54427 (readtokens): Likewise.
54428 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
54430 2004-03-30 Jim Meyering <jim@meyering.net>
54432 * m4/realloc.m4: Remove file, since now it does no more than
54433 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
54434 the `configure.ac' section of module/realloc.
54435 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
54437 2004-03-30 Bruno Haible <bruno@clisp.org>
54439 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
54442 2004-03-29 Paul Eggert <eggert@twinsun.com>
54444 Merge changes to getloadavg.c from coreutils and Emacs.
54446 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
54447 Define to an expression, not to the empty string.
54448 Include cloexec.h and xalloc.h.
54449 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
54450 Use set_cloexec_flag rather than rolling our own.
54451 * lib/cloexec.c, lib/cloexec.h: New files.
54453 2004-03-29 Paul Eggert <eggert@twinsun.com>
54455 * m4/cloexec.m4: New file.
54457 2004-03-18 Paul Eggert <eggert@twinsun.com>
54459 * lib/getopt.h: Sync with libc CVS.
54461 2004-03-18 Paul Eggert <eggert@twinsun.com>
54462 Bruno Haible <bruno@clisp.org>
54464 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
54467 2004-03-18 Paul Eggert <eggert@twinsun.com>
54468 Bruno Haible <bruno@clisp.org>
54470 * lib/mbswidth.h: Include <wchar.h> only if
54471 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
54473 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
54475 2004-03-09 Paul Eggert <eggert@twinsun.com>
54477 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
54478 Sync with libc CVS.
54479 * lib/getopt_int.h: New file, also synced from libc.
54481 2004-03-09 Paul Eggert <eggert@twinsun.com>
54483 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
54484 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
54485 Bring back getopt.c, getopt.h, getopt1.c.
54487 2004-03-07 Paul Eggert <eggert@twinsun.com>
54489 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
54490 All uses changed. Check for sa_sigaction member; this fixes
54491 a bug first reported by Jason Andrade in
54492 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
54494 2004-03-07 Paul Eggert <eggert@twinsun.com>
54496 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
54497 '#if' expressions. Unlike the code it replaces, it does not
54498 depend on (defined _SC_PAGESIZE). However, it does depend on
54499 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
54500 first reported by Jason Andrade in
54501 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
54503 2004-02-25 Simon Josefsson <jas@extundo.com>
54505 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
54507 2004-02-25 Simon Josefsson <jas@extundo.com>
54509 * lib/strdup.h: New file.
54510 * lib/strdup.c: Include it.
54511 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
54512 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
54514 2004-02-23 Karl Berry <karl@gnu.org>
54516 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
54517 (from fencepost.gnu.org:/gd/gnuorg).
54519 2004-02-23 Karl Berry <karl@gnu.org>
54521 * config/srclistvars.sh (GNUORG) [karl]: redefine.
54522 * config/srclist.txt: add maintain/standards documents.
54524 2004-02-18 Bruno Haible <bruno@clisp.org>
54526 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
54527 Reported by Derek Robert Price <derek@ximbiot.com>.
54529 2004-02-16 Karl Berry <karl@gnu.org>
54531 * config/mkinstalldirs, install-sh: update from automake.
54533 2004-02-06 Karl Berry <karl@gnu.org>
54535 * m4/po.m4: update from gettext 0.14.1.
54537 2004-02-06 Karl Berry <karl@gnu.org>
54539 * lib/config.charset: update from gettext 0.14.1.
54541 2004-02-05 Paul Eggert <eggert@twinsun.com>
54543 Add comments and code, prompted by suggestions from Bruno Haible
54545 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
54546 describing the enum quoting_style values.
54547 * lib/quotearg.c (quotearg_alloc): New function.
54548 (quotearg_buffer_restyled): Treat lone { and } as special.
54549 Treat = as special. Work around bug with older shells
54550 that "see" a '\' that is really the 2nd byte of a multibyte char.
54551 Quote empty string with shell_quoting_style.
54553 2004-02-03 Bruno Haible <bruno@clisp.org>
54555 * m4/pipe.m4: New file, from GNU gettext.
54557 2004-02-03 Bruno Haible <bruno@clisp.org>
54559 * lib/pipe.h: New file, from GNU gettext.
54560 * lib/pipe.c: New file, from GNU gettext.
54562 2004-01-27 Bruno Haible <bruno@clisp.org>
54564 * m4/execute.m4: New file, from GNU gettext.
54566 2004-01-27 Bruno Haible <bruno@clisp.org>
54568 * lib/execute.h: New file, from GNU gettext.
54569 * lib/execute.c: New file, from GNU gettext.
54570 * lib/w32spawn.h: New file, from GNU gettext.
54572 2004-01-24 Paul Eggert <eggert@twinsun.com>
54574 Merge from diffutils.
54576 * lib/file-type.c (file_type): Add typed memory objects.
54577 * lib/file-type.h (S_TYPEISTMO): New macro.
54579 * lib/c-stack.h (c_stack_action): Remove argv argument.
54580 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
54581 (die): Don't calculate message unless segv_action returns.
54582 (get_stack_location, min_address_from_argv, max_address_from_argv,
54583 volatile stack_base, volatile_stack_size): Remove.
54584 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
54585 that every segmentation violation is a stack overflow. (Ouch!)
54586 See Debian bug 136249 (still outstanding) for more info about why
54587 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
54589 2004-01-24 Paul Eggert <eggert@twinsun.com>
54591 Exit-status fix from coreutils.
54593 Use exit_failure consistently in place of EXIT_FAILURE,
54594 so that program exit statuses are consistent on failure.
54596 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
54597 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
54598 * lib/argmatch.h: Comment fix to match the above.
54599 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
54600 Now a macro referring to exit_failure, instead of a separate
54601 variable. Include "exitfail.h" to get it.
54602 * lib/xstrtol.h: Include "exitfail.h".
54603 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
54605 * lib/long-options.c (parse_long_options): Use prototype
54606 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
54609 2004-01-21 Jim Meyering <jim@meyering.net>
54611 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
54612 so as not to conflict with a different-sized __mktime_internal
54613 function in GNU libc.
54614 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
54615 Problem building statically-linked `ls' reported by Michael Brunnbauer.
54617 2004-01-20 Karl Berry <karl@gnu.org>
54619 * config/config.guess: update from config.
54621 * config/srclistvars.sh: GNUWWWLICENSES for karl.
54623 2004-01-20 Bruno Haible <bruno@clisp.org>
54625 Safer stack allocation.
54626 * lib/setenv.c: Include allocsa.h.
54627 (alloca): Remove fallback definition.
54628 (freea): Remove macro.
54629 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
54632 2004-01-20 Bruno Haible <bruno@clisp.org>
54634 * m4/eealloc.m4: New file, from GNU gettext.
54636 2004-01-20 Bruno Haible <bruno@clisp.org>
54638 * m4/allocsa.m4: New file, from GNU gettext.
54640 2004-01-20 Bruno Haible <bruno@clisp.org>
54642 * lib/xallocsa.h: New file, from GNU gettext.
54643 * lib/xallocsa.c: New file, from GNU gettext.
54645 2004-01-20 Bruno Haible <bruno@clisp.org>
54647 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
54649 2004-01-20 Bruno Haible <bruno@clisp.org>
54651 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
54652 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
54655 2004-01-20 Bruno Haible <bruno@clisp.org>
54657 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
54660 2004-01-20 Bruno Haible <bruno@clisp.org>
54662 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
54664 2004-01-20 Bruno Haible <bruno@clisp.org>
54666 * lib/eealloc.h: New file.
54668 2004-01-20 Bruno Haible <bruno@clisp.org>
54670 * lib/binary-io.h: Avoid warnings on Cygwin.
54672 2004-01-20 Bruno Haible <bruno@clisp.org>
54674 * lib/allocsa.h: New file, from GNU gettext.
54675 * lib/allocsa.c: New file, from GNU gettext.
54677 2004-01-18 Karl Berry <karl@gnu.org>
54679 * doc/gpl.texi, doc/lgpl.texi: new files.
54681 2004-01-18 Karl Berry <karl@gnu.org>
54683 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
54684 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
54686 2004-01-15 Paul Eggert <eggert@twinsun.com>
54688 Merge from coreutils.
54690 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
54691 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
54692 (gl_DEFAULT_POSIX2_VERSION): Move
54693 the documentation from 'configure' into 'config.hin',
54694 so that 'configure --help' isn't burdened by it and
54695 we don't have to worry about its formatting there.
54696 Reword the documentation so that it's more succinct
54697 and can be run together into a single paragraph.
54698 * m4/same.m4 (gl_SAME): Check for pathconf.
54700 2004-01-15 Paul Eggert <eggert@twinsun.com>
54702 Merge from coreutils.
54704 * lib/posixver.c: Include posixver.h.
54706 * lib/same.c: Include <stdbool.h>, <limits.h>.
54707 (_POSIX_NAME_MAX): Define if not defined.
54709 (same_name): If file names are silently truncated, report
54710 that the file names are the same if they are the same after
54711 the silent truncation.
54713 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
54714 conversion function.
54715 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
54716 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
54719 2004-01-15 Jim Meyering <jim@meyering.net>
54721 Merge from coreutils.
54723 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
54724 if no library is required.
54725 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
54726 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
54727 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
54728 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
54729 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
54730 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
54731 value, $ac_cv_search_crypt, if it's "none required".
54732 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
54733 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
54734 not gl_FUNC_GETLOADAVG.
54735 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
54736 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
54738 2004-01-15 Jim Meyering <jim@meyering.net>
54740 Merge from coreutils.
54742 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
54743 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
54744 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
54746 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
54747 optional configure-time default.
54749 * lib/version-etc.c (version_etc_copyright): Update copyright date.
54751 * lib/xreadlink.c (xreadlink): Correct outdated comment.
54753 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
54755 Merge from coreutils.
54757 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
54758 value, $ac_cv_search_nanosleep, if it's "none required".
54760 2004-01-14 Paul Eggert <eggert@twinsun.com>
54762 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
54763 with like-named macro in fnmatch.c.
54764 (EXT): Use an internal constant instead.
54766 Merge fnmatch patches from glibc.
54767 * lib/fnmatch.c (mbsinit): Remove define.
54768 Add libc_hidden_ver (__fnmatch, fnmatch).
54769 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
54770 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
54772 2004-01-14 Karl Berry <karl@gnu.org>
54774 * config/install-sh: update from automake.
54776 2004-01-13 Karl Berry <karl@gnu.org>
54778 * config/install-sh: update from automake.
54780 2004-01-09 Karl Berry <karl@gnu.org>
54782 * config/install-sh: update from automake.
54784 2004-01-05 Karl Berry <karl@gnu.org>
54786 * config/config.{sub,guess}: update from config.
54788 2003-12-31 Karl Berry <karl@gnu.org>
54790 * config/depcomp: update from automake.
54792 2003-12-14 Karl Berry <karl@gnu.org>
54794 * lib/config.charset: update from gettext-runtime.
54796 2003-12-03 Paul Eggert <eggert@twinsun.com>
54798 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
54799 Bug reported by Alfred M. Szmidt.
54801 2003-12-03 Bruno Haible <bruno@clisp.org>
54803 * m4/gettext.m4: Upgrade from gettext-0.13.
54804 * m4/po.m4: Upgrade from gettext-0.13.
54805 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
54806 * m4/intmax.m4: New file, from gettext-0.13.
54807 * m4/printf-posix.m4: New file, from gettext-0.13.
54809 2003-11-29 Karl Berry <karl@gnu.org>
54811 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
54813 2003-11-25 Paul Eggert <eggert@twinsun.com>
54814 Bruno Haible <bruno@clisp.org>
54816 * lib/printf-parse.h: Don't include sys/types.h.
54817 (ARG_NONE): New macro.
54818 (char_directive): Change type of *arg_index fields to size_t.
54819 * lib/printf-parse.c: Don't include sys/types.h.
54820 (SSIZE_MAX): Remove macro.
54821 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
54822 Remove unnecessary overflow check.
54823 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
54826 2003-11-25 Bruno Haible <bruno@clisp.org>
54828 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
54830 2003-11-25 Bruno Haible <bruno@clisp.org>
54832 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
54835 2003-11-24 Paul Eggert <eggert@twinsun.com>
54837 * modules/alloca: Remove dependency on xalloc.
54839 2003-11-24 Paul Eggert <eggert@twinsun.com>
54841 * lib/alloca.c: Remove dependency on xalloc module.
54842 (xalloc_die): Remove.
54843 (memory_full) [!defined emacs]: New macro.
54844 [!defined emacs]: Don't include xalloc.h.
54845 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
54846 address arithmetic overflows. Change datatypes a bit to avoid
54849 2003-11-22 Jim Meyering <jim@meyering.net>
54851 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
54854 2003-11-21 Karl Berry <karl@gnu.org>
54856 * config/config.{sub,guess}: update from config.
54858 2003-11-18 Karl Berry <karl@gnu.org>
54860 * config/config.{sub,guess}: update from config.
54862 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
54864 2003-11-17 Paul Eggert <eggert@twinsun.com>
54866 * README: Mention that S+T cannot overflow if S is the size of
54867 an existing object and T is sufficiently small.
54869 2003-11-17 Jim Meyering <jim@meyering.net>
54871 On systems without utime and without a utimes function capable of
54872 dealing with a NULL struct utimbuf* argument, this utime replacement
54873 could -- in unusual circumstances -- leak a file descriptor.
54874 * lib/utime.c: Include <unistd.h> and <errno.h>.
54875 (utime_null): Be sure to close `fd' and to preserve errno.
54876 Reported by Geoff Collyer via Arnold Robbins.
54878 2003-11-17 Bruno Haible <bruno@clisp.org>
54880 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
54881 (Depends-on): Add xsize.
54883 2003-11-17 Bruno Haible <bruno@clisp.org>
54885 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
54887 2003-11-17 Bruno Haible <bruno@clisp.org>
54889 * lib/vasnprintf.c (alloca): Remove fallback definition.
54890 (freea): Remove definition.
54891 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
54892 Reported by Paul Eggert.
54894 2003-11-16 Paul Eggert <eggert@twinsun.com>
54895 Bruno Haible <bruno@clisp.org>
54897 Protect against address arithmetic overflow.
54898 * lib/printf-args.h: Include stddef.h.
54899 (arguments): Change type of field 'count' to size_t.
54900 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
54901 'unsigned int' where appropriate.
54902 * lib/printf-parse.h: Include sys/types.h.
54903 (char_directive): Change type of *arg_index fields to ssize_t.
54904 (char_directives): Change type of fields 'count', max_*_length to
54906 * lib/printf-parse.c: Include sys/types.h and xsize.h.
54907 (SSIZE_MAX): Define fallback value.
54908 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
54909 instead of 'int' where appropriate. Check a_allocated, d_allocated
54910 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
54911 * lib/vasnprintf.c: Include xsize.h.
54912 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
54913 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
54914 overflow. Avoid wraparound when converting a width or precision from
54917 2003-11-16 Bruno Haible <bruno@clisp.org>
54919 Update from GNU gettext.
54920 * lib/printf-parse.c: Generalize to it can be compiled for wide
54922 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
54923 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
54924 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
54925 SNPRINTF): New macros.
54926 Don't include <alloca.h> if the file is used inside libintl.
54927 (local_wcslen): New function, for Solaris 2.5.1.
54928 (VASNPRINTF): Use it instead of wcslen.
54930 2003-11-16 Bruno Haible <bruno@clisp.org>
54932 * lib/xsize.h (xmax): New function.
54933 (xsum, xsum3, xsum4): Declare as "pure" functions.
54935 2003-11-12 Paul Eggert <eggert@twinsun.com>
54937 * modules/xalloc (Files): Undo latest change, since xalloc.h
54938 no longer needs SIZE_MAX or PTRDIFF_MAX.
54940 2003-11-12 Paul Eggert <eggert@twinsun.com>
54942 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
54945 2003-11-12 Paul Eggert <eggert@twinsun.com>
54947 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
54948 "return", to pacify some unknown compiler. Problem reported
54949 by Joerg Schilling.
54951 2003-11-12 Paul Eggert <eggert@twinsun.com>
54953 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
54954 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
54955 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
54956 heuristic is just as accurate as far as we know, and it removes a
54957 dependency on size_max.m4 and ptrdiff_max.m4.
54959 2003-11-11 Bruno Haible <bruno@clisp.org>
54961 * modules/xsize (Files): Add m4/size_max.m4.
54962 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
54964 2003-11-11 Bruno Haible <bruno@clisp.org>
54966 * m4/size_max.m4: New file.
54967 * m4/ptrdiff_max.m4: New file.
54968 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
54969 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
54970 (gl_XALLOC): Invoke it.
54972 2003-11-11 Bruno Haible <bruno@clisp.org>
54974 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
54975 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
54978 2003-11-10 Paul Eggert <eggert@twinsun.com>
54980 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
54981 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
54982 rejected some allocations of exactly SIZE_MAX - 2 bytes.
54984 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
54985 not (size_t) -1, since it's defined here.
54987 2003-11-09 Karl Berry <karl@gnu.org>
54989 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
54991 2003-11-06 Paul Eggert <eggert@twinsun.com>
54993 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
54994 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
54995 Reject sizes of exactly SIZE_MAX bytes.
54996 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
54997 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
54999 2003-11-05 Bruno Haible <bruno@clisp.org>
55001 * lib/xsize.h: Include limits.h, to avoid a possible collision with
55002 SIZE_MAX defined in <limits.h> on Solaris.
55004 2003-11-04 Jim Meyering <jim@meyering.net>
55006 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
55007 variable names, rather than @VAR@.
55008 * modules/poll: Likewise.
55010 2003-11-04 Bruno Haible <bruno@clisp.org>
55012 * modules/xsize: New file.
55013 * modules/linebreak: Depend on xsize.
55014 * MODULES.html.sh (func_all_modules): Add xsize.
55016 2003-11-04 Bruno Haible <bruno@clisp.org>
55018 * m4/xsize.m4: New file.
55020 2003-11-04 Bruno Haible <bruno@clisp.org>
55022 * lib/xsize.h: New file.
55023 * lib/linebreak.c: Include xsize.h.
55024 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
55025 argument for overflow.
55026 Suggested by Paul Eggert.
55028 2003-11-03 Karl Berry <karl@gnu.org>
55030 * config/config.{guess,sub}: update from config.
55032 2003-11-03 Jim Meyering <jim@meyering.net>
55034 * modules/userspec (lib_SOURCES): Add userspec.h.
55035 (Include): Add "userspec.h".
55036 Improve description.
55038 2003-11-03 Jim Meyering <jim@meyering.net>
55040 * lib/userspec.c: Include "userspec.h".
55041 * lib/userspec.h: New file.
55043 2003-11-03 Bruno Haible <bruno@clisp.org>
55045 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
55047 2003-11-03 Bruno Haible <bruno@clisp.org>
55049 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
55050 available, to avoid (extremely rare) race condition.
55051 Suggested by Paul Eggert.
55053 2003-11-02 Karl Berry <karl@gnu.org>
55055 * config/srclist.txt (vasprintf.c): sync broken, sigh.
55057 2003-10-31 Paul Eggert <eggert@twinsun.com>
55059 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
55060 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
55061 (read_filesystem_list): Set and use me_type_malloced.
55062 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
55063 whatever the type happens to be), for brevity and consistency.
55064 Check for size calculation overflow on Alphas running OSF/1.
55066 2003-10-31 Jim Meyering <jim@meyering.net>
55068 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
55070 * lib/linebuffer.c: Include <string.h> for declaration of memset.
55072 2003-10-30 Paul Eggert <eggert@twinsun.com>
55073 Bruno Haible <bruno@clisp.org>
55075 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
55076 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
55078 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
55080 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
55081 netbsd*-gnu*. Suggested by Robert Millan.
55083 2003-10-29 Paul Eggert <eggert@twinsun.com>
55085 * modules/group-member: Depend on stdbool.
55087 2003-10-29 Paul Eggert <eggert@twinsun.com>
55089 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
55091 2003-10-29 Paul Eggert <eggert@twinsun.com>
55093 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
55094 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
55095 after the 'gnu' in these cases. This fixes some bugs in the
55096 previous change, and is based on suggestions by Robert Millan.
55098 2003-10-29 Paul Eggert <eggert@twinsun.com>
55100 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
55101 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
55103 * lib/quotearg.c (quotearg_n_options): Use it.
55104 * lib/group-member.c: Include <stdbool.h>.
55105 (free_group_info): Arg is now const *; don't free arg.
55106 (get_group_info): Now returns bool and accepts struct group_info *,
55107 rather than returning a malloc'ed struct group_info *.
55108 All uses changed. Check for overflow in internal size calculation.
55110 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
55111 rather than xmalloc/xrealloc.
55112 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
55113 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
55114 conformance bug: the old code used a pointer after freeing the
55115 storage that it addressed.
55116 * lib/hash.c (hash_initialize): Simplify the code by using
55117 xalloc_oversized rather than doing it by hand.
55118 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
55119 the buffer preserved. Use free and xmalloc instead.
55120 * lib/quotearg.c (quotearg_n_options): Likewise.
55121 Use a simpler test for size overflow. Don't use xalloc_oversized
55122 because unsigned int might be wider than size_t (!); this suggests
55123 that we should switch from unsigned int to size_t for slot numbers.
55125 2003-10-28 Paul Eggert <eggert@twinsun.com>
55127 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
55128 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
55129 NetBSD kernels. Requested by Richard Stallman.
55131 2003-10-27 Paul Eggert <eggert@twinsun.com>
55133 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
55134 to allocate the returned structure. Do not allocate a subarray,
55135 as x2nrealloc will do that.
55136 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
55137 instead of xnrealloc.
55138 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
55140 2003-10-27 Bruno Haible <bruno@clisp.org>
55142 * lib/stdbool_.h: Better support for BeOS.
55144 2003-10-26 Paul Eggert <eggert@twinsun.com>
55146 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
55149 2003-10-26 Paul Eggert <eggert@twinsun.com>
55151 * lib/xalloc.h (xalloc_oversized): New static inline function, for
55152 callers that want to do their own size-overflow checking. Include
55153 <stdbool.h>, since xalloc_oversized returns bool.
55154 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
55155 to use xalloc_oversized.
55157 Add two functions x2realloc, x2nrealloc, for programs that grow
55158 arrays dynamically by doubling their sizes.
55159 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
55160 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
55163 Port to C99 semantics for 'inline' of external functions.
55164 Bug reported by Bruno Haible.
55165 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
55166 with the old contents of xnmalloc.
55167 (xnmalloc, xmalloc): Use it.
55168 (xnrealloc_inline): New static inline function,
55169 with the old contents of xnrealloc.
55170 (xnrealloc, xrealloc): Use it.
55172 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
55175 2003-10-26 Karl Berry <karl@gnu.org>
55177 * config/srclist.txt (COPYING.DOC): no longer available from
55178 /gd/gnuorg; don't know where the ultimate source is.
55180 2003-10-25 Paul Eggert <eggert@twinsun.com>
55182 Fix several address-calculation bugs in the hash modules,
55183 plus some minor code cleanup.
55185 * lib/hash.h: Include <stdbool.h>, for bool.
55186 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
55187 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
55188 hash_get_n_entries, hash_get_max_bucket_length,
55189 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
55190 hash_rehash): Use size_t rather than unsigned.
55191 * lib/hash.c (struct hash_table, hash_get_n_buckets,
55192 hash_get_n_buckets_used, hash_get_n_entries,
55193 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
55194 hash_get_entries, hash_do_for_each, hash_string, is_prime,
55195 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
55197 (SIZE_MAX): Define if not defined.
55198 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
55199 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
55201 Use const * when possible.
55202 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
55203 (check_tuning): Fix bug: if tuning parameters were very close to
55204 0 or 1, rounding errors could have caused subscript violations.
55205 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
55206 (hash_initialize): Add 'fail:' label
55207 to free table and return NULL, and use it to simplify code.
55208 Use calloc rather than clearing the storage ourself.
55209 (hash_initialize, hash_rehash): Check for arithmetic overflow in
55210 buffer size calculations.
55211 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
55212 Include <stddef.h>, for size_t.
55213 * lib/hash-pjw.c (hash_pjw): Likewise.
55214 Switch to method described by Bruno Haible.
55215 Include <limits.h>, for CHAR_BIT.
55216 (SIZE_BITS): New macro.
55218 2003-10-23 Paul Eggert <eggert@twinsun.com>
55220 * m4/getline.m4 (AM_FUNC_GETLINE):
55221 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
55222 hosts. Problem reported by Derek Robert Price in
55223 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
55224 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
55225 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
55227 2003-10-21 Paul Eggert <eggert@twinsun.com>
55229 * lib/getndelim2.c (getndelim2): When size calculation overflows,
55230 ceiling the allocation at NMAX bytes rather than silently
55231 discarding input bytes before NMAX is reached. This makes
55232 a difference only if NMAX exceeds SIZE_MAX / 2.
55234 * lib/obstack.c: Merge from glibc.
55235 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
55236 Add libc_hidden_def (_obstack_newchunk).
55237 (_obstack_free) [! defined _LIBC]: Remove.
55238 [defined _LIBC]: Make a strong alias from obstack_free, rather than
55239 a clone of the function body.
55240 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
55241 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
55243 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
55245 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
55248 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
55249 (obstack_ptr_grow_fast, obstack_int_grow_fast):
55250 Don't use lvalue casts, as GCC plans to remove support for them
55251 in GCC 3.5. Reported by Joseph S. Myers. This bug
55252 was also present in the non-GCC version, indicating that this
55253 code had always been buggy and had never been widely used.
55254 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
55255 Use the fast variant of each macro, rather than copying the
55256 definiens of the fast variant; that way, we'll be more likely to
55257 catch future bugs in the fast variants.
55259 2003-10-20 Bruno Haible <bruno@clisp.org>
55261 * modules/wait-process: New file.
55262 * MODULES.html.sh (func_all_modules): Add wait-process.
55264 2003-10-20 Bruno Haible <bruno@clisp.org>
55266 * m4/wait-process.m4: New file.
55268 2003-10-20 Bruno Haible <bruno@clisp.org>
55270 * lib/wait-process.h: New file, from GNU gettext.
55271 * lib/wait-process.c: New file, from GNU gettext.
55273 2003-10-19 Jim Meyering <jim@meyering.net>
55275 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
55278 2003-10-18 Karl Berry <karl@gnu.org>
55280 * config/config.guess: update from config.
55282 2003-10-16 Paul Eggert <eggert@twinsun.com>
55284 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
55285 (getgroups): First arg is int, not size_t.
55286 Don't let 'free' mangle errno.
55288 2003-10-16 Paul Eggert <eggert@twinsun.com>
55290 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
55292 2003-10-16 Karl Berry <karl@gnu.org>
55294 * config/config.{guess,sub}: update from config.
55296 2003-10-16 Jim Meyering <jim@meyering.net>
55298 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
55301 2003-10-15 Paul Eggert <eggert@twinsun.com>
55303 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
55304 (SIZE_MAX): Remove.
55305 (new_exclude, add_exclude_file): Initial size no longer needs to
55307 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
55308 our own address arithmetic overflow checking.
55310 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
55311 (fnmatch): Do not alloca more than 2000 wide characters;
55312 instead, use malloc for large buffers.
55313 Check for address arithmetic overflow, and return -1
55314 with errno set to ENOMEM in that case.
55315 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
55316 (NEW_PATTERN): Do not alloca more than 8000 bytes;
55317 instead, return -1. Check for address arithmetic overflow.
55319 2003-10-14 Paul Eggert <eggert@twinsun.com>
55321 Handle invalid suffixes and overflow independently, so that
55322 callers can treat them independently as needed. Fix some bugs in
55323 suffix handling, e.g., "100k@" was not diagnosed as an invalid
55324 suffix for a human-readable blocksize. The major caller-visible
55325 change is the addition of a new
55326 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
55327 that both overflow and suffix chars were found.
55329 * lib/human.c (humblock): Don't check separately for invalid suffix
55330 char; that is xstrtoumax's job (now that its bug is fixed).
55331 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
55332 INTMAX_MAX]: New macros.
55333 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
55334 TYPE_MAXIMUM): New macros.
55335 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
55336 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
55337 if overflow occurs, as it's what __strtol does and it's more useful
55339 (__xstrtol): If __strtol reports some error other than ERANGE,
55340 reflect it to the caller as LONGINT_INVALID. If it reports
55341 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
55342 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
55343 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
55345 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
55346 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
55347 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
55348 [defined UINTMAX_MAX]: New macros.
55350 2003-10-14 Bruno Haible <bruno@clisp.org>
55352 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
55354 2003-10-14 Bruno Haible <bruno@clisp.org>
55356 * m4/sig_atomic_t: New file, from GNU gettext.
55357 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
55359 2003-10-14 Bruno Haible <bruno@clisp.org>
55361 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
55362 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
55363 Also use volatile where needed.
55365 2003-10-12 Paul Eggert <eggert@twinsun.com>
55367 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
55368 Change maintainer from Bruno Haible to 'all'.
55370 2003-10-12 Paul Eggert <eggert@twinsun.com>
55372 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
55374 2003-10-12 Paul Eggert <eggert@twinsun.com>
55376 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
55377 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
55378 and define in terms of the other primitives.
55379 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
55380 (SIZE_MAX): Define if not already defined.
55381 (array_size_overflow): New function.
55382 (xalloc_die): Abort instead of exiting if 'error' returns.
55383 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
55384 (xmalloc, xrealloc): Use them.
55385 (xcalloc): Check for address arithmetic overflow.
55386 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
55387 a bit faster than strcpy.
55389 2003-10-10 Simon Josefsson <jas@extundo.com>
55391 * modules/argp (Depends-on): Add restrict and strcase.
55393 2003-10-10 Simon Josefsson <jas@extundo.com>
55395 * m4/argp.m4: Add AC_C_INLINE.
55397 2003-10-08 Paul Eggert <eggert@twinsun.com>
55399 Merge getpass from libc, plus a few fixes.
55401 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
55402 Include <stdbool.h>.
55403 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
55404 __fsetlocking to empty.
55405 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
55406 do include <bits/libc-lock.h>.
55407 Do not include <fcntl.h>; not needed.
55408 [_LIBC]: Include <wchar.h>.
55409 (NOTCANCEL_MODE): New macro.
55410 (flockfile, funlockfile) [_LIBC]: New macros.
55411 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
55412 [!_LIBC]: New macros.
55413 (call_fclose): New function.
55414 (getpass): Use it. Save tty stream separately; this simplifies the
55415 code and makes it more reliable if stdin happens to equal stdout.
55416 Invoke __fsetlocking on tty.
55417 Handle thread cancellation if needed.
55418 Namespace cleanup (use __tcgetattr, __getline).
55419 Use bool for Booleans.
55420 [USE_IN_LIBIO]: Handle wide streams.
55421 [!_LIBC]: Unconditionally do the fseek, since we don't know what
55422 stream might go where.
55424 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
55425 doesn't have to include <stdio.h> before us.
55426 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
55427 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
55428 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
55429 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
55430 if not declared, so that we can use getpass.c code from libc without
55432 (flockfile, ftrylockfile, funlockfile): New macros.
55434 2003-10-08 Paul Eggert <eggert@twinsun.com>
55436 * modules/getpass: Depend on stdbool.
55438 2003-10-08 Paul Eggert <eggert@twinsun.com>
55440 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
55442 2003-10-07 Karl Berry <karl@gnu.org>
55444 * config/config.{guess,sub}: update from config.
55446 2003-10-06 Jim Meyering <jim@meyering.net>
55447 Bruno Haible <bruno@clisp.org>
55449 This lets translators provide better translations for the
55450 "Written by ..." part of --version output.
55451 * lib/version-etc.h: Include stdarg.h.
55452 (version_etc_copyright): Declare as readonly.
55453 (version_etc): Make this function variadic with a NULL-terminated list
55454 of author name strings.
55455 (version_etc_va): New declaration.
55456 * lib/version-etc.c: Include stdarg.h, stdlib.h.
55457 (version_etc_copyright): Declare as readonly.
55458 (version_etc_va): New function. Provide a different translatable string
55459 for each possible number of authors < 10. Abbreviate when there are 10
55461 (version_etc): Make this function variadic. Call version_etc_va.
55462 Suggestion from Gary V. Vaughan.
55464 * lib/long-options.h (parse_long_options): Change prototype: the
55465 authors string is moved to the end and becomes variadic.
55466 * lib/long-options.c: Include stdarg.h.
55467 (parse_long_options): Make this function variadic, too.
55468 Call version_etc_va, not version_etc.
55470 2003-10-06 Bruno Haible <bruno@clisp.org>
55472 * modules/version-etc-2: Remove file.
55473 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
55475 2003-10-06 Bruno Haible <bruno@clisp.org>
55477 * modules/fatal-signal: New file.
55478 * MODULES.html.sh (func_all_modules): Add fatal-signal.
55480 2003-10-06 Bruno Haible <bruno@clisp.org>
55482 * m4/fatal-signal.m4: New file.
55483 * m4/signalblocking.m4: New file, from GNU gettext.
55485 2003-10-06 Bruno Haible <bruno@clisp.org>
55487 * lib/version-etc-2.h: Remove file.
55488 * lib/version-etc-2.c: Remove file.
55490 2003-10-06 Bruno Haible <bruno@clisp.org>
55492 * lib/fatal-signal.h: New file, from GNU gettext.
55493 * lib/fatal-signal.c: New file, from GNU gettext.
55495 2003-10-05 Paul Eggert <eggert@twinsun.com>
55497 * README: Rework advice for preventing empty .o files.
55498 Don't recommend ELIDE constructs. Recommend <stddef.h>,
55501 2003-10-04 Karl Berry <karl@gnu.org>
55503 * lib/argp*: update from libc.
55505 2003-10-04 Karl Berry <karl@gnu.org>
55507 * config/config.{guess,sub}: update from config.
55509 2003-10-02 Bruno Haible <bruno@clisp.org>
55511 * modules/lchown (Include): Add lchown.h.
55512 * modules/time_r (Include): Use "..." syntax.
55513 * modules/xgetdomainname (Include): Add xgetdomainname.h.
55515 2003-10-01 Simon Josefsson <jas@extundo.com>
55517 * MODULES.html.sh (func_all_modules): Move gethostname from section
55518 'based on' to section 'lacking' POSIX:2001.
55520 2003-10-01 Larry Jones <lawrence.jones@eds.com>
55522 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
55523 to output mode on the same stream.
55525 2003-09-29 Paul Eggert <eggert@twinsun.com>
55527 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
55528 Fix arg typo in previous patch.
55530 2003-09-28 Jim Meyering <jim@meyering.net>
55532 * lib/error.c: Correct cpp indentation.
55534 2003-09-27 Paul Eggert <eggert@twinsun.com>
55536 * modules/free: New file.
55538 2003-09-27 Paul Eggert <eggert@twinsun.com>
55540 * m4/free.m4: New file.
55542 2003-09-27 Paul Eggert <eggert@twinsun.com>
55544 * lib/minmax.h (MIN, MAX)
55545 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
55546 Omit the special code that used __typeof__, since we worry that
55547 it could be more trouble than it's worth. See:
55548 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
55549 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
55551 * lib/free.c: New file.
55553 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
55555 Trivial fixes to Makefile.am parts of module listings.
55556 * modules/strstr: Append strstr.h to lib_SOURCES.
55557 * modules/strcase: Likewise, for strcase.h.
55559 2003-09-27 Karl Berry <karl@gnu.org>
55561 * config/mkinstalldirs: update from automake.
55563 2003-09-26 Paul Eggert <eggert@twinsun.com>
55565 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
55566 (error_tail): Do not loop, reallocating temporary buffer, since
55567 the output cannot contain more wide characters than the input
55568 contains bytes, the size must be big enough already. This avoids
55569 one potential size overflow calculation. Check for size overflow
55570 when calculating temporary buffer size. Free temporary buffer
55571 when done, if it was allocated with malloc; this plugs a memory
55572 leak. Remove casts from void * to pointers, that are no longer
55573 needed now that we're assuming C89 or better.
55575 Merge error changes from glibc.
55577 * lib/error.c, error.h: Update copyright notice header to match glibc.
55578 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
55579 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
55580 Disable cancellation while printing error.
55581 * lib/error.h: Prepend __ to parameter names.
55583 2003-09-26 Jim Meyering <jim@meyering.net>
55585 * lib/error.c (error_tail): Move some declarations
55586 into inner scope where the local variables are used.
55588 2003-09-26 Bruno Haible <bruno@clisp.org>
55590 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
55592 Don't define stpncpy through config.h; it's now done through stpncpy.h.
55594 2003-09-26 Bruno Haible <bruno@clisp.org>
55596 * lib/stpncpy.h (gnu_stpncpy): New declaration.
55597 (stpncpy): Define as alias for gnu_stpncpy.
55598 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
55600 2003-09-25 Simon Josefsson <jas@extundo.com>
55602 * lib/xgetdomainname.h: New file.
55603 * lib/xgetdomainname.c: New file.
55605 2003-09-25 Simon Josefsson <jas@extundo.com>
55606 Bruno Haible <bruno@clisp.org>
55608 * modules/getdomainname: New file.
55609 * modules/xgetdomainname: New file.
55610 * MODULES.html.sh (func_all_modules): Add getdomainname,
55613 2003-09-25 Simon Josefsson <jas@extundo.com>
55614 Bruno Haible <bruno@clisp.org>
55616 * m4/getdomainname.m4: New file.
55618 2003-09-25 Simon Josefsson <jas@extundo.com>
55619 Bruno Haible <bruno@clisp.org>
55621 * lib/getdomainname.h: New file.
55622 * lib/getdomainname.c: New file.
55624 2003-09-25 Karl Berry <karl@gnu.org>
55626 * lib/argp-fmtstream.c, argp-help.c: update from libc.
55628 2003-09-25 Karl Berry <karl@gnu.org>
55630 * config/install-sh: update from automake.
55632 2003-09-25 Bruno Haible <bruno@clisp.org>
55634 * modules/version-etc-2: New file, from modules/version-etc with
55636 * MODULES.html.sh (func_all_modules): Add version-etc-2.
55638 2003-09-25 Bruno Haible <bruno@clisp.org>
55640 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
55641 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
55643 2003-09-24 Simon Josefsson <jas@extundo.com>
55645 * modules/xgethostname: Add xgethostname.h.
55647 2003-09-24 Paul Eggert <eggert@twinsun.com>
55649 * lib/linebuffer.c (freebuffer): Don't free the argument, just
55650 the buffer associated with the argument. Bug reported by
55653 2003-09-24 Paul Eggert <eggert@twinsun.com>
55655 * README: Document assumptions that 'int' is at least 32 bits
55656 wide, that integer arithmetic is 2's complement without overflow,
55657 that there are no holes in integer values, that adding sizes of
55658 two nonoverlapping objects can't overflow, and that all-bits-zero
55659 yields scalar zero. Fix spelling and capitalization typos.
55661 2003-09-19 Karl Berry <karl@gnu.org>
55663 * lib/argp.h: update from libc.
55665 2003-09-17 Paul Eggert <eggert@twinsun.com>
55667 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
55668 to avoid spurious warnings like "AC_RUN_IFELSE was called before
55669 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
55671 2003-09-17 Paul Eggert <eggert@twinsun.com>
55673 * gnulib-tool: Use "test -h", not "test -L", for portability
55674 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
55675 (tags_regexp): Remove, since \| doesn't conform to POSIX.
55676 (sed_extract_prog): Issue s commands one-by-one, rather than
55677 using \| in one s command.
55679 2003-09-16 Paul Eggert <eggert@twinsun.com>
55681 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
55682 input error, instead of returning NULL the next time we are called
55683 (and therefore losing track of errno).
55685 2003-09-16 Bruno Haible <bruno@clisp.org>
55687 * gnulib-tool (func_create_testdir): Warn about duplicated
55690 2003-09-15 Paul Eggert <eggert@twinsun.com>
55692 * modules/argmatch, modules/fatal, modules/obstack,
55693 modules/xalloc, modules/xgethostname: Sort dependencies by
55694 importance, not alphabetically.
55696 2003-09-15 Paul Eggert <eggert@twinsun.com>
55698 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
55699 fails, so that the caller gets the proper errno.
55701 * lib/readutmp.c (read_utmp): Likewise.
55702 Check for fstat error. Close stream and free storage
55705 2003-09-14 Karl Berry <karl@gnu.org>
55707 * config/srclist.txt (strdup.c): disable for c89 changes.
55709 2003-09-14 Jim Meyering <jim@meyering.net>
55711 * lib/getloadavg.c: Correct cpp indentation.
55712 * lib/strdup.c: Likewise.
55713 * lib/vasnprintf.c: Likewise.
55715 2003-09-14 Bruno Haible <bruno@clisp.org>
55717 * modules/fwriteerror: New file.
55718 * MODULES.html.sh (func_all_modules): Add fwriteerror.
55720 2003-09-14 Bruno Haible <bruno@clisp.org>
55722 * lib/fwriteerror.h: New file.
55723 * lib/fwriteerror.c: New file.
55725 2003-09-12 Paul Eggert <eggert@twinsun.com>
55727 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
55728 modules/xgethostname, modules/xalloc: Depend on exit.
55730 2003-09-12 Paul Eggert <eggert@twinsun.com>
55732 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
55734 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
55735 and AC_MINIX, too, so that their extensions are available.
55737 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
55738 This macro has been superseded by gl_BACKUPFILE.
55740 More patches to assume C89 or better.
55742 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
55744 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
55746 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
55747 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
55748 Include <string.h>, <stdlib.h> unconditionally.
55749 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
55750 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
55751 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
55752 headers or for string.h.
55753 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
55756 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
55758 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
55759 * m4/userspec.m4 (gl_USERSPEC): Likewise.
55760 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
55761 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
55762 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55763 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
55765 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
55766 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
55767 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
55769 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
55770 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
55771 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
55774 2003-09-12 Paul Eggert <eggert@twinsun.com>
55776 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
55777 * lib/obstack.c [!defined _LIBC]: Likewise.
55778 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
55779 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
55780 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
55782 More changes to assume C89 or better.
55784 * lib/error.c (error_tail): Assume vprintf.
55786 * lib/argmatch.c (getenv): Remove decl.
55787 * lib/progreloc.c (get_full_program_name): Define via prototype.
55788 * lib/setenv.c (clearenv): Likewise.
55789 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
55791 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
55792 (malloc, memcpy): Remove decls.
55793 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
55794 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
55795 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
55796 (memcpy): Remove macro.
55797 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
55798 (__P): Remove. All uses removed.
55799 (PTR): Remove. All uses changed to void *.
55800 (CHAR_BIT, NULL): Remove.
55801 (spaces, zeros, memset_space, memset_zero)
55802 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
55804 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
55805 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
55806 Define with prototype.
55807 Remove now-unnecessary prototype decl.
55808 (extra_args_spec): Assume ANSI C. All uses changed.
55809 (extra_args_spec_iso): Remove.
55810 (my_strftime, emacs_strftimeu): Define via prototype.
55811 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
55813 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
55814 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
55815 (strtoul, strtol): Remove decls.
55816 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
55818 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
55819 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
55820 (LOCALE_PARAM_PROTO): New macro.
55821 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
55822 (INTERNAL (strtol), strtol): Define with a prototype.
55823 (PARAMS): Remove. All uses removed.
55824 * lib/tempname.c: Include <string.h> unconditionally.
55825 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
55826 * lib/xgethostname.c (main): Define with a prototype.
55827 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
55828 Include <stdlib.h> unconditionally.
55829 (calloc, malloc, realloc, free): Remove decls.
55830 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
55831 Include <stdlib.h> unconditionally. Sort include file names.
55833 (xstrtod): Define with a prototype.
55834 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
55835 (strtol, strtoul): Remove decls.
55837 2003-09-11 Paul Eggert <eggert@twinsun.com>
55839 More patches to assume C89 or better.
55840 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
55841 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
55842 string.h, memchr, STDC_HEADERS.
55844 2003-09-11 Paul Eggert <eggert@twinsun.com>
55846 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
55847 Include <stdlib.h>, <string.h> unconditionally.
55848 Remove now-unnecessary cast to char *.
55849 * lib/strnlen.c: Include <string.h> unconditionally.
55850 * lib/yesno.c (yesno): Define with a prototype.
55852 2003-09-11 Bruno Haible <bruno@clisp.org>
55854 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
55856 2003-09-10 Jim Meyering <jim@meyering.net>
55858 * lib/error.c: Correct indentation of cpp directives.
55860 2003-09-10 Bruno Haible <bruno@clisp.org>
55862 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
55863 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
55864 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
55865 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
55866 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
55867 <stdlib.h> and <string.h> checks.
55868 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
55869 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
55871 2003-09-10 Bruno Haible <bruno@clisp.org>
55873 * lib/strcspn.c: Include <string.h> unconditionally.
55874 * lib/strpbrk.c: Include <string.h> unconditionally.
55875 * lib/strstr.c: Include <string.h> unconditionally.
55876 * lib/unicodeio.c: Include <string.h> unconditionally.
55877 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
55878 * lib/unsetenv.c: Likewise.
55879 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
55880 * lib/yesno.c: Include <stdlib.h> unconditionally.
55881 (rpmatch): Add prototype.
55883 2003-09-09 Paul Eggert <eggert@twinsun.com>
55885 More patches to assume C89 or better.
55886 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
55887 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
55888 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
55890 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
55892 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
55894 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
55896 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
55897 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
55898 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
55900 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
55901 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
55903 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
55905 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
55906 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
55907 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
55908 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
55909 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
55910 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
55912 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
55913 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
55914 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
55915 C headers, or for string.h.
55916 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
55917 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
55918 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
55919 headers, memory.h, stdlib.h, string.h, strings.h.
55920 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
55921 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
55922 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
55924 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
55925 headers, memory.h, string.h.
55926 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
55927 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
55929 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
55931 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
55932 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
55933 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
55934 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
55935 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
55937 2003-09-09 Paul Eggert <eggert@twinsun.com>
55941 * lib/acosl.c (main): Use a prototype.
55942 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
55945 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
55947 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
55948 (getopt, etopt_long, getopt_long_only, _getopt_internal)
55949 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
55951 * lib/getopt.c (const): Remove macro.
55952 Include <string.h> unconditionally.
55953 (my_index): Remove; all uses changed to strchr.
55954 (strlen): Remove decl.
55955 (exchange): Remove forward decl; no longer needed.
55956 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
55957 Define with prototype.
55958 * lib/getopt1.c (const): Remove macro.
55959 (getopt_long, getopt_long_only, main): Define with prototype.
55961 * lib/getugroups.c: Include <string.h> unconditionally.
55963 * lib/getusershell.c: Include <stdlib.h> unconditionally.
55964 (getusershell, setusershell, endusershell, readname, main):
55965 Define with prototypes.
55967 * lib/group-member.c: Include group-member.h first.
55968 Include <stdlib.h> unconditionally.
55970 * lib/hard-locale.c: Include hard-locale.h first.
55971 Include <stdlib.h>, <string.h> unconditionally.
55973 * lib/hash.c (free, malloc): Remove decls.
55974 Include <stdlib.h> unconditionally.
55976 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
55977 (getenv): Do not declare.
55979 * lib/idcache.c: Include <string.h> unconditionally.
55981 * lib/long-options.c: Include long-options.h first, to test interface.
55982 Include <stdlib.h> unconditionally.
55984 * lib/makepath.c: Include makepath.h first, to test interface.
55985 Include <stdlib.h> and <string.h> unconditionally.
55987 * lib/linebuffer.c: Include <stdlib.h>.
55988 (free): Remove decl.
55990 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
55991 stddef.h. rpl_malloc returns void *, not char *.
55992 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
55995 * lib/md5.h: Include <limits.h> unconditionally.
55996 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
55997 (__P): Remove; all uses removed.
55998 * lib/md5.c: Include "md5.h" first.
55999 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
56000 md5_buffer, md5_process_bytes, md5_process_block):
56001 Define with prototypes.
56002 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
56003 * lib/sha.c: Include "sha.h" first.
56004 Include <stdlib.h>, <string.h> unconditionally.
56006 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
56007 * lib/memcmp.c (__ptr_t): Likewise.
56008 * lib/memrchr.c (__ptr_t): Likewise.
56009 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
56010 Include <string.h> unconditionally.
56011 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
56012 * lib/memchr.c: Include <stdlib.h> unconditionally.
56013 * lib/memchr.c (LONG_MAX): Remove.
56014 * lib/memrchr.c (LONG_MAX): Likewise.
56015 * lib/memchr.c (__memchr): Define via a prototype.
56016 * lib/memrchr.c (__memrchr): Likewise.
56017 * lib/memcmp.c (__P): Remove, and remove all uses.
56018 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
56019 Remove forward decls; no longer needed.
56020 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
56021 Use types required by C89 in prototype.
56023 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
56024 * lib/savedir.c: Likewise.
56025 * lib/mkdir.c (free): Remove decl.
56026 * lib/rmdir.c (rmdir): Define with a prototype.
56027 * lib/savedir.c: Include savedir.h first, to test interface.
56029 * lib/mktime.c (STDC_HEADERS): Remove.
56030 Include <stdlib.h>, <string.h> unconditionally.
56032 * lib/modechange.c: Include <stdlib.h> unconditionally.
56033 (malloc): Remove decl.
56035 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
56036 (free): Remove decl.
56038 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
56039 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
56040 (This type really should be intptr_t, but that's a C99ism.)
56041 (_obstack_memcpy): Remove: all uses changed to memcpy.
56042 Include <string.h> unconditionally.
56043 (struct obstack): Assume __STDC__ for types of members
56044 chunkfun, freefun, extra_arg.
56045 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
56046 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
56047 obstack_begin, obstack_specify_allocation,
56048 obstack_specify_allocation_with_arg, obstack_chunkfun,
56049 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
56050 Remove unprototyped decls and the macros that use them.
56051 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
56052 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
56053 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
56054 (defined __STDC__ && __STDC__)]:
56055 Remove nonprototyped code.
56056 Include <stdlib.h> unconditionally.
56057 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
56058 _obstack_allocated_p, _obstack_free, obstack_free,
56059 _obstack_memory_used, print_and_abort):
56060 Define using prototypes.
56061 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
56062 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
56063 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
56064 obstack_next_free, obstack_object_size, obstack_room) [0]:
56065 Remove unused, unprototyped code.
56067 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
56069 * lib/physmem.c (physmem_total, physmem_available, main): Define
56072 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
56073 (main): Define with a prototype.
56075 * lib/posixver.c (getenv): Remove decl.
56077 * lib/putenv.c (malloc): Returns void *, not char *.
56078 Include <string.h> unconditionally.
56079 (strchr, memcpy, NULL): Do not define.
56081 * lib/readtokens.c: Include readtokens.h first, to test interface.
56082 Include <stdlib.h>, <string.h> unconditionally.
56083 (init_tokenbuffer): Define with a prototype.
56085 * lib/regex.c (PARAMS): Remove. All uses removed.
56086 All uses of _RE_ARGS removed, too.
56087 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
56089 (bzero): Assume memset exists.
56090 (memcmp, memcpy, NULL): Remove.
56091 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
56092 char, or assignments to local vars of type signed char.
56093 (init_syntax_once, PREFIX(extract_number_and_incr),
56094 PREFIX(print_partial_compiled_pattern),
56095 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
56096 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
56097 PREFIX(regex_grow_registers), PREFIX(regex_compile),
56098 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
56099 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
56100 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
56101 wcs_compile_range, byte_compile_range, truncate_wchar,
56102 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
56103 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
56104 count_mbs_length, wcs_re_match_2_internal,
56105 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
56106 PREFIX(alt_match_null_string_p),
56107 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
56108 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
56109 regfree, PREFIX(extract_number)): Define with prototype. Remove
56110 now-unnecessary declaration, if any.
56111 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
56113 Remove now-unnecessary casts among pointer types.
56114 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
56116 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
56117 (free): Remove decl.
56119 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
56121 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
56122 (free): Remove decl.
56124 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
56125 * lib/xgetcwd.c: Likewise.
56127 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
56128 (free): Remove decl.
56130 * lib/strchrnul.c (strchrnul): Define with a prototype.
56131 Fix bug: c_in was not converted to char before searching.
56133 The following changes are not K&R related:
56135 * lib/group-member.h: Include <sys/types.h>, so that this file is
56137 * lib/makepath.h: Likewise.
56139 * lib/getusershell.c (readname, default_index, line_size, readname):
56140 Use size_t, not int, for sizes.
56141 (readname): If the size overflows, report an error instead of
56144 2003-09-09 Paul Eggert <eggert@twinsun.com>
56146 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
56149 2003-09-09 Paul Eggert <eggert@twinsun.com>
56151 * README: New section: portability guidelines.
56153 2003-09-09 Derek Robert Price <derek@ximbiot.com>
56155 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
56158 2003-09-09 Derek Robert Price <derek@ximbiot.com>
56160 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
56162 2003-09-08 Paul Eggert <eggert@twinsun.com>
56164 Assume C89 or better; remove K&R cruft.
56165 A few of these changes were first proposed by Derek Robert Price
56166 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
56168 * lib/addext.c: Include <string.h> unconditionally.
56169 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
56170 Don't declare getenv or malloc.
56172 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
56173 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
56175 (find_stack_direction, alloca): Use prototypes.
56177 * lib/atexit.c (atexit): Define using a prototype.
56179 * lib/basename.c, dirname.c, stripslash.c:
56180 Include <string.h> unconditionally.
56182 * lib/bcopy.c: Include <stddef.h>.
56183 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
56185 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
56187 * lib/error.h (error, error_at_line, error_print_progname)
56188 [! (defined (__STDC__) && __STDC__)]: Remove decls.
56189 * lib/error.c: Include error.h first, to check interface.
56190 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56191 (VA_START): Remove; all uses changeed to va_start.
56192 (exit, strerror): Remove decls.
56193 (error_print_progname): Prototype uncondionally.
56194 Don't include <errno.h>; no longer needed.
56195 (private_strerror): Remove.
56196 (error_tail): Always define.
56197 (error, error_at_line): Assume C89 or better; always use prototypes.
56198 * lib/fatal.c: Include "fatal.h" first, to test interface.
56199 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56200 (VA_START): Remove; all uses changed to va_start.
56201 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
56203 (exit): Remove decl.
56204 (fatal): Prototype unconditionally. Assume va_start works.
56205 Abort at end, to pacify gcc.
56207 * lib/euidaccess.c (main): Define with a prototype.
56209 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
56211 * lib/exitfail.c: Include <stdlib.h> unconditionally.
56213 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
56215 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
56216 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
56217 (getenv): Remove decl.
56218 (fnmatch): Define using a prototype.
56219 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
56220 (FCT): Define using a prototype.
56222 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
56224 * lib/gethostname.c: Include <stddef.h>.
56225 (gethostname): Define with prototype. Length is size_t, not int.
56227 2003-09-08 Paul Eggert <eggert@twinsun.com>
56229 Assume C89 or better; remove K&R cruft.
56230 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
56231 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
56232 string.h, getenv, malloc.
56233 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
56235 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
56236 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
56237 do not check for strerror.
56238 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
56239 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
56240 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
56241 do not check for doprnt or vprintf.
56242 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
56243 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
56245 2003-09-08 Paul Eggert <eggert@twinsun.com>
56247 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
56248 getversion.c should have been removed then, but was accidentally
56251 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
56252 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
56254 2003-09-08 Karl Berry <karl@gnu.org>
56256 * config/config.sub, config.guess, srclistvars.sh: update from savannah
56257 config, forget about prep.
56259 * config/depcomp, missing: update from automake.
56261 2003-09-07 Paul Eggert <eggert@twinsun.com>
56263 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
56264 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
56266 2003-09-07 Paul Eggert <eggert@twinsun.com>
56268 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
56269 copy_tm_result. Bug reported by Simon Josefsson in
56270 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
56272 2003-09-06 Paul Eggert <eggert@twinsun.com>
56274 * m4/time_r.m4: New file.
56275 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
56276 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
56277 is. Check for timegm declaration.
56278 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
56279 Do not check for gmtime_r.
56280 Replace mktime if __mktime_internal does not exist and if mktime
56281 hasn't been replaced already.
56283 2003-09-06 Paul Eggert <eggert@twinsun.com>
56285 * lib/time_r.c, lib/time_r.h: New files.
56287 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
56289 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
56290 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
56292 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
56294 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
56295 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
56296 Include <time_r.h>.
56298 * lib/timegm.c: Switch to glibc implementation, with the following
56300 [defined HAVE_CONFIG_H]: Include <config.h>.
56301 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
56302 (__mktime_internal) [!defined _LIBC]: New decl.
56303 (__gmtime_r) [!defined _LIBC]: New macro and function.
56304 (timegm): Use a prototype, since gnulib assumes C89.
56305 Do not bother declaring tmp to be const, as it's not really usefu.
56306 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
56307 (timegm): Declare only if HAVE_DECL_TIMEGM.
56309 2003-09-06 Paul Eggert <eggert@twinsun.com>
56311 * MODULES.html.sh (func_all_modules): Add time_r.
56312 * modules/time_r: New file.
56313 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
56314 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
56316 2003-09-03 Paul Eggert <eggert@twinsun.com>
56318 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
56319 Bug reported by Lute Kamstra in
56320 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
56322 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
56323 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
56324 course with correspondingly smaller numbers for tomorrow and
56325 yesterday. From Tadayoshi Funaba. Originally installed into
56326 sh-utils on 1999-08-07, but the patch got lost (I guess during the
56329 2003-08-31 Simon Josefsson <jas@extundo.com>
56331 * modules/timegm: New file.
56332 * MODULES.html.sh (func_all_modules): Add timegm.
56334 2003-08-31 Simon Josefsson <jas@extundo.com>
56336 * m4/timegm.m4: New file.
56338 2003-08-31 Simon Josefsson <jas@extundo.com>
56340 * lib/timegm.h: New file.
56341 * lib/timegm.c: New file. Based on
56342 wget-1.8.2/src/http.c:mktime_from_utc.
56344 2003-08-31 Karl Berry <karl@gnu.org>
56346 * lib/argp.h: update from libc.
56348 2003-08-28 Bruno Haible <bruno@clisp.org>
56350 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
56351 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
56352 followed by '#define fnmatch fnmatch_posix' gives an error.
56354 2003-08-28 Bruno Haible <bruno@clisp.org>
56356 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
56357 warning on QNX, which defines O_BINARY to 000000.
56359 2003-08-27 Jim Meyering <jim@meyering.net>
56361 * m4/mkstemp.m4: Require that the system mkstemp be able to create
56362 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
56363 would fail after 32. Reported by Danny Levinson. Details here:
56364 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
56366 2003-08-24 Bruno Haible <bruno@clisp.org>
56368 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
56369 MSVC7 <stdio.h> is included later.
56371 2003-08-22 Simon Josefsson <jas@extundo.com>
56373 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
56375 2003-08-20 Karl Berry <karl@gnu.org>
56377 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
56379 2003-08-20 Bruno Haible <bruno@clisp.org>
56381 * modules/progname: New file.
56382 * MODULES.html.sh (func_all_modules): Add progname.
56384 2003-08-20 Bruno Haible <bruno@clisp.org>
56386 * lib/progname.h: New file, from GNU gettext.
56387 * lib/progname.c: New file, from GNU gettext.
56388 * lib/progreloc.c: New file, from GNU gettext.
56390 2003-08-19 Jim Meyering <jim@meyering.net>
56392 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
56393 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
56395 2003-08-19 Bruno Haible <bruno@clisp.org>
56397 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
56400 2003-08-19 Bruno Haible <bruno@clisp.org>
56402 * lib/xstrdup.c: Assume <string.h> exists.
56404 2003-08-18 Paul Eggert <eggert@twinsun.com>
56406 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
56409 2003-08-18 Jim Meyering <jim@meyering.net>
56411 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
56412 * m4/lib-ld.m4: Likewise.
56414 2003-08-18 Jim Meyering <jim@meyering.net>
56416 * lib/setenv.h: Indent nested cpp directive.
56417 * lib/vasnprintf.c: Remove trailing blanks.
56419 2003-08-17 Simon Josefsson <jas@extundo.com>
56421 * modules/xstrndup: New file.
56422 * MODULES.html.sh (func_all_modules): Add xstrndup.
56424 2003-08-17 Simon Josefsson <jas@extundo.com>
56426 * modules/argp: Fix autoconf macro name. Add more dependencies.
56428 2003-08-17 Simon Josefsson <jas@extundo.com>
56430 * m4/xstrndup.m4: New file.
56432 2003-08-17 Simon Josefsson <jas@extundo.com>
56434 * m4/argp.m4: New file.
56436 2003-08-17 Simon Josefsson <jas@extundo.com>
56437 Bruno Haible <bruno@clisp.org>
56439 * lib/xstrndup.h: New file.
56440 * lib/xstrndup.c: New file.
56442 2003-08-17 Bruno Haible <bruno@clisp.org>
56444 * modules/strndup (Files, Include): Add lib/strndup.h.
56446 2003-08-17 Bruno Haible <bruno@clisp.org>
56448 * modules/euidaccess (Files): Add lib/euidaccess.h.
56450 2003-08-17 Bruno Haible <bruno@clisp.org>
56452 * lib/strndup.h: New file.
56454 2003-08-17 Bruno Haible <bruno@clisp.org>
56456 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
56457 like AC_GNU_SOURCE.
56458 * modules/extensions (configure.ac): Comment out the invocation of
56459 gl_USE_SYSTEM_EXTENSIONS.
56461 2003-08-16 Paul Eggert <eggert@twinsun.com>
56463 Merges from coreutils, etc.
56464 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
56465 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
56466 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
56468 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
56469 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
56471 2003-08-16 Paul Eggert <eggert@twinsun.com>
56473 Document merge from coreutils.
56474 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
56475 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
56476 * modules/utime: Add m4/utimes-null.m4.
56478 2003-08-16 Paul Eggert <eggert@twinsun.com>
56480 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
56481 space, undoing this 2003-08-12 change:
56482 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
56484 2003-08-16 Paul Eggert <eggert@twinsun.com>
56486 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
56487 strtoul.c from libc, undoing this 2003-08-12 change:
56488 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
56490 2003-08-16 Jim Meyering <jim@meyering.net>
56492 Merges from coreutils.
56493 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
56494 prefix. Adjust cache variables similarly. Create 500 rather than
56495 just 300 files, to exercise bug on Darwin6.5, too.
56496 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
56498 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
56499 AM_SYS_POSIX_TERMIOS.
56500 Reported by mkc@mathdogs.com.
56501 Also change use of $am_cv_sys_posix_termios
56502 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
56503 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
56504 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
56505 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
56506 in /proc/mounts until it finds one with matching device number. This
56507 is unnecessary when the FILE argument *is* a mount point. No stat call
56508 is necessary in that case. So, disable the statvfs-testing code on
56509 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
56510 as RedHat bug# 84846.
56511 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
56512 to 1MB, so as not to render systems with no stack size limit (e.g.,
56513 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
56514 Include <unistd.h>. On some systems,
56515 it is required for the definition of _SC_PAGESIZE.
56517 2003-08-16 Jim Meyering <jim@meyering.net>
56519 Merge from coreutils.
56520 * lib/xstrtoimax.c: #else #if -> #elif.
56521 * lib/xstrtoumax.c: Likewise.
56523 2003-08-16 Jim Meyering <jim@meyering.net>
56525 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
56526 * m4/utimes.m4: Removed.
56527 * m4/utimes-null.m4: Renamed from utimes.m4.
56529 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
56530 to 1MB, so as not to render systems with no stack size limit (e.g.,
56531 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
56532 Include <unistd.h>. On some systems,
56533 it is required for the definition of _SC_PAGESIZE.
56535 2003-08-16 Jim Meyering <jim@meyering.net>
56536 and Paul Eggert <eggert@cs.ucla.edu>
56538 Merges from coreutils, etc.
56540 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
56541 using the latest version from cvs. This avoids problems with #line
56542 directives using a vendor (Sun) compiler.
56543 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
56544 Don't set GETGROUPS_LIB here; now it's
56545 done via getgroups.m4's wrapper function.
56546 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
56547 rather than just in sh-util/configure.in, so that the
56548 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
56550 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
56551 AC_FUNC_GETLOADAVG where to find getloadavg.c.
56552 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
56553 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
56554 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
56555 Remove code that is now done by the newly-required macros.
56556 Append $(EXEEXT) to DF_PROG.
56557 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
56558 Do not invoke or require the following here,
56559 since prereq.m4 or some gnulib .m4 now does this for us:
56560 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
56561 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
56562 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
56563 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
56564 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
56565 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
56566 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
56568 Do not replace the following functions, as this is now the job
56569 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
56570 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
56571 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
56572 atexit getpass, strdup, getpagesize.
56574 Do not check for the following functions, as this is now the job
56575 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
56576 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
56578 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
56579 Check for sys/sysctl.h.
56580 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
56581 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
56582 of checking for ssize_t ourselves.
56584 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
56585 Require every macro that gnulib/modules/* suggests for us.
56586 (jm_PREREQ_ADDEXT): New macro.
56587 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
56588 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
56590 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
56591 (gl_PHYSMEM): Use it.
56592 Also check for `table' function.
56593 Check for new headers and functions.
56594 Add check for sys/sysmp.h.
56595 With suggestions from Kaveh Ghazi.
56596 Ignore headers that are present but cannot be compiled. This
56597 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
56600 2003-08-15 Paul Eggert <eggert@twinsun.com>
56602 Document merge from coreutils.
56603 * modules/userspec: Depend on posixver.
56604 * modules/strftime: Depend on tzset.
56606 2003-08-15 Paul Eggert <eggert@twinsun.com>
56608 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
56609 rather than tab, after '#' in shell-script copyright notices.
56610 Suggested by Bruno Haible.
56612 2003-08-15 Paul Eggert <eggert@twinsun.com>
56614 * config/srclist-update: Use three spaces, rather than tab, after '#'
56615 in shell-script copyright notices. Suggested by Bruno Haible.
56616 Remove unnecessary parenthesization in regular expression.
56618 2003-08-15 Jim Meyering <jim@meyering.net>
56620 Merge from coreutils.
56621 * lib/xgethostname.c: Include <stdlib.h>.
56622 (xghostname): Don't exit for anything other than memory-related
56623 failure; just return NULL.
56624 * lib/userspec.c: Include "posixver.h".
56625 (parse_user_spec): Accept `.' as a separator only
56626 in pre-POSIX-200112 mode.
56627 * lib/strtoimax.c: Use #elif rather than #else #if.
56628 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
56629 Remove function, now that we can rely on a working tzset function.
56630 [!_LIBC]: Ensure that the required autoconf test has been run.
56631 [!defined _NL_CURRENT && HAVE_STRFTIME]:
56632 Use underlying_strftime for %r.
56633 * lib/sha.c: Merge in some clean-up and optimization changes from
56635 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
56636 Ensure that it is a multiple of 64.
56637 Rearrange loop exit tests so as to avoid performing an
56638 additional fread after encountering an error or EOF.
56639 * lib/realloc.c: Update copyright date.
56641 2003-08-15 Jim Meyering <jim@meyering.net>
56642 and Paul Eggert <eggert@twinsun.com>
56644 Merge from coreutils.
56645 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
56646 member but strut utmpx does not. Needed for AIX 4.3.3.
56647 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
56649 2003-08-15 Jim Meyering <jim@meyering.net>
56650 and Paul Eggert <eggert@cs.ucla.edu>
56652 Merges from coreutils, etc.
56653 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
56654 Require gl_FUNC_TZSET_CLOBBER.
56655 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
56656 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
56659 2003-08-14 Paul Eggert <eggert@twinsun.com>
56661 Help the merge from coreutils.
56662 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
56663 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
56664 * m4/tzset.m4: Use it too.
56666 2003-08-14 Paul Eggert <eggert@twinsun.com>
56668 * modules/tzset: New file.
56670 2003-08-14 Jim Meyering <jim@meyering.net>
56672 Merges from coreutils.
56673 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
56674 variable names, rather than @FNMATCH_H@.
56675 * modules/alloca: Likewise for $(ALLOCA_H).
56677 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
56678 the three copies of the literal target, `fnmatch.h'.
56679 * modules/alloca (alloca.h): Likewise.
56681 2003-08-14 Jim Meyering <jim@meyering.net>
56683 Merge from coreutils.
56684 * m4/tzset.m4: New file.
56685 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
56686 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
56687 otherwise, AIX 5.1 systems would end up using the latter.
56688 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
56689 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
56690 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
56691 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
56693 2003-08-14 Jim Meyering <jim@meyering.net>
56695 Merge from coreutils.
56696 * lib/obstack.h: Whitespace changes.
56697 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
56698 and xcalloc return values.
56699 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
56700 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
56701 hang on OSF/1 5.1 for DIR on both local and remote file systems.
56702 Reported by (and fix confirmed by) Nelson H. F. Beebe.
56703 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
56705 Use mntctl's return value to drive the entry-processing loop, since
56706 we can't rely on the value of the vmt_length member in the last
56707 entry. On some systems doing so could result in exhausting
56708 virtual memory. Based in part on a patch from Mike Jetzer.
56710 2003-08-14 Jim Meyering <jim@meyering.net>
56711 and Paul Eggert <eggert@twinsun.com>
56713 Merges from coreutils, plus other fixes.
56714 * lib/physmem.c: Merge in portability changes from gcc/libiberty
56715 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
56716 for credits and details. Thanks to Kaveh Ghazi for helping
56717 to keep these files in sync.
56718 (ARRAY_SIZE): Define it.
56719 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
56720 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
56721 (memcasecmp): Don't assume size_t fits in unsigned int.
56722 Remove casts and duplicate code.
56723 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
56724 (memcpy): Remove definition.
56725 Merge in some clean-up and optimization changes from glibc.
56726 [BLOCKSIZE]: Move definition to top of file.
56727 Ensure that it is a multiple of 64.
56728 Rearrange loop exit tests so as to avoid performing an
56729 additional fread after encountering an error or EOF.
56730 * lib/md5.h (md5_uintptr): Define.
56731 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
56732 return to the initial working directory. Preserve errno
56734 * lib/idcache.c: Include "xalloc.h".
56735 (xmalloc, xrealloc): Remove decls.
56736 (getuser): Remove casts no longer required in C89.
56737 * lib/human.c: Include stdio.h, for sprintf.
56738 * lib/group-member.c: Include "xalloc.h".
56739 (xmalloc, xrealloc): Remove decls.
56740 (get_group_info): Remove casts no longer required in C89.
56741 * lib/getusershell.c (readname): Remove casts no longer required in
56743 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
56744 * lib/getline.c: Whitespace fix, from coreutils.
56746 2003-08-13 Paul Eggert <eggert@twinsun.com>
56748 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
56751 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
56752 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
56753 Undo previous (whitespace-only) change.
56755 2003-08-13 Paul Eggert <eggert@twinsun.com>
56757 * lib/exclude.c: Include <ctype.h>
56758 (IN_CTYPE_DOMAIN): New macro.
56759 (is_space): New fn.
56760 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
56763 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
56764 Undo previous (whitespace-only) change.
56766 2003-08-13 Paul Eggert <eggert@twinsun.com>
56768 * config/srclist-update: Change update back to the old behavior,
56769 leaving whitespace alone. Use one 'sed' command rather than a
56771 (fixlicense): Now a variable, not a function.
56772 (remove_trailing_blanks): Remove.
56773 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
56774 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
56775 Undo previous (whitespace-only) change.
56777 2003-08-12 Paul Eggert <eggert@twinsun.com>
56779 Merge from coreutils.
56780 * modules/euidaccess: Add lib_SOURCES, include for new
56783 2003-08-12 Paul Eggert <eggert@twinsun.com>
56785 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
56786 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
56787 Normalize leading white space and remove trailing white space.
56789 Merge from coreutils
56790 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
56792 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
56793 0.12.1. These files are now being upgraded automatically by
56794 ../config/srclist-update.
56796 2003-08-12 Paul Eggert <eggert@twinsun.com>
56798 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
56799 Normalize leading white space and remove trailing white space.
56800 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
56801 notice, as per ../config/srclist-update.
56803 Merge from coreutils.
56804 * lib/euidaccess.h: New file.
56805 * lib/euidaccess.c: Include it.
56806 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
56807 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
56808 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
56810 2003-08-12 Paul Eggert <eggert@twinsun.com>
56812 * config/srclist-update: Add copyright notice.
56813 (remove_id_lines, remove_trailing_blanks): New constants.
56814 (fixfile): Use them to normalize spacing a bit in copied files.
56815 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
56816 Normalize leading white space and remove trailing white space.
56818 * config/texinfo.tex: Sync with texinfo.
56820 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
56821 strtoul.c from libc, to merge coreutils whitespace changes.
56823 * config/srclist.txt: Get the following m4 files from gettext:
56824 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
56825 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
56826 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
56829 2003-08-12 Karl Berry <karl@gnu.org>
56831 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
56834 2003-08-11 Paul Eggert <eggert@twinsun.com>
56836 * modules/gnu-source, m4/gnu-source.m4:
56837 Remove; we're assuming Autoconf 2.54 or later now.
56838 Suggested by Bruno Haible.
56839 * MODULES.html.sh (func_all_modules): Remove gnu-source.
56841 2003-08-11 Bruno Haible <bruno@clisp.org>
56843 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
56845 2003-08-11 Bruno Haible <bruno@clisp.org>
56847 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
56848 (vasnprintf): Use it instead of wcslen.
56850 2003-08-11 Bruno Haible <bruno@clisp.org>
56852 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
56853 value to ensure that _Bool promotes to int. Use #define for _Bool when
56854 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
56856 2003-08-10 Karl Berry <karl@gnu.org>
56858 * lib/regex.h: update from libc (whitespace fix).
56860 2003-08-09 Paul Eggert <eggert@twinsun.com>
56862 Merge some files from coreutils. These changes were
56863 originally made by Jim Meyering.
56864 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
56865 many older Unixes require this.
56866 * lib/alloca.c (alloca): Remove cast to argument of free;
56867 no longer needed in C89.
56868 * lib/alloca_.h, regex.h: Fix white space to match
56869 what GNU indent does.
56871 2003-08-09 Paul Eggert <eggert@twinsun.com>
56873 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
56874 apparently Emacs's Unicode mode got confused before my 2003-08-05
56877 2003-08-08 Paul Eggert <eggert@twinsun.com>
56879 * m4/extensions.m4: New file.
56880 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
56881 Require gl_USE_SYSTEM_EXTENSIONS.
56882 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
56883 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
56885 2003-08-08 Paul Eggert <eggert@twinsun.com>
56887 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
56888 * modules/extensions, modules/gnu-source: New files.
56889 * modules/timespec, modules/unlocked-io: Depend on extensions.
56891 2003-08-07 Paul Eggert <eggert@twinsun.com>
56893 * modules/restrict: New file.
56894 * MODULES.html.sh (func_all_modules): Add restrict.
56895 * modules/regex: Depend on restrict.
56897 2003-08-07 Paul Eggert <eggert@twinsun.com>
56899 * m4/restrict.m4: New file.
56900 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
56902 2003-08-07 Bruno Haible <bruno@clisp.org>
56904 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
56905 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
56907 2003-08-07 Bruno Haible <bruno@clisp.org>
56909 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
56910 makes the module 'getndelim2' compatible with the module 'getline'.
56912 2003-08-05 Paul Eggert <eggert@twinsun.com>
56914 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
56915 byte with "\201" to avoid glitches when editing that source file
56916 with multi-gnome-terminal.
56918 2003-08-05 Paul Eggert <eggert@twinsun.com>
56920 * lib/bumpalloc.h: Remove.
56922 2003-08-05 Paul Eggert <eggert@twinsun.com>
56924 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
56925 * modules/bumpalloc: Remove.
56927 2003-08-04 Paul Eggert <eggert@twinsun.com>
56929 * lib/getloadavg.c: Change copyright notice and spacing to conform to
56932 Merge from coreutils.
56933 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
56935 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
56936 from Karl Berry, implemented by Jim Meyering.
56937 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
56938 from Dmitry V. Levin.
56939 Remove anachronistic cast of xrealloc.
56940 * lib/fnmatch_.h (__const): Remove. Use 'const'.
56941 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
56942 type. Otherwise, it wouldn't compile with at least /bin/cc on
56943 ymp-cray-unicos9.0.2.X.
56944 Combine two mostly-identical uses of alloca into one.
56945 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
56947 2003-08-04 Dave Love <d.love@dl.ac.uk>
56951 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
56952 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
56953 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
56954 obsolete NLIST_NAME_UNION.
56955 [__GNU__]: Undef BSD and FSCALE.
56956 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
56958 2003-08-03 Paul Eggert <eggert@twinsun.com>
56960 * lib/stdbool_.h (_Bool): Make it signed char, instead of
56961 an enum type, so that it's guaranteed to promote to int. See:
56962 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
56964 2003-08-03 Karl Berry <karl@gnu.org>
56966 * config/depcomp: update from automake.
56968 2003-07-31 Paul Eggert <eggert@twinsun.com>
56970 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
56971 (strerror): Don't assume that a printable int fits in 14 bytes.
56973 2003-07-31 Bruno Haible <bruno@clisp.org>
56975 * modules/getpass-gnu: New file.
56976 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
56978 2003-07-31 Bruno Haible <bruno@clisp.org>
56980 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
56982 2003-07-24 Karl Berry <karl@gnu.org>
56984 * config/missing: update from automake.
56986 2003-07-24 Derek Robert Price <derek@ximbiot.com>
56987 Bruno Haible <bruno@clisp.org>
56989 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
56990 * lib/getline.c (getline, getdelim): Likewise.
56991 Remove _GNU_SOURCE define; now it's defined in config.h through
56994 2003-07-23 Karl Berry <karl@gnu.org>
56996 * config/config.sub: update from prep.
56998 2003-07-22 Paul Eggert <eggert@twinsun.com>
57000 * modules/xalloc (Depends-on): Add exitfail.
57001 * modules/xmemcoll: Likewise.
57003 2003-07-22 Paul Eggert <eggert@twinsun.com>
57005 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
57006 over-parenthesization in macros.
57008 Sync with coreutils.
57010 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
57013 Use `exit_failure' for xalloc and xmemcoll instead of their own
57014 private exit-failure variables.
57015 * lib/xalloc.h (xalloc_exit_failure): Remove.
57016 * lib/xmalloc.c: Likewise. Include exitfail.h.
57017 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
57018 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
57019 * lib/xmemcoll.c: Likewise. Include exitfail.h.
57020 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
57022 2003-07-20 Jim Meyering <jim@meyering.net>
57024 * modules/closeout (Depends-on): Add exitfail.
57025 Suggestion from Bruno Haible.
57027 2003-07-19 Karl Berry <karl@gnu.org>
57029 * config/config.sub: update from prep.
57031 2003-07-18 Paul Eggert <eggert@twinsun.com>
57033 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
57035 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
57036 to test that it can stand by itself. Include "exitfail.h".
57037 Clients should set exit_failure instead.
57038 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
57040 2003-07-18 Bruno Haible <bruno@clisp.org>
57042 * modules/getndelim2: New file.
57043 * modules/getline: Share files with module getndelim2.
57044 * modules/getnline: Depend on getndelim2 instead of sharing files with
57045 it. Add getnline.c to lib_SOURCES.
57046 * MODULES.html.sh (func_all_modules): Add getndelim2.
57048 2003-07-18 Bruno Haible <bruno@clisp.org>
57050 * m4/getndelim2.m4: New file.
57051 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
57052 invoke gl_PREREQ_GETNDELIM2.
57053 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
57054 gl_PREREQ_GETNDELIM2.
57055 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
57058 2003-07-18 Bruno Haible <bruno@clisp.org>
57060 * lib/getndelim2.h: New file.
57061 * lib/getndelim2.c: Make into a module of its own. Include config.h,
57063 (getndelim2): Make non-static. Change return type to ssize_t.
57064 * lib/getline.h: Change argument names.
57065 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
57066 * lib/getnline.c: Include getndelim2.h.
57068 2003-07-18 Andreas Schwab <schwab@suse.de>
57070 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
57072 2003-07-17 Karl Berry <karl@gnu.org>
57074 * config/config.sub: update from prep.
57076 2003-07-17 Bruno Haible <bruno@clisp.org>
57078 * modules/getnline: New file.
57079 * modules/getline: Add lib/getndelim2.c to source file list.
57080 * MODULES.html.sh (func_all_modules): Add getnline.
57082 2003-07-17 Bruno Haible <bruno@clisp.org>
57084 * m4/getnline.m4: New file.
57086 2003-07-17 Bruno Haible <bruno@clisp.org>
57088 * m4/Makefile.am.in: Remove file.
57089 * m4/Makefile.am: Remove file.
57090 * m4/Makefile.in: Remove file.
57092 2003-07-17 Bruno Haible <bruno@clisp.org>
57094 * lib/getnline.h: New file.
57095 * lib/getnline.c: New file.
57096 * lib/getndelim2.c: New file, extracted from getline.c.
57097 (getndelim2): Renamed from getdelim2, with added nmax argument.
57098 * lib/getline.c: Include getndelim2.c.
57099 (getdelim2): Moved out to getndelim2.c.
57100 (getline, getdelim): Update.
57102 2003-07-17 Bruno Haible <bruno@clisp.org>
57104 * lib/Makefile.am: Remove file.
57105 * lib/Makefile.in: Remove file.
57107 2003-07-17 Bruno Haible <bruno@clisp.org>
57109 * configure.in: Remove file.
57110 * Makefile.in: Remove file.
57112 2003-07-17 Bruno Haible <bruno@clisp.org>
57114 * MODULES.html.sh: Put the </BODY> right before </HTML>.
57116 2003-07-16 Karl Berry <karl@gnu.org>
57118 * config/srclist-update: was running fixlicense twice, which caused
57119 texinfo.tex to be nullified for some reason. Simplify,
57120 $gplsrc is no longer needed as far as I can see?
57122 2003-07-16 Jim Meyering <jim@meyering.net>
57124 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
57126 2003-07-15 Paul Eggert <eggert@twinsun.com>
57128 * config/srclist.txt: Get the following files from gettext-runtime/intl
57129 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
57130 ref-del.sin. From Bruno Haible.
57131 * config/srclist-update (fixfile): Change grep pattern again, since the
57132 previous fix didn't work (there was another trailing $). Use
57133 '[$]' to escape the $s.
57135 2003-07-15 Karl Berry <karl@gnu.org>
57137 * lib/vasnprintf.c: update from gettext.
57139 2003-07-15 Karl Berry <karl@gnu.org>
57141 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
57142 gets expanded when surrounded by '$'.
57144 2003-07-15 Jim Meyering <jim@meyering.net>
57146 * modules/save-cwd: Don't depend on error. From Derek Price.
57148 2003-07-15 Jim Meyering <jim@meyering.net>
57150 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
57152 2003-07-14 Simon Josefsson <jas@extundo.com>
57154 * modules/mempcpy: New file.
57155 * MODULES.html.sh (func_all_modules): Add mempcpy.
57157 2003-07-14 Simon Josefsson <jas@extundo.com>
57159 * m4/mempcpy.m4: New file.
57161 2003-07-14 Simon Josefsson <jas@extundo.com>
57163 * lib/mempcpy.h: New file.
57164 * lib/mempcpy.c: New file.
57166 2003-07-14 Paul Eggert <eggert@twinsun.com>
57168 * modules/getdate, modules/posixtm: Depend on mktime.
57170 2003-07-14 Paul Eggert <eggert@twinsun.com>
57172 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
57173 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
57174 unicodeio.c, unicodeio.h, unlocked-io.h:
57175 Switch from LGPL to GPL.
57177 2003-07-14 Paul Eggert <eggert@twinsun.com>
57179 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
57180 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
57181 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
57182 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
57183 vasprintf.c, vasprintf.h: Regenerate. These files are now being
57184 updated automatically by ../config/srclist-update. This changes
57185 their license from LPGL to GPL.
57187 2003-07-14 Paul Eggert <eggert@twinsun.com>
57189 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
57190 assumed to refer to the root of the most recent stable gettext version.
57191 * config/srclistvars.sh: Add defaults for eggert.
57192 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
57193 Match "This program" as well as "The program". This is needed
57196 2003-07-14 Jim Meyering <jim@meyering.net>
57198 Don't emit diagnostics. Let callers do that.
57199 * lib/save-cwd.c: Don't include "error.h".
57200 (save_cwd): Don't call error. Ensure that errno is valid
57201 when returning nonzero.
57203 * lib/save-cwd.h (restore_cwd): Update prototype.
57204 * lib/save-cwd.c (restore_cwd): Remove two parameters.
57205 Simplify. Don't call error upon failure. Let callers do that.
57206 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
57207 when auditing is enabled. But don't bother updating the #if.
57209 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
57211 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
57212 it breaks C++ compilation.
57213 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
57215 2003-07-10 Simon Josefsson <jas@extundo.com>
57217 * modules/strchrnul (Makefile.am): Add strchrnul.h.
57219 2003-07-10 Jim Meyering <jim@meyering.net>
57221 * m4/clock_time.m4: Remove trailing blank.
57222 * m4/intmax_t.m4: Likewise.
57224 2003-07-10 Jim Meyering <jim@meyering.net>
57226 * lib/vasnprintf.c: Remove trailing blanks.
57227 Make cpp indentation consistent.
57229 2003-07-09 Paul Eggert <eggert@twinsun.com>
57231 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
57232 posixver.c, strftime.c, strnlen.c, strverscmp.c:
57233 Switch from LGPL to GPL.
57235 2003-07-09 Paul Eggert <eggert@twinsun.com>
57237 * config/srclist.txt: Sort sublists. Add
57238 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
57239 that differ from gnulib for one reason or another; we'd like this list
57240 to be smaller but for now let's document what we have.
57242 2003-07-08 Paul Eggert <eggert@twinsun.com>
57244 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
57245 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
57246 and sweeter "eval x=$x".
57247 * config/srclist.txt: Get lib/argp* from glibc.
57249 2003-07-07 Paul Eggert <eggert@twinsun.com>
57251 * lib/mktime.c: Fix some boundary cases and remove need for floating
57254 Issue a compile-time diagnostic if time_t is floating point, or if
57255 two's complement arithmetic is not in effect, or if arithmetic
57256 right shift does not propagate the sign. These assumptions were
57257 all in the original code but they weren't checked.
57259 (TIME_T_MIDPOINT, verify): New macros.
57260 (__isleap): Remove; it has integer overflow problems.
57261 (leapyear): New function, without those problems.
57262 (ydhms_tm_diff): Remove; splitting into two parts.
57263 (ydhms_diff): New function, containing the arithmetic part of
57264 the old ydhms_tm_diff function. Issue a compile-time
57265 diagnostic if we are not using C99 integer division.
57266 Avoid casts when possible.
57267 (guess_time_tm): New function, containing the checking part of
57268 the old ydhms_tm_diff function. Return the new value, rather than
57269 the difference between it and the old. Accept a new argument T
57270 so that *T specifies the old value. Check for overflow in the result.
57272 (__mktime_internal): Use a time_t offset, not a long int offset.
57273 This undoes the 2003-06-04 change, which is no longer needed now
57274 that we have better overflow checking.
57275 (localtime_offset): Likewise.
57277 (__mktime_internal): Avoid harmful overflow on hosts where time_t
57278 and long are 64-bit but int is only 32-bit.
57279 (ydhms_diff): Use long int to store year1 and yday1.
57280 Issue a compile-time diagnostic if long int is not wide enough.
57282 (__mktime_internal): Use long int to store adjusted year and yday.
57283 Use plain C rather than preprocessor commands, if that doesn't
57285 Check for overflow (and try to repair) after each probe
57286 rather than checking only at the very end. This avoids some bugs
57287 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
57288 does not equal GMT offset at maximum time).
57289 Use integer to check for overflow rather than floating point; this
57290 is more portable to non-IEEE hosts, and is a tad faster.
57291 When we detect that we are oscillating between two values,
57292 don't check whether tm_isdst has the requested value, since
57293 we already know the answer. When tm_isdst has the wrong value,
57294 use a different heuristic to find the right one, based on the
57295 extreme values actually observed in practice in tz2003a,
57296 rather than the (overly optimistic) "previous 3 calendar quarters".
57298 (not_equal_tm, print_tm, check_result): Use "const T" rather than
57299 "T const" to accommodate glibc style.
57300 (check_result): Use less-confusing report format. "long" -> "long int.
57302 Don't loop if the iteration overflows time_t.
57303 Allow a negative step in the iteration.
57305 2003-07-06 Karl Berry <karl@gnu.org>
57307 * config/depcomp: update from automake.
57308 * config/config.sub: update from prep.
57310 2003-07-03 Karl Berry <karl@gnu.org>
57312 * config/config.guess: update from prep.
57314 2003-07-01 Paul Eggert <eggert@twinsun.com>
57316 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
57317 xreadlink.c now includes it unconditionally.
57319 2003-07-01 Paul Eggert <eggert@twinsun.com>
57321 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
57322 having it depend on HAVE_SYS_TYPES_H.
57324 2003-07-01 Bruno Haible <bruno@clisp.org>
57326 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
57327 <sys/types.h> should be sufficient.
57328 Reported by Paul Eggert.
57330 2003-06-26 Karl Berry <karl@gnu.org>
57332 * config/depcomp: update from automake.
57334 2003-06-26 Bruno Haible <bruno@clisp.org>
57336 * modules/human: Depend on module stdbool.
57338 2003-06-25 Bruno Haible <bruno@clisp.org>
57340 * modules/readlink: New file.
57341 * modules/xreadlink: Depend on it.
57342 * MODULES.html.sh (func_all_modules): Add readlink.
57344 2003-06-25 Bruno Haible <bruno@clisp.org>
57346 * m4/readlink.m4: New file.
57348 2003-06-25 Bruno Haible <bruno@clisp.org>
57350 * lib/readlink.c: New file.
57352 2003-06-22 Karl Berry <karl@gnu.org>
57354 * config/srclist.txt: update mkinstalldirs from automake.
57355 * config/mkinstalldirs: update.
57357 2003-06-22 Bruno Haible <bruno@clisp.org>
57359 Portability to mingw32.
57360 * m4/ssize_t.m4: New file, from GNU gettext.
57361 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
57362 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
57364 2003-06-22 Bruno Haible <bruno@clisp.org>
57366 * modules/safe-read: Add m4/ssize_t.m4.
57367 * modules/xreadlink: Add m4/ssize_t.m4.
57369 2003-06-20 Bruno Haible <bruno@clisp.org>
57371 Assume C89, so PARAMS isn't needed.
57372 * lib/unicodeio.h (PARAMS): Remove.
57373 * lib/unicodeio.c: Don't use PARAMS.
57375 2003-06-18 Karl Berry <karl@gnu.org>
57377 * config/config.{guess,sub}: update from prep.
57379 2003-06-18 Jim Meyering <jim@meyering.net>
57381 Merge changes from coreutils.
57382 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
57383 Remove explicit declarations of xmalloc and realloc.
57385 (read_utmp): Remove anachronistic cast of xmalloc.
57387 2003-06-17 Paul Eggert <eggert@twinsun.com>
57389 Assume C89, so PARAMS isn't needed.
57390 * lib/backupfile.h (PARAMS): Remove. All uses removed.
57391 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
57392 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
57393 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
57394 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
57395 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
57396 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
57397 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
57398 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
57399 lib/xstrtod.h, lib/xstrtol.h: Likewise.
57400 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
57401 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
57402 no longer needed. Anyway, config.h should always be included before any
57405 2003-06-11 Simon Josefsson <jas@extundo.com>
57407 * modules/sysexits: New file.
57408 * MODULES.html.sh (func_all_modules): Add sysexits.
57410 2003-06-11 Simon Josefsson <jas@extundo.com>
57412 * lib/sysexit_.h: New file.
57414 2003-06-11 Derek Price <derek@ximbiot.com>
57416 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
57419 2003-06-11 Bruno Haible <bruno@clisp.org>
57421 * m4/sysexits.m4: New file.
57423 2003-06-10 Simon Josefsson <jas@extundo.com>
57425 * lib/argp.h: New file, from glibc.
57426 * lib/argp-ba.c: New file, from glibc.
57427 * lib/argp-eexst.c: New file, from glibc.
57428 * lib/argp-fmtstream.c: New file, from glibc.
57429 * lib/argp-fmtstream.h: New file, from glibc.
57430 * lib/argp-fs-xinl.c: New file, from glibc.
57431 * lib/argp-help.c: New file, from glibc.
57432 * lib/argp-namefrob.h: New file, from glibc.
57433 * lib/argp-parse.c: New file, from glibc.
57434 * lib/argp-pv.c: New file, from glibc.
57435 * lib/argp-pvh.c: New file, from glibc.
57436 * lib/argp-xinl.c: New file, from glibc.
57438 2003-06-10 Simon Josefsson <jas@extundo.com>
57440 * modules/strchrnul: New file.
57442 2003-06-10 Simon Josefsson <jas@extundo.com>
57444 * modules/argp: New file.
57446 2003-06-10 Simon Josefsson <jas@extundo.com>
57448 * m4/strchrnul.m4: New file.
57450 2003-06-10 Simon Josefsson <jas@extundo.com>
57452 * lib/strchrnul.h: New file.
57453 * lib/strchrnul.c: New file.
57455 2003-06-10 Bruno Haible <bruno@clisp.org>
57457 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
57459 2003-06-07 Karl Berry <karl@gnu.org>
57461 * config/config.{guess,sub}: update from prep.
57463 2003-06-07 Jim Meyering <jim@meyering.net>
57465 * modules/strtod: Use $(...) notation, not @...@ for
57466 AC_REPLACE'd variables.
57467 * modules/localcharset: Likewise.
57469 2003-06-07 Jim Meyering <jim@meyering.net>
57471 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
57472 in place of my name in the copyright comment.
57473 Remove definition and uses of __P.
57476 * lib/stat.c: Don't declare xmalloc explicitly.
57477 Instead, include "xalloc.h".
57478 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
57479 xrealloc, and xcalloc return values.
57480 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
57482 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
57484 2003-06-07 Bruno Haible <bruno@clisp.org>
57486 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
57487 avoid AC_CONFIG_LINKS.
57488 * modules/fnmatch (Makefile.am): Use explicit creation rule for
57489 fnmatch.h, to avoid AC_CONFIG_LINKS.
57490 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
57492 2003-06-07 Bruno Haible <bruno@clisp.org>
57494 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
57495 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
57496 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
57498 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
57499 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
57502 2003-06-06 Jim Meyering <jim@meyering.net>
57504 Merge from coreutils.
57505 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
57506 Consolidate declarations and initializations of *_base* locals.
57508 Merge from coreutils.
57509 This avoids a core dump on systems without GNU putenv,
57510 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
57511 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
57512 (unsetenv): New static function, from GNU libc.
57513 (rpl_putenv): Use it.
57515 * lib/modechange.c: Remove trailing blanks.
57517 Merge from coreutils.
57518 * lib/fsusage.c: Remove declaration of statfs.
57519 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
57521 * lib/posixtm.c: Include <stdbool.h> unconditionally.
57523 2003-06-06 Jim Meyering <jim@meyering.net>
57525 * lib/stdbool_.h: Renamed from stdbool.h.in.
57527 2003-06-06 Jim Meyering <jim@meyering.net>
57528 Bruno Haible <bruno@clisp.org>
57530 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
57531 Adjust Makefile.am snippet not to redirect directly to target.
57532 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
57534 2003-06-05 Paul Eggert <eggert@twinsun.com>
57536 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
57537 mismatch, look in future quarters as well as past. This fixes a
57538 bug when processing fall-backwards gaps immediately after a long
57539 period of daylight-saving time.
57541 * lib/mktime.c: Assume freestanding C89 or better.
57542 (HAVE_LIMITS_H): Remove. Assume it's 1.
57543 (__P): Remove; not used.
57544 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
57545 (mktime, not_equal_tm, print_tm, check_result,
57546 main): Use prototypes. Use const * where appropriate.
57547 (main): Fix typo in testing code that uncovered by above changes.
57548 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
57550 2003-06-04 Paul Eggert <eggert@twinsun.com>
57552 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
57553 locale.h, localeconv. This merges changes from coreutils.
57555 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
57556 It can be removed after the next Autoconf is released.
57557 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
57560 2003-06-04 Paul Eggert <eggert@twinsun.com>
57562 * lib/mktime.c: Fix Debian bug 177940
57563 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
57564 (localtime_offset): Now long int, not time_t, because we want it
57565 to be guaranteed to be signed. All uses changed.
57566 (__mktime_internal): If overflow would occur when adding offset,
57569 Merge 'human' changes from coreutils. Rewrite to support
57570 locale-specific notations like thousands separators.
57571 * lib/human.c: Simplify authorship notice.
57572 Include human.h immediately after config.h.
57573 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
57574 <limits.h>: Do not include, since human.h does.
57575 (SIZE_MAX, UINTMAX_MAX): New macros.
57576 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
57577 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
57578 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
57579 (power_letter): Renamed from suffixes.
57580 (generate_suffix_backwards): Remove.
57581 (adjust_value): Now takes int style (because of human.h changes)
57582 and long double value (for greater precision on some platforms).
57583 (group_number): New function.
57584 (human_readable): Use it. Use integer options, not enum.
57585 Put the options before the sizes in the arg list.
57586 Support all the new options.
57587 The old human_readable function has been removed;
57588 use inttostr.h instead.
57589 (human_readable, default_block_size, humblock):
57590 Use uintmax_t, not int, for block sizes.
57591 (human_readable_inexact, block_size_types): Remove.
57592 (block_size_opts): New constant.
57593 (human_options): Renamed from human_block_size, with new signature
57594 that allows block sizes up to UINTMAX_MAX. All callers changed.
57595 * lib/human.h: Add copyright and authorship notice.
57596 Include <limits.h> and <stdbool.h> unconditionally.
57597 (PARAMS): Remove. All uses removed.
57598 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
57599 (enum human_inexact_style): Remove tag; now a nameless enum.
57600 (human_floor, human_ceiling, human_round_to_even): Now have
57601 values 2, 0, 1 rather than -1, 1, 0.
57602 (human_group_digits, human_suppress_point_zero, human_autoscale,
57603 human_base_1024, human_SI, human_B): New constants.
57604 (human_readable_inexact, human_block_size): Remove.
57605 (human_readable): Size args are now uintmax_t, not int.
57606 (human_options): New decl.
57608 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
57609 unnecessary now that we assume C89 or better. This change
57610 imported from coreutils.
57612 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
57613 arbitrarily. This is the same patch as 2003-05-28, but it got lost
57614 in the 2003-05-30 sync from glibc.
57616 .h files should stand alone, but we shouldn't include <sys/types.h>
57617 if we can get away with just <stddef.h>.
57619 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
57620 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
57621 rather than <sys/types.h>, as we merely need size_t.
57622 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
57624 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
57625 Include <stdio.h>, to get FILE.
57626 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
57627 memcasecmp.h has included <stddef.h> and all we need is size_t.
57628 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
57629 our interface, instead of including <sys/types.h>
57631 2003-06-04 Paul Eggert <eggert@twinsun.com>
57633 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
57634 now, as glibc mktime is buggy on non-glibc systems.
57636 2003-06-03 Karl Berry <karl@gnu.org>
57638 * config/config.sub: update from prep.
57640 2003-06-02 Paul Eggert <eggert@twinsun.com>
57643 Fix some minor time-related bugs with POSIX time arguments.
57644 Some valid time stamps were being rejected (notably -1, and
57645 time stamps before 1900 on 64-bit hosts). And some invalid
57646 time stamps were being accepted, e.g. September 31.
57648 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
57649 that we can return (time_t) -1 successfully.
57650 * lib/posixtm.c: Likewise.
57651 [HAVE_STDBOOL_H]: Include <stdbool.h>.
57652 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
57653 (t): Remove static var.
57654 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
57655 of static var. All uses changed.
57656 (year): Do not reject years before 1900; they can occur with
57658 (posix_time_parse): Do not check for out-of-range components;
57659 that is now the caller's responsibility, since our checks were
57660 only approximations.
57661 (posixtime): Use mktime to check for out-of-range components,
57662 since it knows them exactly.
57663 If mktime returns (time_t) -1, check whether an error actually occurred
57664 by invoking localtime on -1.
57665 (main) [TEST_POSIXTIME]: Check for input data errors, and report
57666 posixtime failures better.
57667 Improve the test data (in comments only).
57669 2003-06-02 Karl Berry <karl@gnu.org>
57671 * config/mkinstalldirs (version): new variable.
57672 (--version): new option.
57673 (usage): improve message.
57675 2003-05-30 Karl Berry <karl@gnu.org>
57677 * lib/mktime.c: update from libc.
57679 2003-05-30 Bruno Haible <bruno@clisp.org>
57681 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
57682 * config/config.rpath: Upgrade to gettext-0.12.1.
57684 2003-05-30 Bruno Haible <bruno@clisp.org>
57686 * m4/gettext.m4: Upgrade to gettext-0.12.1.
57687 * m4/nls.m4: New file, from gettext-0.12.1.
57688 * m4/po.m4: New file, from gettext-0.12.1.
57689 * m4/progtest.m4: Upgrade to gettext-0.12.1.
57691 2003-05-30 Bruno Haible <bruno@clisp.org>
57693 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
57694 * lib/localcharset.h: Likewise.
57695 * lib/localcharset.c: Likewise.
57697 2003-05-29 Karl Berry <karl@gnu.org>
57699 * config/config.rpath: update from gettext.
57701 2003-05-28 Paul Eggert <eggert@twinsun.com>
57703 Assume the headers required for C89 freestanding compilers.
57704 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
57705 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
57706 * m4/human.m4 (gl_HUMAN): Likewise.
57707 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
57708 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
57709 * m4/userspec.m4 (gl_USERSPEC): Likewise.
57710 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
57711 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57712 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
57714 2003-05-28 Paul Eggert <eggert@twinsun.com>
57716 Assume the headers required for C89 freestanding compilers.
57717 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
57718 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
57719 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
57720 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
57721 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
57722 define, since <limits.h> is guaranteed to do that.
57723 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
57724 * lib/exclude.c: Include <stdbool.h> unconditionally.
57725 * lib/tempname.c: Include <stddef.h> unconditionally.
57726 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
57727 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
57728 <stddef.h> does that.
57729 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
57730 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
57731 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
57733 * lib/xstrtol.c: Likewise.
57734 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
57735 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
57737 * lib/addext.c (addext): Use assignment rather than cast, to avoid
57738 warnings on some platforms.
57740 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
57743 2003-05-26 Jim Meyering <jim@meyering.net>
57745 Merge in a change from coreutils:
57746 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
57747 that is guaranteed to be `no'. Use `no_such_member' to indicate
57748 that condition, rather than `-1' which is slightly misleading.
57749 Change the name of the cache variable to have the gl_ prefix.
57750 Prompted by a patch from Richard Dawe for DJGPP.
57752 2003-05-24 Karl Berry <karl@gnu.org>
57754 * config/config.guess: update from prep.
57756 2003-05-22 Karl Berry <karl@gnu.org>
57758 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
57760 2003-05-20 Karl Berry <karl@gnu.org>
57762 * config/config.guess: update from prep.
57764 2003-05-18 Karl Berry <karl@gnu.org>
57766 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
57767 might actually be set by the user.
57769 * config/depcomp, install-sh, mdate-sh: update from automake.
57771 2003-05-17 Bruno Haible <bruno@clisp.org>
57773 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
57774 invalid expansion for AC_EGREP_CPP.
57775 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
57776 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
57777 Suggested by Akim Demaille <akim@epita.fr> in
57778 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
57780 2003-05-12 Jim Meyering <jim@meyering.net>
57782 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
57783 the space-padded-by-default conversion specifiers, %e, %k, %l.
57785 2003-05-12 Bruno Haible <bruno@clisp.org>
57787 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
57788 the string is longer than 4 KB.
57790 2003-05-11 Karl Berry <karl@gnu.org>
57792 * config/config.{guess,sub}: update from prep.
57794 2003-05-09 Bruno Haible <bruno@clisp.org>
57796 * modules/error: Add m4/strerror_r.m4 to file list.
57798 2003-05-03 Bruno Haible <bruno@clisp.org>
57800 Upgrade to Unicode-4.0.
57801 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
57802 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
57803 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
57804 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
57805 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
57806 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
57807 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
57808 Change width of U+E0100..U+E01EF from 1 to 0.
57810 2003-04-25 Jim Meyering <jim@meyering.net>
57812 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
57813 of type size_t, not int.
57815 2003-04-25 Bruno Haible <bruno@clisp.org>
57817 * lib/copy-file.c: Include <stddef.h>, for size_t.
57819 2003-04-21 Paul Eggert <eggert@twinsun.com>
57821 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
57822 code which expansion is under static control. Patch imported from
57823 Akim Demaille's patch to Bison; see
57824 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
57826 2003-04-14 Bruno Haible <bruno@clisp.org>
57828 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
57830 2003-04-11 Jim Meyering <jim@meyering.net>
57832 Merge changes from Coreutils.
57834 2003-03-22 Jim Meyering <jim@meyering.net>
57836 * lib/strftime.c (widen): Cast alloca return value to proper type.
57838 2003-01-19 Ulrich Drepper <drepper@redhat.com>
57841 * lib/strftime.c (my_strftime): Handle very large width
57842 specifications for numeric values correctly. Improve checks for
57845 2003-01-19 Jim Meyering <jim@meyering.net>
57847 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
57849 (nl_get_alt_digit) [! defined my_strftime]: Define.
57850 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
57851 _nl_get_alt_digit and _nl_get_walt_digit.
57853 * lib/strftime.c (my_strftime): Merge in locale-related changes from
57854 libc. These changes have no effect outside of _LIBC.
57856 2003-04-10 Bruno Haible <bruno@clisp.org>
57858 * modules/findprog: New file.
57859 * MODULES.html.sh (func_all_modules): Add it.
57861 2003-04-10 Bruno Haible <bruno@clisp.org>
57863 * m4/findprog.m4: New file.
57864 * m4/eaccess.m4: New file.
57866 2003-04-10 Bruno Haible <bruno@clisp.org>
57868 * lib/findprog.h: New file, from GNU gettext.
57869 * lib/findprog.c: New file, from GNU gettext.
57871 2003-04-05 Jim Meyering <jim@meyering.net>
57873 Merge changes from Coreutils.
57875 * lib/exclude.h (PARAMS): Remove definition and uses.
57876 * lib/exclude.c: Remove uses of `PARAMS'.
57878 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
57879 Add test-cases for DOS filenames. Declare program_name.
57880 (main): Set up program_name. Patch by Rich Dawe.
57882 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
57884 Use mntctl's return value to drive the entry-processing loop, since
57885 we can't rely on the value of the vmt_length member in the last
57886 entry. On some systems doing so could result in exhausting
57887 virtual memory. Based in part on a patch from Mike Jetzer.
57889 2003-04-04 Bruno Haible <bruno@clisp.org>
57891 * modules/linebreak: New file.
57892 * MODULES.html.sh (func_all_modules): Add it.
57894 2003-04-04 Bruno Haible <bruno@clisp.org>
57896 * m4/linebreak.m4: New file.
57898 2003-04-04 Bruno Haible <bruno@clisp.org>
57900 * lib/linebreak.h: New file, from GNU gettext.
57901 * lib/linebreak.c: New file, from GNU gettext with slight
57903 * lib/lbrkprop.h: New file, from GNU gettext.
57905 2003-04-03 Bruno Haible <bruno@clisp.org>
57907 * modules/utf8-ucs4: New file.
57908 * modules/utf16-ucs4: New file.
57909 * modules/ucs4-utf8: New file.
57910 * modules/ucs4-utf16: New file.
57911 * MODULES.html.sh (func_all_modules): Add them.
57913 2003-04-03 Bruno Haible <bruno@clisp.org>
57915 * m4/utf-ucs4.m4: New file.
57916 * m4/ucs4-utf.m4: New file.
57918 2003-04-03 Bruno Haible <bruno@clisp.org>
57920 * lib/utf8-ucs4.h: New file, from GNU gettext.
57921 * lib/utf16-ucs4.h: New file, from GNU gettext.
57922 * lib/ucs4-utf8.h: New file, from GNU gettext.
57923 * lib/ucs4-utf16.h: New file, from GNU gettext.
57925 2003-04-02 Bruno Haible <bruno@clisp.org>
57927 * modules/binary-io: New file.
57928 * MODULES.html.sh (func_all_modules): Add it.
57930 2003-04-02 Bruno Haible <bruno@clisp.org>
57932 * lib/binary-io.h: New file, from GNU gettext.
57934 2003-04-01 Bruno Haible <bruno@clisp.org>
57936 * modules/pathname: New file.
57937 * MODULES.html.sh (func_all_modules): Add it.
57939 2003-04-01 Bruno Haible <bruno@clisp.org>
57941 * lib/pathname.h: New file, from GNU gettext.
57942 * lib/concatpath.c: New file, from GNU gettext.
57944 2003-03-30 Bruno Haible <bruno@clisp.org>
57946 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
57948 2003-03-30 Bruno Haible <bruno@clisp.org>
57950 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
57951 function chown() doesn't exist.
57953 2003-03-28 Bruno Haible <bruno@clisp.org>
57955 * modules/copy-file: New file.
57956 * MODULES.html.sh (func_all_modules): Add it.
57958 2003-03-28 Bruno Haible <bruno@clisp.org>
57960 * m4/copy-file.m4: New file.
57962 2003-03-28 Bruno Haible <bruno@clisp.org>
57964 * lib/copy-file.h: New file, from GNU gettext.
57965 * lib/copy-file.c: New file, from GNU gettext.
57967 2003-03-18 Jim Meyering <jim@meyering.net>
57969 * lib/quote.c (quote_n): Fix typo in comment.
57971 2003-03-18 Bruno Haible <bruno@clisp.org>
57973 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
57975 * m4/onceonly_2_57.m4: Likewise.
57977 2003-03-17 Bruno Haible <bruno@clisp.org>
57979 * m4/onceonly.m4: Require autoconf 2.54 or newer.
57980 (m4_quote): Remove macro.
57981 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
57983 2003-03-14 Jim Meyering <jim@meyering.net>
57985 Merge changes from Coreutils.
57986 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
57987 to be const, in order to avoid warnings.
57988 (obstack_room): Likewise.
57989 (obstack_empty_p): Likewise.
57991 2003-03-14 Bruno Haible <bruno@clisp.org>
57993 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
57994 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
57996 2003-03-13 Paul Eggert <eggert@twinsun.com>
57998 Merge changes from Bison.
57999 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
58000 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
58001 when compiling Bison 1.875's `bitset bset = obstack_alloc
58002 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
58003 * lib/hash.c: Include <stdbool.h> unconditionally.
58005 2003-03-13 Paul Eggert <eggert@twinsun.com>
58007 * m4/onceonly.m4 (m4_quote): New macro.
58008 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
58009 Quote AC_FOREACH variable-expansions properly.
58011 2003-03-13 Paul Eggert <eggert@twinsun.com>
58013 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
58015 2003-03-09 Paul Eggert <eggert@twinsun.com>
58017 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
58018 Reported by Bruce Becker; see:
58019 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
58021 2003-03-03 Paul Eggert <eggert@twinsun.com>
58022 Bruno Haible <bruno@clisp.org>
58024 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
58025 Reported by John Hughes, see
58026 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
58028 2003-02-20 Bruno Haible <bruno@clisp.org>
58030 * MODULES.html.sh (func_all_modules): Add poll.
58032 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
58034 * modules/poll: New file.
58036 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
58038 * lib/poll_.h: New file.
58039 * lib/poll.c: New file.
58041 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
58043 * m4/poll.m4: New file.
58045 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
58047 * modules/mathl: New file.
58049 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
58051 * lib/mathl.h: New file.
58052 * lib/acosl.c: New file.
58053 * lib/asinl.c: New file.
58054 * lib/atanl.c: New file.
58055 * lib/ceill.c: New file.
58056 * lib/cosl.c: New file.
58057 * lib/expl.c: New file.
58058 * lib/floorl.c: New file.
58059 * lib/frexpl.c: New file.
58060 * lib/ldexpl.c: New file.
58061 * lib/logl.c: New file.
58062 * lib/sincosl.c: New file.
58063 * lib/sinl.c: New file.
58064 * lib/sqrtl.c: New file.
58065 * lib/tanl.c: New file.
58066 * lib/trigl.c: New file.
58067 * lib/trigl.h: New file.
58069 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
58071 * m4/mathl.m4: New file.
58073 2003-02-18 Bruno Haible <bruno@clisp.org>
58075 * MODULES.html.sh (func_all_modules): Add mathl.
58077 2003-02-17 Bruno Haible <bruno@clisp.org>
58079 * modules/mkdtemp: New module.
58080 * MODULES.html.sh (func_all_modules): Add it.
58082 2003-02-17 Bruno Haible <bruno@clisp.org>
58084 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
58086 2003-02-17 Bruno Haible <bruno@clisp.org>
58088 * lib/mkdtemp.h: New file, from GNU gettext.
58089 * lib/mkdtemp.c: New file, from GNU gettext.
58091 2003-02-02 Jim Meyering <jim@meyering.net>
58093 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
58096 2003-01-31 Bruno Haible <bruno@clisp.org>
58098 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
58100 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
58102 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
58104 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
58107 2003-01-31 Bruno Haible <bruno@clisp.org>
58109 * lib/rename.c: #undef rename before defining rpl_rename.
58110 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
58112 2003-01-30 Bruno Haible <bruno@clisp.org>
58114 * modules/vasnprintf, modules/vasprintf: New modules.
58115 * MODULES.html.sh (func_all_modules): Add them.
58117 2003-01-30 Bruno Haible <bruno@clisp.org>
58119 * m4/signed.m4: New file, from GNU gettext.
58120 * m4/longdouble.m4: New file, from GNU gettext.
58121 * m4/wchar_t.m4: New file, from GNU gettext.
58122 * m4/wint_t.m4: New file, from GNU gettext.
58123 * m4/vasnprintf.m4: New file.
58124 * m4/vasprintf.m4: New file.
58126 2003-01-30 Bruno Haible <bruno@clisp.org>
58128 * lib/printf-args.h: New file, from GNU gettext.
58129 * lib/printf-args.c: New file, from GNU gettext.
58130 * lib/printf-parse.h: New file, from GNU gettext.
58131 * lib/printf-parse.c: New file, from GNU gettext.
58132 * lib/vasnprintf.h: New file, from GNU gettext.
58133 * lib/vasnprintf.c: New file, from GNU gettext.
58134 * lib/asnprintf.c: New file, from GNU gettext.
58135 * lib/vasprintf.h: New file, from GNU gettext with modifications.
58136 * lib/vasprintf.c: New file, from GNU gettext.
58137 * lib/asprintf.c: New file, from GNU gettext.
58139 2003-01-29 Bruno Haible <bruno@clisp.org>
58141 * modules/stpncpy: New module.
58142 * MODULES.html.sh (func_all_modules): Add it.
58144 2003-01-29 Bruno Haible <bruno@clisp.org>
58146 * m4/stpncpy.m4: New file.
58148 2003-01-29 Bruno Haible <bruno@clisp.org>
58150 * lib/stpncpy.h: New file, from GNU gettext with modifications.
58151 * lib/stpncpy.c: New file, from GNU gettext with modifications.
58153 2003-01-28 Bruno Haible <bruno@clisp.org>
58155 * modules/c-ctype: New module.
58156 * MODULES.html.sh (func_all_modules): Add it.
58158 2003-01-28 Bruno Haible <bruno@clisp.org>
58160 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
58162 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
58165 2003-01-27 Bruno Haible <bruno@clisp.org>
58167 * modules/xsetenv: New module.
58168 * MODULES.html.sh (func_all_modules): Add it.
58170 2003-01-27 Bruno Haible <bruno@clisp.org>
58172 * lib/xsetenv.h: New file, from GNU gettext.
58173 * lib/xsetenv.c: New file, from GNU gettext.
58175 2003-01-23 Jim Meyering <jim@meyering.net>
58177 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
58178 from working on systems without dirfd (at least Irix and OSF1/Tru64).
58180 2003-01-23 Bruno Haible <bruno@clisp.org>
58182 * modules/minmax: New module.
58183 * MODULES.html.sh (func_all_modules): Add it.
58185 2003-01-23 Bruno Haible <bruno@clisp.org>
58187 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
58190 2003-01-22 Bruno Haible <bruno@clisp.org>
58192 * modules/exit: New module.
58193 * MODULES.html.sh (func_all_modules): Add it.
58195 2003-01-22 Bruno Haible <bruno@clisp.org>
58197 * lib/exit.h: New file, from GNU gettext.
58199 2003-01-19 Bruno Haible <bruno@clisp.org>
58201 * gnulib-tool: Recognize option --extract-maintainer.
58202 (func_get_maintainer): New function.
58203 * modules/*: Add Maintainer entry.
58205 2003-01-16 Jim Meyering <jim@meyering.net>
58207 * m4/regex.m4: The `regex' struct is both input and output.
58208 Initialize it before each use. Patch by Tim Waugh.
58210 2003-01-16 Bruno Haible <bruno@clisp.org>
58212 * MODULES.html.sh: Add a table of contents. Add the module name as
58213 leftmost column. Add hyperlinks.
58215 2003-01-15 Bruno Haible <bruno@clisp.org>
58217 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
58219 2003-01-15 Bruno Haible <bruno@clisp.org>
58221 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
58222 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
58225 2003-01-15 Bruno Haible <bruno@clisp.org>
58227 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
58229 2003-01-15 Bruno Haible <bruno@clisp.org>
58231 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
58232 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
58234 2003-01-14 Jim Meyering <jim@meyering.net>
58236 * lib/same.c (same_name): Tweak a comment.
58238 2003-01-14 Bruno Haible <bruno@clisp.org>
58240 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
58241 when a string comparison is sufficient.
58243 2003-01-14 Bruno Haible <bruno@clisp.org>
58245 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
58248 2003-01-14 Bruno Haible <bruno@clisp.org>
58250 * lib/hash-pjw.c: Add comment about low quality of this function.
58252 2003-01-13 Bruno Haible <bruno@clisp.org>
58254 * modules/stpcpy: Distribute lib/stpcpy.h.
58255 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
58257 2003-01-13 Bruno Haible <bruno@clisp.org>
58259 * modules/*: Add a description.
58260 * modules/strpbrk: Fix Makefile.am snippet.
58261 * modules/strtoimax: Fix dependencies.
58262 * modules/strtoumax: Likewise.
58264 2003-01-13 Bruno Haible <bruno@clisp.org>
58266 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
58267 * modules/alloca (Makefile.am): All object files depend on alloca.h.
58268 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
58270 2003-01-13 Bruno Haible <bruno@clisp.org>
58272 * gnulib-tool (func_create_testdir): Store config/* files in the main
58274 * config.rpath: Move to ...
58275 * config/config.rpath: ... here.
58276 * modules/gettext: Contains config/config.rpath, not config.rpath.
58277 * modules/iconv: Likewise.
58279 2003-01-12 Paul Eggert <eggert@twinsun.com>
58281 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58282 to avoid collisions with libcurses and libreadline.
58284 * m4/getstr.m4: Remove.
58285 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
58287 2003-01-12 Paul Eggert <eggert@twinsun.com>
58289 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58290 to avoid collisions with libcurses and libreadline.
58292 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
58293 * lib/getstr.h, getstr.c: Remove.
58294 * lib/getline.c: Include "getline.h", to check interface.
58295 Move body of old getstr.c here: this defines MIN_CHUNK and
58296 declares getdelim2, which is renamed from getstr.
58297 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
58299 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
58301 * lib/linebuffer.h: Likewise.
58302 (readline): Remove backward-compatibility macro.
58304 2003-01-12 Paul Eggert <eggert@twinsun.com>
58306 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58307 to avoid collisions with libcurses and libreadline.
58309 * MODULES.html.sh: Remove getstr.
58310 * modules/getline: Depend on unlocked-io, not getstr.
58312 2003-01-12 Jim Meyering <jim@meyering.net>
58314 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
58316 2003-01-10 Bruno Haible <bruno@clisp.org>
58318 * modules/alloca: Change Makefile.am requirements. Simplify Include
58319 requirements. Add lib/alloca_.h to file list.
58321 2003-01-10 Bruno Haible <bruno@clisp.org>
58323 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
58325 2003-01-10 Bruno Haible <bruno@clisp.org>
58327 * lib/alloca_.h: New file.
58328 * lib/getdate.y: Unconditionally include alloca.h.
58329 * lib/makepath.c: Likewise.
58330 * lib/setenv.c: Likewise.
58331 * lib/userspec.c: Likewise.
58333 2003-01-09 Karl Berry <karl@gnu.org>
58335 * MODULES.html.sh: include `dirname $0` in PATH, to find
58338 2003-01-09 Bruno Haible <bruno@clisp.org>
58340 * modules/stdbool: Change configure.ac, Makefile.am requirements.
58341 Simplify Include requirements. Add lib/stdbool.h.in to file list.
58343 2003-01-09 Bruno Haible <bruno@clisp.org>
58345 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
58347 2003-01-09 Bruno Haible <bruno@clisp.org>
58349 * lib/stdbool.h.in: New file.
58351 2003-01-09 Bruno Haible <bruno@clisp.org>
58353 * gnulib-tool (func_all_modules): Ignore files ending in ~.
58354 * MODULES.html.sh: Likewise.
58356 2003-01-08 Jim Meyering <jim@meyering.net>
58358 * lib/full-write.c: Undefine and define-away `const' after inclusion
58359 of errno.h, not before. Suggestion from Bruno Haible.
58361 2003-01-08 Bruno Haible <bruno@clisp.org>
58363 * modules/full-read: Depend on full-write.
58365 2003-01-08 Bruno Haible <bruno@clisp.org>
58367 * lib/safe-read.c: Include specification header first, to ensure its
58369 * lib/full-write.c: Likewise.
58371 2003-01-07 Jim Meyering <jim@meyering.net>
58373 * lib/full-write.c: Rework so that it may serve to define full_read,
58375 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
58377 2003-01-07 Bruno Haible <bruno@clisp.org>
58379 * lib/strtoimax.c: Include <stdint.h> as an alternative to
58381 * lib/xstrtol.h: Likewise.
58382 * lib/xstrtoimax.c: Likewise.
58383 * lib/xstrtoumax.c: Likewise.
58384 * lib/human.h: Likewise.
58386 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
58387 on systems that have <inttypes.h> but not <stdint.h>.
58389 2003-01-07 Bruno Haible <bruno@clisp.org>
58391 * MODULES.html.sh: Add copyright notice.
58392 (missed_files): Omit CVS directory entries.
58393 (func_module): Make it work with sed-3.02.
58394 * MODULES.txt: Remove file.
58396 2003-01-06 Jim Meyering <jim@meyering.net>
58398 * lib/version-etc.c: Update year in translatable copyright string.
58400 2003-01-03 Karl Berry <karl@gnu.org>
58402 * config/config.{guess,sub}: update from prep.
58404 2003-01-02 Karl Berry <karl@gnu.org>
58406 * doc/COPYING.DOC: belatedly updated to 1.2.
58408 2003-01-01 Karl Berry <karl@gnu.org>
58410 * gnulib-tool (func_verify_module): report module name $module in
58411 error message, not $1.
58412 * gnulib-tool (create-testdir): don't complain if destdir couldn't
58413 be created, only if it doesn't exist.
58414 * gnulib-tool (last_checkin_date): don't expand the $Date here.
58416 2002-12-31 Paul Eggert <eggert@twinsun.com>
58418 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
58420 2002-12-31 Paul Eggert <eggert@twinsun.com>
58422 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
58423 memcmp if strcoll doesn't work.
58425 2002-12-31 Bruno Haible <bruno@clisp.org>
58427 * lib/utime.c (utime_null): No need to call ftruncate if the file was
58430 2002-12-31 Bruno Haible <bruno@clisp.org>
58432 * lib/memcoll.c (STRCOLL): New macro.
58435 2002-12-31 Bruno Haible <bruno@clisp.org>
58437 * lib/localcharset.h: New file.
58438 * lib/localcharset.c: Include it.
58439 * lib/unicodeio.c: Likewise.
58441 2002-12-31 Bruno Haible <bruno@clisp.org>
58443 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
58444 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
58446 2002-12-31 Bruno Haible <bruno@clisp.org>
58448 * lib/getline.h: Include <stddef.h>, for size_t.
58450 * lib/unicodeio.h: Include <stddef.h>, for size_t.
58451 * lib/unicodeio.c: Don't include <stddef.h>.
58453 2002-12-31 Bruno Haible <bruno@clisp.org>
58455 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
58458 2002-12-24 Karl Berry <karl@gnu.org>
58460 * config/config.guess: update from prep.
58462 2002-12-24 Bruno Haible <bruno@clisp.org>
58464 General infrasructure.
58465 * m4/README: Rewritten.
58466 * m4/onceonly.m4: New file.
58467 * m4/onceonly_2_57.m4: New file.
58470 * m4/atexit.m4: New file.
58473 * m4/strtod.m4: New file.
58476 * m4/strtol.m4: New file.
58479 * m4/strtoul.m4: New file.
58482 * m4/memchr.m4: New file.
58485 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
58486 (jm_FUNC_MEMCMP): Invoke it.
58489 * m4/memcpy.m4: New file.
58492 * m4/memmove.m4: New file.
58495 * m4/memset.m4: New file.
58498 * m4/strcspn.m4: New file.
58501 * m4/strpbrk.m4: New file.
58504 * m4/strstr.m4: New file.
58507 * m4/strerror.m4: New file.
58510 * m4/mktime.m4: Renamed from jm-mktime.m4.
58511 (gl_PREREQ_MKTIME): New macro.
58512 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
58515 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
58516 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
58517 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
58520 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
58521 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
58522 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
58525 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
58526 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
58527 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
58529 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
58532 * m4/xalloc.m4: New file.
58535 * m4/alloca.m4: New file.
58538 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
58539 (jm_FUNC_PUTENV): Invoke it.
58542 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
58543 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
58544 when invoked twice.
58545 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
58549 * m4/memrchr.m4: New file.
58552 * m4/stpcpy.m4: New file.
58555 * m4/strcase.m4: New file.
58558 * m4/strdup.m4: New file.
58561 * m4/strnlen.m4: New file.
58564 * m4/strndup.m4: New file.
58567 * m4/xstrtod.m4: New file.
58570 * m4/xstrtol.m4: New file.
58573 * m4/getdate.m4: New file.
58575 Module unlocked-io.
58576 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
58577 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
58578 * m4/jm-glibc-io.m4n: Remove file.
58580 Module long-options.
58581 * m4/long-options.m4: New file.
58584 * m4/md5.m4: New file.
58587 * m4/sha.m4: New file.
58590 * m4/getstr.m4: New file.
58593 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
58594 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
58595 <sys/types.h>, for size_t. Use the function name gnu_getline, not
58596 simply getline. Infoke gl_PREREQ_GETLINE.
58599 * m4/obstack.m4: New file.
58602 * m4/hash.m4: New file.
58605 * m4/readtokens.m4: New file.
58608 * m4/strverscmp.m4: New file.
58611 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
58615 * m4/strtoll.m4: New file.
58618 * m4/strtoull.m4: New file.
58621 * m4/strtoimax.m4: New file.
58624 * m4/strtoumax.m4: New file.
58627 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
58628 jm_AC_PREREQ_XSTRTOIMAX.
58629 Moved the strtol prerequisites to strtol.m4.
58630 Moved the strtoll prerequisites to strtoll.m4.
58631 Moved the strtoimax prerequisites to strtoimax.m4.
58634 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
58635 jm_AC_PREREQ_XSTRTOUMAX.
58636 Moved the strtoul prerequisites to strtoul.m4.
58637 Moved the strtoull prerequisites to strtoull.m4.
58638 Moved the strtoumax prerequisites to strtoumax.m4.
58641 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
58642 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
58645 * m4/dup2.m4: New file.
58648 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
58649 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
58652 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
58653 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
58655 Module gettimeofday.
58656 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
58657 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
58658 gl_PREREQ_GETTIMEOFDAY.
58661 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
58662 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
58665 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
58666 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
58667 jm_AC_TYPE_UINTMAX_T.
58668 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
58671 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
58672 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
58675 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
58676 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
58679 * m4/timespec.m4 (gl_TIMESPEC): New macro.
58680 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
58681 * m4/st_mtim.m4: Indentation.
58684 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
58685 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
58686 gl_PREREQ_NANOSLEEP.
58689 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
58690 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
58691 (gl_REGEX): New macro.
58694 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
58695 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
58698 * m4/rmdir.m4: New file.
58701 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
58702 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
58703 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
58706 * m4/dirname.m4: New file.
58709 * m4/getopt.m4: New file.
58711 Module unistd-safer.
58712 * m4/unistd-safer.m4: New file.
58715 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
58717 (gl_PREREQ_FNMATCH_EXTRA): New macro.
58718 (gl_FUNC_FNMATCH_POSIX): New macro.
58719 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
58720 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
58724 * m4/exclude.m4: New file.
58727 * m4/human.m4: New file.
58733 * m4/backupfile.m4: New file.
58734 * m4/d-ino.m4: Indentation.
58737 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
58738 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
58739 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
58742 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
58746 * m4/euidaccess.m4: New file.
58749 * m4/file-type.m4: New file.
58752 * m4/fileblocks.m4: New file.
58755 * m4/filemode.m4: New file.
58758 * m4/isdir.m4: New file.
58761 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
58762 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
58765 * m4/makepath.m4: New file.
58768 * m4/modechange.m4: New file.
58771 * m4/mountlist.m4: New file.
58772 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
58775 Module path-concat.
58776 * m4/path-concat.m4: New file.
58779 * m4/pathmax.m4: New file.
58782 * m4/same.m4: New file.
58785 * m4/save-cwd.m4: New file.
58788 * m4/savedir.m4: New file.
58791 * m4/xgetcwd.m4: New file.
58792 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
58795 * m4/xreadlink.m4: New file.
58798 * m4/safe-read.m4: New file.
58801 * m4/safe-write.m4: New file.
58804 * m4/closeout.m4: New file.
58806 Module stdio-safer.
58807 * m4/stdio-safer.m4: New file.
58810 * m4/getpass.m4: New file.
58813 * m4/getugroups.m4: New file.
58815 Module group-member.
58816 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
58817 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
58820 * m4/idcache.m4: New file.
58823 * m4/userspec.m4: New file.
58826 * m4/clock_time.m4: New file.
58827 * m4/gettime.m4: New file.
58830 * m4/settime.m4: New file.
58833 * m4/posixtm.m4: New file.
58835 Module gethostname.
58836 * m4/gethostname.m4: New file.
58839 * m4/canon-host.m4: New file.
58842 * m4/codeset.m4: New file, from gettext-0.11.5.
58843 * m4/gettext.m4: New file, from gettext-0.11.5.
58844 * m4/glibc21.m4: New file, from gettext-0.11.5.
58845 * m4/iconv.m4: New file, from gettext-0.11.5.
58846 * m4/intdiv0.m4: New file, from gettext-0.11.5.
58847 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
58848 * m4/inttypes.m4: New file, from gettext-0.11.5.
58849 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
58850 * m4/isc-posix.m4: New file, from gettext-0.11.5.
58851 * m4/lcmessage.m4: New file, from gettext-0.11.5.
58852 * m4/lib-ld.m4: New file, from gettext-0.11.5.
58853 * m4/lib-link.m4: New file, from gettext-0.11.5.
58854 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
58855 * m4/progtest.m4: New file, from gettext-0.11.5.
58856 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
58857 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
58858 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
58860 Module localcharset.
58861 * m4/localcharset.m4: New file.
58863 Module hard-locale.
58864 * m4/hard-locale.m4: New file.
58867 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
58869 * m4/mbrtowc.m4: Add comment.
58872 * m4/memcasecmp.m4: New file.
58875 * m4/memcoll.m4: New file.
58878 * m4/unicodeio.m4: New file.
58881 * m4/rpmatch.m4: New file.
58884 * m4/yesno.m4: New file.
58887 * m4/exitfail.m4: New file.
58890 * m4/c-stack.m4 (gl_C_STACK): New macro.
58891 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
58894 * m4/error.m4 (gl_ERROR): New macro.
58895 (jm_PREREQ_ERROR): Use onceonly macros.
58898 * m4/fatal.m4: New file.
58901 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
58902 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
58904 Module getpagesize.
58905 * m4/getpagesize.m4: New file.
58907 Module getusershell.
58908 * m4/getusershell.m4: New file.
58911 * m4/physmem.m4: New file.
58914 * m4/posixver.m4: New file.
58917 * m4/quotearg.m4: New file.
58920 * m4/quote.m4: New file.
58923 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
58926 * m4/sig2str.m4: New file.
58929 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
58931 * m4/intmax_t.m4: New file.
58932 * m4/d-type.m4: Indentation.
58933 * m4/jm-macros.m4: Update.
58934 * m4/prereq.m4 (jm_PREREQ): Update.
58935 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
58936 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
58937 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
58938 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
58939 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
58940 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
58941 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
58942 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
58943 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
58944 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
58945 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
58946 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
58947 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
58948 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
58949 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
58950 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
58951 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
58952 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
58953 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
58955 2002-12-24 Bruno Haible <bruno@clisp.org>
58957 * MODULES.txt: Update according to m4/ changes.
58960 * config.rpath: New file, from gettext-0.11.5.
58962 * modules/*: New module descriptions.
58963 * gnulib-tool: New file.
58964 * MODULES.html.sh: New file.
58966 2002-12-21 Karl Berry <karl@gnu.org>
58968 * doc/fdl.texi: update to version 1.2.
58970 2002-12-19 Karl Berry <karl@gnu.org>
58972 * config/config.guess: update from prep.
58974 2002-12-18 Bruno Haible <bruno@clisp.org>
58976 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
58977 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
58979 2002-12-17 Bruno Haible <bruno@clisp.org>
58981 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
58982 stdlib.h, string.h.
58984 2002-12-17 Bruno Haible <bruno@clisp.org>
58986 * lib/canon-host.c (strdup): Remove unused declaration.
58988 * lib/fsusage.c: Include full_read.h.
58989 (get_fs_usage): Use full_read instead of safe_read.
58991 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
58993 2002-12-12 Karl Berry <karl@gnu.org>
58995 * config/config.guess: update from prep.
58997 2002-12-11 Bruno Haible <bruno@clisp.org>
58999 * m4/setenv.m4: New file, from gettext-0.11.5.
59001 2002-12-11 Bruno Haible <bruno@clisp.org>
59003 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
59005 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
59008 2002-12-11 Bruno Haible <bruno@clisp.org>
59010 * setenv.c (alloca): Fall back to malloc.
59011 (freea): New macro.
59012 (setenv): Use freea() to free memory allocated with alloca().
59014 2002-11-13 Bruno Haible <bruno@clisp.org>
59016 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
59017 function declarations.
59018 * unsetenv.c (unsetenv): Likewise.
59020 2002-03-04 Bruno Haible <bruno@clisp.org>
59022 Portability to AIX 4.3.3.
59023 * unsetenv.c: New file, extracted from setenv.c.
59024 * setenv.c: Move the unsetenv() function to unsetenv.c.
59026 2001-12-20 Bruno Haible <bruno@clisp.org>
59028 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
59029 use malloc instead. For SunOS 4.
59031 2001-12-11 Bruno Haible <bruno@clisp.org>
59033 * setenv.c: Declare alloca.
59034 (compar_fn_t): New typedef.
59035 (KNOWN_VALUE, STORE_VALUE): Use it.
59037 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
59040 2002-12-10 Paul Eggert <eggert@twinsun.com>
59042 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
59043 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
59044 Choose values that are less likely to collide with system fnmatch
59046 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
59047 defined (e.g., a pure POSIX system).
59048 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
59049 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
59051 2002-12-06 Paul Eggert <eggert@twinsun.com>
59053 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
59054 a pain in practice to deal with generated m4 files. This change
59055 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
59057 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
59058 and jm-glibc-io.m4, as they are no longer a special case.
59059 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
59060 kludge and the auto-generation stuff. Check only whether the
59061 functions are declared, not whether they exist, since older hosts
59062 that don't declare the functions can't use the optimization anyway.
59064 2002-12-06 Jim Meyering <jim@meyering.net>
59066 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
59068 Merge in changes from libc's misc/error.c, in preparation
59069 for the merge of gnulib's changes back into libc.
59071 * lib/error.c (_): Define only if not already defined.
59072 Move definition to follow all #include directives.
59073 Include unlocked-io.h only if !_LIBC.
59074 [_LIBC]: Include <libio/libioP.h>.
59075 [USE_IN_LIBIO]: Include <libio/iolibio.h>
59076 (fflush): Tweak definition to use INTUSE.
59079 2002-12-05 Paul Eggert <eggert@twinsun.com>
59081 * lib/alloca.c [defined emacs]: Include "lisp.h".
59082 (xalloc_die) [defined emacs]: New macro.
59083 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
59084 [! defined emacs]: Include <xalloc.h>.
59085 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
59086 (pointer): Typedef to POINTER_TYPE *.
59087 (malloc): Remove decl; we now always use xmalloc.
59088 (alloca): Use old-style definition, since Emacs needs this.
59089 Check for arithmetic overflow when computing combined size.
59091 2002-12-04 Paul Eggert <eggert@twinsun.com>
59093 Do not generate unlocked-io.h automatically, since it's easier to
59094 maintain it by hand.
59096 * lib/unlocked-io.h: New file, from GNU diffutils,
59097 but with proper copyright notice and attribution.
59098 * lib/gen-uio: Remove.
59099 * lib/Makefile.am: Add copyright notice.
59100 (libfetish_a_SOURCES): Add unlocked-io.h.
59101 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
59102 (DISTCLEANFILES, io_functions): Remove macros.
59103 (EXTRA_DIST): Remove gen_uio.
59104 (unlocked-io.h): Remove rule.
59106 2002-12-04 Jim Meyering <jim@meyering.net>
59108 Reflect the fact that stat.c and lstat.c are no longer generated.
59109 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
59110 (DISTCLEANFILES): Likewise.
59111 (EXTRA_DIST): Likewise.
59112 (all_local): Don't depend on stat.c or lstat.c.
59113 (stat.c, lstat.c): Remove rules.
59114 (EXTRA_DIST): Remove xstat.in.
59116 * lib/xstat.in: Remove file. Contents moved into stat.c.
59117 * lib/stat.c: New file. Contents mostly from xstat.in.
59118 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
59119 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
59121 * lib/safe-read.c: Rework so that it may serve to define safe_write,
59123 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
59125 2002-12-03 Jim Meyering <jim@meyering.net>
59127 * lib/safe-read.c, safe-write.c: Change variable names and comments,
59128 but not semantics, to minimize the differences between these two files.
59129 (safe_read): Change comment to mention SAFE_READ_ERROR.
59131 * lib/safe-read.c (IS_EINTR): Define.
59132 (safe_read): Use IS_EINTR in place of in-function cpp directives.
59134 2002-12-02 Jim Meyering <jim@meyering.net>
59136 * lib/safe-read.c (EINTR): Define.
59137 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
59138 (INT_MAX): Provide fallback.
59139 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
59141 * lib/safe-read.h (SAFE_READ_ERROR): Define.
59143 2002-12-02 Bruno Haible <bruno@clisp.org>
59145 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
59146 Define, taken from safe-read.c.
59147 (INT_MAX): Provide fallback.
59148 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
59149 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
59151 * lib/safe-read.c (EINTR): Remove definition.
59152 (safe_read): Don't use EINTR if it is absent.
59154 2002-12-01 Jim Meyering <jim@meyering.net>
59156 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
59158 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
59160 2002-11-27 Paul Eggert <eggert@twinsun.com>
59162 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
59163 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
59164 with `if (! (value < limit)) abort ();', for readability.
59166 2002-11-26 Karl Berry <karl@gnu.org>
59168 * lib/strdup.c: copy from libc again, with jim's ok.
59169 * lib/.cppi-disable: re-add strdup.c
59171 2002-11-25 Karl Berry <karl@gnu.org>
59173 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
59174 instead of "strtol.c".
59176 2002-11-25 Karl Berry <karl@gnu.org>
59178 * config/install-sh: update from automake for variable quoting, $0 in
59181 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
59182 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
59185 2002-11-25 Jim Meyering <jim@meyering.net>
59187 * lib/mktime.c: Sync from libc, now that it has the latest fix.
59189 2002-11-24 Karl Berry <karl@gnu.org>
59191 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
59192 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
59194 2002-11-24 Jim Meyering <jim@meyering.net>
59196 Update from coreutils:
59198 * lib/mktime.c: Merge in changes from libc.
59200 Avoid a link-time failure on some Linux systems.
59201 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
59203 (__mon_yday): Declare with the STATIC attribute.
59204 (__mktime_internal): Likewise.
59205 Based on a report from Greg Schafer.
59207 2002-11-23 Jim Meyering <jim@meyering.net>
59209 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
59210 Use `unsigned', not `int', as type of index.
59212 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
59214 * lib/fsusage.c: Remove unneeded parentheses around operands of
59217 2002-11-22 Paul Eggert <eggert@twinsun.com>
59219 * lib/quotearg.h: Allow multiple inclusion by surrounding with
59220 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
59221 so that we can be included first.
59222 (PARAMS): Remove; we now assume C89 or later. All uses removed.
59223 * lib/quotearg.c: Include quotearg.h immediately after config.h.
59224 No need to include stddef.h or sys/types.h any more.
59225 Surround local include files with "", not "<>".
59226 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
59227 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
59228 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
59229 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
59230 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
59231 (ISPRINT): Remove; no longer needed now that we assume C89.
59233 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
59236 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
59237 quotearg_char): Use SIZE_MAX rather than
59238 (size_t) -1 when we are talking about "infinity".
59240 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
59242 2002-11-22 Paul Eggert <eggert@twinsun.com>
59244 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
59245 hint that one should use `if (! x) abort ();' rather than `assert
59246 (x);', and anyway it's one less thing to worry about configuring.
59247 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
59248 hash_rehash, hash_insert): Use abort rather than assert.
59250 2002-11-22 Bruno Haible <bruno@clisp.org>
59252 * lib/safe-read.h: Assume C89. Add comments.
59253 (safe_read): Change return type to size_t.
59254 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
59255 byte counts > SSIZE_MAX correctly.
59256 * lib/safe-write.h: New file.
59257 * lib/safe-write.c: New file.
59258 * lib/full-read.h: New file.
59259 * lib/full-read.c: New file.
59260 * lib/full-write.h: Assume C89. Add comments.
59261 * lib/full-write.c: Include safe-write.h.
59262 (full_write): Rewritten to use safe_write.
59263 Suggested by Jim Meyering and Paul Eggert.
59265 2002-11-21 Jim Meyering <jim@meyering.net>
59267 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
59269 Merge in changes from the coreutils.
59271 2002-09-25 Paul Eggert <eggert@twinsun.com>
59272 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
59274 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
59275 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
59276 int. Work more efficiently if X is the same width as uintmax_t.
59277 Do not compare X to -1, to avoid bogus compiler warning.
59278 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
59279 Don't assume that f_frsize and f_bsize are the same type.
59281 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
59282 warning on FreeBSD.
59284 * lib/makepath.c (make_path): Restore umask *before* creating the final
59286 (make_path): Minor reformatting.
59288 * lib/xmalloc.c: Adjust to work with new autoconf macros,
59289 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
59290 HAVE_MALLOC/HAVE_REALLOC.
59292 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
59293 dummy ones. At least on GNU/Linux systems, `auto' means something
59295 From Michael Stone.
59297 2002-11-21 Bruno Haible <bruno@clisp.org>
59299 Remove case insensitive option matching.
59300 * lib/argmatch.h (argcasematch): Remove declaration.
59301 (ARGCASEMATCH): Remove macro.
59302 (__xargmatch_internal): Remove case_sensitive argument.
59303 (XARGMATCH): Update.
59304 (XARGCASEMATCH): Remove macro.
59305 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
59306 case_sensitive argument.
59307 (argcasematch): Remove function.
59308 (__xargmatch_internal): Remove case_sensitive argument.
59309 (main): Use XARGMATCH instead of XARGCASEMATCH.
59311 * lib/xmalloc.c: Change compile-time error message. Add comment about
59312 required autoconf version.
59314 2002-11-20 Paul Eggert <eggert@twinsun.com>
59316 Merge argmatch cleanups from Bison. Assume C89.
59318 * lib/argmatch.c: Include config.h here, not in argmatch.h.
59319 Include stdlib.h, for EXIT_FAILURE.
59320 Always include <string.h>, since we assume C89.
59321 (EXIT_FAILURE): Remove pre-C89 bug workaround.
59322 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
59323 Include <stddef.h> instead, since it's all we need for size_t.
59324 (PARAMS): Remove. All uses removed.
59325 (ARRAY_CARDINALITY): Do not bother to #undef.
59326 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
59327 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
59328 Remove unnecessary parentheses.
59329 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
59330 Insert necessary parentheses.
59331 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
59332 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
59334 2002-11-19 Bruno Haible <bruno@clisp.org>
59336 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
59337 * lib/mbswidth.h: Include <stddef.h>, for size_t.
59339 * lib/mbswidth.h (PARAMS): Remove macro.
59340 (mbswidth, mbsnwidth): Use ANSI C function declarations.
59341 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
59343 * lib/gcd.h (PARAMS): Remove macro.
59344 (gcd): Use ANSI C function declarations.
59345 * lib/gcd.c (gcd): Likewise.
59347 2002-11-15 Bruno Haible <bruno@clisp.org>
59349 * lib/strcspn.c: Include <stddef.h>.
59350 (strcspn): Use ANSI C function declaration. Change return type to
59352 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
59353 (strpbrk): Use NULL.
59354 * lib/strpbrk.h (PARAMS): Remove macro.
59355 (strpbrk): Use ANSI C function declaration.
59356 * lib/strstr.c: Don't include <sys/types.h>.
59357 * lib/strstr.h (PARAMS): Remove macro.
59358 (strstr): Use ANSI C function declarations.
59360 2002-11-14 Karl Berry <karl@gnu.org>
59362 * config/mkinstalldirs: `do' on separate line, instead of
59365 2002-11-06 Bruno Haible <bruno@clisp.org>
59367 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
59368 * lib/gcd.c (gcd): Likewise.
59370 2002-11-05 Bruno Haible <bruno@clisp.org>
59372 * lib/gcd.h: New file, from gettext-0.11.5.
59373 * lib/gcd.c: New file, from gettext-0.11.5.
59375 2002-11-05 Bruno Haible <bruno@clisp.org>
59377 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59378 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59379 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59380 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59382 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
59384 * lib/makepath.c: Include gettext.h instead of <locale.h> and
59387 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
59388 * lib/human.c: Include gettext.h instead of <libintl.h>.
59389 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
59390 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
59391 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
59392 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
59393 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
59394 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
59395 (textdomain): Remove definition.
59396 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
59398 * lib/long-options.c: Remove include of <libintl.h> and definition of
59400 * lib/same.c: Remove include of <libintl.h> and definition of _.
59402 2002-11-04 Owen Taylor <otaylor@redhat.com>
59404 * lib/config.charset: A few additions for Solaris.
59406 2002-11-04 Bruno Haible <haible@clisp.cons.org>
59408 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
59409 * lib/localcharset.c (locale_charset): Declare as extern "C".
59411 2002-11-04 Bruno Haible <haible@clisp.cons.org>
59413 * lib/config.charset: msdos in uk_UA uses CP1125.
59415 2002-11-04 Bruno Haible <bruno@clisp.org>
59417 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
59418 * lib/strcase.h: New file, from GNU gettext-0.11.5.
59419 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
59420 * lib/strstr.h: New file, from GNU gettext-0.11.5.
59421 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
59423 2002-11-04 Bruno Haible <bruno@clisp.org>
59425 * lib/localcharset.c (locale_charset): Don't return an empty string.
59427 2002-11-04 Bruno Haible <bruno@clisp.org>
59429 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
59432 2002-11-04 Bruno Haible <bruno@clisp.org>
59434 * lib/config.charset: Update for newest glibc. Add canonical names
59435 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
59437 2002-11-04 Bruno Haible <bruno@clisp.org>
59439 * lib/config.charset: Add support for NetBSD.
59441 2002-11-04 Bruno Haible <bruno@clisp.org>
59443 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
59445 2002-11-01 Bruno Haible <bruno@clisp.org>
59447 * configure.in: Add AC_CONFIG_AUX_DIR call.
59448 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
59450 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
59452 2002-09-28 Karl Berry <karl@gnu.org>
59454 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
59455 installed automake until the next release, since changes have been
59458 2002-09-25 Karl Berry <karl@gnu.org>
59460 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
59461 * lib/getopt*: copy from libc/posix.
59462 * lib/gettext.h: copy from gettext.
59463 * lib/.cppi-disable: add strdup.c, gettext.h.
59465 2002-09-25 Karl Berry <karl@gnu.org>
59467 * config/srclist.txt: enable gettext.h check.
59468 * config/config.{guess,sub}: update from prep.
59469 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
59470 from automake 1.6.3.
59473 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
59475 * regex.c (PATFETCH): Remove the translating fetch.
59476 (PATFETCH_RAW): Rename to PATFETCH.
59477 (set_image_of_range): New fun.
59478 (SET_RANGE_TABLE_WORK_AREA): Use it.
59479 (regex_compile): Don't translate the pattern chars so eagerly.
59480 Only do it when inserting an `exactn' bytecode or when handling
59482 (mutually_exclusive_p): Avoid empty statement.
59484 2002-07-06 Jim Meyering <meyering@lucent.com>
59486 * m4/README: Don't mention Makefile.am.in.
59487 Outline how I've tested changes to .m4 files. Yep, it's a pain.
59489 2002-07-01 Jim Meyering <meyering@lucent.com>
59491 * lib/c-stack.c: Include sys/time.h.
59492 From Volker Borchert.
59494 2002-06-26 Paul Eggert <eggert@twinsun.com>
59496 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
59498 2002-06-26 Paul Eggert <eggert@twinsun.com>
59500 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
59501 New macro. Use it uniformly instead of
59502 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
59503 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
59504 reported by Vin Shelton.
59506 2002-06-22 Paul Eggert <eggert@twinsun.com>
59508 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
59509 Do not assume SA_SIGINFO behavior.
59510 Bug reported by Jim Meyering on NetBSD 1.5.2.
59512 2002-06-22 Jim Meyering <meyering@lucent.com>
59514 * m4/c-stack.m4: New file, from diffutils-2.8.2.
59515 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
59517 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
59518 now that configure.ac uses AC_GNU_SOURCE.
59519 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
59520 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
59522 Update to latest tools. Suggestions from Paul Eggert.
59523 * m4/stdbool.m4: New file, from diffutils-2.8.2.
59524 * m4/gnu-source.m4: Update from diffutils-2.8.2.
59525 * m4/fnmatch.m4: Likewise.
59526 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
59527 to AC_HEADER_STDBOOL
59529 2002-06-22 Jim Meyering <meyering@lucent.com>
59531 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
59532 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
59534 2002-06-22 Jim Meyering <meyering@lucent.com>
59536 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
59538 * lib/exitfail.c, exitfail.h: Likewise.
59539 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
59541 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
59543 (EXTRA_DIST): Add fnmatch_loop.c.
59544 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
59546 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
59547 * lib/fnmatch.c: Update from diffutils-2.8.2.
59548 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
59549 * lib/fnmatch.h: Remove file.
59551 2002-06-21 Jim Meyering <meyering@lucent.com>
59553 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
59554 * m4/mbrtowc.m4: Likewise.
59556 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
59557 * m4/mbswidth.m4: Reflect name change:
59558 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
59559 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
59561 * m4/lib-link.m4: Update from gettext-0.11.2.
59562 * m4/gettext.m4: Likewise.
59564 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
59565 From Alfred M. Szmidt.
59567 2002-06-18 Paul Eggert <eggert@twinsun.com>
59569 * lib/file-type.h: Report an error if neither S_ISREG nor
59570 S_IFREG is defined, instead of using a test specific to glibc
59571 2.2. This should be safe, since POSIX requires S_ISREG and
59572 Unix Version 7 had S_IFREG. We don't need to check for
59573 <sys/types.h> since we don't use any symbols that it defines.
59575 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
59577 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
59578 $@-t, so that each temporary file name is unique and valid in the first
59579 8 characters, for operation under DOS.
59581 2002-06-15 Paul Eggert <eggert@twinsun.com>
59583 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
59585 2002-06-15 Jim Meyering <meyering@lucent.com>
59587 Work even with DJGPP 2.03, which lacks support for symlinks.
59589 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
59591 * lib/lchown.c (S_ISLNK): Likewise.
59593 2002-06-15 Jim Meyering <meyering@lucent.com>
59595 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
59596 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
59597 have been included before this file.
59599 2002-06-14 Jim Meyering <meyering@lucent.com>
59601 * lib/file-type.h: Use the version from diffutils-2.8.2.
59602 * lib/file-type.c: Likewise.
59604 2002-06-07 Jim Meyering <meyering@lucent.com>
59606 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
59607 They're needed at least for NetBSD 1.5.2.
59608 ($statxfs_includes): Include those same headers.
59609 ($statxfs_includes): Include sys/vfs.h if available.
59610 ($statxfs_includes): Likewise for sys/statvfs.h.
59611 Check for the following members in both structs statfs and statvfs:
59612 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
59614 2002-06-01 Jim Meyering <meyering@lucent.com>
59616 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
59617 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
59619 2002-05-28 Jim Meyering <meyering@lucent.com>
59621 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
59622 Reported by Volker Borchert.
59624 2002-05-27 Jim Meyering <meyering@lucent.com>
59626 Fix a problem seen only on nonconforming systems whereby ls.c's
59627 use of localtime, and then of gettimeofday would cause trouble:
59628 the localtime call used to initialize rpl_gettimeofday's save
59629 mechanism would clobber ls's current local time information so
59630 that in any long listing the first file would always be listed
59631 with date 1970-01-01. Analysis by Volker Borchert.
59633 * lib/gettimeofday.c (localtime): Undefine.
59634 (rpl_localtime): New function.
59636 2002-05-27 Jim Meyering <meyering@lucent.com>
59638 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
59641 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
59642 use the replacement function; it wouldn't resolve at link time.
59643 Reported by Volker Borchert.
59645 2002-05-22 Jim Meyering <meyering@lucent.com>
59647 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
59649 * lib/file-type.h: New file.
59650 * lib/file-type.c (file_type): New file/function. Extracted from
59653 2002-04-30 Jim Meyering <meyering@lucent.com>
59655 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
59657 2002-04-29 Paul Eggert <eggert@twinsun.com>
59659 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
59661 2002-04-29 Paul Eggert <eggert@twinsun.com>
59663 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
59664 Do not check for alloca.h (no longer used) or stdbool.h (was never
59665 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
59667 2002-04-29 Paul Eggert <eggert@twinsun.com>
59669 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
59671 2002-04-29 Jim Meyering <meyering@lucent.com>
59673 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
59674 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
59675 Use AC_FUNC_STRNLEN here instead.
59677 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
59678 With autoconf-2.53a, it's part of AC_PROG_CC.
59680 2002-04-28 Paul Eggert <eggert@twinsun.com>
59682 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
59683 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
59685 2002-04-28 Paul Eggert <eggert@twinsun.com>
59687 * lib/sig2str.h, lib/sig2str.c: New files.
59688 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
59690 2002-04-28 Paul Eggert <eggert@twinsun.com>
59692 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
59693 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
59694 of 127, since 64 is the largest conceivable number for ancient
59696 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
59698 2002-04-28 Jim Meyering <meyering@lucent.com>
59700 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
59702 2002-04-24 Jim Meyering <meyering@lucent.com>
59704 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
59705 (jm_PREREQ): Use it.
59707 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
59708 mach/mach.h fcntl.h.
59709 Check for this function: setlocale.
59711 2002-04-24 Jim Meyering <meyering@lucent.com>
59713 * lib/gettext.h: New file, from Gettext.
59714 * lib/Makefile.am (INCLUDES): Remove -I../intl.
59715 (libfetish_a_SOURCES): Add gettext.h.
59717 2002-04-16 Jim Meyering <meyering@lucent.com>
59719 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
59720 ut_pid, ut_id, ut_exit.
59722 2002-04-16 Jim Meyering <meyering@lucent.com>
59724 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
59725 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
59726 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
59728 2002-04-12 Jim Meyering <meyering@lucent.com>
59730 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
59731 now-bogus check for f_type in sys/mount.h. Instead, just test for the
59732 existence of the getmntinfo function. Needed for Darwin 5.3.
59734 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
59735 This is necessary at least on Darwin 5.3.
59737 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
59738 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
59739 strnlen.o in the library, and that makes some versions of ranlib
59742 2002-04-12 Jim Meyering <meyering@lucent.com>
59744 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
59746 2002-04-09 Jim Meyering <meyering@lucent.com>
59748 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
59749 to be more precise. Rather than saying we're checking whether the
59750 function `works', say what we're testing.
59751 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
59752 Reported by Bruno Haible.
59754 2002-03-10 Jim Meyering <meyering@lucent.com>
59756 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
59757 Suggestion from Santiago Vila.
59759 2002-03-08 Jim Meyering <meyering@lucent.com>
59761 * lib/rename.c: Mention that this wrapper is needed also on
59762 mips-dec-ultrix4.4 systems.
59764 2002-03-02 Jim Meyering <meyering@lucent.com>
59766 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
59767 not HAVE_CLOCK_SETTIME.
59769 2002-02-27 Paul Eggert <eggert@twinsun.com>
59771 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
59772 Check for clock_settime.
59774 2002-02-27 Paul Eggert <eggert@twinsun.com>
59776 * lib/nanosleep.h: Rename to....
59777 * lib/timespec.h: New name for nanosleep.h. All uses changed.
59779 * lib/gettime.c: New file.
59780 * lib/settime.c: New file.
59781 * lib/stime.c: Remove.
59783 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
59784 timespec.h. Remove nanosleep.h.
59786 2002-02-25 Paul Eggert <eggert@twinsun.com>
59788 * m4/acl.m4: New file.
59789 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
59790 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
59792 2002-02-25 Paul Eggert <eggert@twinsun.com>
59794 * lib/acl.c, lib/acl.h: New files.
59795 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
59797 2002-02-24 Jim Meyering <meyering@lucent.com>
59799 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
59800 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
59801 cause trouble. Reported by Nelson Beebe.
59803 2002-02-23 Paul Eggert <eggert@twinsun.com>
59805 * lib/path-concat.c (xpath_concat): Reorder code to pacify
59806 compilers that don't know that xalloc_die never returns.
59808 2002-02-20 Jim Meyering <meyering@lucent.com>
59810 * lib/getdate.c: Regenerate using bison-1.33.
59812 2002-02-17 Jim Meyering <meyering@lucent.com>
59814 * config/config.guess (main): Don't use `head -1'; it's no longer
59815 portable. Use `sed 1q' instead.
59817 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
59819 * m4/codeset.m4: Upgrade to gettext-0.11.
59820 * m4/gettext.m4: Upgrade to gettext-0.11.
59821 * m4/glibc21.m4: Upgrade to gettext-0.11.
59822 * m4/iconv.m4: Upgrade to gettext-0.11.
59823 * m4/isc-posix.m4: Upgrade to gettext-0.11.
59824 * m4/lcmessage.m4: Upgrade to gettext-0.11.
59825 * m4/lib-ld.m4: New file, from gettext-0.11.
59826 * m4/lib-link.m4: New file, from gettext-0.11.
59827 * m4/lib-prefix.m4: New file, from gettext-0.11.
59828 * m4/progtest.m4: Upgrade to gettext-0.11.
59830 2002-02-15 Paul Eggert <eggert@twinsun.com>
59832 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
59833 (jm_PREREQ): Use it.
59835 2002-02-15 Paul Eggert <eggert@twinsun.com>
59837 * lib/posixver.c, lib/posixver.h: New files.
59838 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
59840 2002-02-02 Paul Eggert <eggert@twinsun.com>
59841 Bruno Haible <bruno@clisp.org>
59843 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
59844 (fwrite_success_callback): New declaration.
59845 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
59846 print_unicode_char. Call failure callback instead of error.
59847 (fwrite_success_callback): New function.
59848 (exit_failure_callback): New function.
59849 (fallback_failure_callback): New function.
59850 (print_unicode_char): Call unicode_to_mb.
59852 2002-01-26 Jim Meyering <meyering@lucent.com>
59854 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
59855 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
59857 2002-01-26 Jim Meyering <meyering@lucent.com>
59859 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
59861 2002-01-22 Paul Eggert <eggert@twinsun.com>
59863 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
59865 2002-01-22 Jim Meyering <meyering@lucent.com>
59867 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
59868 Otherwise, some versions of automake would omit the rule that makes
59869 Makefile from Makefile.in.
59871 2002-01-21 Paul Eggert <eggert@twinsun.com>
59873 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
59874 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
59875 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
59876 (memcoll): Set errno to zero if there is no error.
59878 * lib/quotearg.c (quotearg_buffer_restyled):
59879 Fix bug with quoting buffers containing NUL when backslashing escapes.
59880 This bug was exposed by the other changes in this patch.
59881 (quotearg_n_options): New arg ARGSIZE.
59882 All callers changed.
59883 (quoting_options_from_style): New function.
59884 (quotearg_n_style): Use it.
59885 (quotearg_n_style_mem): New function.
59887 * lib/quotearg.h (quotearg_n_style_mem): New function.
59889 2002-01-19 Jim Meyering <meyering@lucent.com>
59891 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
59892 Remove useless quotes: DF_PROG="df".
59893 * m4/strnlen.m4: New file.
59895 2002-01-16 Paul Eggert <eggert@twinsun.com>
59897 * lib/backupfile.c (ISDIGIT): Comment fix.
59898 * lib/getdate.y (ISDIGIT): Likewise.
59899 * lib/posixtm.c (ISDIGIT, year): Likewise.
59900 * lib/strverscmp.c (ISDIGIT): Likewise.
59901 * lib/userspec.c (ISDIGIT): Likewise.
59903 2002-01-16 Jim Meyering <meyering@lucent.com>
59905 * lib/getdate.y: Add three semicolons, each just before a closing
59906 brace. Bison (as of version 1.31) no longer papers over that mistake.
59908 2002-01-05 Jim Meyering <meyering@lucent.com>
59910 * lib/version-etc.c (version_etc_copyright): Update copyright year.
59912 2001-12-19 Paul Eggert <eggert@twinsun.com>
59914 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
59915 not silently exit merely because the output buffer happens to
59916 have nothing pending.
59918 2001-12-18 Paul Eggert <eggert@twinsun.com>
59920 See the big note in ../ChangeLog.
59921 * lib/human.c (suffixes): Prefer K to k for 1024.
59922 (generate_suffix_backwards): New function.
59923 (human_readable_inexact): Use it.
59924 * lib/xstrtol.c (__xstrtol): If there is no number but there
59925 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
59926 Accept 'K' as well as 'k'.
59928 2001-12-15 Jim Meyering <meyering@lucent.com>
59930 * lib/regex.h (__restrict_arr): Update from libc.
59932 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
59933 as `remote' if the name starts with `//'. Suggested by Michael Stone.
59936 2001-12-14 Jim Meyering <meyering@lucent.com>
59938 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
59939 Suggestion from Bruno Haible.
59941 2001-12-10 Jim Meyering <meyering@lucent.com>
59943 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
59944 xrealloc, Instead, include "xalloc.h".
59945 (initbuffer): Don't cast xmalloc return value to char*.
59946 (readline): Reword comment.
59947 Don't cast xrealloc return value to char*
59948 Return NULL, not 0.
59950 2001-12-09 Jim Meyering <meyering@lucent.com>
59952 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
59953 about `signed and unsigned type in conditional expression'.
59954 * lib/posixtm.c (posix_time_parse): Likewise.
59956 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
59958 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
59959 to avoid a pedantic warning.
59961 * lib/getstr.c: Don't include assert.h.
59962 (getstr): Remove warning-evoking assertions.
59963 Return -1 if offset parameter is out of bounds.
59964 Change the type of a local from int to size_t.
59966 * lib/strftime.c (my_strftime_localtime_r): Include this function
59967 definition in the `#if ! HAVE_TM_GMTOFF' block.
59969 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
59970 Include xalloc.h instead.
59972 2001-12-02 Jim Meyering <meyering@lucent.com>
59974 * lib/tempname.c: Don't declare getenv, thus reverting the change of
59975 2001-11-18. It's no longer necessary, now that stdlib.h is always
59978 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
59979 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
59981 2001-11-30 Akim Demaille <akim@epita.fr>
59983 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
59984 before being defined.
59986 2001-11-27 Paul Eggert <eggert@twinsun.com>
59988 * lib/quotearg.h (quotearg_n, quotearg_n_style):
59989 First arg is int, not unsigned.
59990 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
59991 (SIZE_MAX, UINT_MAX): New macros.
59992 (quotearg_n_options): Abort if N is negative.
59993 Avoid overflow check on hosts where size_t is 64 bits and int
59994 is 32 bits, as overflow is impossible there.
59995 Fix off-by-one typo that caused unnecessary reallocation.
59997 2001-11-27 Jim Meyering <meyering@lucent.com>
59999 * lib/tempname.c: Merge with version from libc.
60000 * lib/regex.c: Likewise.
60002 * lib/tempname.c: Include stdlib.h unconditionally. On some old
60003 systems for which STDC_HEADERS is 0, it was not included, resulting in
60004 a warning about an integer-to-pointer conversion problem with getenv.
60005 Reported by Volker Borchert.
60007 2001-11-26 Jim Meyering <meyering@lucent.com>
60009 * lib/gtod.h: Remove file.
60010 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
60011 * lib/gettimeofday.c: Don't include gtod.h.
60012 (GTOD_init): Remove function.
60013 (rpl_gettimeofday): Do its job here instead, rather than aborting.
60014 Suggestion from Volker Borchert.
60016 2001-11-23 Jim Meyering <meyering@lucent.com>
60018 * lib/hash.h (struct hash_table): Don't define here. Merely declare
60020 * lib/hash.c (struct hash_table): Define it here instead.
60022 2001-11-22 Jim Meyering <meyering@lucent.com>
60024 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
60026 2001-11-20 Jim Meyering <meyering@lucent.com>
60028 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
60029 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
60031 2001-11-19 Jim Meyering <meyering@lucent.com>
60033 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
60034 directory. Use "conftestXXXXXX" as the template.
60035 Suggestion from Paul Eggert.
60037 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
60038 immediately, so the test doesn't mistakenly hit the max-open-files
60041 2001-11-18 Paul Eggert <eggert@twinsun.com>
60043 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
60044 (TEMPORARIES): New macro.
60045 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
60046 removes an artificial limitation (e.g. HP-UX 10.20, where
60049 2001-11-18 Jim Meyering <meyering@lucent.com>
60051 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
60053 2001-11-18 Jim Meyering <meyering@lucent.com>
60055 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
60058 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
60059 files will be created before anything else.
60061 2001-11-17 Paul Eggert <eggert@twinsun.com>
60063 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
60064 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
60066 2001-11-17 Jim Meyering <meyering@lucent.com>
60068 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
60069 Prompted by a report from Bob Proulx.
60071 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
60072 Instead, require UTILS_FUNC_MKSTEMP.
60074 2001-11-17 Jim Meyering <meyering@lucent.com>
60076 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
60077 Now, that's done as part of AC_FUNC_STRTOD.
60079 2001-11-17 Jim Meyering <meyering@lucent.com>
60081 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
60082 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
60083 rather than group writable. Patch by Juan F. Codagnone.
60085 * lib/readtokens.c: Remove explicit declarations of xmalloc and
60086 xrealloc, Instead, include "xalloc.h".
60088 * lib/mountlist.c: Include unlocked-io.h after all system headers.
60089 Remove explicit declarations of xmalloc, xrealloc,
60090 and xstrdup. Instead, include "xalloc.h".
60092 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
60094 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
60096 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
60098 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
60099 Reported by Padraig Brady.
60101 * lib/mkstemp.c: #undef mkstemp.
60103 (rpl_mkstemp): Rename from mkstemp.
60106 2001-11-16 Jim Meyering <meyering@lucent.com>
60108 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
60109 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
60110 determine the amount of total physical memory, use pstat_getstatic.
60111 HPUX-11 doesn't define _SC_PHYS_PAGES.
60112 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
60113 If sysconf couldn't be used to determine the amount of available
60114 physical memory, use both pstat_getstatic and pstat_getdynamic.
60115 Based on a patch from Bob Proulx.
60117 2001-11-10 Jim Meyering <meyering@lucent.com>
60119 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
60120 (jm_PREREQ): Use it.
60122 2001-11-09 Jim Meyering <meyering@lucent.com>
60124 * m4/jm-macros.m4: Require autoconf-2.52f.
60125 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
60126 Use these AC_-prefixed names, not the AM_-prefixed ones.
60128 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
60130 2001-11-05 Jim Meyering <meyering@lucent.com>
60132 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
60134 2001-11-04 Jim Meyering <meyering@lucent.com>
60136 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
60139 2001-11-03 Jim Meyering <meyering@lucent.com>
60141 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
60144 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
60145 know the name of the variable in the macro definition.
60147 2001-11-03 Jim Meyering <meyering@lucent.com>
60149 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
60150 in argmatch_to_argument call.
60152 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
60155 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
60156 e.g., a fault due to an attempt to free a NULL pointer.
60158 2001-11-01 Jim Meyering <meyering@lucent.com>
60160 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
60161 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
60163 2001-11-01 Jim Meyering <meyering@lucent.com>
60165 * lib/dirfd.c, lib/dirfd.h: New files.
60166 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
60168 * lib/hash.c (hash_print) [TESTING]: Clean up.
60170 2001-10-22 Paul Eggert <eggert@twinsun.com>
60172 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
60173 to avoid a warning if -Wall.
60175 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
60178 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
60179 (per RMS's instructions, this is now the canonical source)
60180 * lgpl/, gpl/: New directories.
60182 2001-10-21 Paul Eggert <eggert@twinsun.com>
60184 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
60186 2001-10-21 Jim Meyering <meyering@lucent.com>
60188 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
60189 this code would end up calling gettext even in packages built
60190 with --disable-nls.
60191 * lib/getopt.c (_): Likewise.
60192 * lib/regex.c (_): Likewise.
60194 2001-10-20 Paul Eggert <eggert@twinsun.com>
60196 * m4/error.m4 (jm_PREREQ_ERROR):
60197 Do not invoke AC_CHECK_FUNCS with strerror_r, as
60198 AC_FUNC_STRERROR_R does that.
60199 Check for strerror declaration.
60201 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
60202 are supposed to have them these days.
60203 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
60204 Merge changes from latest Autoconf CVS.
60205 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
60206 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
60207 POSIX decided to standardize on the int flavor of strerror_r.
60209 2001-10-20 Paul Eggert <eggert@twinsun.com>
60211 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
60212 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
60213 Use strerror_r that is only a macro, even if it is not a function.
60214 (strerror): Check for HAVE_DECL_STRERROR before declaring.
60215 (private_strerror): Use prototypes, not old-style function definition.
60216 (print_errno_message): New function.
60217 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
60218 char*-flavored one.
60219 (error_tail, error, error_at_line): Use it.
60221 2001-10-11 Jim Meyering <meyering@lucent.com>
60223 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
60224 and quote_n (1, ... to avoid clobbering a buffer.
60226 2001-10-05 Jim Meyering <meyering@lucent.com>
60228 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
60230 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
60231 * lib/hash-pjw.h: New file.
60233 2001-09-30 Jim Meyering <meyering@lucent.com>
60235 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
60236 `struct fsstat' has the `f_fstypename' member.
60237 Use that to define FS_TYPE, which is now used to make
60238 the getfsstat link test tighter.
60240 2001-09-30 Jim Meyering <meyering@lucent.com>
60242 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
60243 Include <sys/ucred.h>, for Apple Darwin.
60244 Include sys/mount.h and sys/fs_types.h only if available.
60246 (read_filesystem_list): Use FS_TYPE.
60248 2001-09-29 Paul Eggert <eggert@twinsun.com>
60250 * lib/exclude.c (excluded_filename): 0 -> false, since it's
60253 2001-09-29 Jim Meyering <meyering@lucent.com>
60255 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
60256 [one-argument getmntent function]): Include stdio.h before mntent.h.
60257 SunOS 4.1.x needs it for the declaration of `FILE'.
60258 Patch by Volker Borchert.
60260 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
60261 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
60262 sys/fs_types.h, and make the link-test for getfsstat guard #include
60263 directives with appropriate #if HAVE_*_H tests so that we can
60264 detect getfsstat on Apple Darwin1.3.7 systems.
60265 Reported by Nelson Beebe.
60266 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
60268 2001-09-28 Paul Eggert <eggert@twinsun.com>
60270 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
60271 #defines strtoimax. Also treat the other strto* functions
60274 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
60275 Check for strtoul and strtoumax,
60276 as those declarations are made even in the signed case.
60277 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
60278 Likewise, for strtol and strtoimax.
60280 2001-09-28 Paul Eggert <eggert@twinsun.com>
60282 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
60283 #defines strtoimax. Also treat the other strto* functions
60286 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
60287 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
60288 (strtoimax, strtoumax): Do not declare if already defined as a macro.
60290 2001-09-26 Jim Meyering <meyering@lucent.com>
60292 Most macros in unlocked-io.h had the wrong number of arguments.
60293 * lib/gen-uio: New script.
60294 (USE_UNLOCKED_IO): Define to 1 if not already defined.
60295 * lib/unlocked-io.hin: Remove file.
60296 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
60297 rather than trying to embed it here.
60298 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
60299 Reported by Padraig Brady.
60301 2001-09-25 Volker Borchert <bt@teknon.de>
60303 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
60306 2001-09-24 Jim Meyering <meyering@lucent.com>
60308 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
60310 2001-09-23 Jim Meyering <meyering@lucent.com>
60312 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
60313 instead of the mere test for existence of mntent.h. The latter
60314 would get a false-positive on AIX 3.4 systems.
60315 In the outer getmntent if-block, don't die if neither of the getmntent
60316 tests succeeds. Instead, just fall through and continue with the
60319 2001-09-23 Jim Meyering <meyering@lucent.com>
60321 * lib/mountlist.c: Remove useless parentheses in #if directives.
60322 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
60323 the deprecated MOUNTED symbol is no longer defined in mntent.h.
60325 2001-09-22 Jim Meyering <meyering@lucent.com>
60327 * m4/gettext.m4: New file. From gettext.
60328 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
60329 * m4/progtest.m4: Likewise
60330 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
60331 * m4/glibc21.m4: Likewise.
60333 * m4/libintl.m4: Remove. No longer used.
60335 2001-09-22 Jim Meyering <meyering@lucent.com>
60337 * lib/localcharset.c: Update from latest gettext.
60338 * lib/config.charset: Likewise.
60340 2001-09-20 Jim Meyering <meyering@lucent.com>
60342 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
60344 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
60347 2001-09-20 Jim Meyering <meyering@lucent.com>
60349 * lib/xstrtol.c (strtoimax): Guard declaration with
60350 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
60351 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
60352 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
60353 (strtoumax): Likewise, for completeness (it wasn't necessary).
60355 2001-09-17 Paul Eggert <eggert@twinsun.com>
60357 * lib/strtoimax.c (HAVE_LONG_LONG):
60358 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
60359 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
60360 to work around bug in IBM C compiler.
60362 2001-09-17 Jim Meyering <meyering@lucent.com>
60364 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
60365 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
60366 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
60367 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
60368 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
60369 whenever the right hand side need not be expanded by the shell.
60371 2001-09-16 Paul Eggert <eggert@twinsun.com>
60373 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
60374 library. It's not correct, as some older glibcs are buggy.
60375 fnmatch wasn't fixed until glibc 2.2.
60377 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
60378 special shell magic here.
60380 2001-09-16 Jim Meyering <meyering@lucent.com>
60382 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
60383 * m4/jm-macros.m4: Require it.
60385 2001-09-16 Jim Meyering <meyering@lucent.com>
60387 * lib/mkdir.c: New file.
60389 2001-09-15 Jim Meyering <meyering@lucent.com>
60391 * m4/jm-macros.m4: Check for help2man.
60393 2001-09-11 Jim Meyering <meyering@lucent.com>
60395 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
60396 The body, by Paul Eggert, was moved here from configure.in.
60397 * m4/jm-macros.m4: Require UTILS_HOST_OS.
60399 2001-09-04 Paul Eggert <eggert@twinsun.com>
60401 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
60402 (jm_PREREQ): Use it.
60404 2001-09-04 Paul Eggert <eggert@twinsun.com>
60406 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
60407 Use ssize_t, not int, to store result of readlink.
60408 Check for ssize_t overflow as well as size_t overflow,
60409 as POSIX says the result of readlink is implementation-defined
60410 when ssize_t overflows.
60411 Remove unnecessary cast to char*.
60412 Use free+malloc instead of realloc, as the storage doesn't need
60413 to be preserved and it's clearer and can be more efficient that way.
60414 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
60415 * lib/xreadlink.h (xreadlink): Update prototype.
60417 2001-09-04 Paul Eggert <eggert@twinsun.com>
60419 * lib/xgetcwd.c: Revert some of the previous change; intead,
60420 fix the HAVE_GETCWD_NULL code to behave more like the
60421 !HAVE_GETCWD_NULL code used to.
60423 Include "xalloc.h".
60424 (xgetcwd): Do not return NULL when memory is exhausted; instead,
60427 2001-09-03 Paul Eggert <eggert@twinsun.com>
60429 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
60430 sys/param.h, as pathmax.h includes them.
60432 2001-09-03 Paul Eggert <eggert@twinsun.com>
60434 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
60435 (jm_PREREQ_XGETCWD): New macro.
60437 * m4/getcwd.m4: New file.
60439 2001-09-03 Paul Eggert <eggert@twinsun.com>
60441 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
60442 like the HAVE_GETCWD_NULL code.
60443 Include pathmax.h if not HAVE_GETCWD.
60444 Do not include xalloc.h.
60445 (INITIAL_BUFFER_SIZE): New symbol.
60446 Do not use xmalloc / xrealloc, since the caller is responsible for
60447 handling errors. Preserve errno around `free' during failure.
60448 Do not overrun buffer when using getwd.
60450 2001-09-03 Paul Eggert <eggert@twinsun.com>
60452 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
60453 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
60456 2001-09-03 Paul Eggert <eggert@twinsun.com>
60458 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
60459 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
60460 spotted by Jim Meyering.
60462 2001-09-03 Jim Meyering <meyering@lucent.com>
60464 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
60467 2001-09-02 Jim Meyering <meyering@lucent.com>
60469 * lib/error.c: Update from GNU libc.
60471 2001-09-01 Jim Meyering <meyering@lucent.com>
60473 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
60476 2001-09-01 Jim Meyering <meyering@lucent.com>
60478 * lib/xreadlink.c: New file.
60479 * lib/xreadlink.h: New file.
60480 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
60483 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
60484 doesn't conflict with sparc Solaris 7's definition in
60485 /usr/include/sys/int_types.h.
60487 * lib/exclude.c: Use `""', not `<>' to #include non-system header
60489 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
60490 and strncasecmp as r-values. Unixware didn't have declarations.
60492 2001-08-31 Paul Eggert <eggert@twinsun.com>
60494 * lib/xstrtol.h: Add copyright notice.
60495 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
60496 LONGINT_INVALID_SUFFIX_CHAR.
60498 2001-08-31 Paul Eggert <eggert@twinsun.com>
60500 * lib/xstrtol.c (strtoimax): New decl.
60502 2001-08-31 Paul Eggert <eggert@twinsun.com>
60504 * lib/xgetcwd.c: Don't include pathmax.h.
60505 Include stdlib.h and unistd.h if available.
60507 (xmalloc, xstrdup, free): Remove decls.
60508 (xgetcwd): Don't assume sizes fit in unsigned.
60509 Check for overflow when computing sizes.
60510 Simplify reallocation code.
60512 2001-08-31 Paul Eggert <eggert@twinsun.com>
60514 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
60515 a directory's st_size can have an arbitrary value, so the old
60516 usage could waste an arbitrary amount of memory. All uses
60518 * lib/savedir.h: Update prototype.
60520 2001-08-31 Paul Eggert <eggert@twinsun.com>
60522 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
60524 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
60527 Also, make the following further changes to make this file's
60528 configuration more similar to that of strtol.c:
60529 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
60530 (strtoumax, uintmax_t, strtoull, strtol): Remove.
60531 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
60532 (strtoimax): Renamed from strtoumax. All uses of unsigned values
60533 changed to signed values.
60535 And make the following changes as well:
60536 Fix copyright notice, as 1999 was missing.
60537 (verify): New macro.
60538 (strtoimax): Check sizes at compile-time, not run-time.
60539 Prefer strtol to strtoll if both work.
60540 (main): Remove; it was not that useful and was a pain to maintain.
60542 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
60544 2001-08-31 Jim Meyering <meyering@lucent.com>
60546 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
60547 Use an initial, malloc'd, buffer of length 128 rather than
60548 a statically allocated one of length 1024.
60550 2001-08-30 Paul Eggert <eggert@twinsun.com>
60552 Simplify code, partly by assuming autoconf 2.52 semantics.
60554 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
60556 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
60557 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
60559 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
60560 Move AC_REQUIRE to next-to-top level, to avoid confusion.
60561 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
60562 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
60563 jm_AC_HEADER_INTTYPES_H.
60564 * m4/jm-macros.m4 (jm_MACROS): Likewise.
60566 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
60568 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
60569 Quote first arg of AC_DEFUN.
60570 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
60571 since they are needed to parse the include file even if we need
60572 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
60573 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
60574 but with opposite signedness.
60576 2001-08-30 Paul Eggert <eggert@twinsun.com>
60578 Merge 'exclude' changes from tar 1.13.22.
60579 This fixes one or two unlikely storage allocation overflow bugs,
60580 but doesn't change user-visible behavior otherwise.
60582 2001-08-30 Paul Eggert <eggert@twinsun.com>
60584 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
60585 (jm_PREREQ_EXCLUDE): New macro.
60587 2001-08-30 Paul Eggert <eggert@twinsun.com>
60589 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
60592 2001-08-30 Paul Eggert <eggert@twinsun.com>
60594 * lib/hash.c: Remove '2001' from copyright notice.
60596 2001-08-30 Paul Eggert <eggert@twinsun.com>
60598 * lib/full-write.h: New file.
60599 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
60600 * lib/full-write.c: Correct credits, as cccp.c no longer
60601 exists and anyway it was so heavily changed from the old cccp
60602 code as to be unrecognizable. Include full-write.h.
60603 (full_write) Return size_t, with short writes meaning failure.
60604 All callers changed. This fixes a bug with large buffers
60606 * lib/utime.c: Include full-write.h.
60608 2001-08-30 Paul Eggert <eggert@twinsun.com>
60610 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
60611 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
60612 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
60613 Include if available.
60614 (<xalloc.h>): Include
60615 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
60616 (verify): New macro. Use it to verify that EXCLUDE macros do not
60617 collide with FNM macros.
60618 (struct patopts): New struct.
60619 (struct exclude): Use it, as exclude patterns now come with options.
60620 (new_exclude): Support above changes.
60621 (new_exclude, add_exclude_file):
60622 Initial size must now be a power of two to simplify overflow checking.
60623 (free_exclude, fnmatch_no_wildcards): New function.
60624 (excluded_filename): No longer requires options arg, as the options
60625 are determined by add_exclude. Now returns bool, not int.
60626 (excluded_filename, add_exclude):
60627 Add support for the fancy new exclusion options.
60628 (add_exclude, add_exclude_file): Now takes int options arg.
60629 Check for arithmetic overflow when computing sizes.
60630 (add_exclude_file): xrealloc might modify errno, so don't
60631 realloc until after errno might be used.
60633 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
60635 (free_exclude): New decl.
60636 (add_exclude, add_exclude_file): Now takes int options arg.
60637 (excluded_filename): No longer requires options arg, as the options
60638 are determined by add_exclude. Now returns bool, not int.
60640 2001-08-30 Paul Eggert <eggert@twinsun.com>
60642 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
60644 2001-08-27 Jim Meyering <meyering@lucent.com>
60646 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
60648 * lib/version-etc.c (N_): Remove definition.
60649 Revert most of last change.
60650 Instead, simply don't mark the `Copyright...' string for translation.
60651 Based on advice from Paul Eggert.
60653 * lib/strtoxmax.c: Tweak comment.
60655 2001-08-26 Jim Meyering <meyering@lucent.com>
60657 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
60659 * m4/xstrtoimax.m4: New file.
60660 * m4/xstrtoumax.m4: Add comments explaining why we
60661 AC_REPLACE_FUNCS(strtol).
60663 2001-08-26 Jim Meyering <meyering@lucent.com>
60665 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
60666 of copyright with `%s' so translators don't get an untranslated
60668 (COPYRIGHT_YEAR): Define.
60669 (version_etc): Use fprintf rather than fputs.
60670 Suggestion from Ulrich Drepper.
60672 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
60674 * lib/strtoll.c: New file, from GNU libc.
60675 * lib/xstrtoimax.c: New file.
60677 * lib/xstrtol.h: Add xstrtoimax.
60678 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
60679 * lib/strtoimax.c: New file. Likewise, but first define
60682 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
60684 * lib/strtoxmax.c: ... then renamed to this.
60686 2001-08-18 Paul Eggert <eggert@twinsun.com>
60688 * m4/inttypes.m4: Add AC_PREREQ(2.13).
60689 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
60690 (jm_AC_TYPE_INTMAX_T): New macro.
60691 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
60693 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
60695 * m4/longlong.m4: Renamed from ulonglong.m4.
60696 * m4/inttypes.m4: Renamed from inttypes_h.m4.
60697 * m4/uintmax_t.m4: Removed.
60699 2001-08-13 Paul Eggert <eggert@twinsun.com>
60701 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
60702 Port to Solaris 8, where 'sed' requires a space after the 'r'
60703 command, and where sh dislikes "$/". Clean up the spacing a bit.
60704 Redirect output to $tmp just once.
60706 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
60708 * lib/addext.c (<errno.h>): Include.
60709 (errno): Declare if not defined.
60710 (addext): Work correctly when pathconf returns -1 and leaves
60711 errno alone because there is no limit. Also, work even if
60712 pathconf returns a value greater than SIZE_MAX.
60714 2001-08-12 Jim Meyering <meyering@lucent.com>
60716 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
60717 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
60718 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
60719 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
60720 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
60721 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
60722 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
60723 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
60724 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
60725 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
60726 utime.m4, utimes.m4, xstrtoumax.m4:
60727 Quote the first argument in each use of AC_DEFUN.
60729 2001-08-12 Jim Meyering <meyering@lucent.com>
60731 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
60732 Simply `return getcwd (NULL, 0);'.
60733 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
60734 Use 1300 as initial value for length, not PATH_MAX.
60736 * lib/pathmax.h: Clean up cpp syntax.
60738 2001-08-12 Jim Meyering <meyering@lucent.com>
60740 * lib/gettimeofday.c: New file.
60741 * lib/gtod.h: New file.
60742 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
60744 2001-08-05 Jim Meyering <meyering@lucent.com>
60746 * m4/jm-macros.m4: Require autoconf-2.52.
60748 2001-08-04 Jim Meyering <meyering@lucent.com>
60750 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
60751 stmt, to get in sync with glibc.
60753 2001-08-03 Paul Eggert <eggert@twinsun.com>
60755 The following changes are from gettext 0.10.39 as maintained by
60758 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
60759 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
60760 with inverted sense. All uses changed.
60762 * lib/mbswidth.c: Don't include <limits.h>.
60763 Include <stdlib.h> and <string.h> unconditionally.
60764 (iswcntrl, mbsinit, ISCNTRL): New macros.
60765 (mbsnwidth): Use K&R style function declarations.
60766 Don't bother checking for MB_LEN_MAX == 1, since the compiler
60767 can optimize it when MB_CUR_MAX == 1.
60768 The width of control characters is zero, not 1.
60770 2001-08-03 Paul Eggert <eggert@twinsun.com>
60772 The following changes are from gettext 0.10.39 as maintained by
60773 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
60775 * m4/codeset.m4: Upgrade to serial AM1.
60776 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
60777 all uses changed. Quote first arg of AC_DEFUN.
60778 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
60780 * m4/iconv.m4: Upgrade to serial AM2.
60781 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
60782 Add --with-libconv-prefix.
60783 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
60784 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
60785 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
60786 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
60787 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
60789 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
60790 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
60791 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
60792 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
60793 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
60794 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
60795 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
60796 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
60797 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
60799 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
60802 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
60803 not the default value.
60805 2001-06-25 Bruno Haible <haible@clisp.cons.org>
60806 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
60807 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
60808 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
60809 Also check for iswcntrl, used for wcwidth fallback.
60810 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
60813 2001-08-03 Jim Meyering <meyering@lucent.com>
60815 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
60816 as it was in the original. Reported by Paul Eggert.
60818 2001-07-16 Jim Meyering <meyering@lucent.com>
60820 * m4/gettimeofday.m4: New file.
60821 Prompted by a report from Bernhard Baehr.
60823 2001-07-15 Jim Meyering <meyering@lucent.com>
60825 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
60826 stuff. Now it's in ../Makefile.cfg.
60828 2001-07-15 Jim Meyering <meyering@lucent.com>
60830 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
60831 (BUILT_SOURCES): Add unlocked-io.h.
60832 (io_functions): Define.
60833 (unlocked-io.h): New rule.
60834 (DISTCLEANFILES): Add unlocked-io.h.
60835 (all-local): Depend on unlocked-io.h, to ensure it is created.
60837 * lib/unlocked-io.hin: New file
60839 * lib/regex.c: Update from glibc.
60841 2001-07-05 Jim Meyering <meyering@lucent.com>
60843 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
60845 (libfetish_a_SOURCES): Put all .h files here instead.
60846 Remove a thus-exposed (better checks in automake) duplicate and
60847 two unnecessary .h files.
60849 2001-07-04 Jim Meyering <meyering@lucent.com>
60851 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
60852 that generates jm-glibc-io.m4 so that it doesn't trigger any make
60855 2001-07-02 Jim Meyering <meyering@lucent.com>
60857 The following changes were prompted by suggestions from Bruno Haible.
60859 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
60861 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
60862 definition of EXTRA_DIST.
60863 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
60864 ensure that the generated file is created/updated whenever the list
60865 of $(unlocked_functions) is changed.
60866 (jm-glibc-io.m4): New rule.
60867 (unlocked-io.h): New rule -- currently unused.
60869 2001-06-24 Jim Meyering <meyering@lucent.com>
60871 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
60872 unmatched right bracket, rather than kludging it with an extra,
60873 falsely-matching quote in a comment. Patch by Akim Demaille.
60875 2001-06-11 Jim Meyering <meyering@lucent.com>
60877 * lib/regex.c: Update from GNU libc.
60879 2001-05-27 Jim Meyering <meyering@lucent.com>
60881 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
60882 Check for ut_type in struct utmp.
60884 2001-05-27 Jim Meyering <meyering@lucent.com>
60886 * lib/readutmp.h (UT_TYPE): Define.
60888 2001-05-24 Jim Meyering <meyering@lucent.com>
60890 * lib/argmatch.c: Include "quote.h".
60891 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
60892 quote function. Reported by Göran Uddeborg.
60894 2001-05-22 Jim Meyering <meyering@lucent.com>
60896 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
60897 now that we use the package-supplied version unconditionally.
60898 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
60900 2001-05-21 Jim Meyering <meyering@lucent.com>
60902 * m4/regex.m4: Change a couple backticks to single quotes to avoid
60903 shell syntax errors.
60905 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
60907 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
60909 2001-05-20 Paul Eggert <eggert@twinsun.com>
60911 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
60912 Don't bother to check library strftime, since
60913 we'll be using our own my_strftime function anyway.
60914 Define my_strftime instead of strftime.
60916 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
60918 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
60919 which is not yet declared.
60921 2001-05-15 Jim Meyering <meyering@lucent.com>
60923 * m4/regex.m4: Use proper quoting so brackets appear in the test
60925 Reported by, and with help from, Bruno Haible.
60927 2001-05-13 Jim Meyering <meyering@lucent.com>
60929 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
60932 2001-05-11 Paul Eggert <eggert@twinsun.com>
60934 dirname code cleanup. base_name now behaves more compatibly
60935 with POSIX basename when given file names that have trailing
60936 slashes, and similarly for dir_name. Add new primitives
60937 base_len and dir_len. Put the directory-name-related decls
60940 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
60941 * lib/backupfile.c (base_name): Likewise.
60942 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
60943 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
60944 * lib/makepath.c (strip_trailing_slashes): Likewise.
60945 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
60946 ISSLASH): Likewise.
60947 * lib/rename.c (strip_trailing_slashes): Likewise.
60948 * lib/same.c (base_name): Likewise.
60949 * lib/stripslash.c (ISSLASH): Likewise.
60951 * lib/addext.c: Include <dirname.h> after size_t is defined.
60952 * lib/backupfile.c: Likewise.
60954 * lib/addext.c (addext): Use base_len to trim redundant
60955 trailing slashes instead of doing it ourselves.
60956 But do not trim the last slash if it is not redundant.
60958 * lib/backupfile.c (find_backup_file_name,
60959 max_backup_version): Use base_len instead of rolling it ourselves.
60960 Handle the case of "" and (on DOS) "C:" correctly.
60962 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
60963 needed. Include <string.h>, <dirname.h>.
60964 (base_name): Allow file names ending in slashes, other than names
60965 that are all slashes. In this case, return the basename followed
60966 by the slashes. This is more general, and can be used in places
60967 where the original base_name purposely had an assertion failure.
60968 (base_len): New function.
60970 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
60971 Do not include <assert.h>; no longer needed.
60973 (memrchr): Remove decl.
60974 (dir_name_r): Remove.
60975 (dir_len): Renamed from dirlen. All callers changed.
60976 Rewrite in terms of base_name, for simplicity and consistency.
60977 (dir_name): Never return NULL. All callers changed.
60978 Do not include <stdlib.h> in test program; no longer needed.
60979 return 0; is fine for test program.
60981 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
60983 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
60985 * lib/path-concat.c (path_concat): Use base_len to compute
60986 base length, not strlen; this means we cannot rely on memcpy
60989 * lib/same.c (STREQ): Remove.
60990 (same_name): Handle the case where the basename ends in trailing '/'.
60992 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
60993 a slash was stripped. Do not strip the last slash after a
60994 file system prefix.
60996 2001-05-11 Paul Eggert <eggert@twinsun.com>
60998 * lib/Makefile.am (libfetish_a_SOURCES):
60999 Add strftime.c, since we now compile it on all hosts.
61001 * lib/strftime.c (my_strftime):
61002 Define to nstrftime if emacs, but only if my_strftime is not defined.
61003 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
61004 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
61005 Add one more extra argument: a nanoseconds value.
61008 (my_strftime function): Add %N format.
61009 (emacs_strftimeu): Renamed from emacs_strftime,
61010 with extra ut argument.
61012 2001-05-09 Paul Eggert <eggert@twinsun.com>
61014 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
61016 2001-04-21 Jim Meyering <meyering@lucent.com>
61018 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
61021 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
61023 * m4/ftruncate.m4: Check for chsize.
61024 Link with ftruncate.o unconditionally if ftruncate is missing.
61025 This was required when cross-compiling to i586-mingw32msvc.
61027 2001-04-08 Jim Meyering <meyering@lucent.com>
61029 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
61030 recomputed; that's necessary when the offset spans a DST transition.
61031 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
61033 2001-04-02 Jim Meyering <meyering@lucent.com>
61035 * lib/regex.h, regex.c: Update from GNU libc.
61037 2001-03-24 Jim Meyering <meyering@lucent.com>
61039 * m4/jm-macros.m4: Require autoconf-2.49d.
61041 2001-03-20 Bruno Haible <haible@clisp.cons.org>
61043 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
61045 2001-03-19 Paul Eggert <eggert@twinsun.com>
61047 * lib/version-etc.c (version_etc_copyright): Update to 2001.
61049 2001-03-17 Jim Meyering <meyering@lucent.com>
61051 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
61052 now that the version in autoconf is equivalent.
61053 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
61055 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
61056 Suggestion from Akim Demaille.
61058 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
61059 (jm_PREREQ_TEMPNAME): New function.
61061 2001-03-16 Paul Eggert <eggert@twinsun.com>
61063 * lib/tempname.c (uint64_t): Define to uintmax_t if
61064 not defined, and if UINT64_MAX is not defined.
61065 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
61066 Reported by John David Anglin.
61068 2001-03-15 Bruno Haible <haible@clisp.cons.org>
61070 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
61071 resolve alias if codeset is empty.
61072 * lib/config.charset (BeOS): Use wildcard syntax.
61074 2001-03-13 Jim Meyering <meyering@lucent.com>
61076 * lib/path-concat.c (path_concat)
61077 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
61078 concatenating e.g., `C:' and `foo'.
61081 2001-03-06 Bruno Haible <haible@clisp.cons.org>
61083 * lib/localcharset.c (locale_charset): Don't use
61084 setlocale(LC_CTYPE,NULL). Don't return NULL.
61085 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
61087 2001-03-06 Bruno Haible <haible@clisp.cons.org>
61089 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
61090 support for DOS/DJGPP.
61092 2001-03-01 Paul Eggert <eggert@twinsun.com>
61094 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
61095 lacks mkstemp. Compile our own tempname.c if we compile our own
61096 mkstemp.c, as mkstemp relies on tempname.
61098 2001-03-01 Jim Meyering <meyering@lucent.com>
61100 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
61101 AH_VERBATIM really does output its argument verbatim.
61103 2001-02-28 Paul Eggert <eggert@twinsun.com>
61105 * lib/Makefile.am (libfetish_a_SOURCES):
61106 Add dup-safer.c, fopen-safer.c.
61107 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
61109 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
61110 * lib/unistd-safer.h: New files.
61112 2001-02-25 Paul Eggert <eggert@twinsun.com>
61114 The mkstemp replacement is taken from glibc 2.2.2, with some
61115 portability fixes for use outside glibc, as follows:
61117 * lib/tempname.c (struct_stat64): New macro.
61118 (direxists, __gen_tempname): Use it.
61119 This avoids a portability problem with Solaris 8.
61121 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
61122 (<stddef.h>, <stdint.h>, <string.h>):
61123 Include only if STDC_HEADERS || _LIBC.
61124 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
61125 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
61126 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
61127 (__set_errno): Define this macro if <errno.h> doesn't.
61128 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
61129 Define these macros if <stdio.h> doesn't.
61130 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
61131 Define these macros if <sys/stat.h>
61132 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
61133 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
61134 __xstat64): Define if not _LIBC.
61135 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
61136 (__gen_tempname): Invoke gettimeofday only if
61137 HAVE_GETTIMEOFDAY || _LIBC;
61138 otherwise, fall back on plain "time".
61139 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
61141 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
61143 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
61145 2001-02-18 Paul Eggert <eggert@twinsun.com>
61147 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
61149 2001-02-17 Paul Eggert <eggert@twinsun.com>
61151 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
61152 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
61153 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
61154 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
61156 2001-02-17 Paul Eggert <eggert@twinsun.com>
61158 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
61159 Remove workaround macros for hosts that have mbrtowc but not
61160 mbstate_t, as we now insist on proper declarations for both
61161 before using mbrtowc.
61163 2001-02-17 Jim Meyering <meyering@lucent.com>
61165 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
61166 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
61167 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
61170 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
61171 rather than AC_CACHE_VAL.
61173 2001-02-17 Jim Meyering <meyering@lucent.com>
61175 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
61176 around included file name.
61178 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
61180 * lib/strftime.c: Update from GNU libc (the only changes were to
61183 2001-02-17 Jim Meyering <meyering@lucent.com>
61185 * lib/regex.c: Update from libc.
61187 2001-02-17 Bruno Haible <haible@clisp.cons.org>
61189 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
61192 2001-02-16 Paul Eggert <eggert@twinsun.com>
61194 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
61195 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
61196 Reported by Mark Hounschell via Paul Eggert.
61198 2001-02-07 Jim Meyering <meyering@lucent.com>
61200 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
61202 2001-02-05 Jim Meyering <meyering@lucent.com>
61204 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
61205 it includes the patch required for `large file' support with at least
61206 HP-UX's 10.20 /bin/cc.
61208 2001-02-03 Jim Meyering <meyering@lucent.com>
61210 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
61211 AS_IF, now that it works once again (mysteriously).
61212 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61214 2001-01-30 Jim Meyering <meyering@lucent.com>
61216 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
61217 * m4/chown.m4: Rename conftestchown to conftest.chown.
61218 * m4/rename.m4: s/conftestdir/conftest.d1/ and
61219 s/conftestdir2/conftest.d2/.
61220 * m4/utimes.m4: s/conftestdata/conftest.data/
61221 Inspired by Pavel Roskin's change in autoconf.
61223 2001-01-30 Bruno Haible <haible@clisp.cons.org>
61225 * lib/config.charset: Update for FreeBSD 4.2.
61227 2001-01-27 Jim Meyering <meyering@lucent.com>
61229 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
61231 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61233 2001-01-26 Jim Meyering <meyering@lucent.com>
61235 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
61236 quotearg.c includes it.
61238 2001-01-26 Jim Meyering <meyering@lucent.com>
61240 * lib/quotearg.c: Include stddef.h.
61241 * lib/quote.c: Include stddef.h.
61242 Reported by Axel Kittenberger.
61244 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
61245 line in double quotes so that it evokes a better diagnostic.
61246 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
61247 Reported by Axel Kittenberger.
61249 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
61251 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
61252 as if it was a `charset'.
61254 2001-01-21 Bruno Haible <haible@clisp.cons.org>
61256 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
61259 2001-01-21 Bruno Haible <haible@clisp.cons.org>
61261 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
61262 to avoid a warning. Add back 'const' to inptr.
61264 2001-01-20 Jim Meyering <meyering@lucent.com>
61266 Be sure that headers are checked before used in code compiled
61267 for the type checks.
61268 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
61269 In place of that, invoke jm_CHECK_ALL_TYPES.
61270 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
61271 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
61272 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
61273 The check for ssize_t was mistakenly run before the test for unistd.h.
61275 The configure-time check for stdbool.h was missing.
61276 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
61277 (jm_PREREQ_HASH): New function.
61279 2001-01-17 Jim Meyering <meyering@lucent.com>
61281 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
61282 for autoconf-2.49c.
61283 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
61285 2001-01-16 Jim Meyering <meyering@lucent.com>
61287 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
61290 2001-01-14 Jim Meyering <meyering@lucent.com>
61292 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
61293 foo and bar. Create conftestdir/ in the script, not in the C code.
61294 Remove directories in the script, not in the C code.
61295 Remove conftestdir{,2} before trying to create the directory.
61296 Make the entire configure script fail if the mkdir fails.
61298 2001-01-14 Jim Meyering <meyering@lucent.com>
61300 * lib/rename.c: New file. From Volker Borchert.
61301 Include stdlib.h, string.h or strings.h, and xalloc.h.
61302 Use strip_trailing_slashes rather than open-coding it.
61304 2001-01-03 Paul Eggert <eggert@twinsun.com>
61306 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
61308 2001-01-03 Jim Meyering <meyering@lucent.com>
61310 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
61311 of local `inptr' to avoid warning with some system declarations of
61314 2001-01-02 Volker Borchert <bt@teknon.de>
61316 * m4/rename.m4: New file.
61317 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
61319 2001-01-01 Jim Meyering <meyering@lucent.com>
61321 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
61322 even on systems with utmpx.h. It's necessary for the declaration of
61323 utmp's ut_user member. Reported by Andreas Jaeger.
61325 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
61326 available. They are required for the declarations of getgrgid and
61328 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
61329 Reported by Andreas Jaeger.
61331 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
61333 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
61334 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
61335 so `make install' also works in VPATH builds.
61337 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
61339 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
61340 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
61341 can be used in subdirectories.
61343 2000-12-29 Paul Eggert <eggert@twinsun.com>
61345 * lib/modechange.c: Do not assume that mode_t uses the
61346 traditional octal encoding. E.g. "chmod 1 FOO" should set
61347 the other-execute bit of FOO even if S_IXOTH != 1.
61349 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
61350 WOTH, XOTH, ALLM): New macros.
61351 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
61352 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
61354 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
61355 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
61357 No need to use uintmax_t; unsigned long is long enough.
61358 Don't bother to get suffix since we don't use it.
61360 2000-12-26 Jim Meyering <meyering@lucent.com>
61362 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
61363 better with autoheader.
61365 2000-12-24 Jim Meyering <meyering@lucent.com>
61367 * lib/hash.c (is_prime): Return explicit boolean values.
61368 (hash_get_first): Return NULL to appease Irix5.6's 89.
61369 Reported by Nelson Beebe.
61371 2000-12-19 Bruno Haible <haible@clisp.cons.org>
61373 * lib/localcharset.c (locale_charset): Add support for Win32.
61375 2000-12-18 Paul Eggert <eggert@twinsun.com>
61377 * lib/physmem.h, lib/physmem.c: New files.
61379 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
61380 (noinst_HEADERS): Add physmem.h.
61382 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
61383 't' for compatibility with Solaris 8 sort.
61385 2000-12-18 Bruno Haible <haible@clisp.cons.org>
61387 * lib/config.charset: Add support for BeOS.
61389 2000-12-17 Jim Meyering <meyering@lucent.com>
61391 * m4/dos.m4 (jm_AC_DOS): New file and macro.
61392 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
61394 2000-12-16 Jim Meyering <meyering@lucent.com>
61396 This bug had a serious impact on chown: `chown N:M FILE' (for integer
61397 N and M) would have treated it like `chown N:N FILE'.
61399 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
61401 2000-12-16 Jim Meyering <meyering@lucent.com>
61403 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
61404 SHELLS_FILE to a file name that's useful on djgpp systems.
61406 (ADDITIONAL_DEFAULT_SHELLS): Define.
61407 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
61408 Based mostly on a patch from Prashant TR.
61410 2000-12-16 Bruno Haible <haible@clisp.cons.org>
61412 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
61413 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
61414 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
61416 2000-12-08 Andreas Schwab <schwab@suse.de>
61418 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
61419 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
61421 2000-12-07 Jim Meyering <meyering@lucent.com>
61423 * lib/stripslash.c (ISSLASH): Define.
61424 (strip_trailing_slashes): Use ISSLASH rather than comparing against
61428 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
61429 (dir_name_r): Declare this function as static.
61430 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
61431 manifest itself on a name containing a mix of slashes and
61433 Make this function work with names starting with a DOS-style
61434 drive letter and colon prefix.
61435 (dir_name): Append `.' if necessary.
61436 Based mostly on patches from Prashant TR and Eli Zaretskii.
61438 * lib/dirname.h (dir_name_r): Remove prototype.
61440 2000-12-06 Paul Eggert <eggert@twinsun.com>
61442 * m4/off_t-format.m4: Remove this file.
61443 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
61445 2000-12-06 Jim Meyering <meyering@lucent.com>
61447 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
61448 replacement strtoull, we may well need the replacement strtoul, too.
61449 Check for declarations of strtoul and strtoull.
61450 Check for strtol. Mainly as a cue to cause automake to include
61451 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
61452 Check for limits.h -- strtol.c needs it.
61454 2000-12-05 Jim Meyering <meyering@lucent.com>
61456 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
61458 2000-12-04 Jim Meyering <meyering@lucent.com>
61460 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
61461 Also include memory.h, stdlib.h, unistd.h if appropriate.
61462 Reported by Andreas Jaeger (conflicting declaration of malloc).
61464 2000-12-02 Jim Meyering <meyering@lucent.com>
61466 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
61467 * m4/jm-macros.m4 (jm_MACROS): require it.
61469 2000-12-02 Jim Meyering <meyering@lucent.com>
61471 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
61473 2000-12-01 Paul Eggert <eggert@twinsun.com>
61475 * lib/memrchr.c: Include <config.h> before any system include file.
61477 2000-11-30 Jim Meyering <meyering@lucent.com>
61479 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
61481 2000-11-30 Jim Meyering <meyering@lucent.com>
61483 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
61485 2000-11-29 Paul Eggert <eggert@twinsun.com>
61487 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
61489 2000-11-26 Jim Meyering <meyering@lucent.com>
61491 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
61493 2000-11-22 Paul Eggert <eggert@twinsun.com>
61495 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
61496 size of (size_t) -1; it's not portable.
61498 2000-11-17 Jim Meyering <meyering@lucent.com>
61500 * lib/strstr.c: Update from GNU libc.
61502 2000-11-17 Akim Demaille <akim@epita.fr>
61504 * lib/obstack.h: Formatting changes.
61505 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
61506 prevent type checking.
61507 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
61508 cast the value to (void *): assigning a `foo *' to a `void *'
61510 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
61512 2000-11-16 Jim Meyering <meyering@lucent.com>
61514 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
61516 2000-11-11 Jim Meyering <meyering@lucent.com>
61518 * lib/error.c: Add a couple #includes, merging from GNU libc version.
61520 2000-11-10 Jim Meyering <meyering@lucent.com>
61522 * lib/obstack.h: Update from GNU libc.
61523 * lib/obstack.c: Likewise.
61525 2000-11-08 Bruno Haible <haible@clisp.cons.org>
61527 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
61529 2000-11-06 Paul Eggert <eggert@twinsun.com>
61531 * lib/getusershell.c (setusershell): Use rewind rather than
61532 fseek/fseeko, to avoid configuration hassles with fseeko.
61533 Don't bother opening SHELLS_FILE if shellstream is NULL;
61534 it's not necessary.
61536 2000-11-05 Jim Meyering <meyering@lucent.com>
61538 * lib/makepath.h (make_dir): Declare.
61539 * lib/makepath.c (make_dir): Remove `static' attribute.
61542 2000-11-04 Jim Meyering <meyering@lucent.com>
61544 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
61546 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
61548 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
61549 last one in a bucket, advance to the next bucket.
61551 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
61553 * lib/fnmatch.c: Do not comment out all the code if we are using
61554 the GNU C library, because in some cases we are replacing buggy
61555 code in the GNU C library itself.
61557 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
61559 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
61560 (regex_compile): Catch bogus \(\1\).
61562 2000-10-30 Paul Eggert <eggert@twinsun.com>
61564 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
61565 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
61566 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
61568 2000-10-30 Paul Eggert <eggert@twinsun.com>
61570 * lib/error.h, getline.h, modechange.h:
61571 Remove "2000" from Copyright line, as the file hasn't been
61572 changed this year other than in the copyright notice.
61574 * lib/xalloc.h: Add "2000" to Copyright line, as this file
61575 was changed this year.
61577 2000-10-29 Jim Meyering <meyering@lucent.com>
61579 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
61581 * m4/ls-mntd-fs.m4: Likewise
61583 2000-10-29 Jim Meyering <meyering@lucent.com>
61585 * lib/xstat.in: Fix grammar in comment.
61587 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
61589 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
61590 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
61591 doesn't define __restrict_arr.
61593 2000-10-28 Jim Meyering <meyering@lucent.com>
61595 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
61596 (jm_PREREQ_MEMCHR): New function.
61598 2000-10-28 Jim Meyering <meyering@lucent.com>
61600 * lib/memchr.c: Update from libc.
61601 Adjust for portability:
61602 [HAVE_STDLIB_H]: Include stdlib.h.
61603 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
61604 Undef __memchr, too.
61605 [!weak_alias]: Define __memchr to memchr.
61607 * lib/regex.c: Update from libc.
61608 * lib/regex.h: Likewise.
61609 * lib/getopt1.c: Likewise.
61610 * lib/memcmp.c: Likewise.
61612 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
61613 Avoid using fseek, when possible -- it's broken by design.
61614 Patch by Ulrich Drepper.
61616 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
61618 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
61619 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
61620 Giving in to popular pressure to shut up the compiler with casts.
61622 2000-10-26 Jim Meyering <meyering@lucent.com>
61624 * lib/strftime.c: Update from libc.
61626 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
61628 * regex.c: More `unsigned char' -> `re_char' changes.
61629 Also change several `int' into `re_wchar_t'.
61630 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
61631 (PUSH_FAILURE_POINTER): Don't cast any more.
61632 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
61633 We want GCC to complain, since this piece of code makes
61634 re_match non-reentrant, which *should* be fixed.
61635 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
61636 (EXTEND_BUFFER): Use RETALLOC.
61637 (SET_LIST_BIT): Don't cast.
61638 (re_wchar_t): New type.
61639 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
61640 that those two functions will always properly return.
61641 (IMMEDIATE_QUIT_CHECK): Cast to void.
61642 (analyse_first): Use recursion rather than an explicit stack.
61643 (re_compile_fastmap): Can't fail anymore.
61644 (re_search_2): Don't check re_compile_fastmap for failure.
61645 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
61646 Now also sets the new value (passed in a new argument).
61647 (re_match_2_internal): Use it.
61648 Also, use a new var `reg' of type size_t when looping through regs
61649 rather than reuse the inappropriate `mcnt'.
61651 2000-10-25 Jim Meyering <meyering@lucent.com>
61653 * lib/obstack.c: Update from libc.
61655 2000-10-24 Kenichi Handa <handa@etl.go.jp>
61657 * regex.c (regex_compile): Change the way of handling a range from
61658 a char less than 256 to a char not less than 256.
61660 2000-10-24 Andrew Innes <andrewi@gnu.org>
61662 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
61664 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
61665 so that re_search functions only quit when callers expect them to.
61667 2000-10-23 Jim Meyering <meyering@lucent.com>
61669 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
61670 wrong. That set_locale call must not have any side effects.
61673 2000-10-22 Jim Meyering <meyering@lucent.com>
61675 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
61676 [CYCLIC]: Remove now-unused definition.
61678 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
61679 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
61680 Suggestion from Ulrich Drepper.
61682 2000-10-21 Jim Meyering <meyering@lucent.com>
61684 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
61685 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
61686 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
61688 2000-10-21 Jim Meyering <meyering@lucent.com>
61690 * lib/dirname.c (memrchr): Declare if necessary.
61691 (dir_name): Remove the restriction that there be no
61692 trailing slashes. Now, this code skips past them, effectively
61694 [TEST_DIRNAME] (main): New unit tests.
61696 * lib/memrchr.c: New file from GNU libc.
61697 Undef __memrchr, too.
61698 [!weak_alias]: Define __memrchr to memrchr.
61699 Guard weak_alias use with `#ifdef weak_alias'.
61701 2000-10-21 Jim Meyering <meyering@lucent.com>
61703 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
61704 (dir_name): Use dir_name_r.
61705 * lib/dirname.h (dir_name_r): Declare it.
61707 2000-10-17 Jim Meyering <meyering@lucent.com>
61709 * lib/quote.h (PARAMS): Define and use.
61710 Reported by Akim Demaille.
61712 * lib/getopt.c: Update from libc.
61714 2000-10-16 Jim Meyering <meyering@lucent.com>
61716 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
61720 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
61722 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
61724 2000-09-25 Jim Meyering <meyering@lucent.com>
61726 * lib/md5.h (rol): Define (from GnuPG).
61728 * lib/sha.c: Give credit (GnuPG) where due.
61729 (M): Use rol rather than open-coding it.
61730 Add a FIXME comment.
61732 2000-09-21 Jim Meyering <meyering@lucent.com>
61734 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
61735 Reported by Michael Stone.
61737 2000-09-20 Jim Meyering <meyering@lucent.com>
61739 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
61740 (noinst_HEADERS): Add sha.h.
61741 Based on code from Scott G. Miller and from GnuPG.
61743 2000-09-18 Jim Meyering <meyering@lucent.com>
61745 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
61746 LIBS. Otherwise, everyone ends up linking with -lelf for some
61748 Reported by Mike Stone.
61750 2000-09-15 Jim Meyering <meyering@lucent.com>
61752 * lib/regex.c: Update from libc.
61754 2000-09-10 Jim Meyering <meyering@lucent.com>
61756 * lib/getopt.c (_getopt_internal): Update from glibc.
61758 2000-09-09 Jim Meyering <meyering@lucent.com>
61760 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
61761 think it should be used as a general replacement for isascii.
61762 * lib/fnmatch.c: Likewise.
61763 * lib/mbswidth.c: Likewise
61764 * lib/regex.c: Likewise.
61767 * lib/userspec.c: Include sys/param.h and limits.h.
61769 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
61770 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
61771 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
61772 UID, GID. Check range.
61774 2000-09-06 Jim Meyering <meyering@lucent.com>
61776 * lib/getopt.c (_getopt_internal): Update from glibc.
61778 2000-08-30 Jim Meyering <meyering@lucent.com>
61780 * lib/strftime.c: Merge in changes from GNU libc.
61782 2000-08-26 Jim Meyering <meyering@lucent.com>
61784 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
61785 * m4/fpending.m4: New file.
61787 2000-08-26 Jim Meyering <meyering@lucent.com>
61789 * lib/closeout.c: Include "__fpending.h".
61790 (close_stdout_status): Return right away if there's nothing to flush.
61792 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
61793 * lib/__fpending.c: New file.
61794 * lib/__fpending.h: New file.
61796 2000-08-20 Jim Meyering <meyering@lucent.com>
61798 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
61799 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
61800 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
61802 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
61804 Improve fileutils installation on systems where running
61805 programs (like install) can't be unlinked.
61806 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
61807 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
61809 2000-08-07 Paul Eggert <eggert@twinsun.com>
61811 Standardize on "memory exhausted" instead of "Memory exhausted"
61812 or "virtual memory exhausted".
61813 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
61814 "virtual memory exhausted".
61815 * lib/same.c (same_name): Invoke xalloc_die instead of printing
61817 * lib/userspec.c (parse_user_spec): Likewise.
61818 * lib/bumpalloc.h: comment fix
61819 * lib/same.c, userspec.c: Include xalloc.h.
61821 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
61822 not char *const and pointing to a constant array.
61823 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
61824 (xrealloc): Comment fix.
61826 * lib/userspec.c (parse_user_spec):
61827 Don't translate a message until just before returning,
61828 to avoid unnecessary translation.
61830 2000-08-07 Jim Meyering <meyering@lucent.com>
61832 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
61833 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
61834 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
61835 getgroups.c, gethostname.c, getopt.h, group-member.c,
61836 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
61837 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
61838 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
61839 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
61840 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
61841 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
61842 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
61843 yesno.c: Back out Copyright date changes for each file with no change
61844 this year. This eases coordination with other programs using the same
61845 source code modules. From Paul Eggert.
61847 2000-08-06 Paul Eggert <eggert@twinsun.com>
61849 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
61850 not char, for compatibility with glibc 2.1.3 strftime.c.
61852 2000-08-03 Greg McGary <greg@mcgary.org>
61854 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
61855 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
61856 (EXTEND_BUFFER): Use them.
61858 2000-08-01 Jim Meyering <meyering@lucent.com>
61860 * lib/dirname.c (ISSLASH): Define.
61861 (BACKSLASH_IS_PATH_SEPARATOR): Define.
61862 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
61863 both `\' and `/' may be use as path separators.
61864 Based on a patch from Prashant TR.
61866 2000-07-31 Paul Eggert <eggert@twinsun.com>
61868 * lib/quotearg.c (quotearg_n_options): Don't make the initial
61869 slot vector a constant, since it might get modified.
61871 2000-07-31 Jim Meyering <meyering@lucent.com>
61873 * lib/xmalloc.c: Use `virtual memory exhausted', not
61874 `Memory exhausted'.
61875 * lib/obstack.c (print_and_abort): Likewise.
61877 2000-07-30 Paul Eggert <eggert@twinsun.com>
61879 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
61880 buffer, so that the caller can always quote one small
61881 component of a "memory exhausted" message in slot 0.
61882 From a suggestion by Jim Meyering.
61884 2000-07-30 Jim Meyering <meyering@lucent.com>
61886 * lib/makepath.c (make_path): Quote the other instance, too.
61888 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
61889 (STATIC_BUF_SIZE): Define.
61890 (quotearg_n_options): Use only statically allocated storage when
61891 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
61892 than STATIC_BUF_SIZE.
61894 2000-07-29 Jim Meyering <meyering@lucent.com>
61896 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
61897 * lib/dirname.c (dir_name): Likewise.
61899 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
61902 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
61903 (dir_name): Assert that there are no trailing slashes.
61905 2000-07-29 Bruno Haible <haible@clisp.cons.org>
61907 * lib/mbswidth.h (mbswidth): Add a flags argument.
61908 (mbswidth): New declaration.
61909 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
61910 * lib/mbswidth.c (mbswidth): Add a flags argument.
61911 (mbsnwidth): New function.
61913 2000-07-24 Jim Meyering <meyering@lucent.com>
61915 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
61917 2000-07-23 Paul Eggert <eggert@twinsun.com>
61919 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
61921 2000-07-23 Paul Eggert <eggert@twinsun.com>
61923 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
61924 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
61925 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
61926 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
61927 invoke multibyte primitives.
61929 2000-07-23 Paul Eggert <eggert@twinsun.com>
61932 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
61933 so that mbstate_t is always defined.
61935 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
61936 be 1 in at least one GCC installation, and this configuration
61937 error is likely to be common. Ignoring MB_LEN_MAX hurts
61938 performance on hosts that have mbrtowc but have only unibyte
61939 locales, but I assume these hosts are rare.
61941 2000-07-23 Paul Eggert <eggert@twinsun.com>
61943 * lib/mbswidth.c (_XOPEN_SOURCE):
61944 Don't define; this causes problems on Solaris 7.
61945 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
61947 2000-07-23 Jim Meyering <meyering@lucent.com>
61949 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
61950 too: getgrgid, getpwuid, getuid.
61952 2000-07-23 Jim Meyering <meyering@lucent.com>
61954 * lib/basename.c (base_name): Add an assertion.
61956 2000-07-23 Bruno Haible <haible@clisp.cons.org>
61958 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
61959 shadow its mbsinit function.
61961 2000-07-17 Bruno Haible <haible@clisp.cons.org>
61963 * lib/mbswidth.h: New file.
61964 * lib/mbswidth.c: New file.
61965 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
61966 (noinst_HEADERS): Add mbswidth.h.
61968 2000-07-17 Bruno Haible <haible@clisp.cons.org>
61970 * lib/config.charset: Add support for FreeBSD. Improve support for
61973 2000-07-16 Bruno Haible <haible@clisp.cons.org>
61975 * m4/mbswidth.m4: New file.
61976 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
61978 2000-07-15 Jim Meyering <meyering@lucent.com>
61980 * lib/makepath.c: Include quote.h.
61981 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
61982 corresponding argument in a `quote (...)' call.
61983 Give better diagnostics.
61985 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
61986 (noinst_HEADERS): Add quote.h.
61988 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
61989 from tar's src/misc.c.
61990 * lib/quote.h: New file. Prototypes for same.
61992 2000-07-14 Paul Eggert <eggert@twinsun.com>
61994 From a suggestion by Bruno Haible.
61995 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
61996 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
61997 to decide whether to define the BeOS workaround macro;
61998 this adjusts to the change to AC_MBSTATE_T.
62000 2000-07-14 Jim Meyering <meyering@lucent.com>
62002 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
62003 jm_AC_TYPE_UINTMAX_T.
62005 2000-07-13 Paul Eggert <eggert@twinsun.com>
62007 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
62009 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
62010 quotearg_buffer_restyled): Add support for
62011 clocale_quoting_style. Undo previous change to
62012 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
62013 and "{RIGHT QUOTATION MARK}" msgids.
62015 2000-07-10 Paul Eggert <eggert@twinsun.com>
62017 From a suggestion by Bruno Haible.
62018 * m4/mbstate_t.m4 (AC_MBSTATE_T):
62019 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
62020 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
62021 and mbstate_t, to a single-part test that simply defines mbstate_t.
62022 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
62023 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
62025 2000-07-10 Jim Meyering <meyering@lucent.com>
62027 * m4/strerror_r.m4: Mirror the correction made in autoconf.
62029 * m4/gnu-source.m4: Output to confdefs.h directly.
62030 Suggestion from Akim Demaille.
62032 2000-07-09 Paul Eggert <eggert@twinsun.com>
62034 The old behavior of quoting `like this' doesn't look good with
62035 newer, ISO-style fonts. See:
62036 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
62038 Instead, quote "like this" by default. Let the translator
62039 tailor the locale-specific quoting behavior by providing
62040 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
62042 * lib/quotearg.c (N_): New macro.
62043 (gettext_default): New function.
62044 (quotearg_buffer_restyled): Use
62045 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
62046 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
62048 2000-07-09 Jim Meyering <meyering@lucent.com>
62050 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
62051 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
62053 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
62054 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
62056 2000-07-09 Jim Meyering <meyering@lucent.com>
62058 * lib/Most files: Update copyright dates to include 2000.
62060 2000-07-08 Jim Meyering <meyering@lucent.com>
62062 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
62064 (xgethostname): Remove now-unnecessary #ifdef.
62065 Move declaration of `err' into loop where it's used.
62067 2000-07-05 Paul Eggert <eggert@twinsun.com>
62068 and Bruno Haible <haible@clisp.cons.org>
62070 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
62071 only if the test for an object-type mbstate_t fails. This
62072 prevents us from mistakenly reporting that mbstate_t is a
62073 system object type after we "#define mbstate_t int" to work
62076 2000-07-05 Paul Eggert <eggert@twinsun.com>
62077 and Bruno Haible <haible@clisp.cons.org>
62079 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
62081 2000-07-05 Bruno Haible <haible@clisp.cons.org>
62083 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
62085 Include <ctype.h> for use of isalpha.
62087 2000-07-05 Bruno Haible <haible@clisp.cons.org>
62089 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
62090 by allocating a larger buffer. Test the gethostname return value for
62091 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
62092 returns an error and ENAMETOOLONG isn't defined.
62094 2000-07-05 Bruno Haible <haible@clisp.cons.org>
62096 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
62099 2000-07-04 Jim Meyering <meyering@lucent.com>
62101 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
62102 of the deprecated AC_CHECKING.
62104 2000-07-04 Jim Meyering <meyering@lucent.com>
62106 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
62107 Reported by Bruno Haible.
62109 2000-07-04 Jim Meyering <meyering@lucent.com>
62111 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
62112 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
62115 2000-07-03 Paul Eggert <eggert@twinsun.com>
62117 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
62118 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
62120 2000-07-03 Paul Eggert <eggert@twinsun.com>
62121 and Bruno Haible <haible@clisp.cons.org>
62123 * lib/quotearg.c (mbrtowc):
62124 Assign to *pwc, and return 1 only if result is nonzero.
62125 (iswprint): Use ISPRINT when substituting our own mbrtowc.
62127 2000-07-03 Jim Meyering <meyering@lucent.com>
62129 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
62131 2000-07-03 Jim Meyering <meyering@lucent.com>
62133 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
62134 This is necessary to get a definition of e.g., UTMP_FILE on
62138 2000-07-02 Jim Meyering <meyering@lucent.com>
62140 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
62142 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
62143 AC_LIBOBJ(function_name).
62144 * m4/chown.m4: Likewise.
62145 * m4/fnmatch.m4: Likewise.
62146 * m4/ftruncate.m4: Likewise.
62147 * m4/getgroups.m4: Likewise.
62148 * m4/getline.m4: Likewise.
62149 * m4/group-member.m4: Likewise.
62150 * m4/jm-macros.m4: Likewise.
62151 * m4/lstat.m4: Likewise.
62152 * m4/malloc.m4: Likewise.
62153 * m4/memcmp.m4: Likewise.
62154 * m4/nanosleep.m4: Likewise.
62155 * m4/putenv.m4: Likewise.
62156 * m4/realloc.m4: Likewise.
62157 * m4/regex.m4: Likewise.
62158 * m4/stat.m4: Likewise.
62159 * m4/strftime.m4: Likewise.
62161 2000-07-02 Jim Meyering <meyering@lucent.com>
62163 * lib/quotearg.c (mbstate_t): Don't define here.
62165 2000-07-02 Jim Meyering <meyering@lucent.com>
62167 * lib/nanosleep.c (SIGCONT): Define if not already defined.
62169 2000-07-01 Jim Meyering <meyering@lucent.com>
62171 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
62173 2000-07-01 Jim Meyering <meyering@lucent.com>
62175 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
62178 2000-07-01 Bruno Haible <haible@clisp.cons.org>
62180 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
62181 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
62183 2000-07-01 Bruno Haible <haible@clisp.cons.org>
62185 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
62186 per change in ../m4/ls-mntd-fs.m4.
62187 (read_filesystem_list): Ignore symbolic links.
62189 2000-06-29 Jim Meyering <meyering@lucent.com>
62191 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
62192 for declaration of strcmp.
62194 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
62196 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
62197 Avoid warning by casting result to `char *' to remove `const'.
62199 2000-06-28 Jim Meyering <meyering@lucent.com>
62201 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
62202 included by quotearg.c, for which we perform this test. From
62205 2000-06-27 Bruno Haible <haible@clisp.cons.org>
62207 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
62208 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
62209 <utmpx.h> exists, put readutmp.o into LIBOBJS.
62211 2000-06-27 Bruno Haible <haible@clisp.cons.org>
62213 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
62215 2000-06-26 Paul Eggert <eggert@twinsun.com>
62217 savedir now sets errno on failure and invokes xmalloc to get memory.
62218 Fix a couple of other minor bugs while we're at it.
62220 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
62221 (NAMLEN): Remove macro.
62222 (malloc, realloc): Remove decls.
62223 (stpcpy): Likewise.
62224 ("xalloc.h"): Include.
62225 (NAME_SIZE_DEFAULT): New macro.
62226 (savedir): Use xmalloc / xrealloc to allocate memory.
62227 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
62228 Skip "" directory entries.
62229 Use strlen to calculate directory entry length, since the old method
62230 is rarely used these days and isn't worth supporting.
62231 Don't use a pointer after freeing it.
62232 Check for integer overflow when calculating allocation size.
62233 Use memcpy to copy entries, instead of stpcpy.
62234 Set errno properly when returning NULL.
62235 Check for readdir error.
62237 2000-06-26 Jim Meyering <meyering@lucent.com>
62239 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
62241 2000-06-25 Jim Meyering <meyering@lucent.com>
62243 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
62244 Linux header bug when _XOPEN_SOURCE is defined to 500.
62246 2000-06-25 Bruno Haible <haible@clisp.cons.org>
62248 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
62251 2000-06-25 Bruno Haible <haible@clisp.cons.org>
62253 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
62255 Don't include <stdlib.h>. Don't declare malloc, realloc.
62257 2000-06-24 Jim Meyering <meyering@lucent.com>
62259 * m4/strerror_r.m4: Revive this file -- to try out an experimental
62260 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
62261 for which strerror does return char*, but which lacks a conveniently
62262 accessible declaration of the function. If the compile-test says
62263 strerror_r doesn't work, then resort to a `run'-test that works on
62264 BeOS and segfaults on DEC Unix.
62266 2000-06-24 Jim Meyering <meyering@lucent.com>
62268 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
62270 2000-06-23 Paul Eggert <eggert@twinsun.com>
62272 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
62273 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
62275 2000-06-23 Paul Eggert <eggert@twinsun.com>
62277 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
62278 (mbrtowc, mbstate_t): Define substitutes if
62279 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
62280 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
62281 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
62283 2000-06-23 Jim Meyering <meyering@lucent.com>
62285 * m4/afs.m4: Add missing AC_MSG_RESULT.
62286 Reported by Bruno Haible.
62288 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
62289 Suggestion from Bruno Haible.
62291 2000-06-23 Jim Meyering <meyering@lucent.com>
62293 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
62295 2000-06-21 Jim Meyering <meyering@lucent.com>
62297 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
62299 2000-06-21 Jim Meyering <meyering@lucent.com>
62301 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
62302 (noinst_HEADERS): Add getstr.h.
62304 * lib/getline.c (getstr): Move into a separate file.
62305 * lib/getstr.c (getstr): New file, extracted from getline.c, with
62306 the following changes: new parameter, delim2; both delim[12]
62307 parameters have type `int', not `char'. The latter would lose
62308 with 8-bit delimiters.
62309 * lib/getstr.h: New file.
62311 2000-06-21 Bruno Haible <haible@clisp.cons.org>
62313 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
62314 than 1024, return a memory chunk of least possible size, instead
62315 of size PATH_MAX + 2. In the loop, increment the size proportionally.
62316 Use free/xmalloc instead of xrealloc to avoid copying for very long
62319 2000-06-21 Bruno Haible <haible@clisp.cons.org>
62321 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
62324 2000-06-21 Bruno Haible <haible@clisp.cons.org>
62326 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
62327 address, not strdup. Include <stdlib.h> and don't declare free().
62329 2000-06-19 Jim Meyering <meyering@lucent.com>
62331 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
62333 2000-06-18 Jim Meyering <meyering@lucent.com>
62335 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
62337 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
62338 `checking whether...' message to be consistent with that of the
62341 2000-06-18 Jim Meyering <meyering@lucent.com>
62343 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
62344 Besides, these days every porting target provides a mkdir function.
62346 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
62347 needed. (this snippet comes from src/system.h).
62349 2000-06-16 Bruno Haible <haible@clisp.cons.org>
62351 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
62353 2000-06-15 Paul Eggert <eggert@twinsun.com>
62355 * lib/human.c (adjust_value): New function.
62356 (human_readable_inexact): Apply rounding style even when
62357 printing approximate values.
62359 2000-06-14 Paul Eggert <eggert@twinsun.com>
62361 * lib/human.c (human_readable_inexact): Allow an input block
62362 size that is not a multiple of the output block size, and vice versa.
62363 Reported by Piergiorgio Sartor.
62365 2000-06-14 Paul Eggert <eggert@twinsun.com>
62367 * lib/getdate.y (get_date): Apply relative times after time
62368 zone indicator, not before. Reported by Todd A. Jacobs.
62370 2000-06-13 Jim Meyering <meyering@lucent.com>
62372 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
62374 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
62376 2000-06-12 Paul Eggert <eggert@twinsun.com>
62378 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
62380 2000-06-12 Jim Meyering <meyering@lucent.com>
62382 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
62383 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
62385 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
62386 the optional argument, `lib'.
62388 2000-06-08 Jim Meyering <meyering@lucent.com>
62390 * m4/largefile.m4: Remove file (now that it's part of autoconf).
62392 2000-06-04 Paul Eggert <eggert@twinsun.com>
62394 Rewrite largefile configuration so that we don't need to run
62395 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
62396 AC_CANONICAL_HOST in configure.in -- jmm]
62398 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
62399 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
62400 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
62401 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
62402 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
62404 Instead of inspecting the output of getconf, try to compile the
62405 test program without and with the macro definition.
62406 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
62407 for getconf. Instead, check for the needed flags by compiling
62410 2000-06-04 Paul Eggert <eggert@twinsun.com>
62412 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
62414 2000-06-04 Jim Meyering <meyering@lucent.com>
62416 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
62417 SunOS 4.1.4 for which gid_t is an unsigned type.
62419 2000-06-03 Jim Meyering <meyering@lucent.com>
62421 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
62422 now that autoconf requires that.
62424 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
62425 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
62426 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
62428 2000-06-03 Jim Meyering <meyering@lucent.com>
62430 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
62432 2000-06-03 Bruno Haible <haible@clisp.cons.org>
62434 * m4/glibc21.m4: New file.
62435 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
62437 2000-06-03 Bruno Haible <haible@clisp.cons.org>
62439 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
62440 newer, don't install charset.alias.
62441 * lib/config.charset: Change the Linux/glibc rules so they become empty
62442 on glibc-2.1 or newer.
62444 2000-06-02 Jim Meyering <meyering@lucent.com>
62446 * lib/mountlist.c: Back out last change. Instead, do this...
62447 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
62448 me_dummy member using the same `ignore'-testing code.
62449 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
62453 2000-05-29 Jim Meyering <meyering@lucent.com>
62455 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
62456 mounts with the `ignore' attribute. Based on a patch from
62459 2000-05-28 Jim Meyering <meyering@lucent.com>
62461 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
62462 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62463 * m4/stat.m4: Likewise.
62464 * m4/lstat.m4: Likewise.
62465 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
62467 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
62468 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
62470 2000-05-26 Jim Meyering <meyering@lucent.com>
62472 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
62474 2000-05-24 Jim Meyering <meyering@lucent.com>
62476 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
62477 autoconf requires that.
62478 * m4/lib-check.m4: Likewise.
62479 * m4/jm-macros.m4: Likewise.
62480 * m4/strftime.m4: Likewise.
62482 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
62483 AC_CHECK_DECLS, now that autoconf requires that.
62485 2000-05-22 Jim Meyering <meyering@lucent.com>
62487 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62488 * m4/lstat.m4: Likewise.
62490 2000-05-22 Jim Meyering <meyering@lucent.com>
62492 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
62494 2000-05-20 Jim Meyering <meyering@lucent.com>
62496 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
62497 (jm_PREREQ): Use it.
62499 2000-05-18 Jim Meyering <meyering@lucent.com>
62501 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
62502 back, too, since it may have been modified by allocate_entry.
62503 (hash_delete): Rewrite to use neither the assignment operator
62504 nor the comma operator in an if-expression.
62506 2000-05-15 Paul Eggert <eggert@twinsun.com>
62509 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
62510 Remove; no longer needed.
62511 "quotearg.h": Add include.
62512 (file_name): Do not bother to explicitly initialize to NULL; it's less
62513 efficient on some hosts.
62514 (close_stdout_status): Remove test as to whether stdout was already
62515 closed; it breaks for the case "echo x | sort >&-".
62516 Quote file name colons.
62517 Do not assume that _("write error") lacks format strings.
62519 2000-05-15 Jim Meyering <meyering@lucent.com>
62521 * lib/version-etc.c (version_etc_copyright): Update the copyright
62522 string used in all --version output.
62524 2000-05-14 Jim Meyering <meyering@lucent.com>
62526 * lib/closeout.c (close_stdout_set_file_name): New function.
62527 (close_stdout_status): Use new file-scoped global.
62528 Return right away if fstat says the stdout file descriptor is invalid.
62529 * lib/closeout.h (close_stdout_set_file_name): Declare.
62531 2000-05-10 Jim Meyering <meyering@lucent.com>
62533 * lib/closeout.c [default_exit_status]: New file-scoped variable.
62534 (close_stdout_set_status): New function.
62535 * lib/closeout.h (close_stdout_set_status): Declare.
62537 2000-05-09 Jim Meyering <meyering@lucent.com>
62539 * m4/gettext.m4: Rename this...
62540 * m4/libintl.m4: ...to this.
62542 2000-05-08 Jim Meyering <meyering@lucent.com>
62544 * lib/long-options.c: Don't include closeout.h.
62545 (parse_long_options): Don't call close_stdout for --version.
62547 2000-05-06 Paul Eggert <eggert@twinsun.com>
62549 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
62550 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
62551 2.1.3 bug. This avoids a clash when files like regex.c define
62554 2000-05-06 Jim Meyering <meyering@lucent.com>
62556 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
62557 (AC_REPLACE_FUNCS): Add strnlen.
62559 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
62560 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
62562 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
62563 AC_SEARCH_LIBS call for nanosleep.
62564 (LIB_NANOSLEEP): Set and AC_SUBST.
62566 2000-05-06 Jim Meyering <meyering@lucent.com>
62568 * lib/strnlen.c: Undefine __strnlen and strnlen.
62569 [!weak_alias]: Define __strnlen to strnlen.
62571 * lib/atexit.c: New file, from libiberty.
62573 2000-05-06 Jim Meyering <meyering@lucent.com>
62575 * lib/closeout.c (close_stdout_status): Also check for errors on the
62578 2000-05-05 Jim Meyering <meyering@lucent.com>
62580 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
62581 AC_SEARCH_LIBS call for clock_gettime.
62582 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
62584 * m4/search-libs.m4: Update from autoconf.
62586 su doesn't work on Solaris 2.6.
62587 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
62588 <shadow.h>. Reported by Dragos Harabor.
62590 2000-05-05 Bruno Haible <haible@clisp.cons.org>
62592 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
62593 memcpy instead of xmalloc, xrealloc, path_concat.
62594 (locale_charset): Treat empty environment variables as absent.
62595 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
62597 2000-05-04 Jim Meyering <meyering@lucent.com>
62599 * lib/getopt.c: Update from glibc.
62600 * lib/obstack.c: Likewise.
62601 * lib/obstack.h: Likewise.
62602 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
62605 * lib/regex.h: Likewise.
62606 * lib/strndup.c: Likewise.
62607 * lib/strnlen.c: New file, from glibc.
62609 2000-05-03 Jim Meyering <meyering@lucent.com>
62611 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
62613 2000-05-02 Paul Eggert <eggert@twinsun.com>
62615 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
62616 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
62617 compile-time test, rather than inspecting host and OS, to
62618 decide whether to define _LARGEFILE_SOURCE.
62620 2000-05-01 Jim Meyering <meyering@lucent.com>
62622 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
62624 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
62625 Based on a patch from Bruno Haible.
62627 2000-05-01 Jim Meyering <meyering@lucent.com>
62629 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
62631 2000-04-29 Jim Meyering <meyering@lucent.com>
62633 * lib/path-concat.c: Declare strdup only if it's not defined.
62634 * lib/canon-host.c: Likewise.
62636 2000-04-28 Jim Meyering <meyering@lucent.com>
62638 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
62639 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
62640 is included first, then limits.h is included by locale.h by libintl.h.
62641 From John David Anglin.
62643 2000-04-25 Jim Meyering <meyering@lucent.com>
62645 * lib/makepath.c (S_IRWXUGO): Define.
62646 (make_path): Always perform explicit chmod if MODE specifies any
62647 of the `special' permission bits. Prompted by a bug report against
62648 install from Mate Wierdl and Joost van Baal.
62650 2000-04-18 Jim Meyering <meyering@lucent.com>
62652 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
62653 (jm_PREREQ): Use it.
62655 2000-04-18 Jim Meyering <meyering@lucent.com>
62657 * lib/README: New file.
62659 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
62660 getpagesize. For BeOS. Based on a patch from Bruno Haible.
62662 2000-04-17 Jim Meyering <meyering@lucent.com>
62665 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
62666 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
62667 Suggestion from Akim Demaille.
62669 2000-04-17 Jim Meyering <meyering@lucent.com>
62671 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
62672 the definition of it to rpl_strftime also defined-away the system's
62675 2000-04-15 Jim Meyering <meyering@lucent.com>
62677 Use `C' to denote so-called `contiguous' files, the same way
62679 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
62680 (ftypelet): Use S_ISCTG.
62681 From Michael Deutschmann.
62683 2000-04-14 Jim Meyering <meyering@lucent.com>
62685 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
62686 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
62689 2000-04-14 Jim Meyering <meyering@lucent.com>
62691 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
62693 2000-04-13 Jim Meyering <meyering@lucent.com>
62695 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
62696 AH_VERBATIM to insert required #ifndef into config.h.in.
62697 Suggestion from Akim Demaille.
62699 2000-04-12 Jim Meyering <meyering@lucent.com>
62701 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
62702 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
62703 Christian Krackowizer.
62705 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
62706 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
62707 (AC_SYS_LARGEFILE): Require.
62708 (AM_C_PROTOTYPES): Require.
62710 2000-04-08 Jim Meyering <meyering@lucent.com>
62712 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
62713 names don't conflict. Reported by Eli Zaretskii.
62715 2000-04-07 Jim Meyering <meyering@lucent.com>
62717 * lib/putenv.c: Move inclusion of errno.h so it follows that of
62718 sys/types.h, to work around system header problems on AIX 3.2.5.
62721 2000-04-07 Bruno Haible <haible@clisp.cons.org>
62723 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
62724 bug. Deal with the different error behavior of Irix iconv.
62726 2000-04-05 Paul Eggert <eggert@twinsun.com>
62728 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
62729 IRIX if the installer said otherwise.
62731 2000-04-05 Jim Meyering <meyering@lucent.com>
62733 Portability tweaks required for ultrix4.3.
62734 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
62735 (jm_CHECK_DECLS): Add getutent to the list of functions.
62736 (_jm_DECL_HEADERS): Add utmpx.h.
62737 From John David Anglin.
62739 * m4/strftime.m4: Back out the 2000-04-02 change.
62740 Instead of that change, simply undefine putenv in the test program.
62742 2000-04-05 Jim Meyering <meyering@lucent.com>
62744 Portability tweaks required for ultrix4.3.
62745 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
62747 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
62748 * lib/canon-host.c: Declare strdup.
62749 * lib/path-concat.c: Likewise.
62750 From John David Anglin.
62752 2000-04-04 Jim Meyering <meyering@lucent.com>
62754 Be more DOS 8.3-friendly.
62755 * lib/ref-add.sin: Renamed from ref-add.sed.in.
62756 * lib/ref-del.sin: Renamed from ref-del.sed.in.
62757 * lib/Makefile.am: Reflect renaming.
62758 Reported by Eli Zaretskii.
62760 Use a temporary file name that won't clash with `charset.alias'
62761 in the DOS 8.3 name space.
62762 * lib/Makefile.am (charset_tmp): Define.
62763 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
62764 (uninstall-local): Likewise.
62765 Reported by Eli Zaretskii.
62767 2000-04-03 Jim Meyering <meyering@lucent.com>
62769 * m4/gettext.m4: Fix typo in comment.
62771 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
62772 textutils/configure.in). Suggestion from Paul Eggert.
62773 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
62775 2000-04-02 Paul Eggert <eggert@twinsun.com>
62777 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
62778 variable in the shell rather than using putenv, which isn't
62779 portable. This avoids the configure-time inter-test dependency
62780 on the potentially-renamed putenv function.
62782 2000-03-30 Paul Eggert <eggert@twinsun.com>
62784 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
62785 before checking struct stat.st_blksize, so that
62786 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
62788 2000-03-29 Paul Eggert <eggert@twinsun.com>
62790 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
62791 since strftime.c uses HAVE_STRFTIME to decide whether to use
62792 the underlying strftime.
62794 2000-03-29 Paul Eggert <eggert@twinsun.com>
62796 * lib/time/strftime.c (my_strftime): Make sure we call the system
62797 strftime, not ourselves, when invoking the underlying strftime.
62799 2000-03-24 Jim Meyering <meyering@lucent.com>
62801 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
62802 (charset_alias): Define.
62803 (install-exec-local): Factor out common code.
62804 (uninstall-local): Split lines longer than 80.
62805 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
62806 (SUFFIXES): Define.
62807 (.sed.in.sed): New rule. Don't redirect directly to $@.
62808 (CLEANFILES): Add ref-add.sed and ref-del.sed.
62810 2000-03-19 Bruno Haible <haible@clisp.cons.org>
62812 * lib/config.charset: Output a line containing "Packages using this
62814 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
62815 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
62816 ref-del.sed): New rules.
62818 2000-03-17 Jim Meyering <meyering@lucent.com>
62820 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
62821 Otherwise, include <strings.h>
62823 2000-03-17 Bruno Haible <haible@clisp.cons.org>
62825 * lib/unicodeio.c (utf8_wctomb): New function.
62826 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
62827 format instead of in UCS-4 with platform dependent endianness.
62829 2000-03-10 Jim Meyering <meyering@lucent.com>
62831 * m4/lib-check.m4: Look for getspnam in -lgen, too.
62832 From Marco Franzen.
62834 2000-03-07 Paul Eggert <eggert@twinsun.com>
62836 * lib/savedir.c (savedir): Work even if directory size is
62837 negative; this can happen with some screwy NFS configurations.
62839 2000-03-06 Jim Meyering <meyering@lucent.com>
62841 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
62842 if it's NULL (because we ran out of memory). From Bruno Haible.
62844 2000-03-05 Jim Meyering <meyering@lucent.com>
62846 * lib/localcharset.c ("path-concat.h"): Include.
62847 (get_charset_aliases): Use path_concat instead of ANSI string
62850 * lib/unicodeio.h (PARAMS): Define.
62851 Use it to guard prototype.
62853 2000-03-04 Jim Meyering <meyering@lucent.com>
62855 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
62856 for lib/localcharset.c.
62858 2000-03-04 Jim Meyering <meyering@lucent.com>
62860 * lib/Makefile.am (install-exec-local): Create $(libdir) before
62861 installing into it.
62862 (uninstall-local): Uncomment this rule so `make distcheck' works
62865 * lib/unicodeio.c (<errno.h>): Include it.
62866 (errno): Declare if not defined.
62868 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
62870 * lib/config.charset: New version, incorporating remarks from a linux
62871 i18n mailing list. From Bruno Haible.
62873 2000-03-04 Bruno Haible <haible@clisp.cons.org>
62875 * m4/codeset.m4: New file.
62876 * m4/iconv.m4: New file.
62877 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
62879 2000-03-03 Jim Meyering <meyering@lucent.com>
62881 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
62883 2000-03-02 Jim Meyering <meyering@lucent.com>
62885 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
62886 the messages come out on separate lines.
62888 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
62889 rather than jm_CHECK_DECLARATIONS.
62890 * m4/decl.m4: Remove now-unused file.
62892 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
62895 2000-03-02 Jim Meyering <meyering@lucent.com>
62897 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
62899 2000-03-01 Jim Meyering <meyering@lucent.com>
62901 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
62902 * lib/unicodeio.c: Likewise.
62904 2000-03-01 Bruno Haible <haible@clisp.cons.org>
62906 * lib/config.charset: New file.
62907 * lib/localcharset.c: New file.
62908 * lib/unicodeio.h, lib/unicodeio.c: New files.
62909 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
62910 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
62911 (noinst_HEADERS): Add unicodeio.h.
62912 (all-local, install-exec-local, charset.alias): New targets.
62914 2000-02-28 Paul Eggert <eggert@twinsun.com>
62916 * lib/quotearg.c (ALERT_CHAR): New macro.
62917 (quotearg_buffer_restyled): Use it.
62919 2000-02-27 Jim Meyering <meyering@lucent.com>
62921 * m4/check-decl.m4: Add getenv to the list.
62923 2000-02-27 Jim Meyering <meyering@lucent.com>
62925 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
62926 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
62928 * lib/backupfile.c: Guard inclusion of stdlib.h with
62929 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
62930 Declare malloc if needed.
62932 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
62933 `#ifndef HAVE_DECL..'
62934 now that autoconf always defines the HAVE_DECL_ symbols.
62935 * lib/human.c: Likewise.
62936 * lib/same.c: Likewise.
62937 * lib/strtoumax.c: Likewise.
62939 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
62940 declaration check was not run.
62941 * lib/hash.c: Likewise.
62942 * lib/human.c: Likewise.
62943 * lib/same.c: Likewise.
62944 * lib/strtoumax.c: Likewise.
62946 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
62947 `.', then first look up the entire `.'-containing string as a login
62950 2000-02-23 Jim Meyering <meyering@lucent.com>
62952 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
62953 in place of my hack.
62955 2000-02-18 Paul Eggert <eggert@twinsun.com>
62957 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
62958 (textint): New typedef.
62959 (parser_control): Member year changed from int to textint.
62961 (YYSTYPE): Removed; replaced by %union with int and textint members.
62962 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
62963 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
62964 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
62965 (tSNUMBER, tUNUMBER): Now of type <textintval>.
62966 (date, number, to_year): Use width of number in digits, not its value,
62967 to determine whether it's a 2-digit year, or a 2-digit time.
62968 (yylex): Store number of digits of numeric tokens.
62969 Reported by John Kendall.
62971 (parser_control): Changed from struct parser_control to typedef (for
62972 consistency). All uses changed.
62974 (tID): Removed; not used.
62975 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
62977 2000-02-14 Paul Eggert <eggert@twinsun.com>
62979 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
62980 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
62982 2000-02-12 Jim Meyering <meyering@lucent.com>
62984 * lib/userspec.c (ISDIGIT): Define it.
62985 (isdigit): Remove definition.
62986 (is_number): Use ISDIGIT, not isdigit.
62987 <libintl.h>: Include.
62988 (_ and N_): Define.
62989 (parse_user_spec): Mark translatable strings.
62991 2000-02-10 Jim Meyering <meyering@lucent.com>
62993 With these changes, nanosleep.[ch] are finally enough like the other
62994 lib/* replacement files to compile on a few more losing systems.
62996 * lib/nanosleep.h: Don't include config.h.
62997 Remove prototype from declaration of nanosleep.
62998 (PARAMS): Remove now-unneeded definition.
62999 * lib/nanosleep.c: #undef nanosleep.
63000 (rpl_nanosleep): Rename from nanosleep.
63002 2000-02-10 Jim Meyering <meyering@lucent.com>
63004 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
63005 gnu_nanosleep to rpl_nanosleep.
63007 2000-02-09 Jim Meyering <meyering@lucent.com>
63009 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
63010 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
63012 2000-02-08 Akim Demaille <akim@epita.fr>
63014 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
63015 `[' and `]' and remove uses of `changequote'.
63016 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
63017 (AC_SYS_LARGEFILE): Likewise.
63018 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
63019 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
63021 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
63022 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
63023 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
63024 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
63026 2000-02-05 Jim Meyering <meyering@lucent.com>
63028 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
63029 Remove explicit use of AC_HEADER_TIME. It is required by
63030 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
63031 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
63032 in autoconf whereby the expansion of the latter ended up preceding
63033 the expansion of its prerequisite, AC_HEADER_TIME.
63034 Reported by Volker Borchert.
63036 2000-02-03 Jim Meyering <meyering@lucent.com>
63038 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
63040 2000-02-03 Jim Meyering <meyering@lucent.com>
63042 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
63043 rather than with `#if HAVE_UTMPNAME'.
63045 2000-02-02 Jim Meyering <meyering@lucent.com>
63047 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
63048 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
63049 Reported by Eli Zaretskii.
63051 2000-02-01 Jim Meyering <meyering@lucent.com>
63053 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
63055 2000-01-31 Jim Meyering <meyering@lucent.com>
63057 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
63058 functions. Add the time.h and sys/time.h headers along with the
63059 AC_REQUIRE'ment of AC_HEADER_TIME.
63061 2000-01-31 Jim Meyering <meyering@lucent.com>
63063 * lib/nanosleep.h (nanosleep): Guard declaration with
63064 `#if ! HAVE_DECL_NANOSLEEP'.
63065 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
63066 the declaration in that vendor's sys/timers.h.
63067 Reported by Christian Krackowizer.
63069 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
63070 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
63071 (ISPRINT): Likewise.
63072 Reported by Tom Tromey.
63074 2000-01-30 Jim Meyering <meyering@lucent.com>
63076 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
63078 * m4/prereq.m4 (utmp_includes): Define.
63079 Check for ut_user and ut_name members in both struct utmpx
63082 2000-01-30 Jim Meyering <meyering@lucent.com>
63084 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
63085 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
63086 header files where only utmpx.ut_user is declared.
63088 * lib/readutmp.h (UT_USER): Define.
63090 2000-01-29 Jim Meyering <meyering@lucent.com>
63092 * m4/lib-check.m4: New file containing library-related checks from
63093 fileutils and sh-utils (textutils had none).
63095 2000-01-28 Jim Meyering <meyering@lucent.com>
63097 * m4/perl.m4: Change format of warning message to look more like that
63098 from the missing script. Suggestion from François Pinard.
63100 2000-01-25 Jim Meyering <meyering@lucent.com>
63102 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
63103 well as time.h in the compile check.
63104 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
63105 Fix typo in cross-compiling case: s/yes/no/.
63107 2000-01-23 Jim Meyering <meyering@lucent.com>
63109 * m4/jm-macros.m4: Move df-related tests here from
63110 fileutils/configure.in
63112 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
63113 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
63115 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
63116 s/space/ac_fsusage_space/.
63117 (jm_FILE_SYSTEM_USAGE): Take two parameters.
63119 * m4/ftruncate.m4: New file (derived from part of
63120 fileutils/configure.in).
63121 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
63122 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
63124 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
63125 AC_SUBST these here, rather than just in sh-util/configure.in, so
63126 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
63128 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
63129 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
63130 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
63131 (AC_SUBST(POW_LIBM)): Likewise.
63132 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
63134 2000-01-23 Jim Meyering <meyering@lucent.com>
63136 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
63139 2000-01-22 Jim Meyering <meyering@lucent.com>
63141 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
63143 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
63145 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
63147 (AC_CHECK_HEADERS): Likewise for sh-utils.
63148 (AC_CHECK_HEADERS): Likewise for textutils.
63149 Merge the three lists of headers.
63151 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
63152 from fileutils' configure.in.
63154 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
63155 code. Moved tests into their own function (_jm_DECL_HEADERS) in
63158 * m4/check-decl.m4: Use #if rather than #ifdef.
63159 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
63160 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
63161 (_jm_DECL_HEADERS): Define new function.
63162 (jm_CHECK_DECLARATIONS): Require it.
63164 2000-01-22 Jim Meyering <meyering@lucent.com>
63166 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
63167 [! HAVE_DECL_STRTOULL]: Declare strtoull.
63168 Required for some AIX systems. Reported by Christian Krackowizer.
63169 [TESTING] (main): New function.
63171 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
63172 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
63175 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
63178 * lib/strverscmp.c (ISDIGIT): Define.
63179 (strverscmp): Use ISDIGIT, not isdigit.
63181 2000-01-19 Jim Meyering <meyering@lucent.com>
63183 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
63184 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
63185 defines `struct timespec' in <sys/time.h>
63187 * m4/c-bs-a.m4: Remove uses of changequote altogether.
63188 Thanks to Akim for explaining.
63190 2000-01-17 Paul Eggert <eggert@twinsun.com>
63192 * lib/nanosleep.c (nanosleep):
63193 Don't use SA_INTERRUPT to decide whether to call sigaction, as
63194 POSIX.1 doesn't require SA_INTERRUPT and some systems
63195 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
63196 it's been part of POSIX.1 since day 1 (in 1988).
63198 2000-01-17 Jim Meyering <meyering@lucent.com>
63200 * lib/interlock: Remove unused file. Reported by François Pinard.
63202 2000-01-16 Paul Eggert <eggert@twinsun.com>
63204 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
63205 alert, backslash, formfeed, and vertical tab unnecessarily in
63206 shell quoting style.
63208 2000-01-16 Jim Meyering <meyering@lucent.com>
63210 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
63211 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
63212 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
63213 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
63215 2000-01-16 Jim Meyering <meyering@lucent.com>
63217 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
63218 because the latter didn't work.
63220 2000-01-15 Jim Meyering <meyering@lucent.com>
63222 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
63223 (AC_REPLACE_FUNCS): Add memcpy and memset.
63224 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
63226 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
63228 2000-01-12 Jim Meyering <meyering@lucent.com>
63230 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
63231 (jm_PREREQ): Use it.
63232 (jm_PREREQ_READUTMP): New macro.
63233 (jm_PREREQ): Use it.
63235 2000-01-11 Paul Eggert <eggert@twinsun.com>
63237 Quote multibyte characters correctly.
63238 * m4/c-bs-a.m4: New file.
63239 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
63240 (jm_PREREQ): Use it.
63242 2000-01-11 Paul Eggert <eggert@twinsun.com>
63244 * m4/uintmax_t.m4: Port to autoconf 2.13.
63246 2000-01-08 Jim Meyering <meyering@ascend.com>
63248 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
63249 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
63251 2000-01-04 Jim Meyering <meyering@ascend.com>
63253 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
63254 jm_STRUCT_DIRENT_D_TYPE.
63255 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
63256 jm_STRUCT_DIRENT_D_INO.
63257 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
63259 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
63261 * m4/utime.m4: Likewise.
63263 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
63264 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
63266 2000-01-03 Paul Eggert <eggert@twinsun.com>
63268 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
63269 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
63271 2000-01-02 Jim Meyering <meyering@ascend.com>
63273 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
63274 remember if this is necessary.
63276 1999-12-26 Jim Meyering <meyering@ascend.com>
63278 * m4/jm-macros.m4: Use it here.
63279 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
63281 1999-12-23 Jim Meyering <meyering@ascend.com>
63283 * m4/jm-macros.m4: Check for clock_gettime (moved from
63284 fileutils/configure.in)
63285 Check for gettimeofday.
63287 1999-12-20 Jim Meyering <meyering@ascend.com>
63289 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
63290 autoconf-2.14a-1999-12-20.
63292 1999-12-19 Jim Meyering <meyering@ascend.com>
63294 * m4/lstat-slash.m4: New file.
63295 * m4/jm-macros.m4: Use the new macro:
63296 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63298 1999-12-07 Jim Meyering <meyering@ascend.com>
63300 * m4/perl.m4: Require that File::Compare be available, too.
63301 Too many systems seem to lack it.
63303 * m4/strftime.m4: Add checks for most of the cpp macros tested in
63304 GNU's strftime.c. Prompted by a patch from Paul Eggert.
63306 1999-11-18 Paul Eggert <eggert@twinsun.com>
63308 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
63309 problem with the QNX 4.25 shell, which doesn't propagate exit
63310 status of failed commands inside shell assignments.
63312 1999-11-17 Jim Meyering <meyering@ascend.com>
63314 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
63316 1999-11-07 Jim Meyering <meyering@ascend.com>
63318 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
63320 1999-11-06 Jim Meyering <meyering@ascend.com>
63322 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
63323 * m4/jm-macros.m4 (jm_MACROS): Use it here.
63325 1999-11-05 Jim Meyering <meyering@ascend.com>
63327 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
63328 configure.in of textutils, fileutils, and sh-utils into this one
63329 (shared between those packages) file.
63330 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
63331 AC_STRUCT_ST_BLKSIZE.
63333 1999-11-03 Jim Meyering <meyering@ascend.com>
63335 * m4/ssize_t.m4: Remove file. No longer needed since the new version
63336 of AC_CHECK_TYPE checks includes unistd.h.
63337 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
63338 Suggestion from Akim Demaille.
63340 1999-10-30 Jim Meyering <meyering@ascend.com>
63342 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
63344 * m4/ls-mntd-fs.m4: Likewise.
63345 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
63346 * m4/jm-winsz1.m4: Likewise.
63348 * m4/const.m4: Remove file, since the fix made it into the experimental
63349 version of autoconf.
63350 * m4/mktime.m4: Likewise.
63352 * m4/check-type.m4: Remove file, now that the latest version of
63353 AC_CHECK_TYPE takes a third arg to specify additional #includes.
63355 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
63356 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
63359 1999-10-04 Jim Meyering <meyering@ascend.com>
63361 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
63363 1999-09-22 Paul Eggert <eggert@twinsun.com>
63365 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
63366 2.95.1 bug with HP-UX 10.20.
63368 1999-09-17 Jim Meyering <meyering@ascend.com>
63370 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
63371 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
63372 due to missing strdup (against sh-utils-2.0).
63374 1999-08-29 Jim Meyering <meyering@ascend.com>
63376 * m4/jm-macros.m4: Require jm_BISON.
63377 * m4/bison.m4: New file.
63379 1999-08-17 Paul Eggert <eggert@twinsun.com>
63381 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
63382 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
63384 1999-08-05 Jim Meyering <meyering@ascend.com>
63386 * m4/getline.m4: Rename test file from conftestdata to conftest.data
63387 to avoid conflicts with `conftest' on 8+3 filesystems.
63388 Suggestion from Eli Zaretskii.
63390 1999-08-04 Jim Meyering <meyering@ascend.com>
63392 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
63393 fileutils and sh-utils (textutils's getline test was inadequate).
63394 (AM_FUNC_GETLINE): Run this test.
63395 (AC_CHECK_FUNCS): Check for getdelim.
63396 Reported by Bob Proulx.
63398 1999-08-02 Jim Meyering <meyering@ascend.com>
63400 * m4/jm-macros.m4: Add a comment.
63402 1999-08-01 Paul Eggert <eggert@twinsun.com>
63404 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
63405 <inttypes.h> defines strtoumax as a macro (and not as a
63408 1999-08-01 Paul Eggert <eggert@twinsun.com>
63410 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
63411 that we can shift, multiply and divide unsigned long long
63412 values; Ultrix cc can't do it.
63414 1999-08-01 Paul Eggert <eggert@twinsun.com>
63416 * m4/mktime.m4: New file, which is a preview of what should appear
63417 in the next public autoconf release.
63419 1999-08-01 Paul Eggert <eggert@twinsun.com>
63421 * m4/lfs.m4: Remove this file.
63422 * m4/largefile.m4: New file. It contains the old contents of
63423 lfs.m4, except that all names with prefix AC_LFS have been
63424 changed to use the prefix AC_SYS_LARGEFILE instead, to be
63425 compatible with future autoconf versions. Also, some minor m4
63426 quoting problems have been fixed.
63428 1999-08-01 Paul Eggert <eggert@twinsun.com>
63430 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
63431 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
63432 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
63433 and simplify the shell code.
63435 1999-08-01 Jim Meyering <meyering@ascend.com>
63437 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
63440 1999-07-20 Jim Meyering <meyering@ascend.com>
63442 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
63444 1999-07-15 Jim Meyering <meyering@ascend.com>
63446 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
63448 1999-05-22 Jim Meyering <meyering@ascend.com>
63450 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
63452 1999-05-20 Jim Meyering <meyering@ascend.com>
63454 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
63455 Add a colon after each `then' in case $4 is empty.
63457 1999-05-16 Jim Meyering <meyering@ascend.com>
63459 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
63461 1999-05-10 Jim Meyering <meyering@ascend.com>
63463 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
63465 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
63468 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
63470 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
63472 1999-05-04 Paul Eggert <eggert@twinsun.com>
63474 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
63475 not CPPFLAGS, so that linking works correctly in IRIX.
63477 1999-04-30 Paul Eggert <eggert@twinsun.com>
63479 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
63481 1999-04-20 Paul Eggert <eggert@twinsun.com>
63483 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
63484 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
63485 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
63486 jm_AC_TYPE_UNSIGNED_LONG_LONG.
63487 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
63489 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
63491 1999-04-20 Jim Meyering <meyering@ascend.com>
63493 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
63494 AC_REPLACE xstroull if necessary. From Paul Eggert.
63495 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
63497 1999-04-18 Jim Meyering <meyering@ascend.com>
63499 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
63500 * m4/jm-macros.m4: Use it.
63502 1999-04-06 Jim Meyering <meyering@ascend.com>
63504 * m4/strftime.m4: Remove test for %f.
63506 1999-03-29 Jim Meyering <meyering@ascend.com>
63508 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
63509 superset of the AC_TYPE_* checks in the textutils, fileutils,
63510 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
63513 1999-03-28 Jim Meyering <meyering@ascend.com>
63515 * m4/jm-macros.m4: Define GNU_PACKAGE here.
63516 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
63517 replaced e.g., in the *.sh files of the sh-utils.
63519 1999-03-20 Jim Meyering <meyering@ascend.com>
63521 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
63522 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
63523 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
63525 1999-03-19 Jim Meyering <meyering@ascend.com>
63527 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
63529 1999-03-12 Jim Meyering <meyering@ascend.com>
63531 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
63533 1999-03-07 Jim Meyering <meyering@ascend.com>
63535 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
63538 1999-02-17 Jim Meyering <meyering@ascend.com>
63540 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
63541 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
63543 1999-02-07 Jim Meyering <meyering@ascend.com>
63545 * m4/group-member.m4: New file -- extracted from sh-utils'
63548 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
63549 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
63551 1999-02-06 Jim Meyering <meyering@ascend.com>
63553 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
63554 * m4/fnmatch.m4: Likewise.
63555 * m4/getgroups.m4: Likewise.
63556 * m4/lstat.m4: Likewise.
63557 * m4/malloc.m4: Likewise.
63558 * m4/putenv.m4: Likewise.
63559 * m4/realloc.m4: Likewise.
63560 * m4/regex.m4: Likewise.
63561 * m4/stat.m4: Likewise.
63562 * m4/strftime.m4: Likewise.
63563 Suggestion from Alain Magloire.
63565 * m4/chown.m4: Use `.$ac_objext', not `.o'.
63566 * m4/fnmatch.m4: Likewise.
63567 * m4/getgroups.m4: Likewise.
63568 * m4/getline.m4: Likewise.
63569 * m4/lstat.m4: Likewise.
63570 * m4/malloc.m4: Likewise.
63571 * m4/memcmp.m4: Likewise.
63572 * m4/putenv.m4: Likewise.
63573 * m4/realloc.m4: Likewise.
63574 * m4/regex.m4: Likewise.
63575 * m4/stat.m4: Likewise.
63576 * m4/strftime.m4: Likewise.
63577 Suggestion from Alain Magloire.
63579 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
63582 * m4/regex.m4: Add a run-time Test for proper operation of
63583 re_compile_pattern.
63585 1999-01-31 Jim Meyering <meyering@ascend.com>
63587 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
63589 1999-01-30 Jim Meyering <meyering@ascend.com>
63591 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
63593 * m4/jm-mktime.m4: Make this a wrapper around the official
63594 AM_FUNC_MKTIME rather than my private copy, now that the official one
63596 * m4/mktime.m4: Remove file.
63598 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
63599 * m4/uptime.m4: Likewise.
63600 * m4/uintmax_t.m4: Likewise.
63602 1999-01-28 Jim Meyering <meyering@ascend.com>
63604 * m4/jm-macros.m4: Use jm_AFS.
63605 * m4/afs.m4: New file (from fileutils' configure.in).
63607 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
63608 * m4/chown.m4: Likewise.
63609 * m4/d-ino.m4: Likewise.
63610 * m4/d-type.m4: Likewise.
63611 * m4/fnmatch.m4: Likewise.
63612 * m4/getgroups.m4: Likewise.
63613 * m4/gettext.m4: Likewise.
63614 * m4/jm-mktime.m4: Likewise.
63615 * m4/jm-winsz2.m4: Likewise.
63616 * m4/lcmessage.m4: Likewise.
63617 * m4/ls-mntd-fs.m4: Likewise.
63618 * m4/malloc.m4: Likewise.
63619 * m4/memcmp.m4: Likewise.
63620 * m4/putenv.m4: Likewise.
63621 * m4/realloc.m4: Likewise.
63622 * m4/st_mtim.m4: Likewise.
63623 * m4/strftime.m4: Likewise.
63625 1999-01-16 Jim Meyering <meyering@ascend.com>
63627 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
63628 (ARGMATCH_DIE_DECL): Define.
63630 1999-01-12 Jim Meyering <meyering@ascend.com>
63632 * m4/Makefile.am.in: Rewrite to avoid using fmt.
63633 Reported by Lars Hecking.
63635 1999-01-10 Jim Meyering <meyering@ascend.com>
63637 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
63639 * m4/inttypes_h.m4: Likewise.
63640 * m4/lstat.m4: Likewise.
63641 * m4/malloc.m4: Likewise.
63642 * m4/readdir.m4: Likewise.
63643 * m4/realloc.m4: Likewise.
63644 * m4/st_dm_mode.m4: Likewise.
63645 * m4/stat.m4: Likewise.
63646 * m4/utimbuf.m4: Likewise.
63647 * m4/utimes.m4: Likewise.
63649 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
63650 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
63651 comments in config.h.in are meaningful.
63653 * m4/jm-macros.m4: Require autoconf-2.13 here.
63655 * m4/regex.m4: By default, don't use the included regex.c on systems
63656 with glibc 2. Suggestion from Uli Drepper.
63658 1999-01-02 Jim Meyering <meyering@ascend.com>
63660 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
63662 1998-12-18 Jim Meyering <meyering@ascend.com>
63664 * m4/Makefile.am.in (Makefile.am): Simplify rule.
63665 Based on a suggestion from Lars Hecking.
63667 1998-11-16 Paul Eggert <eggert@twinsun.com>
63669 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
63671 1998-11-16 Jim Meyering <meyering@ascend.com>
63673 * m4/lfs.m4: Double-quote the `uname...` expression.
63675 1998-11-14 Jim Meyering <meyering@ascend.com>
63677 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
63678 * m4/stat.m4: Likewise.
63680 1998-11-03 Jim Meyering <meyering@ascend.com>
63682 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
63683 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
63685 1998-10-18 Jim Meyering <meyering@ascend.com>
63687 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
63689 1998-10-17 Jim Meyering <meyering@ascend.com>
63691 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
63692 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
63693 calls for those previously hard-coded headers. Instead, take a new
63695 (jm_CHECK_DECLARATIONS): Reflect interface change.
63696 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
63697 (jm_CHECK_DECL_LOCALTIME_R): New macro.
63699 * m4/mktime.m4: Test for spring-forward gap before long-running test.
63701 1998-10-14 Jim Meyering <meyering@ascend.com>
63703 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
63704 instead of "TZ=America/Vancouver". From Paul Eggert.
63706 1998-10-11 Jim Meyering <meyering@ascend.com>
63708 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
63709 This adds a test for a recently added compatibility fix for mktime.c.
63710 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
63712 1998-09-27 Jim Meyering <meyering@ascend.com>
63714 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
63716 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
63717 ../configure.in, including a change from Gordon Matzigkeit to allow
63718 cross-compiling for the Hurd.
63720 * m4/glibc.m4: New file/macro to test for the GNU C Library
63721 versions 1 and 2. From Gordon Matzigkeit.
63724 1998-09-21 Jim Meyering <meyering@ascend.com>
63726 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
63728 1998-08-18 Paul Eggert <eggert@twinsun.com>
63730 Port nanosecond-resolution times to UnixWare 2.1.2 and
63731 pedantic Solaris 2.6.
63733 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
63735 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
63736 Generate name of ns member, instead of just 1 or undef.
63737 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
63739 1998-08-15 Jim Meyering <meyering@ascend.com>
63741 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
63742 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
63743 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
63744 instead of jm_TYPE_SSIZE_T.
63746 1998-08-12 Jim Meyering <meyering@ascend.com>
63748 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
63750 1998-08-02 Jim Meyering <meyering@ascend.com>
63752 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
63753 in acconfig.h manually.
63755 1998-07-31 Paul Eggert <eggert@twinsun.com>
63757 * m4/st_mtim.m4: New file.
63759 1998-07-28 Jim Meyering <meyering@ascend.com>
63761 * m4/utimes.m4: Undef stat.
63763 1998-07-25 Jim Meyering <meyering@ascend.com>
63765 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
63766 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
63768 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
63770 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
63771 uid and gid actually remain unchanged.
63773 1998-07-07 Jim Meyering <meyering@ascend.com>
63775 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
63777 1998-07-04 Jim Meyering <meyering@ascend.com>
63779 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
63780 to prove that this macro can be used in packages without regex.c.
63782 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
63784 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
63787 1998-07-03 Jim Meyering <meyering@ascend.com>
63789 * m4/gettext.m4: Add -lintl if it's found to be necessary.
63791 * m4/gettext.m4: New file -- from gettext-0.10.35.
63792 * m4/lcmessage.m4: Likewise.
63793 * m4/progtest.m4: Likewise.
63795 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
63796 * m4/jm-macros.m4: Require the new macro.
63798 1998-06-29 Jim Meyering <meyering@ascend.com>
63800 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
63801 for the definition of NGROUPS (used in a system header included
63804 1998-06-28 Jim Meyering <meyering@ascend.com>
63806 * m4/ls-mntd-fs.m4: New file.
63807 * m4/fstypename.m4: New file.
63809 * m4/jm-macros.m4: Require the new macro.
63810 * m4/jm-glibc-io.m4: New file.
63812 1998-05-19 Jim Meyering <meyering@ascend.com>
63814 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
63815 * m4/lchown.m4: New file.
63817 * m4/Makefile.am.in: New file.
63818 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
63820 1998-05-14 Jim Meyering <meyering@ascend.com>
63822 * m4/Makefile.am (EXTRA_DIST): Add them.
63823 * m4/jm-macros.m4: New file.
63824 * m4/utimbuf.m4: New file.
63826 1998-05-12 Jim Meyering <meyering@ascend.com>
63828 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
63830 1998-05-11 Jim Meyering <meyering@ascend.com>
63832 * m4/isc-posix.m4: New file.
63834 1998-05-10 Jim Meyering <meyering@ascend.com>
63836 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
63838 1998-05-09 Jim Meyering <meyering@ascend.com>
63840 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
63841 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
63844 * m4/ssize_t.m4: New file.
63845 * m4/mktime.m4: Remove file -- the new automake has this now.
63847 1998-04-26 Jim Meyering <meyering@ascend.com>
63849 * m4/assert.m4: New file.
63850 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
63852 1998-04-05 Jim Meyering <meyering@ascend.com>
63854 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
63855 (jm_PREREQ): Use it here.
63857 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
63859 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
63862 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
63864 * m4/prereq.m4: New file.
63865 * m4/error.m4: New file.
63866 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
63868 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
63870 * m4/getline.m4: Don't set am_cv_func_working_getline before the
63871 cache-check for the same variable -- that defeated the purpose of
63872 the test; the test program was never run. This was a problem only
63873 on systems with losing getline functions -- HP-UX 10.20 is one.
63874 Reported by Bjorn Helgaas.
63876 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
63878 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
63880 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
63882 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
63884 * m4/const.m4: New file. Use an initializer in this declaration
63885 typedef int charset[2]; const charset x;
63886 Reported by Bob Glickstein.
63888 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
63890 * m4/chown.m4: Fix reversed types on -1 args to chown.
63893 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
63895 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
63896 Add lseek and memchr.
63898 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
63899 T.E.Dickey <dickey@clark.net> said that some older preprocessors
63900 have a 20-character limit on names.
63902 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
63904 * m4/inttypes_h.m4: New file.
63905 * m4/uintmax_t.m4: New file.
63906 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
63915 Copyright (C) 1997-2010 Free Software Foundation, Inc.
63917 Copying and distribution of this file, with or without
63918 modification, are permitted provided the copyright notice
63919 and this notice are preserved.