1 2010-03-14 Bruno Haible <bruno@clisp.org>
3 * tests/test-flock.c (test_exclusive): Comment out a test that causes
4 portability problems. Instead use a simpler test.
5 (main): Check that invalid arguments are rejected only on Linux.
7 2010-03-14 Bruno Haible <bruno@clisp.org>
9 Fix bug introduced on 2009-12-31.
10 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
11 gl_PREREQ_SYS_H_WINSOCK2 always.
12 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
13 SYS_SOCKET_H variable.
14 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
16 * m4/ctype.m4 (gl_CTYPE_H): Update comments.
17 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
18 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20 * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
22 2010-03-14 Bruno Haible <bruno@clisp.org>
24 Fix values returned by sinl, cosl.
25 * lib/trigl.h: Add specification comments.
26 * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
27 that combines the values from the precomputed table with the values of
28 the Chebyshev polynomials.
30 2010-03-14 Bruno Haible <bruno@clisp.org>
32 Fix compilation error when modules 'posix_spawn[p]' are not used.
33 * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
34 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
36 2010-03-14 Bruno Haible <bruno@clisp.org>
38 Fix compilation error on mingw when module 'time_r' is not used.
39 * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
41 * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
42 * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
43 * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
44 * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
46 2010-03-14 Bruno Haible <bruno@clisp.org>
48 Fix compilation error with Sun C.
49 * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
50 Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
51 instead of GCC specific ULONG_LONG_MAX.
52 * lib/xstrtoll.c: Likewise.
53 * lib/xstrtoull.c: Likewise.
55 2010-03-13 Bruno Haible <bruno@clisp.org>
57 Allow the user to disable C++ code and tests.
58 * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
59 (gl_PROG_ANSI_CXX): Require it.
61 2010-03-13 Bruno Haible <bruno@clisp.org>
63 * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
66 2010-03-13 Bruno Haible <bruno@clisp.org>
68 Test that gnulib does not break the standard C++ headers.
69 * tests/test-locale-c++2.cc: New file.
70 * modules/locale-tests (Files): Add it.
71 (Makefile.am): Compile it for test-locale-c++.
72 * tests/test-math-c++2.cc: New file.
73 * modules/math-tests (Files): Add it.
74 (Makefile.am): Compile it for test-math-c++.
75 * tests/test-signal-c++2.cc: New file.
76 * modules/signal-tests (Files): Add it.
77 (Makefile.am): Compile it for test-signal-c++.
78 * tests/test-stdio-c++2.cc: New file.
79 * modules/stdio-tests (Files): Add it.
80 (Makefile.am): Compile it for test-stdio-c++.
81 * tests/test-stdlib-c++2.cc: New file.
82 * modules/stdlib-tests (Files): Add it.
83 (Makefile.am): Compile it for test-stdlib-c++.
84 * tests/test-string-c++2.cc: New file.
85 * modules/string-tests (Files): Add it.
86 (Makefile.am): Compile it for test-string-c++.
87 * tests/test-time-c++2.cc: New file.
88 * modules/time-tests (Files): Add it.
89 (Makefile.am): Compile it for test-time-c++.
90 Reported by John W. Eaton <jwe@gnu.org>.
92 2010-03-13 Bruno Haible <bruno@clisp.org>
94 * gnulib-tool (func_usage): Clarify which options are available for
95 --create-testdir and --create-megatestdir.
97 2010-03-13 Bruno Haible <bruno@clisp.org>
99 Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
100 * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
101 * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
102 * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
103 strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
105 Reported by Jim Meyering.
107 2010-03-12 Simon Josefsson <simon@josefsson.org>
109 * gnulib-tool (func_import): Explain origin of code.
111 2010-03-12 Bruno Haible <bruno@clisp.org>
113 Fix problem with automake's definition of CXXLINK.
114 * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
115 Reported by Simon Josefsson and Ludovic Courtès.
117 2010-03-12 Bruno Haible <bruno@clisp.org>
119 * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
122 2010-03-11 Bruno Haible <bruno@clisp.org>
124 Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
125 * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
126 whether the system provides one variant or multiple variants of the
128 * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
130 (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
131 _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
132 Reported by Jim Meyering.
134 2010-03-09 Simon Josefsson <simon@josefsson.org>
136 * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
138 2010-03-08 Bruno Haible <bruno@clisp.org>
140 gnulib-tool: Add support for --libtool in --create-testdir.
141 * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
142 (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
144 2010-03-08 Eric Blake <eblake@redhat.com>
146 gnulib-tool.texi: mention possibility of git submodule
147 * doc/gnulib-tool.texi (VCS Issues): Add details about using git
149 * doc/.gitignore: Ignore another generated file.
151 2010-03-08 Karl Berry <karl@gnu.org>
153 * doc/gnulib-tool.texi (VCS Issues): Mention third option
154 of committing gnulib files while skipping others.
156 2010-03-07 Bruno Haible <bruno@clisp.org>
158 Tests of module 'wctype' in C++ mode.
159 * tests/test-wctype-c++.cc: New file.
160 * modules/wctype-tests (Files): Add it and tests/signature.h.
161 (Depends-on): Add ansi-c++-opt.
162 (Makefile.am): Arrange to compile and run test-wctype-c++.
164 Tests of module 'wchar' in C++ mode.
165 * tests/test-wchar-c++.cc: New file.
166 * modules/wchar-tests (Files): Add it and tests/signature.h.
167 (Depends-on): Add ansi-c++-opt.
168 (Makefile.am): Arrange to compile and run test-wchar-c++.
169 * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
172 Tests of module 'unistd' in C++ mode.
173 * tests/test-unistd-c++.cc: New file.
174 * modules/unistd-tests (Files): Add it and tests/signature.h.
175 (Depends-on): Add ansi-c++-opt.
176 (Makefile.am): Arrange to compile and run test-unistd-c++.
177 * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
180 Tests of module 'time' in C++ mode.
181 * tests/test-time-c++.cc: New file.
182 * modules/time-tests (Files): Add it and tests/signature.h.
183 (Depends-on): Add ansi-c++-opt.
184 (Makefile.am): Arrange to compile and run test-time-c++.
185 * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
187 Tests of module 'sys_time' in C++ mode.
188 * tests/test-sys_time-c++.cc: New file.
189 * modules/sys_time-tests (Files): Add it and tests/signature.h.
190 (Depends-on): Add ansi-c++-opt.
191 (Makefile.am): Arrange to compile and run test-sys_time-c++.
192 * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
195 Tests of module 'sys_stat' in C++ mode.
196 * tests/test-sys_stat-c++.cc: New file.
197 * modules/sys_stat-tests (Files): Add it and tests/signature.h.
198 (Depends-on): Add ansi-c++-opt.
199 (Makefile.am): Arrange to compile and run test-sys_stat-c++.
200 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
203 Tests of module 'sys_socket' in C++ mode.
204 * tests/test-sys_socket-c++.cc: New file.
205 * modules/sys_socket-tests (Files): Add it and tests/signature.h.
206 (Depends-on): Add ansi-c++-opt.
207 (Makefile.am): Arrange to compile and run test-sys_socket-c++.
208 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
211 Tests of module 'sys_select' in C++ mode.
212 * tests/test-sys_select-c++.cc: New file.
213 * modules/sys_select-tests (Files): Add it and tests/signature.h.
214 (Depends-on): Add ansi-c++-opt.
215 (Makefile.am): Arrange to compile and run test-sys_select-c++.
216 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
219 Tests of module 'sys_ioctl' in C++ mode.
220 * tests/test-sys_ioctl-c++.cc: New file.
221 * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
222 (Depends-on): Add ansi-c++-opt.
223 (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
224 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
227 Tests of module 'string' in C++ mode.
228 * tests/test-string-c++.cc: New file.
229 * modules/string-tests (Files): Add it and tests/signature.h.
230 (Depends-on): Add ansi-c++-opt.
231 (Makefile.am): Arrange to compile and run test-string-c++.
232 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
235 Tests of module 'stdlib' in C++ mode.
236 * tests/test-stdlib-c++.cc: New file.
237 * modules/stdlib-tests (Files): Add it and tests/signature.h.
238 (Depends-on): Add ansi-c++-opt.
239 (Makefile.am): Arrange to compile and run test-stdlib-c++.
240 * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
243 Tests of module 'stdio' in C++ mode.
244 * tests/test-stdio-c++.cc: New file.
245 * modules/stdio-tests (Files): Add it and tests/signature.h.
246 (Depends-on): Add ansi-c++-opt.
247 (Makefile.am): Arrange to compile and run test-stdio-c++.
248 * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
251 Tests of module 'spawn' in C++ mode.
252 * tests/test-spawn-c++.cc: New file.
253 * modules/spawn-tests (Files): Add it and tests/signature.h.
254 (Depends-on): Add ansi-c++-opt.
255 (Makefile.am): Arrange to compile and run test-spawn-c++.
256 * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
259 Tests of module 'signal' in C++ mode.
260 * tests/test-signal-c++.cc: New file.
261 * modules/signal-tests (Files): Add it and tests/signature.h.
262 (Depends-on): Add ansi-c++-opt.
263 (Makefile.am): Arrange to compile and run test-signal-c++.
264 * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
267 Tests of module 'search' in C++ mode.
268 * tests/test-search-c++.cc: New file.
269 * modules/search-tests (Files): Add it and tests/signature.h.
270 (Depends-on): Add ansi-c++-opt.
271 (Makefile.am): Arrange to compile and run test-search-c++.
272 * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
275 Tests of module 'math' in C++ mode.
276 * tests/test-math-c++.cc: New file.
277 * modules/math-tests (Files): Add it and tests/signature.h.
278 (Depends-on): Add ansi-c++-opt.
279 (Makefile.am): Arrange to compile and run test-math-c++.
280 * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
282 Tests of module 'locale' in C++ mode.
283 * tests/test-locale-c++.cc: New file.
284 * modules/locale-tests (Files): Add it and tests/signature.h.
285 (Depends-on): Add ansi-c++-opt.
286 (Makefile.am): Arrange to compile and run test-locale-c++.
287 * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
290 Tests of module 'langinfo' in C++ mode.
291 * tests/test-langinfo-c++.cc: New file.
292 * modules/langinfo-tests (Files): Add it and tests/signature.h.
293 (Depends-on): Add ansi-c++-opt.
294 (Makefile.am): Arrange to compile and run test-langinfo-c++.
295 * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
298 Tests of module 'iconv-h' in C++ mode.
299 * tests/test-iconv-h-c++.cc: New file.
300 * modules/iconv-h-tests (Files): Add it and tests/signature.h.
301 (Depends-on): Add ansi-c++-opt.
302 (Makefile.am): Arrange to compile and run test-iconv-h-c++.
304 Tests of module 'glob' in C++ mode.
305 * tests/test-glob-c++.cc: New file.
306 * modules/glob-tests (Files): Add it.
307 (Depends-on): Add ansi-c++-opt.
308 (Makefile.am): Arrange to compile and run test-glob-c++.
310 Tests of module 'fcntl-h' in C++ mode.
311 * tests/test-fcntl-h-c++.cc: New file.
312 * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
313 (Depends-on): Add ansi-c++-opt.
314 (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
315 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
318 Tests of module 'dirent' in C++ mode.
319 * tests/test-dirent-c++.cc: New file.
320 * modules/dirent-tests (Files): Add it and tests/signature.h.
321 (Depends-on): Add ansi-c++-opt.
322 (Makefile.am): Arrange to compile and run test-dirent-c++.
323 * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
326 New module 'ansi-c++-opt'.
327 * modules/ansi-c++-opt: New file.
328 * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
330 Document C++ namespace mode.
331 * doc/gnulib.texi (A C++ namespace for gnulib): New section.
333 wctype: Avoid #define replacements in C++ mode.
334 * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
335 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
336 iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
337 In C++, define a namespaced alias symbol.
338 * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
339 * modules/wctype (Depends-on): Add c++defs, warn-on-use.
340 (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
343 wchar: Avoid #define replacements in C++ mode.
344 * lib/wchar.in.h: Include c++defs.h.
345 (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
346 wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
348 (wcwidth): Likewise. Fix prototype to be POSIX compliant.
349 * modules/wchar (Depends-on): Add c++defs.
350 (Makefile.am): Update wchar.h rule.
352 unistd: Avoid #define replacements in C++ mode.
353 * lib/unistd.in.h: Include c++defs.h.
354 (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
355 fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
356 getgroups, gethostname, getlogin, getlogin_r, getpagesize,
357 getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
358 pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
359 unlink, unlinkat, usleep, write): In C++, define a namespaced alias
362 * modules/unistd (Depends-on): Add c++defs.
363 (Makefile.am): Update unistd.h rule.
365 time: Avoid #define replacements in C++ mode.
366 * lib/time.in.h: Include c++defs.h, warn-on-use.h.
367 (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
368 define a namespaced alias symbol.
369 * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
370 (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
371 GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
372 * modules/time (Depends-on): Add c++defs, warn-on-use.
373 (Makefile.am): Update time.h rule.
374 * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
375 * modules/nanosleep (configure.ac): Likewise.
376 * modules/strptime (configure.ac): Likewise.
377 * modules/timegm (configure.ac): Likewise.
379 sys_time: Avoid #define replacements in C++ mode.
380 * lib/sys_time.in.h: Include c++defs.h.
381 (gettimeofday): In C++, define a namespaced alias symbol.
382 * modules/sys_time (Depends-on): Add c++defs.
383 (Makefile.am): Update sys/time.h rule.
385 sys_stat: Avoid #define replacements in C++ mode.
386 * lib/sys_stat.in.h: Include c++defs.h.
387 (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
388 mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
389 namespaced alias symbol.
390 In C++, define a namespaced alias symbol.
391 * modules/sys_stat (Depends-on): Add c++defs.
392 (Makefile.am): Update sys/stat.h rule.
394 sys_socket: Avoid #define replacements in C++ mode.
395 * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
396 Include c++defs.h. Include warn-on-use.h earlier. Enable the function
397 definitions also when the system has a <sys/socket.h>.
398 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
399 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
400 In C++, define a namespaced alias symbol.
401 * modules/sys_socket (Depends-on): Add c++defs.
402 (Makefile.am): Update sys/socket.h rule.
404 sys_select: Avoid #define replacements in C++ mode.
405 * lib/sys_select.in.h: Include c++defs.h. Enable the function
406 definitions also when the system has a <sys/select.h>.
407 (select): In C++, define a namespaced alias symbol.
408 * modules/sys_select (Depends-on): Add c++defs.
409 (Makefile.am): Update sys/select.h rule.
411 sys_ioctl: Avoid #define replacements in C++ mode.
412 * lib/sys_ioctl.in.h: Include c++defs.h.
413 (ioctl): In C++, define a namespaced alias symbol.
414 * modules/sys_ioctl (Depends-on): Add c++defs.
415 (Makefile.am): Update sys/ioctl.h rule.
417 string: Avoid #define replacements in C++ mode.
418 * lib/string.in.h: Include c++defs.h.
419 (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
420 (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
421 strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
422 strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
423 strsignal, strverscmp): In C++, define a namespaced alias symbol.
424 * modules/string (Depends-on): Add c++defs.
425 (Makefile.am): Update string.h rule.
427 stdlib: Avoid #define replacements in C++ mode.
428 * lib/stdlib.in.h: Include c++defs.h.
429 (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
430 mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
431 srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
432 strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
434 * modules/stdlib (Depends-on): Add c++defs.
435 (Makefile.am): Update stdlib.h rule.
437 stdio: Avoid #define replacements in C++ mode.
438 * lib/stdio.in.h: Include c++defs.h.
439 (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
440 freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
441 obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
442 puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
443 vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
444 namespaced alias symbol.
445 * modules/stdio (Depends-on): Add c++defs.
446 (Makefile.am): Update stdio.h rule.
448 spawn: Avoid #define replacements in C++ mode.
449 * lib/spawn.in.h: Include c++defs.h.
450 (posix_spawn, posix_spawnp, posix_spawnattr_init,
451 posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
452 posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
453 posix_spawnattr_setsigmask, posix_spawnattr_getflags,
454 posix_spawnattr_setflags, posix_spawnattr_getpgroup,
455 posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
456 posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
457 posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
458 posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
459 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
460 In C++, define a namespaced alias symbol.
461 * modules/spawn (Depends-on): Add c++defs.
462 (Makefile.am): Update spawn.h rule.
464 signal: Avoid #define replacements in C++ mode.
465 * lib/signal.in.h: Include c++defs.h.
466 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
467 sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
468 namespaced alias symbol.
469 * modules/signal (Depends-on): Add c++defs.
470 (Makefile.am): Update signal.h rule.
472 search: Avoid #define replacements in C++ mode.
473 * lib/search.in.h: Include c++defs.h.
474 (_gl_search_compar_fn, _gl_search_action_fn): New types.
475 (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
477 * modules/search (Depends-on): Add c++defs.
478 (Makefile.am): Update search.h rule.
480 math: Avoid #define replacements in C++ mode.
481 * lib/math.in.h: Include c++defs.h.
482 (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
483 frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
484 trunc, truncl): In C++, define a namespaced alias symbol.
485 * modules/math (Depends-on): Add c++defs.
486 (Makefile.am): Update math.h rule.
488 locale: Avoid #define replacements in C++ mode.
489 * lib/locale.in.h: Include c++defs.h.
490 (duplocale): In C++, define a namespaced alias symbol.
491 * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
492 * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
493 * modules/locale (Depends-on): Add c++defs.
494 (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
496 langinfo: Avoid #define replacements in C++ mode.
497 * lib/langinfo.in.h: Include c++defs.h.
498 (nl_langinfo): In C++, define a namespaced alias symbol.
499 * modules/langinfo (Depends-on): Add c++defs.
500 (Makefile.am): Update langinfo.h rule.
502 iconv-h: Avoid #define replacements in C++ mode.
503 * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
504 (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
506 * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
507 whenever iconv is present.
508 * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
509 (Makefile.am): Update iconv.h rule.
511 glob: Avoid #define replacements in C++ mode.
512 * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
513 (_gl_glob_errfunc_fn): New type.
514 (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
516 * modules/glob (Depends-on): Add c++defs, warn-on-use.
517 (Makefile.am): Update glob.h rule.
519 fcntl-h: Avoid #define replacements in C++ mode.
520 * lib/fcntl.in.h: Include c++defs.h.
521 (fcntl, open, openat): In C++, define a namespaced alias symbol.
522 * modules/fcntl-h (Depends-on): Add c++defs.
523 (Makefile.am): Update fcntl.h rule.
525 dirent: Avoid #define replacements in C++ mode.
526 * lib/dirent.in.h: Include c++defs.h.
527 (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
528 namespaced alias symbol.
529 (dirfd): Update declaration.
530 * modules/dirent (Depends-on): Add c++defs.
531 (Makefile.am): Update dirent.h rule.
533 ctype: Make it usable in C++ code.
534 * lib/ctype.in.h: Include c++defs.h.
535 (isblank): Declare as extern "C".
536 * modules/ctype (Depends-on): Add c++defs.
537 (Makefile.am): Update ctype.h rule.
539 New module 'c++defs'.
540 * modules/c++defs: New file.
541 * build-aux/c++defs.h: New file.
542 Reported by John W. Eaton <jwe@gnu.org>.
544 2010-03-07 Bruno Haible <bruno@clisp.org>
546 logb: Provide missing declaration for Cygwin.
547 * lib/math.in.h (logb): New declaration.
548 * m4/logb.m4: New file.
549 * modules/logb (Files): Add m4/logb.m4.
550 (Depends-on): Add math.
551 (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
552 * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
553 (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
554 * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
555 * doc/posix-functions/logb.texi: Mention the Cygwin bug.
557 2010-03-07 Bruno Haible <bruno@clisp.org>
559 Fix test-cond link error.
560 * tests/test-cond.c: Include <stdio.h>.
562 2010-03-07 Bruno Haible <bruno@clisp.org>
564 Fix test-dirent-safer link error.
565 * modules/dirent-safer-tests (Makefile.am): Define
566 test_dirent_safer_LDADD.
568 2010-03-07 Bruno Haible <bruno@clisp.org>
570 * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
571 among default module list.
573 2010-03-07 Bruno Haible <bruno@clisp.org>
575 Fix link error on platforms with GNU libiconv.
576 * modules/unistr/u8-strcoll-tests (Makefile): Define
577 test_u8_strcoll_LDADD.
578 * modules/unistr/u16-strcoll-tests (Makefile): Define
579 test_u16_strcoll_LDADD.
580 * modules/unistr/u32-strcoll-tests (Makefile): Define
581 test_u32_strcoll_LDADD.
583 2010-03-07 Bruno Haible <bruno@clisp.org>
585 Use POSIX declarations for socket functions.
586 * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
587 rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
588 rpl_sendto): Change declaration to match POSIX.
589 * lib/connect.c (rpl_connect): Likewise.
590 * lib/accept.c (rpl_accept): Likewise.
591 * lib/bind.c (rpl_bind): Likewise.
592 * lib/getpeername.c (rpl_getpeername): Likewise.
593 * lib/getsockname.c (rpl_getsockname): Likewise.
594 * lib/recv.c (rpl_recv): Likewise.
595 * lib/send.c (rpl_send): Likewise.
596 * lib/recvfrom.c (rpl_recvfrom): Likewise.
597 * lib/sendto.c (rpl_sendto): Likewise.
599 2010-03-06 Bruno Haible <bruno@clisp.org>
601 Clarify access, euidaccess, faccessat.
602 * doc/posix-functions/faccessat.texi: Mention security problem under
603 "Other problems", not "Portability problems".
604 * doc/posix-functions/access.texi: Likewise. Mention a related security
606 * doc/glibc-functions/euidaccess.texi: Mention security problems.
607 * lib/euidaccess.c: Add comments about platforms.
608 * lib/unistd.in.h (access, euidaccess): Add warnings.
610 2010-03-07 Bruno Haible <bruno@clisp.org>
612 Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
613 * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
614 (POSIX_SPAWN_SETSCHEDULER): Likewise.
615 (POSIX_SPAWN_USEVFORK): Define in a way that works when
616 POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
617 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
618 declare when POSIX_SPAWN_SETSCHEDULER is zero.
619 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
620 declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
621 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
622 POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
623 * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
624 replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
625 * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
626 * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
627 replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
628 * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
629 * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
630 nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
631 * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
633 * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
634 nothing if POSIX_SPAWN_SETSCHEDULER is zero.
635 * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
637 * tests/test-spawn.c (main): Make it work when
638 POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
640 2010-03-07 Bruno Haible <bruno@clisp.org>
642 Fix incorrect Makefile.am generation in German locale.
643 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
644 Execute sed command with character range in C locale.
646 2010-03-06 Bruno Haible <bruno@clisp.org>
648 Tests for module 'iconv-h'.
649 * modules/iconv-h-tests: New file.
650 * tests/test-iconv-h.c: New file.
652 New module 'iconv-h'.
653 * modules/iconv-h: New file.
654 * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
655 (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
656 (configure.ac): Remove gl_ICONV_H.
657 (Makefile.am): Remove rule for iconv.h.
659 2010-03-06 Bruno Haible <bruno@clisp.org>
661 More consistent naming of *.m4 files.
662 * m4/wctype_h.m4: Renamed from m4/wctype.m4.
663 * modules/wctype (Files): Update.
665 More consistent naming of *.m4 files.
666 * m4/wchar_h.m4: Renamed from m4/wchar.m4.
667 * modules/wchar (Files): Update.
669 2010-03-06 Jim Meyering <meyering@redhat.com>
671 euidaccess: relax license to LGPLv2+
672 * modules/euidaccess (License): Relax to LGPLv2+.
674 2010-03-06 Bruno Haible <bruno@clisp.org>
676 Prefer lib_SOURCES over unconditional AC_LIBOBJ.
677 * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
678 (Makefile.am): Augment lib_SOURCES instead.
680 2010-03-04 Jim Meyering <meyering@redhat.com>
682 utime: remove obsolete module
683 This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
684 unnecessary for years, and has been marked as obsolete for 10 months.
685 * modules/utime: Remove file.
686 * lib/utime.c: Remove file.
687 * m4/utime.m4: Remove file.
688 * m4/utimes-null.m4: Remove file.
689 * doc/posix-functions/utime.texi (utime): Remove reference to
690 the module. Move the sole "fixed by gnulib" item into the
691 "problems not fixed by Gnulib" list.
692 * MODULES.html.sh (func_all_modules): Remove reference to "utime".
694 2010-03-05 Simon Josefsson <simon@josefsson.org>
696 * modules/exit (License): Relax license to LGPLv2+.
697 (Status): Mark as obsolete.
698 * NEWS: Mention deprecated 'exit' module.
699 * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
700 of now obsolete 'exit'.
702 2010-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
704 fts-lgpl: remove unused module
705 * modules/fts-lgpl: Remove.
706 * MODULES.html.sh (func_all_modules): Adjust.
707 * check-module (find_included_lib_files): Adjust.
708 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
710 2010-03-02 Ben Walton <bwalton@artsci.utoronto.ca> (tiny change)
712 copy-acl: enhance Solaris ACL error handling
713 * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
714 * lib/set-mode-acl.c (qset_acl): Likewise.
716 2010-03-02 Bruno Haible <bruno@clisp.org>
718 spawn: Don't override the system defined values on FreeBSD 8.
719 * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
720 POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
721 POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
722 if HAVE_POSIX_SPAWN is 1.
723 Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
725 2010-03-01 Bruno Haible <bruno@clisp.org>
727 * doc/gnulib-tool.texi (Initial import): Clarify the requirements
730 2010-02-25 Bruno Haible <bruno@clisp.org>
732 Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
733 * gnulib-tool: Define 'echo' as a function only before the ksh alias
734 setting, not afterwards.
735 Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
737 2010-02-24 Eric Blake <eblake@redhat.com>
739 bootstrap, git-version-gen: use timestamp
740 * build-aux/git-version-gen (scriptversion): Force UTC.
741 * build-aux/bootstrap (scriptversion): New variable.
743 bootstrap: allow older git
744 * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
745 older than 1.6.4. Requested by the libvirt project.
747 2010-02-23 Eric Blake <eblake@redhat.com>
749 warn-on-use: work with old autoconf
750 * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
751 AS_VAR semantics of autoconf 2.60.
752 Reported by Bruno Haible.
754 bootstrap: improve some comments
755 * build-aux/bootstrap: Drop unneeded emacs hint. Add some
756 clarification comments.
758 gettimeofday: provide correct function
759 * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
760 when replacement is declared, otherwise provide gettimeofday.
761 Reported by Michael Goffioul.
763 2010-02-23 Jim Meyering <meyering@redhat.com>
765 lib-ignore: relax license to "unlimited", not LGPLv2+
766 * modules/lib-ignore (License): Relax to "unlimited".
768 2010-02-23 Jim Meyering <meyering@redhat.com>
770 lib-ignore: relax license to LGPLv2+
771 * modules/lib-ignore (License): Relax to LGPLv2+.
773 2010-02-22 Eric Blake <eblake@redhat.com>
775 lseek: avoid bash 3.2 broken pipe bug
776 * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
777 warning from bash 3.2.
778 Reported by Ben Pfaff, with analysis from Bruno Haible.
780 bootstrap: support non-FSF copyright holder
781 * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
782 bootstrap.conf override of COPYRIGHT_HOLDER.
783 (MSGID_BUGS_ADDRESS): Allow URL rather than email.
785 bootstrap: interoperate with gettext 0.14.1
786 * build-aux/bootstrap (slurp): Fix typo when using older gettext.
788 bootstrap: allow for alternate submodule location
789 * build-aux/bootstrap (gnulib_path): New variable; use instead of
790 hardcoding submodule location.
791 (gnulib_mk): Allow direct use of Makefile.am.
793 bootstrap: use GNULIB_SRCDIR to reduce disk usage
794 * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
795 rather than reconfiguring where the submodule points.
797 gettimeofday: restore support for platforms that lack function
798 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
799 replacement if function is missing.
800 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
801 * modules/sys_time (Makefile.am): Substitute it.
802 * lib/sys_time.in.h (gettimeofday): Check it.
803 Reported by Michael Goffioul.
805 2010-02-21 Bruno Haible <bruno@clisp.org>
807 * lib/stdio.in.h (obstack_printf): Fix typo.
809 2010-02-21 Jose E. Marchesi <jemarch@gnu.org>
811 vc-list-files: use bzr ls's -R option
812 * build-aux/vc-list-files: Invoke bazaar to generate a recursive
813 list of versioned files based on 'dir' (usage of -R in 'bzr ls').
815 2010-02-21 Jim Meyering <meyering@redhat.com>
817 init.sh: fix EXEEXT shims to work also for names like test-prog
818 * tests/init.sh: Re-exec a better shell, when needed.
819 If the current shell lacks support for posix $(...), an init.sh-using
820 test will now try to find a shell that supports that. If EXEEXT is
821 nonempty, we also require support for hyphen-in-alias-name and shell
822 substitutions like ${var#glob}. Failure to find such a shell results
825 2010-02-21 Bruno Haible <bruno@clisp.org>
827 Really work around around "broken pipe" error message from bash 3.2.
828 * gnulib-tool (func_reset_sigpipe): Remove function.
829 (echo): In bash 3.2, define to a function that uses printf.
830 Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
832 2010-02-20 Bruno Haible <bruno@clisp.org>
834 Restore support for automake 1.9.6 with autoconf 2.61.
835 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
836 Reported by James Youngman <jay@gnu.org>.
838 2010-02-20 Bruno Haible <bruno@clisp.org>
840 Improve *printf warning condition.
841 * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
842 also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
843 and the function is overridden due to SIGPIPE emulation.
845 2010-02-20 Bruno Haible <bruno@clisp.org>
847 * lib/stdio.in.h: Tweak comments.
849 2010-02-19 Bruno Haible <bruno@clisp.org>
851 Make it easier to find modules. New gnulib-tool option '--find'.
852 * gnulib-tool: New option --find.
853 (func_usage): Document it.
854 (func_sanitize_modulelist): New function, extracted from
856 (func_all_modules): Invoke it.
857 * doc/gnulib-tool.texi (Which modules?): New node.
859 2010-02-18 Markus Duft <mduft@gentoo.org> (tiny change)
861 * lib/sys_select.in.h: Provide select replacement even if
862 sys/select.h exists on a system, for Interix.
864 2010-02-18 Jim Meyering <meyering@redhat.com>
866 init.sh: don't use $(...) just yet
867 * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
868 to accommodate e.g., Solaris' /bin/sh.
870 2010-02-17 Bruno Haible <bruno@clisp.org>
872 * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
873 Reported by Ludovic Courtès <ludo@gnu.org>.
875 2010-02-16 Simon Josefsson <simon@josefsson.org>
877 * modules/userspec-tests (test_userspec_LDADD): Add variable, for
880 2010-02-17 Simon Josefsson <simon@josefsson.org>
882 * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
883 if not provided by the system's netdb.h. Reported by
884 ludo@gnu.org (Ludovic Courtès).
886 2010-02-15 Jim Meyering <meyering@redhat.com>
888 init.sh: improve portability and efficiency
889 * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
890 "dummy" in a for loop.
891 Use '!', not '^' to select the complement of a character set used
892 in a "case" statement.
893 Use shell variable manipulation, a la ${...%.exe}, rather than sed.
894 Suggestions from Eric Blake.
896 init.sh: automatically accommodate programs with the .exe suffix
897 Automatically arrange for an invocation of "prog" to execute the
898 program named "prog$EXEEXT" (usually prog.exe). Thus, all invocations
899 may use the simpler "prog", yet still work when built on a system
900 that requires specifying the added suffix.
901 Do this by constructing a function named "prog" that invokes
902 "prog.exe" for each .exe file in selected directories.
903 * tests/init.sh (find_exe_basenames_): New function.
904 (create_exe_shim_functions_): New function.
905 (path_prepend_): Use it.
907 maint.mk: mark syntax-check sc_*.m rules as .PHONY
908 * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
909 "make -t syntax-check" doesn't create a ton of sc_*.m files.
911 2010-02-14 Jim Meyering <meyering@redhat.com>
913 maint.mk: prohibit inclusion of "hash-pjw.h" without_use
914 * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
915 (sc_prohibit_hash_pjw_without_use): New rule.
917 maint.mk: allow the default upload destination dir to be overridden
918 * top/maint.mk (upload_dest_dir_): Define with a default that
919 preserves the status quo.
920 (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
921 Reported by Peter Simons.
923 maint.mk: prohibit inclusion of "hash.h" without_use
924 * top/maint.mk (sc_prohibit_hash_without_use): New rule.
926 2010-02-10 Jim Meyering <meyering@redhat.com>
928 maint.mk: prohibit inclusion of "ignore-value.h" without_use
929 * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
931 2010-02-09 Eric Blake <ebb9@byu.net>
932 and Bruno Haible <bruno@clisp.org>
934 obstack-printf-posix: ensure declaration
935 * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
936 extracted from gl_FUNC_OBSTACK_PRINTF.
937 (gl_FUNC_OBSTACK_PRINTF): Invoke it.
938 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
940 * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
941 if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
944 2010-02-08 Bruno Haible <bruno@clisp.org>
946 gnulib-tool: Fix typo in 2010-02-07 commit.
947 * gnulib-tool (func_get_dependencies): Fix typo in last commit.
948 Reported by Eric Blake.
950 2010-02-07 Bruno Haible <bruno@clisp.org>
952 gnulib-tool: Fix up caching patches.
953 * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
954 option --no-cache. Use associative arrays when supported by the shell.
955 (sed_comments): New variable.
956 (modcache): Renamed from do_cache.
957 (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
958 abbreviate unnecessarily.
959 (have_associative): New variable.
960 (func_cache_var): Define correctly for bash 1.x. Define in an optimized
961 way also for ksh and zsh.
962 (func_init_sed_convert_to_cache_statements): New function, extracted
963 from func_cache_lookup_module. Add support for associative arrays.
964 Don't set the c_MODULE_cached variable here. Ignore all lines before
965 the first field header. Remove only the final newline, not all trailing
966 newlines. Support empty fields correctly. Limit the use of 'eval' to
968 (func_get_description, func_get_status, func_get_notice,
969 func_get_applicability, func_get_filelist, func_get_dependencies,
970 func_get_autoconf_early_snippet, func_get_autoconf_snippet,
971 func_get_automake_snippet, func_get_include_directive,
972 func_get_link_directive, func_get_license, func_get_maintainer):
973 Update documentation. List the unoptimized code first. Add support for
974 associative arrays. Limit the use of 'eval' to assignments.
975 (func_get_applicability): Undo stylistic pessimisations.
976 (func_get_automake_snippet, func_get_include_directive): Reduce code
978 (func_modules_transitive_closure, func_modules_add_dummy,
979 func_modules_notice, func_modules_to_filelist, func_add_file,
980 func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
981 func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
982 func_create_testdir, func_create_megatestdir): Update documentation.
984 2010-01-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
986 * gnulib-tool (func_cache_lookup_module): Store the module name
987 belonging to the cache variable; error out if two different
988 module names map to the same cache variable name.
990 2010-01-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
992 gnulib-tool: Make caching optional.
993 * gnulib-tool: Accept option --no-cache, turning off $do_cache.
994 Update matching short versions of --no-changelog.
995 (func_usage): Update.
996 (sed_extract_cache_prog): Renamed from ...
997 (sed_extract_prog): ... this; revert to old extraction script.
998 (func_get_description, func_get_status)
999 (func_get_notice, func_get_applicability, func_get_filelist)
1000 (func_get_dependencies, func_get_autoconf_early_snippet)
1001 (func_get_autoconf_snippet, func_get_automake_snippet)
1002 (func_get_include_directive, func_get_link_directive)
1003 (func_get_license, func_get_maintainer): If $do_cache is false,
1004 use old, non-caching extraction scripts.
1005 Suggestion by Bruno Haible.
1007 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1009 gnulib-tool: cache module metainformation.
1010 * gnulib-tool (sed_extract_prog): Match newline before each
1011 header, and rewrite header to a shell variable suffix.
1012 (func_cache_var, func_cache_lookup_module): New functions,
1013 to turn a module name into a cache variable prefix, and to
1014 look up and cache module metainformation.
1015 (func_get_description, func_get_status)
1016 (func_get_notice, func_get_applicability, func_get_filelist)
1017 (func_get_dependencies, func_get_autoconf_early_snippet)
1018 (func_get_autoconf_snippet, func_get_automake_snippet)
1019 (func_get_include_directive, func_get_link_directive)
1020 (func_get_license, func_get_maintainer): Use
1021 func_cache_lookup_module.
1023 2010-02-07 Bruno Haible <bruno@clisp.org>
1025 fnctl: Fix missing dependency.
1026 * modules/fcntl (Depends-on): Add getdtablesize.
1027 Reported by John W. Eaton <jwe@gnu.org>.
1029 2010-02-05 Sergey Poznyakoff <gray@gnu.org.ua>
1031 Argp: fix recognition of short alias options.
1033 * lib/argp-parse.c (convert_options): Fix improper use of
1034 `|' between character values.
1035 * tests/test-argp.c (group1_option): New alias option
1037 (group1_parser): Special handling for 'r'.
1038 (test15): New test case.
1039 (test_fun): Add test15.
1040 * tests/test-argp-2.sh: Update expected --help and --usage
1043 2010-02-05 Sergey Poznyakoff <gray@gnu.org.ua>
1045 * tests/test-argp.c: Fix indentation.
1047 2010-02-04 Eric Blake <ebb9@byu.net>
1049 gettimeofday: expose type of second argument
1050 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
1051 of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
1052 * tests/test-gettimeofday.c: Use it to silence warning.
1053 * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
1056 2010-02-03 Jim Meyering <meyering@redhat.com>
1058 regcomp.c: avoid the sole warning from gcc's -Wtype-limits
1059 * lib/regcomp.c (TYPE_SIGNED): Define.
1060 (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
1062 regcomp.c: avoid a new -Wshadow warning
1063 * lib/regcomp.c (create_initial_state): Do not shadow local "err".
1065 2010-02-01 Jim Meyering <meyering@redhat.com>
1067 removing useless parentheses in cpp #define directives
1068 For motivation, see commit c0221df4, "define STREQ(a,b)
1069 consistently, removing useless parentheses"
1070 * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
1071 * lib/mountlist.c (MNT_IGNORE): Likewise.
1072 * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
1074 2010-02-01 Eric Blake <ebb9@byu.net>
1076 sys_time: use link-warning
1077 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
1078 (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
1079 (gl_SYS_TIME_MODULE_INDICATOR): New macro.
1080 * modules/sys_time (Depends-on): Add warn-on-use.
1081 (Makefile.am): Always build replacement.
1082 (configure.ac): Update substitutions.
1083 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
1084 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
1085 bother with SYS_TIME_H.
1086 * modules/gettimeofday (configure.ac): Declare indicator.
1087 * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
1090 closein-tests: silence compiler warning
1091 * tests/test-closein.c (main): Ignore fread result.
1092 * modules/closein-tests (Depends-on): Add ignore-value.
1094 tests: silence warning about system return
1095 * tests/test-areadlink-with-size.c (main): Ignore system result.
1096 * tests/test-areadlink.c (main): Likewise.
1097 * tests/test-areadlinkat-with-size.c (main): Likewise.
1098 * tests/test-areadlinkat.c (main): Likewise.
1099 * tests/test-canonicalize-lgpl.c (main): Likewise.
1100 * tests/test-canonicalize.c (main): Likewise.
1101 * tests/test-chown.c (main): Likewise.
1102 * tests/test-fchownat.c (main): Likewise.
1103 * tests/test-fdutimensat.c (main): Likewise.
1104 * tests/test-fstatat.c (main): Likewise.
1105 * tests/test-futimens.c (main): Likewise.
1106 * tests/test-lchown.c (main): Likewise.
1107 * tests/test-link.c (main): Likewise.
1108 * tests/test-linkat.c (main): Likewise.
1109 * tests/test-lstat.c (main): Likewise.
1110 * tests/test-mkdir.c (main): Likewise.
1111 * tests/test-mkdirat.c (main): Likewise.
1112 * tests/test-mkfifo.c (main): Likewise.
1113 * tests/test-mkfifoat.c (main): Likewise.
1114 * tests/test-mknod.c (main): Likewise.
1115 * tests/test-readlink.c (main): Likewise.
1116 * tests/test-remove.c (main): Likewise.
1117 * tests/test-rename.c (main): Likewise.
1118 * tests/test-renameat.c (main): Likewise.
1119 * tests/test-rmdir.c (main): Likewise.
1120 * tests/test-symlink.c (main): Likewise.
1121 * tests/test-symlinkat.c (main): Likewise.
1122 * tests/test-unlink.c (main): Likewise.
1123 * tests/test-unlinkat.c (main): Likewise.
1124 * tests/test-utimens.c (main): Likewise.
1125 * tests/test-utimensat.c (main): Likewise.
1126 * modules/areadlink-tests (Depends-on): Add ignore-value.
1127 * modules/areadlink-with-size-tests (Depends-on): Likewise.
1128 * modules/areadlinkat-tests (Depends-on): Likewise.
1129 * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
1130 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
1131 * modules/canonicalize-tests (Depends-on): Likewise.
1132 * modules/chown-tests (Depends-on): Likewise.
1133 * modules/fdutimensat-tests (Depends-on): Likewise.
1134 * modules/futimens-tests (Depends-on): Likewise.
1135 * modules/lchown-tests (Depends-on): Likewise.
1136 * modules/link-tests (Depends-on): Likewise.
1137 * modules/linkat-tests (Depends-on): Likewise.
1138 * modules/lstat-tests (Depends-on): Likewise.
1139 * modules/mkdir-tests (Depends-on): Likewise.
1140 * modules/mkfifo-tests (Depends-on): Likewise.
1141 * modules/mkfifoat-tests (Depends-on): Likewise.
1142 * modules/mknod-tests (Depends-on): Likewise.
1143 * modules/openat-tests (Depends-on): Likewise.
1144 * modules/readlink-tests (Depends-on): Likewise.
1145 * modules/remove-tests (Depends-on): Likewise.
1146 * modules/rename-tests (Depends-on): Likewise.
1147 * modules/renameat-tests (Depends-on): Likewise.
1148 * modules/rmdir-tests (Depends-on): Likewise.
1149 * modules/symlink-tests (Depends-on): Likewise.
1150 * modules/symlinkat-tests (Depends-on): Likewise.
1151 * modules/unlink-tests (Depends-on): Likewise.
1152 * modules/utimens-tests (Depends-on): Likewise.
1153 * modules/utimensat-tests (Depends-on): Likewise.
1155 2010-01-31 Bruno Haible <bruno@clisp.org>
1157 Perform the same test for many <math.h> functions.
1158 * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
1159 gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
1160 * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
1162 * modules/acos (configure.ac): Likewise.
1163 * modules/asin (configure.ac): Likewise.
1164 * modules/atan (configure.ac): Likewise.
1165 * modules/atan2 (configure.ac): Likewise.
1166 * modules/cbrt (configure.ac): Likewise.
1167 * modules/copysign (configure.ac): Likewise.
1168 * modules/cos (configure.ac): Likewise.
1169 * modules/cosh (configure.ac): Likewise.
1170 * modules/erf (configure.ac): Likewise.
1171 * modules/erfc (configure.ac): Likewise.
1172 * modules/exp (configure.ac): Likewise.
1173 * modules/fmod (configure.ac): Likewise.
1174 * modules/hypot (configure.ac): Likewise.
1175 * modules/j0 (configure.ac): Likewise.
1176 * modules/j1 (configure.ac): Likewise.
1177 * modules/jn (configure.ac): Likewise.
1178 * modules/lgamma (configure.ac): Likewise.
1179 * modules/log (configure.ac): Likewise.
1180 * modules/log10 (configure.ac): Likewise.
1181 * modules/log1p (configure.ac): Likewise.
1182 * modules/pow (configure.ac): Likewise.
1183 * modules/remainder (configure.ac): Likewise.
1184 * modules/sin (configure.ac): Likewise.
1185 * modules/sinh (configure.ac): Likewise.
1186 * modules/tan (configure.ac): Likewise.
1187 * modules/tanh (configure.ac): Likewise.
1188 * modules/y0 (configure.ac): Likewise.
1189 * modules/y1 (configure.ac): Likewise.
1190 * modules/yn (configure.ac): Likewise.
1191 Suggested by Paolo Bonzini.
1193 2010-01-31 Bruno Haible <bruno@clisp.org>
1195 * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
1197 2010-01-31 Bruno Haible <bruno@clisp.org>
1199 Work around getdelim() bug on FreeBSD 8.0.
1200 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
1201 initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
1203 * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
1205 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
1206 * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
1207 * tests/test-getdelim.c (main): Also test result for a NULL buffer and
1209 * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
1211 2010-01-31 Bruno Haible <bruno@clisp.org>
1213 Work around getline() bug on FreeBSD 8.0.
1214 * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
1215 and a non-zero size.
1216 * tests/test-getline.c (main): Likewise.
1217 * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
1218 Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
1220 2010-01-28 Eric Blake <ebb9@byu.net>
1222 regex: fix build failure
1223 * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
1226 2010-01-28 Jim Meyering <meyering@redhat.com>
1228 regex: do not ignore memory allocation failure
1229 * lib/regex_internal.c (create_cd_newstate): Detect
1230 re_node_set_init_copy failure. Extracted from glibc commit
1231 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1233 regex: sync more white-space changes from libc
1234 * lib/regex_internal.c: White-space only changes.
1235 * lib/regexec.c: Likewise.
1237 regex: add many uses of __attribute_warn_unused_result__
1238 * lib/regex_internal.c: Use __attribute_warn_unused_result__.
1239 * lib/regexec.c: Likewise.
1240 Extracted from a messy glibc commit.
1242 regcomp.c: spelling and merge-artifact from glibc
1243 * lib/regcomp.c: Merge remainder of glibc's
1244 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1246 regcomp.c: sync white-space changes from glibc
1247 * lib/regcomp.c: Merge to accommodate white space
1248 changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1250 regcomp.c: do not ignore internal return values
1251 * lib/regcomp.c: Do not ignore internal return values.
1252 This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
1253 but without its white-space changes and spelling fixes.
1255 regex_internal.h: define __attribute_warn_unused_result__
1256 * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
1258 maint: add a syntax-check rule to check for vulnerable Makefile.in
1259 * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
1261 2010-01-27 Jim Meyering <meyering@redhat.com>
1263 ncftpput-ftp: clean up spaces
1264 * build-aux/ncftpput-ftp: Make Copyright line consistent.
1265 Remove trailing blanks.
1267 2010-01-27 Simon Josefsson <simon@josefsson.org>
1269 * build-aux/git-version-gen: Fix copyright statement.
1270 * build-aux/gnupload: Likewise.
1271 * tests/test-arcfour.c: Likewise.
1272 * tests/test-arctwo.c: Likewise.
1273 * tests/test-count-one-bits.c: Likewise.
1274 * tests/test-crc.c: Likewise.
1275 * tests/test-des.c: Likewise.
1276 * tests/test-gc-arcfour.c: Likewise.
1277 * tests/test-gc-arctwo.c: Likewise.
1278 * tests/test-gc-des.c: Likewise.
1279 * tests/test-gc-hmac-md5.c: Likewise.
1280 * tests/test-gc-hmac-sha1.c: Likewise.
1281 * tests/test-gc-md2.c: Likewise.
1282 * tests/test-gc-md4.c: Likewise.
1283 * tests/test-gc-md5.c: Likewise.
1284 * tests/test-gc-pbkdf2-sha1.c: Likewise.
1285 * tests/test-gc-rijndael.c: Likewise.
1286 * tests/test-gc-sha1.c: Likewise.
1287 * tests/test-gc.c: Likewise.
1288 * tests/test-gethostname.c: Likewise.
1289 * tests/test-gettimeofday.c: Likewise.
1290 * tests/test-hash.c: Likewise.
1291 * tests/test-hmac-md5.c: Likewise.
1292 * tests/test-hmac-sha1.c: Likewise.
1293 * tests/test-md2.c: Likewise.
1294 * tests/test-md4.c: Likewise.
1295 * tests/test-md5.c: Likewise.
1296 * tests/test-memchr.c: Likewise.
1297 * tests/test-memchr2.c: Likewise.
1298 * tests/test-memcmp.c: Likewise.
1299 * tests/test-memmem.c: Likewise.
1300 * tests/test-memrchr.c: Likewise.
1301 * tests/test-rawmemchr.c: Likewise.
1302 * tests/test-read-file.c: Likewise.
1303 * tests/test-rijndael.c: Likewise.
1304 * tests/test-sockets.c: Likewise.
1305 * tests/test-strchrnul.c: Likewise.
1306 * tests/test-strstr.c: Likewise.
1307 * tests/test-strtod.c: Likewise.
1308 * build-aux/ncftpput-ftp: Likewise.
1310 2010-01-26 Eric Blake <ebb9@byu.net>
1312 ignore-value: update recommended header name
1313 * modules/ignore-value (Include): Only use <> for headers that
1316 2010-01-26 Jim Meyering <meyering@redhat.com>
1318 test-userspec.c: avoid compiler warnings
1319 * tests/test-userspec.c (main): Avoid shadowing ("uid"),
1320 and "initialization discards qualifiers..." warnings.
1321 Put the first "uid" in its own scope, and make char* members "const".
1323 2010-01-25 Bruno Haible <bruno@clisp.org>
1325 gnulib-tool: Make warning diagnostics consistent.
1326 * gnulib-tool (func_warning): New function.
1327 Use it everywhere where gnulib-tool produces output to stderr and it is
1330 2010-01-25 Bruno Haible <bruno@clisp.org>
1332 Fix test dependencies.
1333 * modules/xstrtol-tests (Depends-on): Add inttypes.
1334 * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
1336 2010-01-25 Pádraig Brady <P@draigBrady.com>
1338 syntax-check: detect incorrect boolean macro values in config.h
1339 * modules/maintainer-makefile (configure.ac): Parameterize the location
1340 of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
1341 The logic is from Eric Blake and the location indicated by Jim Meyering.
1342 Note the more natural CONFIG_HEADER name is prohibited by automake
1343 for backwards compatibility reasons.
1344 * top/maint.mk (sc_Wundef_boolean): New rule.
1346 2010-01-25 Jim Meyering <meyering@redhat.com>
1348 bootstrap: detect MacOS 10.6's shasum, too
1349 * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
1350 Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
1352 2010-01-23 Jim Meyering <meyering@redhat.com>
1354 xstrtoll: new module
1355 * modules/xstrtoll: New file.
1356 * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
1357 * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
1358 * lib/xstrtoll.c, lib/xstrtoull.c: New files.
1359 ./configure fails if you use this module and lack "long long".
1360 * modules/xstrtoll-tests: New module.
1361 * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
1362 * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
1363 new init.sh-based test framework.
1365 2010-01-24 Bruno Haible <bruno@clisp.org>
1367 Tests for module 'yn'.
1368 * modules/yn-tests: New file.
1369 * tests/test-yn.c: New file.
1371 Tests for module 'y1'.
1372 * modules/y1-tests: New file.
1373 * tests/test-y1.c: New file.
1375 Tests for module 'y0'.
1376 * modules/y0-tests: New file.
1377 * tests/test-y0.c: New file.
1379 Tests for module 'tanh'.
1380 * modules/tanh-tests: New file.
1381 * tests/test-tanh.c: New file.
1383 Tests for module 'tan'.
1384 * modules/tan-tests: New file.
1385 * tests/test-tan.c: New file.
1387 Tests for module 'sqrt'.
1388 * modules/sqrt-tests: New file.
1389 * tests/test-sqrt.c: New file.
1391 Tests for module 'sinh'.
1392 * modules/sinh-tests: New file.
1393 * tests/test-sinh.c: New file.
1395 Tests for module 'sin'.
1396 * modules/sin-tests: New file.
1397 * tests/test-sin.c: New file.
1399 Tests for module 'rint'.
1400 * modules/rint-tests: New file.
1401 * tests/test-rint.c: New file.
1403 Tests for module 'remainder'.
1404 * modules/remainder-tests: New file.
1405 * tests/test-remainder.c: New file.
1407 Tests for module 'pow'.
1408 * modules/pow-tests: New file.
1409 * tests/test-pow.c: New file.
1411 Tests for module 'nextafter'.
1412 * modules/nextafter-tests: New file.
1413 * tests/test-nextafter.c: New file.
1415 Tests for module 'modf'.
1416 * modules/modf-tests: New file.
1417 * tests/test-modf.c: New file.
1419 Tests for module 'logb'.
1420 * modules/logb-tests: New file.
1421 * tests/test-logb.c: New file.
1423 Tests for module 'log1p'.
1424 * modules/log1p-tests: New file.
1425 * tests/test-log1p.c: New file.
1427 Tests for module 'log10'.
1428 * modules/log10-tests: New file.
1429 * tests/test-log10.c: New file.
1431 Tests for module 'log'.
1432 * modules/log-tests: New file.
1433 * tests/test-log.c: New file.
1435 Tests for module 'lgamma'.
1436 * modules/lgamma-tests: New file.
1437 * tests/test-lgamma.c: New file.
1439 Tests for module 'ldexp'.
1440 * modules/ldexp-tests: New file.
1441 * tests/test-ldexp.c: New file.
1443 Tests for module 'jn'.
1444 * modules/jn-tests: New file.
1445 * tests/test-jn.c: New file.
1447 Tests for module 'j1'.
1448 * modules/j1-tests: New file.
1449 * tests/test-j1.c: New file.
1451 Tests for module 'j0'.
1452 * modules/j0-tests: New file.
1453 * tests/test-j0.c: New file.
1455 Tests for module 'hypot'.
1456 * modules/hypot-tests: New file.
1457 * tests/test-hypot.c: New file.
1459 Tests for module 'fmod'.
1460 * modules/fmod-tests: New file.
1461 * tests/test-fmod.c: New file.
1463 Tests for module 'fabs'.
1464 * modules/fabs-tests: New file.
1465 * tests/test-fabs.c: New file.
1467 Tests for module 'exp'.
1468 * modules/exp-tests: New file.
1469 * tests/test-exp.c: New file.
1471 Tests for module 'erfc'.
1472 * modules/erfc-tests: New file.
1473 * tests/test-erfc.c: New file.
1475 Tests for module 'erf'.
1476 * modules/erf-tests: New file.
1477 * tests/test-erf.c: New file.
1479 Tests for module 'cosh'.
1480 * modules/cosh-tests: New file.
1481 * tests/test-cosh.c: New file.
1483 Tests for module 'cos'.
1484 * modules/cos-tests: New file.
1485 * tests/test-cos.c: New file.
1487 Tests for module 'copysign'.
1488 * modules/copysign-tests: New file.
1489 * tests/test-copysign.c: New file.
1491 Tests for module 'cbrt'.
1492 * modules/cbrt-tests: New file.
1493 * tests/test-cbrt.c: New file.
1495 Tests for module 'atan2'.
1496 * modules/atan2-tests: New file.
1497 * tests/test-atan2.c: New file.
1499 Tests for module 'atan'.
1500 * modules/atan-tests: New file.
1501 * tests/test-atan.c: New file.
1503 Tests for module 'asin'.
1504 * modules/asin-tests: New file.
1505 * tests/test-asin.c: New file.
1507 Tests for module 'acos'.
1508 * modules/acos-tests: New file.
1509 * tests/test-acos.c: New file.
1511 2010-01-24 Bruno Haible <bruno@clisp.org>
1513 Fix tests for common <math.h> functions.
1514 * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
1515 code snippet that references the function pointer, rather than merely
1516 calling the function. Substitute the FUNC_LIBM variable.
1517 * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
1518 * modules/acos (configure.ac): Likewise.
1519 * modules/asin (configure.ac): Likewise.
1520 * modules/atan (configure.ac): Likewise.
1521 * modules/atan2 (configure.ac): Likewise.
1522 * modules/cbrt (configure.ac): Likewise.
1523 * modules/copysign (configure.ac): Likewise.
1524 * modules/cos (configure.ac): Likewise.
1525 * modules/cosh (configure.ac): Likewise.
1526 * modules/erf (configure.ac): Likewise.
1527 * modules/erfc (configure.ac): Likewise.
1528 * modules/exp (configure.ac): Likewise.
1529 * modules/fabs (configure.ac): Likewise.
1530 * modules/fmod (configure.ac): Likewise.
1531 * modules/hypot (configure.ac): Likewise.
1532 * modules/j0 (configure.ac): Likewise.
1533 * modules/j1 (configure.ac): Likewise.
1534 * modules/jn (configure.ac): Likewise.
1535 * modules/ldexp (configure.ac): Likewise.
1536 * modules/lgamma (configure.ac): Likewise.
1537 * modules/log (configure.ac): Likewise.
1538 * modules/log10 (configure.ac): Likewise.
1539 * modules/log1p (configure.ac): Likewise.
1540 * modules/logb (configure.ac): Likewise.
1541 * modules/modf (configure.ac): Likewise.
1542 * modules/nextafter (configure.ac): Likewise.
1543 * modules/pow (configure.ac): Likewise.
1544 * modules/remainder (configure.ac): Likewise.
1545 * modules/rint (configure.ac): Likewise.
1546 * modules/sin (configure.ac): Likewise.
1547 * modules/sinh (configure.ac): Likewise.
1548 * modules/tan (configure.ac): Likewise.
1549 * modules/tanh (configure.ac): Likewise.
1550 * modules/y0 (configure.ac): Likewise.
1551 * modules/y1 (configure.ac): Likewise.
1552 * modules/yn (configure.ac): Likewise.
1554 2010-01-24 Bruno Haible <bruno@clisp.org>
1556 Tests: Defeat inlining of math functions by GCC >= 4.3.0.
1557 * tests/test-acosl.c (x): New variable.
1558 (main): Store argument in x and fetch it from x.
1559 * tests/test-asinl.c (x): New variable.
1560 (main): Store argument in x and fetch it from x.
1561 * tests/test-atanl.c (x): New variable.
1562 (main): Store argument in x and fetch it from x.
1563 * tests/test-cosl.c (x): New variable.
1564 (main): Store argument in x and fetch it from x.
1565 * tests/test-expl.c (x): New variable.
1566 (main): Store argument in x and fetch it from x.
1567 * tests/test-logl.c (x): New variable.
1568 (main): Store argument in x and fetch it from x.
1569 * tests/test-sinl.c (x): New variable.
1570 (main): Store argument in x and fetch it from x.
1571 * tests/test-sqrtl.c (x): New variable.
1572 (main): Store argument in x and fetch it from x.
1573 * tests/test-tanl.c (x): New variable.
1574 (main): Store argument in x and fetch it from x.
1576 2010-01-24 Bruno Haible <bruno@clisp.org>
1578 Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
1579 * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
1580 assignments to the initial TESTS_ENVIRONMENT.
1581 * doc/gnulib.texi (Unit test modules): Document it.
1582 * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
1584 * modules/btowc-tests (Makefile.am): Likewise.
1585 * modules/c-stack-tests (Makefile.am): Likewise.
1586 * modules/c-strcase-tests (Makefile.am): Likewise.
1587 * modules/copy-file-tests (Makefile.am): Likewise.
1588 * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
1589 * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
1590 * modules/mbrtowc-tests (Makefile.am): Likewise.
1591 * modules/mbscasecmp-tests (Makefile.am): Likewise.
1592 * modules/mbscasestr-tests (Makefile.am): Likewise.
1593 * modules/mbschr-tests (Makefile.am): Likewise.
1594 * modules/mbscspn-tests (Makefile.am): Likewise.
1595 * modules/mbsinit-tests (Makefile.am): Likewise.
1596 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
1597 * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
1598 * modules/mbspbrk-tests (Makefile.am): Likewise.
1599 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
1600 * modules/mbsrchr-tests (Makefile.am): Likewise.
1601 * modules/mbsrtowcs-tests (Makefile.am): Likewise.
1602 * modules/mbsspn-tests (Makefile.am): Likewise.
1603 * modules/mbsstr-tests (Makefile.am): Likewise.
1604 * modules/nl_langinfo-tests (Makefile.am): Likewise.
1605 * modules/unicase/locale-language-tests (Makefile.am): Likewise.
1606 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
1607 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
1608 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
1609 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
1610 * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
1611 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
1612 * modules/wcrtomb-tests (Makefile.am): Likewise.
1613 * modules/wcsnrtombs-tests (Makefile.am): Likewise.
1614 * modules/wcsrtombs-tests (Makefile.am): Likewise.
1615 * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
1616 assignments from TESTS_ENVIRONMENT.
1617 * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
1619 * modules/argp-version-etc-tests (Makefile.am): Likewise.
1620 * modules/atexit-tests (Makefile.am): Likewise.
1621 * modules/binary-io-tests (Makefile.am): Likewise.
1622 * modules/closein-tests (Makefile.am): Likewise.
1623 * modules/dprintf-posix-tests (Makefile.am): Likewise.
1624 * modules/exclude-tests (Makefile.am): Likewise.
1625 * modules/fflush-tests (Makefile.am): Likewise.
1626 * modules/fpending-tests (Makefile.am): Likewise.
1627 * modules/fprintf-posix-tests (Makefile.am): Likewise.
1628 * modules/freadahead-tests (Makefile.am): Likewise.
1629 * modules/freadptr-tests (Makefile.am): Likewise.
1630 * modules/freadseek-tests (Makefile.am): Likewise.
1631 * modules/fseek-tests (Makefile.am): Likewise.
1632 * modules/fseeko-tests (Makefile.am): Likewise.
1633 * modules/ftell-tests (Makefile.am): Likewise.
1634 * modules/ftello-tests (Makefile.am): Likewise.
1635 * modules/idpriv-drop-tests (Makefile.am): Likewise.
1636 * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
1637 * modules/lseek-tests (Makefile.am): Likewise.
1638 * modules/parse-duration-tests (Makefile.am): Likewise.
1639 * modules/perror-tests (Makefile.am): Likewise.
1640 * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
1641 * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
1642 * modules/pipe-tests (Makefile.am): Likewise.
1643 * modules/pread-tests (Makefile.am): Likewise.
1644 * modules/printf-posix-tests (Makefile.am): Likewise.
1645 * modules/select-tests (Makefile.am): Likewise.
1646 * modules/sigpipe-tests (Makefile.am): Likewise.
1647 * modules/tsearch-tests (Makefile.am): Likewise.
1648 * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
1649 * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
1650 * modules/uniname/uniname-tests (Makefile.am): Likewise.
1651 * modules/uniwidth/width-tests (Makefile.am): Likewise.
1652 * modules/vdprintf-posix-tests (Makefile.am): Likewise.
1653 * modules/version-etc-tests (Makefile.am): Likewise.
1654 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
1655 * modules/vprintf-posix-tests (Makefile.am): Likewise.
1656 * modules/xalloc-die-tests (Makefile.am): Likewise.
1657 * modules/xprintf-posix-tests (Makefile.am): Likewise.
1658 * modules/xstrtoimax-tests (Makefile.am): Likewise.
1659 * modules/xstrtol-tests (Makefile.am): Likewise.
1660 * modules/xstrtoumax-tests (Makefile.am): Likewise.
1661 * modules/yesno-tests (Makefile.am): Likewise.
1662 Suggested by Jim Meyering.
1664 2010-01-24 Bruno Haible <bruno@clisp.org>
1667 * doc/gnulib.texi (Writing modules): New chapter.
1668 (Miscellaneous Notes): Move sections "Comments" and "Header files" to
1671 2010-01-24 Jim Meyering <meyering@redhat.com>
1673 maint.mk: do not prepend "./" after filtering
1674 * top/maint.mk (_prepend_srcdir_prefix): New variable
1675 (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
1676 "./" when $(srcdir) is ".".
1678 define STREQ(a,b) consistently, removing useless parentheses
1679 #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
1680 since the only risk is that "a" or "b" contains an unparenthesized
1681 comma, but if either did that, STREQ would have 3 or more arguments.
1682 Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
1683 * lib/fts.c (STREQ): Remove unnecessary parentheses.
1684 * lib/hash-triple.c (STREQ): Likewise.
1685 * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
1686 * lib/getugroups.c (STREQ): Likewise.
1688 2010-01-23 Jim Meyering <meyering@redhat.com>
1690 maint.mk: fix syntax-check in a non-srcdir build directory
1691 * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
1692 introduced in my 2010-01-21 commit, a6da6c45. Reported by Eric Blake.
1694 2010-01-22 Jim Meyering <meyering@redhat.com>
1696 userspec: add unit tests
1697 * tests/test-userspec.c: New file.
1698 * modules/userspec-tests: Likewise.
1700 2010-01-21 Jim Meyering <meyering@redhat.com>
1702 maint.mk: handle source file names containing "." robustly
1703 * top/maint.mk (_dot_escaped_srcdir): Define.
1704 (VC_LIST): Use it in LHS of sed substitution.
1706 2010-01-21 Jiri Denemark <jdenemar@redhat.com>
1708 maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
1709 * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
1710 $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
1711 from a non-srcdir build.
1713 2010-01-20 Eric Blake <ebb9@byu.net>
1715 warn-on-use: use instead of link-warning
1716 * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
1717 * modules/unistd (Depends-on, Makefile.am): Likewise.
1718 * modules/arpa_inet (Depends-on): Replace link-warning with
1720 (Makefile.am): Update rules accordingly.
1721 * modules/ctype (Depends-on, Makefile.am): Likewise.
1722 * modules/dirent (Depends-on, Makefile.am): Likewise.
1723 * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
1724 * modules/inttypes (Depends-on, Makefile.am): Likewise.
1725 * modules/langinfo (Depends-on, Makefile.am): Likewise.
1726 * modules/locale (Depends-on, Makefile.am): Likewise.
1727 * modules/math (Depends-on, Makefile.am): Likewise.
1728 * modules/search (Depends-on, Makefile.am): Likewise.
1729 * modules/signal (Depends-on, Makefile.am): Likewise.
1730 * modules/spawn (Depends-on, Makefile.am): Likewise.
1731 * modules/stdlib (Depends-on, Makefile.am): Likewise.
1732 * modules/string (Depends-on, Makefile.am): Likewise.
1733 * modules/strings (Depends-on, Makefile.am): Likewise.
1734 * modules/sys_file (Depends-on, Makefile.am): Likewise.
1735 * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
1736 * modules/sys_select (Depends-on, Makefile.am): Likewise.
1737 * modules/sys_socket (Depends-on, Makefile.am): Likewise.
1738 * modules/sys_stat (Depends-on, Makefile.am): Likewise.
1739 * modules/sys_times (Depends-on, Makefile.am): Likewise.
1740 * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
1741 * modules/wchar (Depends-on, Makefile.am): Likewise.
1742 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
1744 * m4/ctype.m4 (gl_CTYPE_H): Likewise.
1745 * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
1746 * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
1747 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
1748 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
1749 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
1750 * m4/math_h.m4 (gl_MATH_H): Likewise.
1751 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
1752 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
1753 * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1754 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
1755 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
1756 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
1757 * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
1758 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
1759 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
1760 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1761 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
1762 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
1763 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1764 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1765 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1766 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
1767 * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
1769 * lib/ctype.in.h: Likewise.
1770 * lib/dirent.in.h: Likewise.
1771 * lib/fcntl.in.h: Likewise.
1772 * lib/inttypes.in.h: Likewise.
1773 * lib/langinfo.in.h: Likewise.
1774 * lib/locale.in.h: Likewise.
1775 * lib/math.in.h: Likewise.
1776 * lib/search.in.h: Likewise.
1777 * lib/signal.in.h: Likewise.
1778 * lib/spawn.in.h: Likewise.
1779 * lib/stdio.in.h: Likewise.
1780 * lib/stdlib.in.h: Likewise.
1781 * lib/string.in.h: Likewise.
1782 * lib/strings.in.h: Likewise.
1783 * lib/sys_file.in.h: Likewise.
1784 * lib/sys_ioctl.in.h: Likewise.
1785 * lib/sys_select.in.h: Likewise.
1786 * lib/sys_socket.in.h: Likewise.
1787 * lib/sys_stat.in.h: Likewise.
1788 * lib/sys_times.in.h: Likewise.
1789 * lib/sys_utsname.in.h: Likewise.
1790 * lib/unistd.in.h: Likewise.
1791 * lib/wchar.in.h: Likewise.
1793 2010-01-20 Bruno Haible <bruno@clisp.org>
1795 Avoid duplicate -lm.
1796 * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
1797 * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
1798 * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
1799 * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
1800 * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
1801 * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
1802 * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
1803 * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
1804 * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
1805 * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
1806 * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
1807 * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
1808 Reported by Paolo Bonzini.
1810 2010-01-19 Bruno Haible <bruno@clisp.org>
1812 langinfo, nl_langinfo: Relicense under LGPLv2+.
1813 * modules/langinfo (License): Change to LGPLv2+.
1814 * modules/nl_langinfo (License): Likewise.
1815 Patch by David Lutterkort <lutter@redhat.com>.
1817 2010-01-19 Bruno Haible <bruno@clisp.org>
1819 Avoid compilation error with cc on OSF/1 5.1.
1820 * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
1821 statement, not before.
1822 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1824 2010-01-18 Bruno Haible <bruno@clisp.org>
1826 Avoid a link error due to the __printf__ symbol.
1827 * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
1829 (__format__, __printf__): Remove definitions.
1830 * lib/argp-fmtstream.h: Likewise.
1831 * lib/argp.h: Likewise.
1832 * lib/error.h: Likewise.
1833 * lib/vasnprintf.h: Likewise.
1834 * lib/xprintf.h: Likewise.
1835 * lib/xvasprintf.h: Likewise.
1836 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1838 2010-01-18 Bruno Haible <bruno@clisp.org>
1840 Tests for module 'tanl'.
1841 * modules/tanl-tests: New file.
1842 * tests/test-tanl.c: New file.
1844 Tests for module 'sqrtl'.
1845 * modules/sqrtl-tests: New file.
1846 * tests/test-sqrtl.c: New file.
1848 Tests for module 'sinl'.
1849 * modules/sinl-tests: New file.
1850 * tests/test-sinl.c: New file.
1852 Tests for module 'logl'.
1853 * modules/logl-tests: New file.
1854 * tests/test-logl.c: New file.
1856 Tests for module 'expl'.
1857 * modules/expl-tests: New file.
1858 * tests/test-expl.c: New file.
1860 Tests for module 'cosl'.
1861 * modules/cosl-tests: New file.
1862 * tests/test-cosl.c: New file.
1864 Tests for module 'atanl'.
1865 * modules/atanl-tests: New file.
1866 * tests/test-atanl.c: New file.
1868 Tests for module 'asinl'.
1869 * modules/asinl-tests: New file.
1870 * tests/test-asinl.c: New file.
1872 Tests for module 'acosl'.
1873 * modules/acosl-tests: New file.
1874 * tests/test-acosl.c: New file.
1876 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
1877 * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
1878 tanl): Use the standard gnulib idiom.
1879 * lib/cosl.c: Don't include trigl.c and sincosl.c.
1880 * lib/sinl.c: Likewise.
1881 * lib/tanl.c: Don't include trigl.c.
1882 (kernel_tanl): Make static.
1883 * lib/sincosl.c: Include trigl.h first.
1884 * lib/trigl.c: Likewise.
1885 * m4/acosl.m4: New file.
1886 * m4/asinl.m4: New file.
1887 * m4/atanl.m4: New file.
1888 * m4/cosl.m4: New file.
1889 * m4/expl.m4: New file.
1890 * m4/logl.m4: New file.
1891 * m4/sinl.m4: New file.
1892 * m4/sqrtl.m4: New file.
1893 * m4/tanl.m4: New file.
1894 * m4/mathl.m4: Remove file.
1895 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
1896 variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
1897 Don't initialize GNULIB_MATHL.
1898 * modules/acosl: New file.
1899 * modules/asinl: New file.
1900 * modules/atanl: New file.
1901 * modules/cosl: New file.
1902 * modules/expl: New file.
1903 * modules/logl: New file.
1904 * modules/sinl: New file.
1905 * modules/sqrtl: New file.
1906 * modules/tanl: New file.
1907 * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
1908 for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
1909 substitute GNULIB_MATHL.
1910 * modules/mathl: Rewritten.
1911 * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
1912 * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
1913 * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
1914 * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
1915 * doc/posix-functions/expl.texi: Mention the 'expl' module.
1916 * doc/posix-functions/logl.texi: Mention the 'logl' module.
1917 * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
1918 * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
1919 * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
1921 2010-01-18 Bruno Haible <bruno@clisp.org>
1923 sqrt: Make gl_FUNC_SQRT requirable.
1924 * m4/sqrt.m4: New file.
1925 * modules/sqrt (Files): Add it.
1926 (configure.ac): Invoke gl_FUNC_SQRT.
1928 2010-01-18 Bruno Haible <bruno@clisp.org>
1930 New modules for common <math.h> functions.
1931 * m4/mathfunc.m4: New file.
1932 * modules/acos: New file.
1933 * modules/asin: New file.
1934 * modules/atan: New file.
1935 * modules/atan2: New file.
1936 * modules/cbrt: New file.
1937 * modules/copysign: New file.
1938 * modules/cos: New file.
1939 * modules/cosh: New file.
1940 * modules/erf: New file.
1941 * modules/erfc: New file.
1942 * modules/exp: New file.
1943 * modules/fabs: New file.
1944 * modules/fmod: New file.
1945 * modules/hypot: New file.
1946 * modules/j0: New file.
1947 * modules/j1: New file.
1948 * modules/jn: New file.
1949 * modules/ldexp: New file.
1950 * modules/lgamma: New file.
1951 * modules/log: New file.
1952 * modules/log10: New file.
1953 * modules/log1p: New file.
1954 * modules/logb: New file.
1955 * modules/modf: New file.
1956 * modules/nextafter: New file.
1957 * modules/pow: New file.
1958 * modules/remainder: New file.
1959 * modules/rint: New file.
1960 * modules/sin: New file.
1961 * modules/sinh: New file.
1962 * modules/sqrt: New file.
1963 * modules/tan: New file.
1964 * modules/tanh: New file.
1965 * modules/y0: New file.
1966 * modules/y1: New file.
1967 * modules/yn: New file.
1968 * doc/posix-functions/acos.texi: Mention the 'acos' module.
1969 * doc/posix-functions/asin.texi: Mention the 'asin' module.
1970 * doc/posix-functions/atan.texi: Mention the 'atan' module.
1971 * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
1972 * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
1973 * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
1974 * doc/posix-functions/cos.texi: Mention the 'cos' module.
1975 * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
1976 * doc/posix-functions/erf.texi: Mention the 'erf' module.
1977 * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
1978 * doc/posix-functions/exp.texi: Mention the 'exp' module.
1979 * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
1980 * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
1981 * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
1982 * doc/posix-functions/j0.texi: Mention the 'j0' module.
1983 * doc/posix-functions/j1.texi: Mention the 'j1' module.
1984 * doc/posix-functions/jn.texi: Mention the 'jn' module.
1985 * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
1986 * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
1987 * doc/posix-functions/log.texi: Mention the 'log' module.
1988 * doc/posix-functions/log10.texi: Mention the 'log10' module.
1989 * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
1990 * doc/posix-functions/logb.texi: Mention the 'logb' module.
1991 * doc/posix-functions/modf.texi: Mention the 'modf' module.
1992 * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
1993 * doc/posix-functions/pow.texi: Mention the 'pow' module.
1994 * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
1995 * doc/posix-functions/rint.texi: Mention the 'rint' module.
1996 * doc/posix-functions/sin.texi: Mention the 'sin' module.
1997 * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
1998 * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
1999 * doc/posix-functions/tan.texi: Mention the 'tan' module.
2000 * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
2001 * doc/posix-functions/y0.texi: Mention the 'y0' module.
2002 * doc/posix-functions/y1.texi: Mention the 'y1' module.
2003 * doc/posix-functions/yn.texi: Mention the 'yn' module.
2005 2010-01-18 Jim Meyering <meyering@redhat.com>
2007 ignore-value: relax license to LGPLv2+
2008 * modules/ignore-value (License): Relax to LGPLv2+.
2010 getdate: don't leak when TZ contains two or more '"'s
2011 * lib/getdate.y (get_date): Don't leak a copy of TZ for each
2012 double quote in TZ after the first one.
2014 readtokens: do not leak internal token_lengths buffer
2015 * lib/readtokens.c (readtokens): Free the local, lengths,
2016 when the supplied "token_lengths" parameter is NULL.
2018 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2020 Fix a couple of missing LIBTHREAD link failures on AIX.
2021 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
2023 * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
2025 Link test-poll against INET_PTON_LIB.
2026 * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
2027 for inet_pton on Solaris 10.
2029 2010-01-17 Bruno Haible <bruno@clisp.org>
2031 unistdio/*-sprintf: Fix typo in module description.
2032 * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
2033 * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
2034 * modules/unistdio/u16-sprintf (Depends-on): Likewise.
2035 * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
2036 * modules/unistdio/u32-sprintf (Depends-on): Likewise.
2037 * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
2038 * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
2039 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2041 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2043 gnulib-tool: fix filelist for AIX, HP-UX ksh.
2044 * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
2045 variables in shell case patterns, for AIX and HP-UX ksh.
2047 Split large sed scripts, for HP-UX sed.
2048 * modules/stdio: Split sed scripts around 50 sed commands,
2049 to avoid HP-UX limit of 99 commands, in the near future.
2050 * modules/string: Likewise.
2051 * modules/unistd: Likewise.
2053 gnulib-tool: avoid writing in the current directory.
2054 * gnulib-tool (func_emit_lib_Makefile_am)
2055 (func_emit_tests_Makefile_am): Put temporary files in $tmp,
2056 not in the current directory, so concurrent gnulib-tool
2057 instances do not interfere.
2059 2010-01-16 Jim Meyering <meyering@redhat.com>
2061 doc: update users.txt
2062 * users.txt: Add grep.
2063 (diffutils, gzip): Update URLs.
2065 2010-01-12 Bruno Haible <bruno@clisp.org>
2067 posix_spawn: Avoid test failure on Cygwin.
2068 * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
2070 Reported by Simon Josefsson.
2072 2010-01-12 Bruno Haible <bruno@clisp.org>
2074 * tests/test-cond.c (main): When skipping the test, show the reason.
2076 2010-01-12 Simon Josefsson <simon@josefsson.org>
2078 * lib/striconv.c (str_cd_iconv): Avoid if before free.
2080 2010-01-12 Simon Josefsson <simon@josefsson.org>
2082 * top/maint.mk (VC_LIST_EXCEPT): Filter list through
2083 VC_LIST_ALWAYS_EXCLUDE_REGEX.
2085 2010-01-12 Eric Blake <ebb9@byu.net>
2087 build: guarantee AS_VAR_IF
2088 * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
2089 (gl_AS_VAR_IF): Move...
2090 * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
2091 Reported by Simon Josefsson.
2093 2010-01-12 Simon Josefsson <simon@josefsson.org>
2095 * lib/stdio.in.h: Fix typo.
2097 2010-01-12 Simon Josefsson <simon@josefsson.org>
2099 * m4/gc.m4: Check if linking to libgcrypt also needs linking to
2102 2010-01-12 Simon Josefsson <simon@josefsson.org>
2104 * tests/test-xalloc-die.sh: Use $EXEEXT.
2106 2010-01-12 Simon Josefsson <simon@josefsson.org>
2107 Bruno Haible <bruno@clisp.org>
2109 getlogin, getlogin_r: Avoid test failure.
2110 * tests/test-getlogin.c: Include <stdio.h>.
2111 (main): Skip the test when the function fails because stdin is not a
2113 * tests/test-getlogin_r.c: Include <stdio.h>.
2114 (main): Skip the test when the function fails because stdin is not a
2117 2010-01-11 Eric Blake <ebb9@byu.net>
2119 tests: avoid more large file warnings
2120 * tests/test-fflush.c: Avoid warning about ftell use.
2121 * tests/test-fseek.c: Avoid warning about fseek use.
2123 2010-01-10 Bruno Haible <bruno@clisp.org>
2125 nproc: Work better on Linux when /proc and /sys are not mounted.
2126 * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
2127 as lower bound when, on glibc/Linux systems,
2128 sysconf (_SC_NPROCESSORS_CONF) returns 1.
2129 Suggested by Pádraig Brady <P@draigbrady.com>.
2130 Reported by Dmitry V. Levin <ldv@altlinux.org>.
2133 * lib/nproc.c (num_processors_via_affinity_mask): New function,
2134 extracted from num_processors.
2135 (num_processors): Call it.
2137 2010-01-11 Jim Meyering <meyering@redhat.com>
2139 utimecmp: avoid new warning from upcoming gcc-4.5.0
2140 * lib/utimecmp.c (BILLION): Define using #define rather than an
2141 anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
2143 2010-01-11 Eric Blake <ebb9@byu.net>
2145 math: add portability warnings for classification macros
2146 * modules/math (Depends-on): Add warn-on-use.
2147 (Makefile.am): Provide new substitutions.
2148 * m4/math_h.m4 (gl_MATH_H): Require inline.
2149 * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
2150 (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
2151 (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
2154 unistd: warn on use of environ without module
2155 * modules/unistd (Depends-on): Add warn-on-use.
2156 (Makefile.am): Provide new substitutions.
2157 * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
2158 * lib/unistd.in.h (environ): Wrap with a warning helper function.
2160 stdio: warn on suspicious uses
2161 * modules/stdio (Depends-on): Add warn-on-use.
2162 (Makefile.am): Provide new substitutions.
2163 * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
2165 * lib/stdio.in.h (gets): Always warn on use.
2166 (fseek, ftell): Adjust when warnings are issued, and honor
2167 _GL_NO_LARGE_FILES as a way to silence the warning.
2168 * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
2169 any warning about large file offsets.
2170 * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
2171 * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
2172 * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
2173 * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
2174 * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
2175 * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
2176 * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
2177 * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
2179 warn-on-use: new module
2180 * modules/warn-on-use: New file.
2181 * build-aux/warn-on-use.h: Likewise.
2182 * m4/warn-on-use.m4: Likewise.
2183 * MODULES.html.sh (Support for building): Mention it.
2185 2010-01-10 Bruno Haible <bruno@clisp.org>
2187 Tests for module 'unistr/u32-strdup'.
2188 * modules/unistr/u32-strdup-tests: New file.
2189 * tests/unistr/test-u32-strdup.c: New file.
2191 Tests for module 'unistr/u16-strdup'.
2192 * modules/unistr/u16-strdup-tests: New file.
2193 * tests/unistr/test-u16-strdup.c: New file.
2195 Tests for module 'unistr/u8-strdup'.
2196 * modules/unistr/u8-strdup-tests: New file.
2197 * tests/unistr/test-u8-strdup.c: New file.
2198 * tests/unistr/test-strdup.h: New file.
2200 Tests for module 'unistr/u32-strncmp'.
2201 * modules/unistr/u32-strncmp-tests: New file.
2202 * tests/unistr/test-u32-strncmp.c: New file.
2204 Tests for module 'unistr/u16-strncmp'.
2205 * modules/unistr/u16-strncmp-tests: New file.
2206 * tests/unistr/test-u16-strncmp.c: New file.
2208 Tests for module 'unistr/u8-strncmp'.
2209 * modules/unistr/u8-strncmp-tests: New file.
2210 * tests/unistr/test-u8-strncmp.c: New file.
2211 * tests/unistr/test-strncmp.h: New file.
2213 Tests for module 'unistr/u32-strcoll'.
2214 * modules/unistr/u32-strcoll-tests: New file.
2215 * tests/unistr/test-u32-strcoll.c: New file.
2217 Tests for module 'unistr/u16-strcoll'.
2218 * modules/unistr/u16-strcoll-tests: New file.
2219 * tests/unistr/test-u16-strcoll.c: New file.
2221 Tests for module 'unistr/u8-strcoll'.
2222 * modules/unistr/u8-strcoll-tests: New file.
2223 * tests/unistr/test-u8-strcoll.c: New file.
2225 Tests for module 'unistr/u32-strcmp'.
2226 * modules/unistr/u32-strcmp-tests: New file.
2227 * tests/unistr/test-u32-strcmp.c: New file.
2228 * tests/unistr/test-u32-strcmp.h: New file.
2230 Tests for module 'unistr/u16-strcmp'.
2231 * modules/unistr/u16-strcmp-tests: New file.
2232 * tests/unistr/test-u16-strcmp.c: New file.
2233 * tests/unistr/test-u16-strcmp.h: New file.
2235 Tests for module 'unistr/u8-strcmp'.
2236 * modules/unistr/u8-strcmp-tests: New file.
2237 * tests/unistr/test-u8-strcmp.c: New file.
2238 * tests/unistr/test-u8-strcmp.h: New file.
2239 * tests/unistr/test-strcmp.h: New file.
2241 Tests for module 'unistr/u32-strncat'.
2242 * modules/unistr/u32-strncat-tests: New file.
2243 * tests/unistr/test-u32-strncat.c: New file.
2245 Tests for module 'unistr/u16-strncat'.
2246 * modules/unistr/u16-strncat-tests: New file.
2247 * tests/unistr/test-u16-strncat.c: New file.
2249 Tests for module 'unistr/u8-strncat'.
2250 * modules/unistr/u8-strncat-tests: New file.
2251 * tests/unistr/test-u8-strncat.c: New file.
2252 * tests/unistr/test-strncat.h: New file.
2254 Tests for module 'unistr/u32-strcat'.
2255 * modules/unistr/u32-strcat-tests: New file.
2256 * tests/unistr/test-u32-strcat.c: New file.
2258 Tests for module 'unistr/u16-strcat'.
2259 * modules/unistr/u16-strcat-tests: New file.
2260 * tests/unistr/test-u16-strcat.c: New file.
2262 Tests for module 'unistr/u8-strcat'.
2263 * modules/unistr/u8-strcat-tests: New file.
2264 * tests/unistr/test-u8-strcat.c: New file.
2265 * tests/unistr/test-strcat.h: New file.
2267 Tests for module 'unistr/u32-stpncpy'.
2268 * modules/unistr/u32-stpncpy-tests: New file.
2269 * tests/unistr/test-u32-stpncpy.c: New file.
2271 Tests for module 'unistr/u16-stpncpy'.
2272 * modules/unistr/u16-stpncpy-tests: New file.
2273 * tests/unistr/test-u16-stpncpy.c: New file.
2275 Tests for module 'unistr/u8-stpncpy'.
2276 * modules/unistr/u8-stpncpy-tests: New file.
2277 * tests/unistr/test-u8-stpncpy.c: New file.
2278 * tests/unistr/test-stpncpy.h: New file.
2280 Tests for module 'unistr/u32-strncpy'.
2281 * modules/unistr/u32-strncpy-tests: New file.
2282 * tests/unistr/test-u32-strncpy.c: New file.
2284 Tests for module 'unistr/u16-strncpy'.
2285 * modules/unistr/u16-strncpy-tests: New file.
2286 * tests/unistr/test-u16-strncpy.c: New file.
2288 Tests for module 'unistr/u8-strncpy'.
2289 * modules/unistr/u8-strncpy-tests: New file.
2290 * tests/unistr/test-u8-strncpy.c: New file.
2291 * tests/unistr/test-strncpy.h: New file.
2293 Tests for module 'unistr/u32-stpcpy'.
2294 * modules/unistr/u32-stpcpy-tests: New file.
2295 * tests/unistr/test-u32-stpcpy.c: New file.
2297 Tests for module 'unistr/u16-stpcpy'.
2298 * modules/unistr/u16-stpcpy-tests: New file.
2299 * tests/unistr/test-u16-stpcpy.c: New file.
2301 Tests for module 'unistr/u8-stpcpy'.
2302 * modules/unistr/u8-stpcpy-tests: New file.
2303 * tests/unistr/test-u8-stpcpy.c: New file.
2304 * tests/unistr/test-stpcpy.h: New file.
2306 Tests for module 'unistr/u32-strcpy'.
2307 * modules/unistr/u32-strcpy-tests: New file.
2308 * tests/unistr/test-u32-strcpy.c: New file.
2310 Tests for module 'unistr/u16-strcpy'.
2311 * modules/unistr/u16-strcpy-tests: New file.
2312 * tests/unistr/test-u16-strcpy.c: New file.
2314 Tests for module 'unistr/u8-strcpy'.
2315 * modules/unistr/u8-strcpy-tests: New file.
2316 * tests/unistr/test-u8-strcpy.c: New file.
2317 * tests/unistr/test-strcpy.h: New file.
2319 Tests for module 'unistr/u32-strnlen'.
2320 * modules/unistr/u32-strnlen-tests: New file.
2321 * tests/unistr/test-u32-strnlen.c: New file.
2323 Tests for module 'unistr/u16-strnlen'.
2324 * modules/unistr/u16-strnlen-tests: New file.
2325 * tests/unistr/test-u16-strnlen.c: New file.
2327 Tests for module 'unistr/u8-strnlen'.
2328 * modules/unistr/u8-strnlen-tests: New file.
2329 * tests/unistr/test-u8-strnlen.c: New file.
2330 * tests/unistr/test-strnlen.h: New file.
2332 Tests for module 'unistr/u32-strlen'.
2333 * modules/unistr/u32-strlen-tests: New file.
2334 * tests/unistr/test-u32-strlen.c: New file.
2336 Tests for module 'unistr/u16-strlen'.
2337 * modules/unistr/u16-strlen-tests: New file.
2338 * tests/unistr/test-u16-strlen.c: New file.
2340 Tests for module 'unistr/u8-strlen'.
2341 * modules/unistr/u8-strlen-tests: New file.
2342 * tests/unistr/test-u8-strlen.c: New file.
2344 Tests for module 'unistr/u32-prev'.
2345 * modules/unistr/u32-prev-tests: New file.
2346 * tests/unistr/test-u32-prev.c: New file.
2348 Tests for module 'unistr/u16-prev'.
2349 * modules/unistr/u16-prev-tests: New file.
2350 * tests/unistr/test-u16-prev.c: New file.
2352 Tests for module 'unistr/u8-prev'.
2353 * modules/unistr/u8-prev-tests: New file.
2354 * tests/unistr/test-u8-prev.c: New file.
2356 Tests for module 'unistr/u32-next'.
2357 * modules/unistr/u32-next-tests: New file.
2358 * tests/unistr/test-u32-next.c: New file.
2360 Tests for module 'unistr/u16-next'.
2361 * modules/unistr/u16-next-tests: New file.
2362 * tests/unistr/test-u16-next.c: New file.
2364 Tests for module 'unistr/u8-next'.
2365 * modules/unistr/u8-next-tests: New file.
2366 * tests/unistr/test-u8-next.c: New file.
2368 Tests for module 'unistr/u32-strmbtouc'.
2369 * modules/unistr/u32-strmbtouc-tests: New file.
2370 * tests/unistr/test-u32-strmbtouc.c: New file.
2372 Tests for module 'unistr/u16-strmbtouc'.
2373 * modules/unistr/u16-strmbtouc-tests: New file.
2374 * tests/unistr/test-u16-strmbtouc.c: New file.
2376 Tests for module 'unistr/u8-strmbtouc'.
2377 * modules/unistr/u8-strmbtouc-tests: New file.
2378 * tests/unistr/test-u8-strmbtouc.c: New file.
2380 Tests for module 'unistr/u32-strmblen'.
2381 * modules/unistr/u32-strmblen-tests: New file.
2382 * tests/unistr/test-u32-strmblen.c: New file.
2384 Tests for module 'unistr/u16-strmblen'.
2385 * modules/unistr/u16-strmblen-tests: New file.
2386 * tests/unistr/test-u16-strmblen.c: New file.
2388 Tests for module 'unistr/u8-strmblen'.
2389 * modules/unistr/u8-strmblen-tests: New file.
2390 * tests/unistr/test-u8-strmblen.c: New file.
2392 Tests for module 'unistr/u32-cpy-alloc'.
2393 * modules/unistr/u32-cpy-alloc-tests: New file.
2394 * tests/unistr/test-u32-cpy-alloc.c: New file.
2396 Tests for module 'unistr/u16-cpy-alloc'.
2397 * modules/unistr/u16-cpy-alloc-tests: New file.
2398 * tests/unistr/test-u16-cpy-alloc.c: New file.
2400 Tests for module 'unistr/u8-cpy-alloc'.
2401 * modules/unistr/u8-cpy-alloc-tests: New file.
2402 * tests/unistr/test-u8-cpy-alloc.c: New file.
2403 * tests/unistr/test-cpy-alloc.h: New file.
2405 Tests for module 'unistr/u32-mbsnlen'.
2406 * modules/unistr/u32-mbsnlen-tests: New file.
2407 * tests/unistr/test-u32-mbsnlen.c: New file.
2409 Tests for module 'unistr/u16-mbsnlen'.
2410 * modules/unistr/u16-mbsnlen-tests: New file.
2411 * tests/unistr/test-u16-mbsnlen.c: New file.
2413 Tests for module 'unistr/u8-mbsnlen'.
2414 * modules/unistr/u8-mbsnlen-tests: New file.
2415 * tests/unistr/test-u8-mbsnlen.c: New file.
2417 Tests for module 'unistr/u32-chr'.
2418 * modules/unistr/u32-chr-tests: New file.
2419 * tests/unistr/test-u32-chr.c: New file.
2421 Tests for module 'unistr/u16-chr'.
2422 * modules/unistr/u16-chr-tests: New file.
2423 * tests/unistr/test-u16-chr.c: New file.
2425 Tests for module 'unistr/u8-chr'.
2426 * modules/unistr/u8-chr-tests: New file.
2427 * tests/unistr/test-u8-chr.c: New file.
2428 * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
2430 Tests for module 'unistr/u32-cmp2'.
2431 * modules/unistr/u32-cmp2-tests: New file.
2432 * tests/unistr/test-u32-cmp2.c: New file.
2434 Tests for module 'unistr/u16-cmp2'.
2435 * modules/unistr/u16-cmp2-tests: New file.
2436 * tests/unistr/test-u16-cmp2.c: New file.
2438 Tests for module 'unistr/u8-cmp2'.
2439 * modules/unistr/u8-cmp2-tests: New file.
2440 * tests/unistr/test-u8-cmp2.c: New file.
2441 * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
2443 Tests for module 'unistr/u32-cmp'.
2444 * modules/unistr/u32-cmp-tests: New file.
2445 * tests/unistr/test-u32-cmp.c: New file.
2447 Tests for module 'unistr/u16-cmp'.
2448 * modules/unistr/u16-cmp-tests: New file.
2449 * tests/unistr/test-u16-cmp.c: New file.
2451 Tests for module 'unistr/u8-cmp'.
2452 * modules/unistr/u8-cmp-tests: New file.
2453 * tests/unistr/test-u8-cmp.c: New file.
2454 * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
2456 Tests for module 'unistr/u32-set'.
2457 * modules/unistr/u32-set-tests: New file.
2458 * tests/unistr/test-u32-set.c: New file.
2460 Tests for module 'unistr/u16-set'.
2461 * modules/unistr/u16-set-tests: New file.
2462 * tests/unistr/test-u16-set.c: New file.
2464 Tests for module 'unistr/u8-set'.
2465 * modules/unistr/u8-set-tests: New file.
2466 * tests/unistr/test-u8-set.c: New file.
2467 * tests/unistr/test-set.h: New file.
2469 Tests for module 'unistr/u32-move'.
2470 * modules/unistr/u32-move-tests: New file.
2471 * tests/unistr/test-u32-move.c: New file.
2473 Tests for module 'unistr/u16-move'.
2474 * modules/unistr/u16-move-tests: New file.
2475 * tests/unistr/test-u16-move.c: New file.
2477 Tests for module 'unistr/u8-move'.
2478 * modules/unistr/u8-move-tests: New file.
2479 * tests/unistr/test-u8-move.c: New file.
2480 * tests/unistr/test-move.h: New file.
2482 Tests for module 'unistr/u32-cpy'.
2483 * modules/unistr/u32-cpy-tests: New file.
2484 * tests/unistr/test-u32-cpy.c: New file.
2486 Tests for module 'unistr/u16-cpy'.
2487 * modules/unistr/u16-cpy-tests: New file.
2488 * tests/unistr/test-u16-cpy.c: New file.
2490 Tests for module 'unistr/u8-cpy'.
2491 * modules/unistr/u8-cpy-tests: New file.
2492 * tests/unistr/test-u8-cpy.c: New file.
2493 * tests/unistr/test-cpy.h: New file.
2495 2010-01-09 Bruno Haible <bruno@clisp.org>
2497 Tests for module 'unistr/u32-uctomb'.
2498 * modules/unistr/u32-uctomb-tests: New file.
2499 * tests/unistr/test-u32-uctomb.c: New file.
2501 Tests for module 'unistr/u16-uctomb'.
2502 * modules/unistr/u16-uctomb-tests: New file.
2503 * tests/unistr/test-u16-uctomb.c: New file.
2505 Tests for module 'unistr/u8-uctomb'.
2506 * modules/unistr/u8-uctomb-tests: New file.
2507 * tests/unistr/test-u8-uctomb.c: New file.
2509 Tests for module 'unistr/u32-mbtoucr'.
2510 * modules/unistr/u32-mbtoucr-tests: New file.
2511 * tests/unistr/test-u32-mbtoucr.c: New file.
2513 Tests for module 'unistr/u16-mbtoucr'.
2514 * modules/unistr/u16-mbtoucr-tests: New file.
2515 * tests/unistr/test-u16-mbtoucr.c: New file.
2517 Tests for module 'unistr/u8-mbtoucr'.
2518 * modules/unistr/u8-mbtoucr-tests: New file.
2519 * tests/unistr/test-u8-mbtoucr.c: New file.
2521 Tests for module 'unistr/u32-mbtouc'.
2522 * modules/unistr/u32-mbtouc-tests: New file.
2523 * tests/unistr/test-u32-mbtouc.c: New file.
2525 Tests for module 'unistr/u16-mbtouc'.
2526 * modules/unistr/u16-mbtouc-tests: New file.
2527 * tests/unistr/test-u16-mbtouc.c: New file.
2529 Tests for module 'unistr/u8-mbtouc'.
2530 * modules/unistr/u8-mbtouc-tests: New file.
2531 * tests/unistr/test-u8-mbtouc.c: New file.
2533 Tests for module 'unistr/u32-mbtouc-unsafe'.
2534 * modules/unistr/u32-mbtouc-unsafe-tests: New file.
2535 * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
2536 * tests/unistr/test-u32-mbtouc.h: New file.
2538 Tests for module 'unistr/u16-mbtouc-unsafe'.
2539 * modules/unistr/u16-mbtouc-unsafe-tests: New file.
2540 * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
2541 * tests/unistr/test-u16-mbtouc.h: New file.
2543 Tests for module 'unistr/u8-mbtouc-unsafe'.
2544 * modules/unistr/u8-mbtouc-unsafe-tests: New file.
2545 * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
2546 * tests/unistr/test-u8-mbtouc.h: New file.
2548 Tests for module 'unistr/u32-mblen'.
2549 * modules/unistr/u32-mblen-tests: New file.
2550 * tests/unistr/test-u32-mblen.c: New file.
2552 Tests for module 'unistr/u16-mblen'.
2553 * modules/unistr/u16-mblen-tests: New file.
2554 * tests/unistr/test-u16-mblen.c: New file.
2556 Tests for module 'unistr/u8-mblen'.
2557 * modules/unistr/u8-mblen-tests: New file.
2558 * tests/unistr/test-u8-mblen.c: New file.
2560 Tests for module 'unistr/u32-to-u16'.
2561 * modules/unistr/u32-to-u16-tests: New file.
2562 * tests/unistr/test-u32-to-u16.c: New file.
2564 Tests for module 'unistr/u32-to-u8'.
2565 * modules/unistr/u32-to-u8-tests: New file.
2566 * tests/unistr/test-u32-to-u8.c: New file.
2568 Tests for module 'unistr/u16-to-u32'.
2569 * modules/unistr/u16-to-u32-tests: New file.
2570 * tests/unistr/test-u16-to-u32.c: New file.
2572 Tests for module 'unistr/u16-to-u8'.
2573 * modules/unistr/u16-to-u8-tests: New file.
2574 * tests/unistr/test-u16-to-u8.c: New file.
2576 Tests for module 'unistr/u8-to-u32'.
2577 * modules/unistr/u8-to-u32-tests: New file.
2578 * tests/unistr/test-u8-to-u32.c: New file.
2580 Tests for module 'unistr/u8-to-u16'.
2581 * modules/unistr/u8-to-u16-tests: New file.
2582 * tests/unistr/test-u8-to-u16.c: New file.
2584 Tests for module 'unistr/u32-check'.
2585 * modules/unistr/u32-check-tests: New file.
2586 * tests/unistr/test-u32-check.c: New file.
2588 Tests for module 'unistr/u16-check'.
2589 * modules/unistr/u16-check-tests: New file.
2590 * tests/unistr/test-u16-check.c: New file.
2592 Tests for module 'unistr/u8-check'.
2593 * modules/unistr/u8-check-tests: New file.
2594 * tests/unistr/test-u8-check.c: New file.
2596 * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
2597 (category_equals): New function.
2598 (main): Add more tests.
2599 * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
2601 * tests/unictype/test-bidi_byname.c (main): Add more tests.
2603 2010-01-10 Bruno Haible <bruno@clisp.org>
2605 unistr/u*-strcoll: Try harder to distinguish different strings.
2606 * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
2607 compare s1 and s2 to see if they are different.
2609 2010-01-10 Bruno Haible <bruno@clisp.org>
2611 unistr/u*-stpncpy: Fix the return value.
2612 * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
2613 description of the return value consistent with stpncpy in glibc.
2614 * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
2615 written non-NUL unit.
2617 2010-01-10 Bruno Haible <bruno@clisp.org>
2619 unistr/u*-next: Add missing dependencies.
2620 * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
2621 * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
2622 * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
2624 2010-01-10 Bruno Haible <bruno@clisp.org>
2626 unistr/u8-mbsnlen: Fix return value for incomplete character.
2627 * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
2629 * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
2630 Remove unistr/u8-mblen.
2631 * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
2633 * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
2634 Remove unistr/u16-mblen.
2636 2010-01-10 Bruno Haible <bruno@clisp.org>
2638 wchar: Fix compilation error when <wchar.h> is used from coreutils.
2639 * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
2640 Reported by Brian Gough <bjg@gnu.org> and
2641 Chris Clayton <chris2553@googlemail.com> via
2642 Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
2644 2010-01-09 Bruno Haible <bruno@clisp.org>
2646 unistr/u16-to-u32: Reject invalid input.
2647 * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
2649 * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
2650 Remove unistr/u16-mbtouc.
2652 unistr/u16-to-u8: Reject invalid input.
2653 * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
2655 * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
2656 Remove unistr/u16-mbtouc.
2658 unistr/u8-to-u32: Reject invalid input.
2659 * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
2661 * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
2662 Remove unistr/u8-mbtouc.
2664 unistr/u8-to-u16: Reject invalid input.
2665 * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
2667 * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
2668 Remove unistr/u8-mbtouc.
2670 2010-01-09 Bruno Haible <bruno@clisp.org>
2672 Tests for module 'getlogin'.
2673 * modules/getlogin-tests: New file.
2674 * tests/test-getlogin.c: New file.
2676 New module 'getlogin'.
2677 * lib/unistd.in.h (getlogin): New declaration.
2678 * lib/getlogin.c: New file.
2679 * m4/getlogin.m4: New file.
2680 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
2682 * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
2684 * modules/getlogin: New file.
2685 * doc/posix-functions/getlogin.texi: Mention the new module.
2686 Reported by John W. Eaton <jwe@gnu.org>.
2688 2010-01-09 Bruno Haible <bruno@clisp.org>
2690 getlogin_r: Support for native Windows.
2691 * lib/getlogin_r.c: Include <windows.h>
2692 (getlogin_r): Implement for native Windows.
2693 * tests/test-getlogin_r.c (main): Also test with a huge buffer.
2694 Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
2695 via John W. Eaton <jwe@gnu.org>.
2697 2010-01-09 Bruno Haible <bruno@clisp.org>
2699 getlogin_r: Small fixes.
2700 * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
2702 * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
2703 before testing whether getlogin_r is declared. No need to set
2704 HAVE_DECL_GETLOGIN_R to 1.
2705 (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
2707 2010-01-09 Bruno Haible <bruno@clisp.org>
2709 * lib/unistd.in.h (getlogin_r): Add comment.
2711 2010-01-09 Bruno Haible <bruno@clisp.org>
2713 Tests for module 'getlogin_r'.
2714 * modules/getlogin_r-tests: New file.
2715 * tests/test-getlogin_r.c: New file.
2717 2010-01-09 Jim Meyering <meyering@redhat.com>
2719 maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
2720 * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
2721 also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
2723 2010-01-08 Simon Josefsson <simon@josefsson.org>
2725 * lib/dup2.c (rpl_dup2): Improve comment.
2727 2010-01-08 Eric Blake <ebb9@byu.net>
2729 maint.mk: allow packages to add makefile @@ exceptions
2730 * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
2731 (sc_makefile_check): Rename...
2732 (sc_makefile_at_at_check): ...to this, and use hook.
2734 dup2: work around mingw bug
2735 * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
2736 Reported by Simon Josefsson.
2738 2010-01-07 John W. Eaton <jwe@octave.org> (tiny change)
2740 glob: Fix C++ compilation.
2741 * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
2744 2010-01-07 Bruno Haible <bruno@clisp.org>
2746 Fix indentation of wctype.in.h, broken since 2007-01-06.
2747 * lib/wctype.in.h: Fix indentation of preprocessor directives.
2749 2010-01-07 Bruno Haible <bruno@clisp.org>
2751 mbslen: Avoid collision with system function.
2752 * lib/string.in.h [MirBSD]: Include <wchar.h>.
2753 (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
2754 * m4/mbslen.m4: New file.
2755 * modules/mbslen (Files): Add it.
2756 (configure.ac): Invoke gl_MBSLEN.
2757 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
2758 * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
2759 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
2760 via Ian Beckwith <ianb@erislabs.net>.
2762 2010-01-07 Bruno Haible <bruno@clisp.org>
2764 dirent: Document the last fix.
2765 * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
2767 2010-01-07 Bruno Haible <bruno@clisp.org>
2769 stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
2770 * lib/stdio.in.h: Include <sys/types.h> unconditionally.
2771 * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
2772 va_list are defined.
2773 * doc/posix-headers/stdio.texi: Document the bug of missing types.
2774 Reported by Eric Blake.
2776 2010-01-07 Bruno Haible <bruno@clisp.org>
2778 xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
2779 * modules/xlist (Depends-on): Add 'list',
2780 * modules/xoset (Depends-on): Add 'oset'.
2781 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2783 2010-01-07 Bruno Haible <bruno@clisp.org>
2785 * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
2786 * doc/posix-functions/strncasecmp.texi: Likewise.
2788 2010-01-07 Bruno Haible <bruno@clisp.org>
2790 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
2792 2010-01-07 John W. Eaton <jwe@octave.org>
2794 wctype: allow C++ use
2795 * lib/wctype.in.h: Add extern "C" block for C++.
2797 2010-01-06 Eric Blake <ebb9@byu.net>
2799 maint.mk: detect incorrect GFDL usage
2800 * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
2802 2010-01-06 Jim Meyering <meyering@redhat.com>
2803 and Eric Blake <ebb9@byu.net>
2805 maint.mk: ignore multi-line copyright in NEWS
2806 * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
2808 2010-01-06 Eric Blake <ebb9@byu.net>
2810 select: add missing dependency
2811 * modules/select-tests (Depends-on): Move sockets dependency...
2812 * modules/select (Depends-on): ...here.
2813 Reported by Ian Beckwith.
2815 doc: regenerate INSTALL
2816 * doc/INSTALL: Reflect recent autoconf update.
2817 * doc/INSTALL.ISO: Likewise.
2818 * doc/INSTALL.UTF-8: Likewise.
2820 pread: fix compilation on glibc
2821 * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
2822 Reported by Ralf Wildenhues.
2824 dirent: fix test failure
2825 * lib/dirent.in.h (includes): Guarantee ino_t.
2826 Reported by Ralf Wildenhues.
2828 2010-01-06 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
2830 linkat, renameat: avoid bad free
2831 * lib/at-func2.c (at_func2): Fix typo.
2832 Reported via Ian Beckwith, from http://bugs.debian.org/561117.
2834 2010-01-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2836 cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
2837 * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
2838 to avoid failure of symlink test later.
2840 2010-01-06 Eric Blake <ebb9@byu.net>
2842 stdio, unistd: guarantee ssize_t
2843 * lib/unistd.in.h (includes): Ensure that types required by POSIX
2844 2008 are exposed when needed.
2845 * lib/stdio.in.h (includes): Likewise.
2846 Reported by Ralf Wildenhues.
2848 2010-01-06 Paolo Bonzini <bonzini@gnu.org>
2850 nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
2851 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
2852 AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
2854 2010-01-06 Jim Meyering <meyering@redhat.com>
2856 readtokens: this module *does* require xalloc.h
2857 It uses only functions that were omitted by the old syntax-check rule.
2858 * lib/readtokens.c: Include "xalloc.h" once again.
2859 * modules/readtokens (Depends-on): Add xalloc.
2860 This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
2862 2010-01-05 Eric Blake <ebb9@byu.net>
2864 maint: support 'make announcement' from a VPATH build
2865 * top/maint.mk (announcement): Look for correct NEWS file.
2867 2010-01-05 Aurelien Jarno <aurelien@aurel32.net> (tiny change)
2869 utimens (fdutimens): ignore a negative FD, per contract
2870 * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
2871 when we have a valid file descriptor. Otherwise, using a brand
2872 new glibc (with just-patched futimens that now fails with EBADF)
2873 would cause this function to fail with ENOSYS.
2874 Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
2875 See also http://bugzilla.redhat.com/552320.
2877 2010-01-05 Eric Blake <ebb9@byu.net>
2879 strcase: document what it provides
2880 * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
2882 * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
2883 Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
2885 2010-01-05 Jim Meyering <meyering@redhat.com>
2887 maint: remove useless inclusions of "xalloc.h"
2888 * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
2889 * lib/readtokens.c: Likewise.
2890 * lib/same.c: Likewise.
2891 * modules/getloadavg (Depends-on): Remove xalloc.
2892 * modules/readtokens: Likewise.
2893 * modules/same: Likewise.
2895 maint.mk: include 4 more function names in alloca.h-checking regexp
2896 * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
2897 regexp. Before, we would give a false-positive (saying alloca.h
2898 is included unnecessarily) when the only uses involved omitted symbols.
2900 xalloc.h: use consistent formatting
2901 * lib/xalloc.h: Move declarations to start in the first column.
2903 2010-01-05 Eric Blake <ebb9@byu.net>
2906 * lib/mkdir.c (includes): Drop unused header.
2907 Reported by John W. Eaton.
2909 2010-01-04 Jim Meyering <meyering@redhat.com>
2911 nl_langinfo: avoid configure-time syntax error
2912 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
2913 for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
2914 the empty string. Don't let that provoke a shell syntax error.
2916 regcomp, regexec, fnmatch: avoid array bounds read error
2917 * lib/regcomp.c (build_equiv_class): From glibc:
2918 Use only the low 24 bits of a findidx return value as an index
2919 into the weights array. Patch by Ulrich Drepper:
2920 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
2921 * lib/regexec.c (check_node_accept_bytes): Likewise.
2922 * lib/fnmatch_loop.c (FCT): Likewise.
2924 regcomp: skip collseq lookup when there are no rules
2925 * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
2926 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
2928 regcomp: recognize ill-formed { } expressions
2929 * lib/regcomp.c (parse_dup_op): From glibc:
2930 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
2932 regcomp: fix typo in comment
2933 * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
2934 s/satisfy/satisfies/.
2936 regcomp: sync from glibc: remove dead store
2937 * lib/regcomp.c (duplicate_node_closure): Remove useless
2938 search_duplicated_node call and dead store.
2940 regcomp: sync from glibc; always use nl_langinfo
2941 * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
2942 now that gnulib provides it. Recognize UTF8 as well as UTF-8.
2943 * modules/regex (Depends-on): Add nl_langinfo.
2945 2010-01-04 Eric Blake <ebb9@byu.net>
2947 fdopendir: fix configure test
2948 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
2950 2010-01-01 Bruno Haible <bruno@clisp.org>
2952 wchar: Remove unused configure check.
2953 * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
2955 2010-01-01 Eric Blake <ebb9@byu.net>
2957 headers: make check of system header explicit
2958 * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
2959 gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
2961 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2962 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2963 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
2964 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
2966 * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
2968 Suggested by Bruno Haible.
2970 2010-01-01 Jim Meyering <meyering@redhat.com>
2972 ChangeLog: tweak to eliminate unnecessary copyright line
2973 * ChangeLog: Remove a copyright line that was mistakenly updated
2974 by today's update-copyright run. Reported by Eric Blake.
2976 test-update-copyright: don't let envvar setting cause test failure
2977 * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
2979 2010-01-01 Bruno Haible <bruno@clisp.org>
2981 localename: Avoid gcc warning.
2982 * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
2983 function if it is not used.
2985 2010-01-01 Jim Meyering <meyering@redhat.com>
2987 update nearly all FSF copyright year lists to include 2010
2988 Use the same procedure as for 2009, outlined in
2989 http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
2991 version-etc: set COPYRIGHT_YEAR to 2010
2992 * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
2994 2009-12-31 Eric Blake <ebb9@byu.net>
2996 doc: correct availability of cygwin 1.5.x getopt
2997 * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
2999 * doc/posix-functions/opterr.texi (opterr): Likewise.
3000 * doc/posix-functions/optind.texi (optind): Likewise.
3001 * doc/posix-functions/optopt.texi (optopt): Likewise.
3002 * doc/posix-functions/tzname.texi (tzname): Likewise.
3004 openat: update maintainer
3005 * modules/openat (Maintainer): Add myself.
3007 utimens: avoid shadowing warning
3008 * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
3009 buffers into one, to avoid shadowing, as well as avoiding a
3011 Reported by Jim Meyering.
3013 test-dup2: avoid compiler warning
3014 * tests/test-dup2.c (is_inheritable): Only define if used.
3016 2010-01-01 Bruno Haible <bruno@clisp.org>
3018 vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
3019 * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
3020 defined, use wctomb instead of wcrtomb.
3022 2010-01-01 Bruno Haible <bruno@clisp.org>
3024 iconv: Reject native Solaris iconv.
3025 * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
3026 * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
3028 2009-12-31 Bruno Haible <bruno@clisp.org>
3030 * tests/test-signal.c (main): Remove test of 'SIG'.
3032 2009-12-31 Bruno Haible <bruno@clisp.org>
3034 spawn: Fix incomplete fix.
3035 * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3036 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3037 warnings for GNULIB_POSIXCHECK again.
3038 Reported by Eric Blake.
3040 2009-12-31 Bruno Haible <bruno@clisp.org>
3042 Avoid namespace pollution on glibc systems.
3043 * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
3044 * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
3045 * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
3048 2009-12-31 Bruno Haible <bruno@clisp.org>
3050 * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
3051 (gl_REPLACE_WCHAR_H): Turn into a no-op.
3052 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
3053 * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
3054 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
3055 * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
3056 * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
3058 2009-12-31 Bruno Haible <bruno@clisp.org>
3060 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
3061 gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
3064 2009-12-31 Bruno Haible <bruno@clisp.org>
3066 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
3069 2009-12-31 Bruno Haible <bruno@clisp.org>
3071 spawn: Fix misapplied patch.
3072 * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3073 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3074 warnings for GNULIB_POSIXCHECK.
3076 2009-12-31 Bruno Haible <bruno@clisp.org>
3078 times: Update after sys_times changed.
3079 * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
3080 * modules/times (Files): Add it.
3081 (configure.ac): Invoke gl_FUNC_TIMES.
3083 2009-12-31 Bruno Haible <bruno@clisp.org>
3085 Use AC_C_INLINE where necessary.
3086 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
3087 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3088 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
3089 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
3090 * m4/mbfile.m4 (gl_MBFILE): Likewise.
3091 * m4/mbiter.m4 (gl_MBITER): Likewise.
3092 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3093 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3094 * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
3095 * modules/u64 (configure.ac): Likewise.
3097 2009-12-31 Bruno Haible <bruno@clisp.org>
3099 Use AC_C_INLINE instead of module 'inline' where possible.
3100 * modules/inline (Description): Clarify purpose.
3101 * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
3102 * modules/count-one-bits (Depends-on): Remove inline.
3103 * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
3104 * modules/openat (Depends-on): Remove inline.
3105 * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
3106 instead of depending on module 'inline'.
3107 * modules/filevercmp (Depends-on, configure.ac): Likewise.
3108 * modules/unicase/cased (Depends-on, configure.ac): Likewise.
3109 * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
3110 * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
3111 * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
3112 * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
3113 * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
3114 * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
3115 * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
3116 * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
3117 * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
3118 * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
3119 * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
3120 * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
3121 * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
3122 * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
3123 * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
3124 * modules/unictype/property-alphabetic (Depends-on, configure.ac):
3126 * modules/unictype/property-ascii-hex-digit (Depends-on,
3127 configure.ac): Likewise.
3128 * modules/unictype/property-bidi-arabic-digit (Depends-on,
3129 configure.ac): Likewise.
3130 * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
3131 configure.ac): Likewise.
3132 * modules/unictype/property-bidi-block-separator (Depends-on,
3133 configure.ac): Likewise.
3134 * modules/unictype/property-bidi-boundary-neutral (Depends-on,
3135 configure.ac): Likewise.
3136 * modules/unictype/property-bidi-common-separator (Depends-on,
3137 configure.ac): Likewise.
3138 * modules/unictype/property-bidi-control (Depends-on, configure.ac):
3140 * modules/unictype/property-bidi-embedding-or-override (Depends-on,
3141 configure.ac): Likewise.
3142 * modules/unictype/property-bidi-eur-num-separator (Depends-on,
3143 configure.ac): Likewise.
3144 * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
3145 configure.ac): Likewise.
3146 * modules/unictype/property-bidi-european-digit (Depends-on,
3147 configure.ac): Likewise.
3148 * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
3149 configure.ac): Likewise.
3150 * modules/unictype/property-bidi-left-to-right (Depends-on,
3151 configure.ac): Likewise.
3152 * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
3153 configure.ac): Likewise.
3154 * modules/unictype/property-bidi-other-neutral (Depends-on,
3155 configure.ac): Likewise.
3156 * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
3158 * modules/unictype/property-bidi-segment-separator (Depends-on,
3159 configure.ac): Likewise.
3160 * modules/unictype/property-bidi-whitespace (Depends-on,
3161 configure.ac): Likewise.
3162 * modules/unictype/property-combining (Depends-on, configure.ac):
3164 * modules/unictype/property-composite (Depends-on, configure.ac):
3166 * modules/unictype/property-currency-symbol (Depends-on,
3167 configure.ac): Likewise.
3168 * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
3169 * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
3171 * modules/unictype/property-default-ignorable-code-point (Depends-on,
3172 configure.ac): Likewise.
3173 * modules/unictype/property-deprecated (Depends-on, configure.ac):
3175 * modules/unictype/property-diacritic (Depends-on, configure.ac):
3177 * modules/unictype/property-extender (Depends-on, configure.ac):
3179 * modules/unictype/property-format-control (Depends-on, configure.ac):
3181 * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
3183 * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
3185 * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
3187 * modules/unictype/property-hex-digit (Depends-on, configure.ac):
3189 * modules/unictype/property-hyphen (Depends-on, configure.ac):
3191 * modules/unictype/property-id-continue (Depends-on, configure.ac):
3193 * modules/unictype/property-id-start (Depends-on, configure.ac):
3195 * modules/unictype/property-ideographic (Depends-on, configure.ac):
3197 * modules/unictype/property-ids-binary-operator (Depends-on,
3198 configure.ac): Likewise.
3199 * modules/unictype/property-ids-trinary-operator (Depends-on,
3200 configure.ac): Likewise.
3201 * modules/unictype/property-ignorable-control (Depends-on,
3202 configure.ac): Likewise.
3203 * modules/unictype/property-iso-control (Depends-on, configure.ac):
3205 * modules/unictype/property-join-control (Depends-on, configure.ac):
3207 * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
3209 * modules/unictype/property-line-separator (Depends-on, configure.ac):
3211 * modules/unictype/property-logical-order-exception (Depends-on,
3212 configure.ac): Likewise.
3213 * modules/unictype/property-lowercase (Depends-on, configure.ac):
3215 * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
3216 * modules/unictype/property-non-break (Depends-on, configure.ac):
3218 * modules/unictype/property-not-a-character (Depends-on, configure.ac):
3220 * modules/unictype/property-numeric (Depends-on, configure.ac):
3222 * modules/unictype/property-other-alphabetic (Depends-on,
3223 configure.ac): Likewise.
3224 * modules/unictype/property-other-default-ignorable-code-point
3225 (Depends-on, configure.ac): Likewise.
3226 * modules/unictype/property-other-grapheme-extend (Depends-on,
3227 configure.ac): Likewise.
3228 * modules/unictype/property-other-id-continue (Depends-on,
3229 configure.ac): Likewise.
3230 * modules/unictype/property-other-id-start (Depends-on, configure.ac):
3232 * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
3234 * modules/unictype/property-other-math (Depends-on, configure.ac):
3236 * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
3238 * modules/unictype/property-paired-punctuation (Depends-on,
3239 configure.ac): Likewise.
3240 * modules/unictype/property-paragraph-separator (Depends-on,
3241 configure.ac): Likewise.
3242 * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
3244 * modules/unictype/property-pattern-white-space (Depends-on,
3245 configure.ac): Likewise.
3246 * modules/unictype/property-private-use (Depends-on, configure.ac):
3248 * modules/unictype/property-punctuation (Depends-on, configure.ac):
3250 * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
3252 * modules/unictype/property-radical (Depends-on, configure.ac):
3254 * modules/unictype/property-sentence-terminal (Depends-on,
3255 configure.ac): Likewise.
3256 * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
3258 * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
3259 * modules/unictype/property-terminal-punctuation (Depends-on,
3260 configure.ac): Likewise.
3261 * modules/unictype/property-titlecase (Depends-on, configure.ac):
3263 * modules/unictype/property-unassigned-code-value (Depends-on,
3264 configure.ac): Likewise.
3265 * modules/unictype/property-unified-ideograph (Depends-on,
3266 configure.ac): Likewise.
3267 * modules/unictype/property-uppercase (Depends-on, configure.ac):
3269 * modules/unictype/property-variation-selector (Depends-on,
3270 configure.ac): Likewise.
3271 * modules/unictype/property-white-space (Depends-on, configure.ac):
3273 * modules/unictype/property-xid-continue (Depends-on, configure.ac):
3275 * modules/unictype/property-xid-start (Depends-on, configure.ac):
3277 * modules/unictype/property-zero-width (Depends-on, configure.ac):
3279 * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
3280 * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
3283 2009-12-31 Bruno Haible <bruno@clisp.org>
3285 Remove unnecessary AC_C_INLINE invocation.
3286 * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
3289 2009-12-31 Jim Meyering <meyering@redhat.com>
3291 maint.mk: don't require explicit gpg_key_ID in cfg.mk
3292 * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
3293 With this change, we can all remove the gpg_key_ID = ... definition
3294 from our respective cfg.mk files.
3296 maint.mk: create announcement template in ~/, not in /tmp
3297 * top/maint.mk (emit_upload_commands): Adjust.
3298 (release-prep): Emit into ~/announce-..., not /tmp/announce-...
3299 Remove temporary file, .ci-msg.
3301 2009-12-31 Eric Blake <ebb9@byu.net>
3303 link-warning: always build headers with link warnings
3304 * modules/arpa_inet (Makefile.am): Always build replacement
3306 * modules/ctype (Makefile.am): Likewise.
3307 * modules/dirent (Makefile.am): Likewise.
3308 * modules/inttypes (Makefile.am): Likewise.
3309 * modules/langinfo (Makefile.am): Likewise.
3310 * modules/locale (Makefile.am): Likewise.
3311 * modules/spawn (Makefile.am): Likewise.
3312 * modules/sys_file (Makefile.am): Likewise.
3313 * modules/sys_ioctl (Makefile.am): Likewise.
3314 * modules/sys_select (Makefile.am): Likewise.
3315 * modules/sys_socket (Makefile.am): Likewise.
3316 * modules/sys_times (Makefile.am): Likewise.
3317 * modules/sys_utsname (Makefile.am): Likewise.
3318 * modules/sys_wait (Makefile.am): Likewise.
3319 * modules/wchar (Makefile.am): Likewise.
3320 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
3321 (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
3322 * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
3323 * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
3324 * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
3326 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3327 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
3328 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
3330 * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
3332 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
3333 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
3334 (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
3335 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3336 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3337 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
3338 (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
3339 * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
3340 (gl_WCHAR_H_DEFAULTS): Likewise.
3342 2009-12-31 Eric Blake <ebb9@byu.net>
3344 signal, spawn: use link warnings
3345 * lib/signal.in.h (sigset_t): Make unconditional.
3346 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
3347 (sigpending, sigprocmask, sigaction): Add link warnings.
3348 * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
3349 (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
3350 (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
3351 (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
3352 (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
3353 (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
3354 (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
3355 (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
3356 (posix_spawn_file_actions_destroy)
3357 (posix_spawn_file_actions_addopen)
3358 (posix_spawn_file_actions_addclose)
3359 (posix_spawwn_file_actions_adddup2): Likewise.
3360 * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
3361 * tests/test-signal.c (main): Enhance test.
3363 spawn: improve wrapper support
3364 * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
3365 (gl_SPAWN_H_DEFAULTS): New defaults.
3366 * modules/spawn (Makefile.am): Substitute them.
3367 * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
3368 Only declare if missing or broken.
3370 sys_times, sys_utsname: use include_next
3371 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
3373 (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
3374 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
3375 (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
3376 * modules/sys_times (Depends-on): Add include_next.
3377 (Makefile.am): Substitute additional values.
3378 * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
3379 * lib/sys_times.in.h (includes): Include native header, if
3381 * lib/sys_utsname.in.h (includes): Likewise.
3382 * tests/test-sys_times.c (main): Enhance test.
3384 fdutimensat: revert prior patch
3385 * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
3387 Reported by Bruno Haible.
3389 2009-12-30 Eric Blake <ebb9@byu.net>
3391 sys_wait: drop link-warning dependency
3392 * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
3393 link-warning efforts.
3394 * lib/sys_wait.in.h: Likewise.
3396 fdutimensat: remove bogus dependency
3397 * modules/fdutimensat (Depends-on): Drop inline.
3400 * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
3402 2009-12-30 Bruno Haible <bruno@clisp.org>
3404 Fix compilation error with Solaris cc.
3405 * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
3406 * lib/unicase/u16-is-invariant.c: Likewise.
3407 * lib/unicase/u32-is-invariant.c: Likewise.
3408 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
3410 2009-12-30 Bruno Haible <bruno@clisp.org>
3413 * tests/test-localename.c (test_locale_name_thread): Skip unavailable
3415 Reported by Simon Josefsson <simon@josefsson.org>.
3417 2009-12-30 Bruno Haible <bruno@clisp.org>
3419 Fix compilation error on most platforms.
3420 * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
3421 Reported by Simon Josefsson <simon@josefsson.org>
3422 and Nelson H. F. Beebe <beebe@math.utah.edu>.
3424 2009-12-30 Eric Blake <ebb9@byu.net>
3426 futimens, utimensat: work around ntfs-3g bug
3427 * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
3428 a ctime bug is present, and expand workaround to cover ntfs-3g.
3429 * lib/utimens.c (fdutimens, lutimens): Likewise.
3430 (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
3431 (validate_timespec): Adjust return value.
3432 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
3433 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3434 Reported by ctrn3e8 <ctrn3e8@gmail.com>.
3436 2009-12-29 Eric Blake <ebb9@byu.net>
3438 link-warning: make usage consistent
3439 * modules/ctype (Depends-on): Add link-warning.
3440 (Makefile.am): Update rules accordingly.
3441 * modules/langinfo (Depends-on, Makefile.am): Likewise.
3442 * modules/locale (Depends-on, Makefile.am): Likewise.
3443 * modules/sys_file (Makefile.am): Likewise.
3444 * modules/getopt-posix (Makefile.am): Delete unused link warning
3446 * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
3447 * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
3448 * lib/locale.in.h (GL_LINK_WARNING): Likewise.
3449 * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
3451 stdio: remove unused variables
3452 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
3453 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
3454 * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3456 tests: test more substitute headers
3457 * modules/ctype-tests: New file.
3458 * modules/dirent-tests: Likewise.
3459 * modules/spawn-tests: Likewise.
3460 * modules/sys_file-tests: Likewise.
3461 * modules/sys_ioctl-tests: Likewise.
3462 * modules/sys_wait-tests: Likewise.
3463 * tests/test-ctype.c: Likewise.
3464 * tests/test-dirent.c: Likewise.
3465 * tests/test-spawn.c: Likewise.
3466 * tests/test-sys_file.c: Likewise.
3467 * tests/test-sys_ioctl.c: Likewise.
3468 * tests/test-sys_wait.c: Likewise.
3469 * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
3470 * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
3471 whether or not flock is in use.
3473 tests: remove License section from module
3474 * modules/arpa_inet-tests: Remove unneeded section.
3475 * modules/byteswap-tests: Likewise.
3476 * modules/ceilf-tests: Likewise.
3477 * modules/ceill-tests: Likewise.
3478 * modules/crypto/des-tests: Likewise.
3479 * modules/crypto/gc-arcfour-tests: Likewise.
3480 * modules/crypto/gc-arctwo-tests: Likewise.
3481 * modules/crypto/gc-des-tests: Likewise.
3482 * modules/crypto/gc-hmac-md5-tests: Likewise.
3483 * modules/crypto/gc-hmac-sha1-tests: Likewise.
3484 * modules/crypto/gc-md2-tests: Likewise.
3485 * modules/crypto/gc-md4-tests: Likewise.
3486 * modules/crypto/gc-md5-tests: Likewise.
3487 * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
3488 * modules/crypto/gc-rijndael-tests: Likewise.
3489 * modules/crypto/gc-sha1-tests: Likewise.
3490 * modules/crypto/gc-tests: Likewise.
3491 * modules/crypto/md2-tests: Likewise.
3492 * modules/crypto/md4-tests: Likewise.
3493 * modules/fcntl-h-tests: Likewise.
3494 * modules/floorf-tests: Likewise.
3495 * modules/floorl-tests: Likewise.
3496 * modules/frexp-nolibm-tests: Likewise.
3497 * modules/frexp-tests: Likewise.
3498 * modules/frexpl-nolibm-tests: Likewise.
3499 * modules/frexpl-tests: Likewise.
3500 * modules/getaddrinfo-tests: Likewise.
3501 * modules/inttypes-tests: Likewise.
3502 * modules/isfinite-tests: Likewise.
3503 * modules/isinf-tests: Likewise.
3504 * modules/ldexpl-tests: Likewise.
3505 * modules/locale-tests: Likewise.
3506 * modules/math-tests: Likewise.
3507 * modules/netdb-tests: Likewise.
3508 * modules/netinet_in-tests: Likewise.
3509 * modules/printf-frexp-tests: Likewise.
3510 * modules/printf-frexpl-tests: Likewise.
3511 * modules/priv-set-tests: Likewise.
3512 * modules/random_r-tests: Likewise.
3513 * modules/round-tests: Likewise.
3514 * modules/roundf-tests: Likewise.
3515 * modules/roundl-tests: Likewise.
3516 * modules/search-tests: Likewise.
3517 * modules/select-tests: Likewise.
3518 * modules/signal-tests: Likewise.
3519 * modules/stdbool-tests: Likewise.
3520 * modules/stddef-tests: Likewise.
3521 * modules/stdint-tests: Likewise.
3522 * modules/stdio-tests: Likewise.
3523 * modules/stdlib-tests: Likewise.
3524 * modules/string-tests: Likewise.
3525 * modules/strings-tests: Likewise.
3526 * modules/sys_select-tests: Likewise.
3527 * modules/sys_socket-tests: Likewise.
3528 * modules/sys_stat-tests: Likewise.
3529 * modules/sys_time-tests: Likewise.
3530 * modules/sys_utsname-tests: Likewise.
3531 * modules/sysexits-tests: Likewise.
3532 * modules/time-tests: Likewise.
3533 * modules/trunc-tests: Likewise.
3534 * modules/truncf-tests: Likewise.
3535 * modules/truncl-tests: Likewise.
3536 * modules/tsearch-tests: Likewise.
3537 * modules/unistd-tests: Likewise.
3538 * modules/wchar-tests: Likewise.
3539 * modules/wctype-tests: Likewise.
3541 tests: fix license on several tests
3542 * tests/test-des.c: Update to GPLv3+.
3543 * tests/test-flock.c: Likewise.
3544 * tests/test-fsync.c: Likewise.
3545 * tests/test-futimens.h: Likewise.
3546 * tests/test-gc-arcfour.c: Likewise.
3547 * tests/test-gc-arctwo.c: Likewise.
3548 * tests/test-gc-des.c: Likewise.
3549 * tests/test-gc-hmac-md5.c: Likewise.
3550 * tests/test-gc-hmac-sha1.c: Likewise.
3551 * tests/test-gc-md2.c: Likewise.
3552 * tests/test-gc-md4.c: Likewise.
3553 * tests/test-gc-md5.c: Likewise.
3554 * tests/test-gc-pbkdf2-sha1.c: Likewise.
3555 * tests/test-gc-rijndael.c: Likewise.
3556 * tests/test-gc-sha1.c: Likewise.
3557 * tests/test-gc.c: Likewise.
3558 * tests/test-getcwd.c: Likewise.
3559 * tests/test-link.c: Likewise.
3560 * tests/test-link.h: Likewise.
3561 * tests/test-lutimens.h: Likewise.
3562 * tests/test-md2.c: Likewise.
3563 * tests/test-md4.c: Likewise.
3564 * tests/test-mkdir.h: Likewise.
3565 * tests/test-rename.c: Likewise.
3566 * tests/test-rename.h: Likewise.
3567 * tests/test-safe-alloc.c: Likewise.
3568 * tests/test-utimens-common.h: Likewise.
3569 * tests/test-utimens.h: Likewise.
3571 maint: sync license texts
3572 * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
3573 * doc/gpl-3.0.texi: Revert copyright year update.
3574 * doc/lgpl-3.0.texi: Likewise.
3576 2009-12-29 Jim Meyering <meyering@redhat.com>
3578 update nearly all FSF copyright year lists to include 2009
3579 The files named by the following are exempted:
3580 grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
3581 test -f "$dst" && { echo "$dst"; continue; }
3582 test -d "$dst" || continue
3583 echo "$dst"/$(basename "$src")
3585 git ls-files tests/unictype >> exempt
3586 In the remaining files, convert to all-interval notation if
3587 - there is already at least one year interval like 2000-2003
3588 - the file is maintained by me
3589 - the file is in lib/uni*/, where that style already prevails
3590 Otherwise, use update-copyright's default.
3592 2009-12-29 Simon Josefsson <simon@josefsson.org>
3593 and Eric Blake <ebb9@byu.net>
3595 tests: don't require debug system() to pass
3596 * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
3597 * tests/test-rmdir.h (test_rmdir_func): Likewise.
3598 * tests/test-unlink.h (test_unlink_func): Likewise.
3599 * tests/test-fstatat.c (main): ...into callers.
3600 * tests/test-lstat.c (main): Likewise.
3601 * tests/test-rmdir.c (main): Likewise.
3602 * tests/test-unlink.c (main): Likewise.
3603 * tests/test-unlinkat.c (main): Likewise.
3604 * tests/test-areadlink-with-size.c (main): Don't require a
3605 debug-only system call to pass, aiding cross-testing to mingw.
3606 * tests/test-areadlink.c (main): Likewise.
3607 * tests/test-areadlinkat-with-size.c (main): Likewise.
3608 * tests/test-areadlinkat.c (main): Likewise.
3609 * tests/test-canonicalize-lgpl.c (main): Likewise.
3610 * tests/test-canonicalize.c (main): Likewise.
3611 * tests/test-chown.c (main): Likewise.
3612 * tests/test-fchownat.c (main): Likewise.
3613 * tests/test-lchown.c (main): Likewise.
3614 * tests/test-fdutimensat.c (main): Likewise.
3615 * tests/test-futimens.c (main): Likewise.
3616 * tests/test-link.c (main): Likewise.
3617 * tests/test-linkat.c (main): Likewise.
3618 * tests/test-mkdir.c (main): Likewise.
3619 * tests/test-mkdirat.c (main): Likewise.
3620 * tests/test-mkfifo.c (main): Likewise.
3621 * tests/test-mkfifoat.c (main): Likewise.
3622 * tests/test-mknod.c (main): Likewise.
3623 * tests/test-readlink.c (main): Likewise.
3624 * tests/test-remove.c (main): Likewise.
3625 * tests/test-rename.c (main): Likewise.
3626 * tests/test-renameat.c (main): Likewise.
3627 * tests/test-symlink.c (main): Likewise.
3628 * tests/test-symlinkat.c (main): Likewise.
3629 * tests/test-utimens.c (main): Likewise.
3630 * tests/test-utimensat.c (main): Likewise.
3632 2009-12-29 Simon Josefsson <simon@josefsson.org>
3634 * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
3635 on $(UNUSED_PARAMETER_H) to avoid build failure.
3637 2009-12-28 Jim Meyering <meyering@redhat.com>
3639 update-copyright: you may specify a max. line length other than 72
3640 * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
3642 maint: use consistent FSF copyright line syntax
3643 * lib/posixtm.c: Add missing comma in FSF copyright line.
3644 * lib/posixtm.h: Likewise.
3645 * lib/getugroups.c: Add missing ", Inc.".
3647 pmccabe2html: emit consistent FSF copyright; remove trailing blanks
3648 * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
3649 FSF copyright line. Remove trailing blanks.
3651 2009-12-28 Eric Blake <ebb9@byu.net>
3653 test-dup2: reduce dependencies
3654 * modules/cloexec (Configure.ac): Set witness.
3655 * modules/dup2-tests (Depends-on): Drop cloexec.
3656 * tests/test-dup2.c (main): Skip portion of test if cloexec module
3658 Suggested by Bruno Haible.
3660 2009-12-26 Bruno Haible <bruno@clisp.org>
3662 Remove an unneeded dependency.
3663 * modules/fseterr (Depends-on): Remove dup2.
3665 2009-12-26 Eric Blake <ebb9@byu.net>
3667 tests: use macros.h in more places
3668 * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
3669 (ASSERT_STREAM): Provide default of stderr.
3670 * tests/test-dirent-safer.c: Include macros.h, using alternate
3671 stream for assertions.
3672 * tests/test-dup-safer.c: Likewise.
3673 * tests/test-freopen-safer.c: Likewise.
3674 * tests/test-getopt.c: Likewise.
3675 * tests/test-openat-safer.c: Likewise.
3676 * tests/test-pipe.c: Likewise.
3677 * tests/test-popen-safer.c: Likewise.
3678 * modules/dirent-safer-tests (Files): Include macros.h.
3679 * modules/unistd-safer-tests (Files): Likewise.
3680 * modules/freopen-safer-tests (Files): Likewise.
3681 * modules/getopt-posix-tests (Files): Likewise.
3682 * modules/openat-safer-tests (Files): Likewise.
3683 * modules/pipe-tests (Files): Likewise.
3685 2009-12-26 Bruno Haible <bruno@clisp.org>
3687 javacomp: Portability fix.
3688 * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
3689 that it also works on Solaris.
3691 2009-12-26 Bruno Haible <bruno@clisp.org>
3693 localename: Fix storage allocation of gl_locale_name_thread's result.
3694 * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
3695 HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
3696 all platforms that have 'uselocale'.
3697 (gl_locale_name_thread_unsafe): New function, extracted from
3698 gl_locale_name_thread.
3699 (gl_locale_name_thread): Call struniq on all platforms that have
3701 * tests/test-localename.c (test_locale_name_thread): Check that the
3702 resulting strings are permanently allocated.
3703 * modules/localename-tests (Depends-on): Add strdup.
3705 2009-12-26 Bruno Haible <bruno@clisp.org>
3707 * tests/test-localename.c (categories): Fill in the strings.
3709 2009-12-26 Jim Meyering <meyering@redhat.com>
3711 isdir: complete the removal of m4/isdir.m4
3712 * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
3714 isdir: clean up, since at least grep still uses it
3715 * lib/isdir.c: Include "isdir.h".
3716 (S_ISDIR): Remove now-unneeded definition.
3717 * modules/isdir (Files): Add lib/isdir.h.
3718 * lib/isdir.h: New file, with declaration.
3719 * m4/isdir.m4: Remove file -- unneeded.
3721 2009-12-25 Bruno Haible <bruno@clisp.org>
3723 selinux-h: Make generated .h files standalone.
3724 * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
3725 definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
3726 * lib/se-selinux.in.h: Likewise.
3727 * modules/selinux-h (Depends-on): Add unused-parameter.
3728 (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
3729 selinux/selinux.h and selinux/context.h.
3730 Suggested by Eric Blake.
3732 2009-12-25 Bruno Haible <bruno@clisp.org>
3734 Move gl_FCNTL_O_FLAGS to a separate .m4 file.
3735 * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
3736 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
3737 * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
3738 * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
3740 2009-12-24 Bruno Haible <bruno@clisp.org>
3742 openat: Fix warning.
3743 * lib/openat-proc.c: Include <unistd.h>.
3745 2009-12-24 Bruno Haible <bruno@clisp.org>
3747 New module 'unused-parameter'.
3748 * build-aux/unused-parameter.h: New file, extracted from earlier
3750 * modules/unused-parameter: New file.
3751 * lib/unistr.h: Include unused-parameter.h.
3752 (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
3754 * modules/unistr/base (Depends-on): Add unused-parameter.
3756 2009-12-24 Bruno Haible <bruno@clisp.org>
3758 Add missing dependencies to 'extensions' module.
3759 * m4/extensions.m4: Add comment.
3760 * modules/accept4 (Depends-on): Add extensions.
3761 * modules/dup3 (Depends-on): Likewise.
3762 * modules/fcntl (Depends-on): Likewise.
3763 * modules/futimens (Depends-on): Likewise.
3764 * modules/mknod (Depends-on): Likewise.
3765 * modules/pipe2 (Depends-on): Likewise.
3766 * modules/stat-time (Depends-on): Likewise.
3767 * modules/strcasestr-simple (Depends-on): Likewise.
3768 * modules/strsignal (Depends-on): Likewise.
3769 * modules/utimensat (Depends-on): Likewise.
3770 * modules/localcharset (Depends-on): Likewise. Needed because of
3772 * modules/wcrtomb (Depends-on): Likewise. Needed because of
3774 * modules/wcsnrtombs (Depends-on): Likewise.
3775 * modules/wcsrtombs (Depends-on): Likewise.
3777 2009-12-24 Bruno Haible <bruno@clisp.org>
3779 binary-io: Avoid gcc warning due to SET_BINARY.
3780 * lib/binary-io.h (SET_BINARY): Cast the result to void.
3781 Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
3783 2009-12-24 Bruno Haible <bruno@clisp.org>
3785 Avoid future namespace pollution on glibc systems.
3786 * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
3787 * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
3788 * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
3791 2009-12-24 Bruno Haible <bruno@clisp.org>
3793 Refactor common macros used in tests.
3794 * tests/macros.h: New file.
3795 * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
3796 and/or <stdlib.h>, if appropriate.
3797 (ASSERT, SIZEOF): Remove macros.
3798 * tests/test-areadlink-with-size.c: Likewise.
3799 * tests/test-areadlinkat.c: Likewise.
3800 * tests/test-areadlinkat-with-size.c: Likewise.
3801 * tests/test-argmatch.c: Likewise.
3802 * tests/test-argv-iter.c: Likewise.
3803 * tests/test-array-mergesort.c: Likewise.
3804 * tests/test-array_list.c: Likewise.
3805 * tests/test-array_oset.c: Likewise.
3806 * tests/test-avltree_list.c: Likewise.
3807 * tests/test-avltree_oset.c: Likewise.
3808 * tests/test-avltreehash_list.c: Likewise.
3809 * tests/test-base64.c: Likewise.
3810 * tests/test-binary-io.c: Likewise.
3811 * tests/test-bitrotate.c: Likewise.
3812 * tests/test-btowc.c: Likewise.
3813 * tests/test-byteswap.c: Likewise.
3814 * tests/test-c-ctype.c: Likewise.
3815 * tests/test-c-stack.c: Likewise.
3816 * tests/test-c-strcasecmp.c: Likewise.
3817 * tests/test-c-strcasestr.c: Likewise.
3818 * tests/test-c-strncasecmp.c: Likewise.
3819 * tests/test-c-strstr.c: Likewise.
3820 * tests/test-canonicalize-lgpl.c: Likewise.
3821 * tests/test-canonicalize.c: Likewise.
3822 * tests/test-carray_list.c: Likewise.
3823 * tests/test-ceilf1.c: Likewise.
3824 * tests/test-ceilf2.c: Likewise.
3825 * tests/test-ceill.c: Likewise.
3826 * tests/test-chown.c: Likewise.
3827 * tests/test-cloexec.c: Likewise.
3828 * tests/test-copy-acl.c: Likewise.
3829 * tests/test-copy-file.c: Likewise.
3830 * tests/test-count-one-bits.c: Likewise.
3831 * tests/test-dprintf-posix.c: Likewise.
3832 * tests/test-dup2.c: Likewise.
3833 * tests/test-dup3.c: Likewise.
3834 * tests/test-duplocale.c: Likewise.
3835 * tests/test-fbufmode.c: Likewise.
3836 * tests/test-fchdir.c: Likewise.
3837 * tests/test-fchownat.c: Likewise.
3838 * tests/test-fcntl-safer.c: Likewise.
3839 * tests/test-fcntl.c: Likewise.
3840 * tests/test-fdopendir.c: Likewise.
3841 * tests/test-fdutimensat.c: Likewise.
3842 * tests/test-fflush2.c: Likewise.
3843 * tests/test-file-has-acl.c: Likewise.
3844 * tests/test-filevercmp.c: Likewise.
3845 * tests/test-flock.c: Likewise.
3846 * tests/test-floorf1.c: Likewise.
3847 * tests/test-floorf2.c: Likewise.
3848 * tests/test-floorl.c: Likewise.
3849 * tests/test-fnmatch.c: Likewise.
3850 * tests/test-fopen.h: Likewise.
3851 * tests/test-fpending.c: Likewise.
3852 * tests/test-fprintf-posix.c: Likewise.
3853 * tests/test-fpurge.c: Likewise.
3854 * tests/test-freadable.c: Likewise.
3855 * tests/test-freadahead.c: Likewise.
3856 * tests/test-freading.c: Likewise.
3857 * tests/test-freadptr.c: Likewise.
3858 * tests/test-freadptr2.c: Likewise.
3859 * tests/test-freadseek.c: Likewise.
3860 * tests/test-freopen.c: Likewise.
3861 * tests/test-frexp.c: Likewise.
3862 * tests/test-frexpl.c: Likewise.
3863 * tests/test-fseek.c: Likewise.
3864 * tests/test-fseeko.c: Likewise.
3865 * tests/test-fstatat.c: Likewise.
3866 * tests/test-fstrcmp.c: Likewise.
3867 * tests/test-fsync.c: Likewise.
3868 * tests/test-ftell.c: Likewise.
3869 * tests/test-ftello.c: Likewise.
3870 * tests/test-func.c: Likewise.
3871 * tests/test-futimens.c: Likewise.
3872 * tests/test-fwritable.c: Likewise.
3873 * tests/test-fwriting.c: Likewise.
3874 * tests/test-getcwd.c: Likewise.
3875 * tests/test-getdate.c: Likewise.
3876 * tests/test-getdelim.c: Likewise.
3877 * tests/test-getdtablesize.c: Likewise.
3878 * tests/test-getgroups.c: Likewise.
3879 * tests/test-getline.c: Likewise.
3880 * tests/test-getndelim2.c: Likewise.
3881 * tests/test-glob.c: Likewise.
3882 * tests/test-hash.c: Likewise.
3883 * tests/test-i-ring.c: Likewise.
3884 * tests/test-iconv-utf.c: Likewise.
3885 * tests/test-iconv.c: Likewise.
3886 * tests/test-idpriv-drop.c: Likewise.
3887 * tests/test-idpriv-droptemp.c: Likewise.
3888 * tests/test-inet_ntop.c: Likewise.
3889 * tests/test-inet_pton.c: Likewise.
3890 * tests/test-isblank.c: Likewise.
3891 * tests/test-isfinite.c: Likewise.
3892 * tests/test-isinf.c: Likewise.
3893 * tests/test-isnan.c: Likewise.
3894 * tests/test-isnand.h: Likewise.
3895 * tests/test-isnanf.h: Likewise.
3896 * tests/test-isnanl.h: Likewise.
3897 * tests/test-lchown.c: Likewise.
3898 * tests/test-ldexpl.c: Likewise.
3899 * tests/test-link.c: Likewise.
3900 * tests/test-linkat.c: Likewise.
3901 * tests/test-linked_list.c: Likewise.
3902 * tests/test-linkedhash_list.c: Likewise.
3903 * tests/test-localename.c: Likewise.
3904 * tests/test-lseek.c: Likewise.
3905 * tests/test-lstat.c: Likewise.
3906 * tests/test-mbmemcasecmp.c: Likewise.
3907 * tests/test-mbmemcasecoll.c: Likewise.
3908 * tests/test-mbrtowc.c: Likewise.
3909 * tests/test-mbscasecmp.c: Likewise.
3910 * tests/test-mbscasestr1.c: Likewise.
3911 * tests/test-mbscasestr2.c: Likewise.
3912 * tests/test-mbscasestr3.c: Likewise.
3913 * tests/test-mbscasestr4.c: Likewise.
3914 * tests/test-mbschr.c: Likewise.
3915 * tests/test-mbscspn.c: Likewise.
3916 * tests/test-mbsinit.c: Likewise.
3917 * tests/test-mbsncasecmp.c: Likewise.
3918 * tests/test-mbsnrtowcs.c: Likewise.
3919 * tests/test-mbspbrk.c: Likewise.
3920 * tests/test-mbspcasecmp.c: Likewise.
3921 * tests/test-mbsrchr.c: Likewise.
3922 * tests/test-mbsrtowcs.c: Likewise.
3923 * tests/test-mbsspn.c: Likewise.
3924 * tests/test-mbsstr1.c: Likewise.
3925 * tests/test-mbsstr2.c: Likewise.
3926 * tests/test-mbsstr3.c: Likewise.
3927 * tests/test-memchr.c: Likewise.
3928 * tests/test-memchr2.c: Likewise.
3929 * tests/test-memcmp.c: Likewise.
3930 * tests/test-memmem.c: Likewise.
3931 * tests/test-memrchr.c: Likewise.
3932 * tests/test-mkdir.c: Likewise.
3933 * tests/test-mkdirat.c: Likewise.
3934 * tests/test-mkfifo.c: Likewise.
3935 * tests/test-mkfifoat.c: Likewise.
3936 * tests/test-mknod.c: Likewise.
3937 * tests/test-nanosleep.c: Likewise.
3938 * tests/test-nl_langinfo.c: Likewise.
3939 * tests/test-obstack-printf.c: Likewise.
3940 * tests/test-open.c: Likewise.
3941 * tests/test-openat.c: Likewise.
3942 * tests/test-pipe-filter-gi1.c: Likewise.
3943 * tests/test-pipe-filter-gi2-main.c: Likewise.
3944 * tests/test-pipe-filter-ii1.c: Likewise.
3945 * tests/test-pipe-filter-ii2-main.c: Likewise.
3946 * tests/test-pipe2.c: Likewise.
3947 * tests/test-popen.h: Likewise.
3948 * tests/test-posixtm.c: Likewise.
3949 * tests/test-pread.c: Likewise.
3950 * tests/test-printf-frexp.c: Likewise.
3951 * tests/test-printf-frexpl.c: Likewise.
3952 * tests/test-printf-posix.c: Likewise.
3953 * tests/test-priv-set.c: Likewise.
3954 * tests/test-quotearg.c: Likewise.
3955 * tests/test-random_r.c: Likewise.
3956 * tests/test-rawmemchr.c: Likewise.
3957 * tests/test-rbtree_list.c: Likewise.
3958 * tests/test-rbtree_oset.c: Likewise.
3959 * tests/test-rbtreehash_list.c: Likewise.
3960 * tests/test-readlink.c: Likewise.
3961 * tests/test-remove.c: Likewise.
3962 * tests/test-rename.c: Likewise.
3963 * tests/test-renameat.c: Likewise.
3964 * tests/test-rmdir.c: Likewise.
3965 * tests/test-round1.c: Likewise.
3966 * tests/test-roundf1.c: Likewise.
3967 * tests/test-roundl.c: Likewise.
3968 * tests/test-safe-alloc.c: Likewise.
3969 * tests/test-sameacls.c: Likewise.
3970 * tests/test-set-mode-acl.c: Likewise.
3971 * tests/test-setenv.c: Likewise.
3972 * tests/test-sigaction.c: Likewise.
3973 * tests/test-signbit.c: Likewise.
3974 * tests/test-sleep.c: Likewise.
3975 * tests/test-snprintf-posix.c: Likewise.
3976 * tests/test-snprintf.c: Likewise.
3977 * tests/test-sprintf-posix.c: Likewise.
3978 * tests/test-stat-time.c: Likewise.
3979 * tests/test-stat.c: Likewise.
3980 * tests/test-strcasestr.c: Likewise.
3981 * tests/test-strchrnul.c: Likewise.
3982 * tests/test-strerror.c: Likewise.
3983 * tests/test-striconv.c: Likewise.
3984 * tests/test-striconveh.c: Likewise.
3985 * tests/test-striconveha.c: Likewise.
3986 * tests/test-strsignal.c: Likewise.
3987 * tests/test-strstr.c: Likewise.
3988 * tests/test-strtod.c: Likewise.
3989 * tests/test-strverscmp.c: Likewise.
3990 * tests/test-symlink.c: Likewise.
3991 * tests/test-symlinkat.c: Likewise.
3992 * tests/test-trunc1.c: Likewise.
3993 * tests/test-trunc2.c: Likewise.
3994 * tests/test-truncf1.c: Likewise.
3995 * tests/test-truncf2.c: Likewise.
3996 * tests/test-truncl.c: Likewise.
3997 * tests/test-uname.c: Likewise.
3998 * tests/test-unlink.c: Likewise.
3999 * tests/test-unlinkat.c: Likewise.
4000 * tests/test-unsetenv.c: Likewise.
4001 * tests/test-usleep.c: Likewise.
4002 * tests/test-utimens.c: Likewise.
4003 * tests/test-utimensat.c: Likewise.
4004 * tests/test-vasnprintf-posix.c: Likewise.
4005 * tests/test-vasnprintf-posix2.c: Likewise.
4006 * tests/test-vasnprintf.c: Likewise.
4007 * tests/test-vasprintf-posix.c: Likewise.
4008 * tests/test-vasprintf.c: Likewise.
4009 * tests/test-vdprintf-posix.c: Likewise.
4010 * tests/test-vfprintf-posix.c: Likewise.
4011 * tests/test-vprintf-posix.c: Likewise.
4012 * tests/test-vsnprintf-posix.c: Likewise.
4013 * tests/test-vsnprintf.c: Likewise.
4014 * tests/test-vsprintf-posix.c: Likewise.
4015 * tests/test-wcrtomb.c: Likewise.
4016 * tests/test-wcsnrtombs.c: Likewise.
4017 * tests/test-wcsrtombs.c: Likewise.
4018 * tests/test-wctype.c: Likewise.
4019 * tests/test-wcwidth.c: Likewise.
4020 * tests/test-xfprintf-posix.c: Likewise.
4021 * tests/test-xmemdup0.c: Likewise.
4022 * tests/test-xprintf-posix.c: Likewise.
4023 * tests/test-xvasprintf.c: Likewise.
4024 * tests/unicase/test-locale-language.c: Likewise.
4025 * tests/unicase/test-mapping-part1.h: Likewise.
4026 * tests/unicase/test-predicate-part1.h: Likewise.
4027 * tests/unicase/test-u8-casecmp.c: Likewise.
4028 * tests/unicase/test-u8-casecoll.c: Likewise.
4029 * tests/unicase/test-u8-casefold.c: Likewise.
4030 * tests/unicase/test-u8-is-cased.c: Likewise.
4031 * tests/unicase/test-u8-is-casefolded.c: Likewise.
4032 * tests/unicase/test-u8-is-lowercase.c: Likewise.
4033 * tests/unicase/test-u8-is-titlecase.c: Likewise.
4034 * tests/unicase/test-u8-is-uppercase.c: Likewise.
4035 * tests/unicase/test-u8-tolower.c: Likewise.
4036 * tests/unicase/test-u8-totitle.c: Likewise.
4037 * tests/unicase/test-u8-toupper.c: Likewise.
4038 * tests/unicase/test-u16-casecmp.c: Likewise.
4039 * tests/unicase/test-u16-casecoll.c: Likewise.
4040 * tests/unicase/test-u16-casefold.c: Likewise.
4041 * tests/unicase/test-u16-is-cased.c: Likewise.
4042 * tests/unicase/test-u16-is-casefolded.c: Likewise.
4043 * tests/unicase/test-u16-is-lowercase.c: Likewise.
4044 * tests/unicase/test-u16-is-titlecase.c: Likewise.
4045 * tests/unicase/test-u16-is-uppercase.c: Likewise.
4046 * tests/unicase/test-u16-tolower.c: Likewise.
4047 * tests/unicase/test-u16-totitle.c: Likewise.
4048 * tests/unicase/test-u16-toupper.c: Likewise.
4049 * tests/unicase/test-u32-casecmp.c: Likewise.
4050 * tests/unicase/test-u32-casecoll.c: Likewise.
4051 * tests/unicase/test-u32-casefold.c: Likewise.
4052 * tests/unicase/test-u32-is-cased.c: Likewise.
4053 * tests/unicase/test-u32-is-casefolded.c: Likewise.
4054 * tests/unicase/test-u32-is-lowercase.c: Likewise.
4055 * tests/unicase/test-u32-is-titlecase.c: Likewise.
4056 * tests/unicase/test-u32-is-uppercase.c: Likewise.
4057 * tests/unicase/test-u32-tolower.c: Likewise.
4058 * tests/unicase/test-u32-totitle.c: Likewise.
4059 * tests/unicase/test-u32-toupper.c: Likewise.
4060 * tests/unicase/test-ulc-casecmp.c: Likewise.
4061 * tests/unicase/test-ulc-casecoll.c: Likewise.
4062 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
4063 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
4064 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
4065 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
4066 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
4067 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
4068 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
4069 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
4070 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
4071 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
4072 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
4073 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
4074 * tests/unictype/test-bidi_byname.c: Likewise.
4075 * tests/unictype/test-bidi_name.c: Likewise.
4076 * tests/unictype/test-bidi_of.c: Likewise.
4077 * tests/unictype/test-bidi_test.c: Likewise.
4078 * tests/unictype/test-block_list.c: Likewise.
4079 * tests/unictype/test-block_of.c: Likewise.
4080 * tests/unictype/test-block_test.c: Likewise.
4081 * tests/unictype/test-categ_and.c: Likewise.
4082 * tests/unictype/test-categ_and_not.c: Likewise.
4083 * tests/unictype/test-categ_byname.c: Likewise.
4084 * tests/unictype/test-categ_name.c: Likewise.
4085 * tests/unictype/test-categ_none.c: Likewise.
4086 * tests/unictype/test-categ_of.c: Likewise.
4087 * tests/unictype/test-categ_or.c: Likewise.
4088 * tests/unictype/test-categ_test_withtable.c: Likewise.
4089 * tests/unictype/test-combining.c: Likewise.
4090 * tests/unictype/test-decdigit.c: Likewise.
4091 * tests/unictype/test-digit.c: Likewise.
4092 * tests/unictype/test-mirror.c: Likewise.
4093 * tests/unictype/test-numeric.c: Likewise.
4094 * tests/unictype/test-pr_byname.c: Likewise.
4095 * tests/unictype/test-pr_test.c: Likewise.
4096 * tests/unictype/test-predicate-part1.h: Likewise.
4097 * tests/unictype/test-scripts.c: Likewise.
4098 * tests/unictype/test-sy_c_ident.c: Likewise.
4099 * tests/unictype/test-sy_java_ident.c: Likewise.
4100 * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
4101 * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
4102 * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
4103 * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
4104 * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
4105 * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
4106 * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
4107 * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
4108 * tests/uninorm/test-canonical-decomposition.c: Likewise.
4109 * tests/uninorm/test-compat-decomposition.c: Likewise.
4110 * tests/uninorm/test-composition.c: Likewise.
4111 * tests/uninorm/test-decomposing-form.c: Likewise.
4112 * tests/uninorm/test-decomposition.c: Likewise.
4113 * tests/uninorm/test-u8-nfc.c: Likewise.
4114 * tests/uninorm/test-u8-nfd.c: Likewise.
4115 * tests/uninorm/test-u8-nfkc.c: Likewise.
4116 * tests/uninorm/test-u8-nfkd.c: Likewise.
4117 * tests/uninorm/test-u8-normcmp.c: Likewise.
4118 * tests/uninorm/test-u8-normcoll.c: Likewise.
4119 * tests/uninorm/test-u16-nfc.c: Likewise.
4120 * tests/uninorm/test-u16-nfd.c: Likewise.
4121 * tests/uninorm/test-u16-nfkc.c: Likewise.
4122 * tests/uninorm/test-u16-nfkd.c: Likewise.
4123 * tests/uninorm/test-u16-normcmp.c: Likewise.
4124 * tests/uninorm/test-u16-normcoll.c: Likewise.
4125 * tests/uninorm/test-u32-nfc.c: Likewise.
4126 * tests/uninorm/test-u32-nfd.c: Likewise.
4127 * tests/uninorm/test-u32-nfkc.c: Likewise.
4128 * tests/uninorm/test-u32-nfkd.c: Likewise.
4129 * tests/uninorm/test-u32-normalize-big.c: Likewise.
4130 * tests/uninorm/test-u32-normcmp.c: Likewise.
4131 * tests/uninorm/test-u32-normcoll.c: Likewise.
4132 * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
4133 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
4134 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
4135 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
4136 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
4137 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
4138 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
4139 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
4140 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
4141 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
4142 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
4143 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
4144 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
4145 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
4146 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
4147 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
4148 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
4149 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
4150 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
4151 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
4152 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
4153 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
4154 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
4155 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
4156 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
4157 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
4158 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
4159 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
4160 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
4161 * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
4162 * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
4163 * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
4164 * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
4165 * tests/uniwidth/test-u8-strwidth.c: Likewise.
4166 * tests/uniwidth/test-u8-width.c: Likewise.
4167 * tests/uniwidth/test-u16-strwidth.c: Likewise.
4168 * tests/uniwidth/test-u16-width.c: Likewise.
4169 * tests/uniwidth/test-u32-strwidth.c: Likewise.
4170 * tests/uniwidth/test-u32-width.c: Likewise.
4171 * tests/uniwidth/test-uc_width.c: Likewise.
4172 * tests/uniwidth/test-uc_width2.c: Likewise.
4173 * modules/acl-tests (Files): Add tests/macros.h.
4174 * modules/areadlink-tests (Files): Likewise.
4175 * modules/areadlink-with-size-tests (Files): Likewise.
4176 * modules/areadlinkat-tests (Files): Likewise.
4177 * modules/areadlinkat-with-size-tests (Files): Likewise.
4178 * modules/argmatch-tests (Files): Likewise.
4179 * modules/argv-iter-tests (Files): Likewise.
4180 * modules/array-list-tests (Files): Likewise.
4181 * modules/array-mergesort-tests (Files): Likewise.
4182 * modules/array-oset-tests (Files): Likewise.
4183 * modules/avltree-list-tests (Files): Likewise.
4184 * modules/avltree-oset-tests (Files): Likewise.
4185 * modules/avltreehash-list-tests (Files): Likewise.
4186 * modules/base64-tests (Files): Likewise.
4187 * modules/binary-io-tests (Files): Likewise.
4188 * modules/bitrotate-tests (Files): Likewise.
4189 * modules/btowc-tests (Files): Likewise.
4190 * modules/byteswap-tests (Files): Likewise.
4191 * modules/c-ctype-tests (Files): Likewise.
4192 * modules/c-stack-tests (Files): Likewise.
4193 * modules/c-strcase-tests (Files): Likewise.
4194 * modules/c-strcasestr-tests (Files): Likewise.
4195 * modules/c-strstr-tests (Files): Likewise.
4196 * modules/canonicalize-lgpl-tests (Files): Likewise.
4197 * modules/canonicalize-tests (Files): Likewise.
4198 * modules/carray-list-tests (Files): Likewise.
4199 * modules/ceilf-tests (Files): Likewise.
4200 * modules/ceill-tests (Files): Likewise.
4201 * modules/chown-tests (Files): Likewise.
4202 * modules/cloexec-tests (Files): Likewise.
4203 * modules/copy-file-tests (Files): Likewise.
4204 * modules/count-one-bits-tests (Files): Likewise.
4205 * modules/dprintf-posix-tests (Files): Likewise.
4206 * modules/dup2-tests (Files): Likewise.
4207 * modules/dup3-tests (Files): Likewise.
4208 * modules/duplocale-tests (Files): Likewise.
4209 * modules/fbufmode-tests (Files): Likewise.
4210 * modules/fchdir-tests (Files): Likewise.
4211 * modules/fcntl-safer-tests (Files): Likewise.
4212 * modules/fcntl-tests (Files): Likewise.
4213 * modules/fdopendir-tests (Files): Likewise.
4214 * modules/fdutimensat-tests (Files): Likewise.
4215 * modules/fflush-tests (Files): Likewise.
4216 * modules/filevercmp-tests (Files): Likewise.
4217 * modules/flock-tests (Files): Likewise.
4218 * modules/floorf-tests (Files): Likewise.
4219 * modules/floorl-tests (Files): Likewise.
4220 * modules/fnmatch-tests (Files): Likewise.
4221 * modules/fopen-safer-tests (Files): Likewise.
4222 * modules/fopen-tests (Files): Likewise.
4223 * modules/fpending-tests (Files): Likewise.
4224 * modules/fprintf-posix-tests (Files): Likewise.
4225 * modules/fpurge-tests (Files): Likewise.
4226 * modules/freadable-tests (Files): Likewise.
4227 * modules/freadahead-tests (Files): Likewise.
4228 * modules/freading-tests (Files): Likewise.
4229 * modules/freadptr-tests (Files): Likewise.
4230 * modules/freadseek-tests (Files): Likewise.
4231 * modules/freopen-tests (Files): Likewise.
4232 * modules/frexp-nolibm-tests (Files): Likewise.
4233 * modules/frexp-tests (Files): Likewise.
4234 * modules/frexpl-nolibm-tests (Files): Likewise.
4235 * modules/frexpl-tests (Files): Likewise.
4236 * modules/fseek-tests (Files): Likewise.
4237 * modules/fseeko-tests (Files): Likewise.
4238 * modules/fstrcmp-tests (Files): Likewise.
4239 * modules/fsync-tests (Files): Likewise.
4240 * modules/ftell-tests (Files): Likewise.
4241 * modules/ftello-tests (Files): Likewise.
4242 * modules/func-tests (Files): Likewise.
4243 * modules/futimens-tests (Files): Likewise.
4244 * modules/fwritable-tests (Files): Likewise.
4245 * modules/fwriting-tests (Files): Likewise.
4246 * modules/getcwd-tests (Files): Likewise.
4247 * modules/getdate-tests (Files): Likewise.
4248 * modules/getdelim-tests (Files): Likewise.
4249 * modules/getdtablesize-tests (Files): Likewise.
4250 * modules/getgroups-tests (Files): Likewise.
4251 * modules/getline-tests (Files): Likewise.
4252 * modules/getndelim2-tests (Files): Likewise.
4253 * modules/glob-tests (Files): Likewise.
4254 * modules/hash-tests (Files): Likewise.
4255 * modules/i-ring-tests (Files): Likewise.
4256 * modules/iconv-tests (Files): Likewise.
4257 * modules/iconv_open-utf-tests (Files): Likewise.
4258 * modules/idpriv-drop-tests (Files): Likewise.
4259 * modules/idpriv-droptemp-tests (Files): Likewise.
4260 * modules/inet_ntop-tests (Files): Likewise.
4261 * modules/inet_pton-tests (Files): Likewise.
4262 * modules/isblank-tests (Files): Likewise.
4263 * modules/isfinite-tests (Files): Likewise.
4264 * modules/isinf-tests (Files): Likewise.
4265 * modules/isnan-tests (Files): Likewise.
4266 * modules/isnand-nolibm-tests (Files): Likewise.
4267 * modules/isnand-tests (Files): Likewise.
4268 * modules/isnanf-nolibm-tests (Files): Likewise.
4269 * modules/isnanf-tests (Files): Likewise.
4270 * modules/isnanl-nolibm-tests (Files): Likewise.
4271 * modules/isnanl-tests (Files): Likewise.
4272 * modules/lchown-tests (Files): Likewise.
4273 * modules/ldexpl-tests (Files): Likewise.
4274 * modules/link-tests (Files): Likewise.
4275 * modules/linkat-tests (Files): Likewise.
4276 * modules/linked-list-tests (Files): Likewise.
4277 * modules/linkedhash-list-tests (Files): Likewise.
4278 * modules/localename-tests (Files): Likewise.
4279 * modules/lseek-tests (Files): Likewise.
4280 * modules/lstat-tests (Files): Likewise.
4281 * modules/mbmemcasecmp-tests (Files): Likewise.
4282 * modules/mbmemcasecoll-tests (Files): Likewise.
4283 * modules/mbrtowc-tests (Files): Likewise.
4284 * modules/mbscasecmp-tests (Files): Likewise.
4285 * modules/mbscasestr-tests (Files): Likewise.
4286 * modules/mbschr-tests (Files): Likewise.
4287 * modules/mbscspn-tests (Files): Likewise.
4288 * modules/mbsinit-tests (Files): Likewise.
4289 * modules/mbsncasecmp-tests (Files): Likewise.
4290 * modules/mbsnrtowcs-tests (Files): Likewise.
4291 * modules/mbspbrk-tests (Files): Likewise.
4292 * modules/mbspcasecmp-tests (Files): Likewise.
4293 * modules/mbsrchr-tests (Files): Likewise.
4294 * modules/mbsrtowcs-tests (Files): Likewise.
4295 * modules/mbsspn-tests (Files): Likewise.
4296 * modules/mbsstr-tests (Files): Likewise.
4297 * modules/memchr-tests (Files): Likewise.
4298 * modules/memchr2-tests (Files): Likewise.
4299 * modules/memcmp-tests (Files): Likewise.
4300 * modules/memmem-tests (Files): Likewise.
4301 * modules/memrchr-tests (Files): Likewise.
4302 * modules/mkdir-tests (Files): Likewise.
4303 * modules/mkfifo-tests (Files): Likewise.
4304 * modules/mkfifoat-tests (Files): Likewise.
4305 * modules/mknod-tests (Files): Likewise.
4306 * modules/nanosleep-tests (Files): Likewise.
4307 * modules/nl_langinfo-tests (Files): Likewise.
4308 * modules/obstack-printf-tests (Files): Likewise.
4309 * modules/open-tests (Files): Likewise.
4310 * modules/openat-tests (Files): Likewise.
4311 * modules/pipe-filter-gi-tests (Files): Likewise.
4312 * modules/pipe-filter-ii-tests (Files): Likewise.
4313 * modules/pipe2-tests (Files): Likewise.
4314 * modules/popen-safer-tests (Files): Likewise.
4315 * modules/popen-tests (Files): Likewise.
4316 * modules/posixtm-tests (Files): Likewise.
4317 * modules/pread-tests (Files): Likewise.
4318 * modules/printf-frexp-tests (Files): Likewise.
4319 * modules/printf-frexpl-tests (Files): Likewise.
4320 * modules/printf-posix-tests (Files): Likewise.
4321 * modules/priv-set-tests (Files): Likewise.
4322 * modules/quotearg-tests (Files): Likewise.
4323 * modules/random_r-tests (Files): Likewise.
4324 * modules/rawmemchr-tests (Files): Likewise.
4325 * modules/rbtree-list-tests (Files): Likewise.
4326 * modules/rbtree-oset-tests (Files): Likewise.
4327 * modules/rbtreehash-list-tests (Files): Likewise.
4328 * modules/readlink-tests (Files): Likewise.
4329 * modules/remove-tests (Files): Likewise.
4330 * modules/rename-tests (Files): Likewise.
4331 * modules/renameat-tests (Files): Likewise.
4332 * modules/rmdir-tests (Files): Likewise.
4333 * modules/round-tests (Files): Likewise.
4334 * modules/roundf-tests (Files): Likewise.
4335 * modules/roundl-tests (Files): Likewise.
4336 * modules/safe-alloc-tests (Files): Likewise.
4337 * modules/setenv-tests (Files): Likewise.
4338 * modules/sigaction-tests (Files): Likewise.
4339 * modules/signbit-tests (Files): Likewise.
4340 * modules/sleep-tests (Files): Likewise.
4341 * modules/snprintf-posix-tests (Files): Likewise.
4342 * modules/snprintf-tests (Files): Likewise.
4343 * modules/sprintf-posix-tests (Files): Likewise.
4344 * modules/stat-tests (Files): Likewise.
4345 * modules/stat-time-tests (Files): Likewise.
4346 * modules/strcasestr-tests (Files): Likewise.
4347 * modules/strchrnul-tests (Files): Likewise.
4348 * modules/strerror-tests (Files): Likewise.
4349 * modules/striconv-tests (Files): Likewise.
4350 * modules/striconveh-tests (Files): Likewise.
4351 * modules/striconveha-tests (Files): Likewise.
4352 * modules/strsignal-tests (Files): Likewise.
4353 * modules/strstr-tests (Files): Likewise.
4354 * modules/strtod-tests (Files): Likewise.
4355 * modules/strverscmp-tests (Files): Likewise.
4356 * modules/symlink-tests (Files): Likewise.
4357 * modules/symlinkat-tests (Files): Likewise.
4358 * modules/trunc-tests (Files): Likewise.
4359 * modules/truncf-tests (Files): Likewise.
4360 * modules/truncl-tests (Files): Likewise.
4361 * modules/uname-tests (Files): Likewise.
4362 * modules/unicase/cased-tests (Files): Likewise.
4363 * modules/unicase/ignorable-tests (Files): Likewise.
4364 * modules/unicase/locale-language-tests (Files): Likewise.
4365 * modules/unicase/tolower-tests (Files): Likewise.
4366 * modules/unicase/totitle-tests (Files): Likewise.
4367 * modules/unicase/toupper-tests (Files): Likewise.
4368 * modules/unicase/u8-casecmp-tests (Files): Likewise.
4369 * modules/unicase/u8-casecoll-tests (Files): Likewise.
4370 * modules/unicase/u8-casefold-tests (Files): Likewise.
4371 * modules/unicase/u8-is-cased-tests (Files): Likewise.
4372 * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
4373 * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
4374 * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
4375 * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
4376 * modules/unicase/u8-tolower-tests (Files): Likewise.
4377 * modules/unicase/u8-totitle-tests (Files): Likewise.
4378 * modules/unicase/u8-toupper-tests (Files): Likewise.
4379 * modules/unicase/u16-casecmp-tests (Files): Likewise.
4380 * modules/unicase/u16-casecoll-tests (Files): Likewise.
4381 * modules/unicase/u16-casefold-tests (Files): Likewise.
4382 * modules/unicase/u16-is-cased-tests (Files): Likewise.
4383 * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
4384 * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
4385 * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
4386 * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
4387 * modules/unicase/u16-tolower-tests (Files): Likewise.
4388 * modules/unicase/u16-totitle-tests (Files): Likewise.
4389 * modules/unicase/u16-toupper-tests (Files): Likewise.
4390 * modules/unicase/u32-casecmp-tests (Files): Likewise.
4391 * modules/unicase/u32-casecoll-tests (Files): Likewise.
4392 * modules/unicase/u32-casefold-tests (Files): Likewise.
4393 * modules/unicase/u32-is-cased-tests (Files): Likewise.
4394 * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
4395 * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
4396 * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
4397 * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
4398 * modules/unicase/u32-tolower-tests (Files): Likewise.
4399 * modules/unicase/u32-totitle-tests (Files): Likewise.
4400 * modules/unicase/u32-toupper-tests (Files): Likewise.
4401 * modules/unicase/ulc-casecmp-tests (Files): Likewise.
4402 * modules/unicase/ulc-casecoll-tests (Files): Likewise.
4403 * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
4404 * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
4405 * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
4406 * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
4407 * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
4408 * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
4409 * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
4410 * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
4411 * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
4412 * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
4413 * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
4414 * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
4415 * modules/unictype/bidicategory-byname-tests (Files): Likewise.
4416 * modules/unictype/bidicategory-name-tests (Files): Likewise.
4417 * modules/unictype/bidicategory-of-tests (Files): Likewise.
4418 * modules/unictype/bidicategory-test-tests (Files): Likewise.
4419 * modules/unictype/block-list-tests (Files): Likewise.
4420 * modules/unictype/block-of-tests (Files): Likewise.
4421 * modules/unictype/block-test-tests (Files): Likewise.
4422 * modules/unictype/category-C-tests (Files): Likewise.
4423 * modules/unictype/category-Cc-tests (Files): Likewise.
4424 * modules/unictype/category-Cf-tests (Files): Likewise.
4425 * modules/unictype/category-Cn-tests (Files): Likewise.
4426 * modules/unictype/category-Co-tests (Files): Likewise.
4427 * modules/unictype/category-Cs-tests (Files): Likewise.
4428 * modules/unictype/category-L-tests (Files): Likewise.
4429 * modules/unictype/category-Ll-tests (Files): Likewise.
4430 * modules/unictype/category-Lm-tests (Files): Likewise.
4431 * modules/unictype/category-Lo-tests (Files): Likewise.
4432 * modules/unictype/category-Lt-tests (Files): Likewise.
4433 * modules/unictype/category-Lu-tests (Files): Likewise.
4434 * modules/unictype/category-M-tests (Files): Likewise.
4435 * modules/unictype/category-Mc-tests (Files): Likewise.
4436 * modules/unictype/category-Me-tests (Files): Likewise.
4437 * modules/unictype/category-Mn-tests (Files): Likewise.
4438 * modules/unictype/category-N-tests (Files): Likewise.
4439 * modules/unictype/category-Nd-tests (Files): Likewise.
4440 * modules/unictype/category-Nl-tests (Files): Likewise.
4441 * modules/unictype/category-No-tests (Files): Likewise.
4442 * modules/unictype/category-P-tests (Files): Likewise.
4443 * modules/unictype/category-Pc-tests (Files): Likewise.
4444 * modules/unictype/category-Pd-tests (Files): Likewise.
4445 * modules/unictype/category-Pe-tests (Files): Likewise.
4446 * modules/unictype/category-Pf-tests (Files): Likewise.
4447 * modules/unictype/category-Pi-tests (Files): Likewise.
4448 * modules/unictype/category-Po-tests (Files): Likewise.
4449 * modules/unictype/category-Ps-tests (Files): Likewise.
4450 * modules/unictype/category-S-tests (Files): Likewise.
4451 * modules/unictype/category-Sc-tests (Files): Likewise.
4452 * modules/unictype/category-Sk-tests (Files): Likewise.
4453 * modules/unictype/category-Sm-tests (Files): Likewise.
4454 * modules/unictype/category-So-tests (Files): Likewise.
4455 * modules/unictype/category-Z-tests (Files): Likewise.
4456 * modules/unictype/category-Zl-tests (Files): Likewise.
4457 * modules/unictype/category-Zp-tests (Files): Likewise.
4458 * modules/unictype/category-Zs-tests (Files): Likewise.
4459 * modules/unictype/category-and-not-tests (Files): Likewise.
4460 * modules/unictype/category-and-tests (Files): Likewise.
4461 * modules/unictype/category-byname-tests (Files): Likewise.
4462 * modules/unictype/category-name-tests (Files): Likewise.
4463 * modules/unictype/category-none-tests (Files): Likewise.
4464 * modules/unictype/category-of-tests (Files): Likewise.
4465 * modules/unictype/category-or-tests (Files): Likewise.
4466 * modules/unictype/category-test-withtable-tests (Files): Likewise.
4467 * modules/unictype/combining-class-tests (Files): Likewise.
4468 * modules/unictype/ctype-alnum-tests (Files): Likewise.
4469 * modules/unictype/ctype-alpha-tests (Files): Likewise.
4470 * modules/unictype/ctype-blank-tests (Files): Likewise.
4471 * modules/unictype/ctype-cntrl-tests (Files): Likewise.
4472 * modules/unictype/ctype-digit-tests (Files): Likewise.
4473 * modules/unictype/ctype-graph-tests (Files): Likewise.
4474 * modules/unictype/ctype-lower-tests (Files): Likewise.
4475 * modules/unictype/ctype-print-tests (Files): Likewise.
4476 * modules/unictype/ctype-punct-tests (Files): Likewise.
4477 * modules/unictype/ctype-space-tests (Files): Likewise.
4478 * modules/unictype/ctype-upper-tests (Files): Likewise.
4479 * modules/unictype/ctype-xdigit-tests (Files): Likewise.
4480 * modules/unictype/decimal-digit-tests (Files): Likewise.
4481 * modules/unictype/digit-tests (Files): Likewise.
4482 * modules/unictype/mirror-tests (Files): Likewise.
4483 * modules/unictype/numeric-tests (Files): Likewise.
4484 * modules/unictype/property-alphabetic-tests (Files): Likewise.
4485 * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
4486 * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
4487 * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
4489 * modules/unictype/property-bidi-block-separator-tests (Files):
4491 * modules/unictype/property-bidi-boundary-neutral-tests (Files):
4493 * modules/unictype/property-bidi-common-separator-tests (Files):
4495 * modules/unictype/property-bidi-control-tests (Files): Likewise.
4496 * modules/unictype/property-bidi-embedding-or-override-tests (Files):
4498 * modules/unictype/property-bidi-eur-num-separator-tests (Files):
4500 * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
4502 * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
4503 * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
4505 * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
4506 * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
4508 * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
4509 * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
4510 * modules/unictype/property-bidi-segment-separator-tests (Files):
4512 * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
4513 * modules/unictype/property-byname-tests (Files): Likewise.
4514 * modules/unictype/property-combining-tests (Files): Likewise.
4515 * modules/unictype/property-composite-tests (Files): Likewise.
4516 * modules/unictype/property-currency-symbol-tests (Files): Likewise.
4517 * modules/unictype/property-dash-tests (Files): Likewise.
4518 * modules/unictype/property-decimal-digit-tests (Files): Likewise.
4519 * modules/unictype/property-default-ignorable-code-point-tests (Files):
4521 * modules/unictype/property-deprecated-tests (Files): Likewise.
4522 * modules/unictype/property-diacritic-tests (Files): Likewise.
4523 * modules/unictype/property-extender-tests (Files): Likewise.
4524 * modules/unictype/property-format-control-tests (Files): Likewise.
4525 * modules/unictype/property-grapheme-base-tests (Files): Likewise.
4526 * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
4527 * modules/unictype/property-grapheme-link-tests (Files): Likewise.
4528 * modules/unictype/property-hex-digit-tests (Files): Likewise.
4529 * modules/unictype/property-hyphen-tests (Files): Likewise.
4530 * modules/unictype/property-id-continue-tests (Files): Likewise.
4531 * modules/unictype/property-id-start-tests (Files): Likewise.
4532 * modules/unictype/property-ideographic-tests (Files): Likewise.
4533 * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
4534 * modules/unictype/property-ids-trinary-operator-tests (Files):
4536 * modules/unictype/property-ignorable-control-tests (Files): Likewise.
4537 * modules/unictype/property-iso-control-tests (Files): Likewise.
4538 * modules/unictype/property-join-control-tests (Files): Likewise.
4539 * modules/unictype/property-left-of-pair-tests (Files): Likewise.
4540 * modules/unictype/property-line-separator-tests (Files): Likewise.
4541 * modules/unictype/property-logical-order-exception-tests (Files):
4543 * modules/unictype/property-lowercase-tests (Files): Likewise.
4544 * modules/unictype/property-math-tests (Files): Likewise.
4545 * modules/unictype/property-non-break-tests (Files): Likewise.
4546 * modules/unictype/property-not-a-character-tests (Files): Likewise.
4547 * modules/unictype/property-numeric-tests (Files): Likewise.
4548 * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
4549 * modules/unictype/property-other-default-ignorable-code-point-tests
4551 * modules/unictype/property-other-grapheme-extend-tests (Files):
4553 * modules/unictype/property-other-id-continue-tests (Files): Likewise.
4554 * modules/unictype/property-other-id-start-tests (Files): Likewise.
4555 * modules/unictype/property-other-lowercase-tests (Files): Likewise.
4556 * modules/unictype/property-other-math-tests (Files): Likewise.
4557 * modules/unictype/property-other-uppercase-tests (Files): Likewise.
4558 * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
4559 * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
4560 * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
4561 * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
4562 * modules/unictype/property-private-use-tests (Files): Likewise.
4563 * modules/unictype/property-punctuation-tests (Files): Likewise.
4564 * modules/unictype/property-quotation-mark-tests (Files): Likewise.
4565 * modules/unictype/property-radical-tests (Files): Likewise.
4566 * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
4567 * modules/unictype/property-soft-dotted-tests (Files): Likewise.
4568 * modules/unictype/property-space-tests (Files): Likewise.
4569 * modules/unictype/property-terminal-punctuation-tests (Files):
4571 * modules/unictype/property-test-tests (Files): Likewise.
4572 * modules/unictype/property-titlecase-tests (Files): Likewise.
4573 * modules/unictype/property-unassigned-code-value-tests (Files):
4575 * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
4576 * modules/unictype/property-uppercase-tests (Files): Likewise.
4577 * modules/unictype/property-variation-selector-tests (Files): Likewise.
4578 * modules/unictype/property-white-space-tests (Files): Likewise.
4579 * modules/unictype/property-xid-continue-tests (Files): Likewise.
4580 * modules/unictype/property-xid-start-tests (Files): Likewise.
4581 * modules/unictype/property-zero-width-tests (Files): Likewise.
4582 * modules/unictype/scripts-tests (Files): Likewise.
4583 * modules/unictype/syntax-c-ident-tests (Files): Likewise.
4584 * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
4585 * modules/unictype/syntax-java-ident-tests (Files): Likewise.
4586 * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
4587 * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
4588 * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
4589 * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
4590 * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
4591 * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
4592 * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
4593 * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
4594 * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
4595 * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
4596 * modules/uninorm/compat-decomposition-tests (Files): Likewise.
4597 * modules/uninorm/composition-tests (Files): Likewise.
4598 * modules/uninorm/decomposing-form-tests (Files): Likewise.
4599 * modules/uninorm/decomposition-tests (Files): Likewise.
4600 * modules/uninorm/filter-tests (Files): Likewise.
4601 * modules/uninorm/nfc-tests (Files): Likewise.
4602 * modules/uninorm/nfd-tests (Files): Likewise.
4603 * modules/uninorm/nfkc-tests (Files): Likewise.
4604 * modules/uninorm/nfkd-tests (Files): Likewise.
4605 * modules/uninorm/u8-normcmp-tests (Files): Likewise.
4606 * modules/uninorm/u8-normcoll-tests (Files): Likewise.
4607 * modules/uninorm/u16-normcmp-tests (Files): Likewise.
4608 * modules/uninorm/u16-normcoll-tests (Files): Likewise.
4609 * modules/uninorm/u32-normcmp-tests (Files): Likewise.
4610 * modules/uninorm/u32-normcoll-tests (Files): Likewise.
4611 * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
4612 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
4613 * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
4614 * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
4615 * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
4616 * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
4617 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
4618 * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
4619 * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
4620 * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
4621 * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
4622 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
4623 * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
4624 * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
4625 * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
4626 * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
4627 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
4628 * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
4629 * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
4630 * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
4631 * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
4632 * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
4633 * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
4634 * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
4635 * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
4636 * modules/uniwidth/u8-width-tests (Files): Likewise.
4637 * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
4638 * modules/uniwidth/u16-width-tests (Files): Likewise.
4639 * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
4640 * modules/uniwidth/u32-width-tests (Files): Likewise.
4641 * modules/uniwidth/width-tests (Files): Likewise.
4642 * modules/unlink-tests (Files): Likewise.
4643 * modules/unsetenv-tests (Files): Likewise.
4644 * modules/usleep-tests (Files): Likewise.
4645 * modules/utimens-tests (Files): Likewise.
4646 * modules/utimensat-tests (Files): Likewise.
4647 * modules/vasnprintf-posix-tests (Files): Likewise.
4648 * modules/vasnprintf-tests (Files): Likewise.
4649 * modules/vasprintf-posix-tests (Files): Likewise.
4650 * modules/vasprintf-tests (Files): Likewise.
4651 * modules/vdprintf-posix-tests (Files): Likewise.
4652 * modules/vfprintf-posix-tests (Files): Likewise.
4653 * modules/vprintf-posix-tests (Files): Likewise.
4654 * modules/vsnprintf-posix-tests (Files): Likewise.
4655 * modules/vsnprintf-tests (Files): Likewise.
4656 * modules/vsprintf-posix-tests (Files): Likewise.
4657 * modules/wcrtomb-tests (Files): Likewise.
4658 * modules/wcsnrtombs-tests (Files): Likewise.
4659 * modules/wcsrtombs-tests (Files): Likewise.
4660 * modules/wctype-tests (Files): Likewise.
4661 * modules/wcwidth-tests (Files): Likewise.
4662 * modules/xmemdup0-tests (Files): Likewise.
4663 * modules/xprintf-posix-tests (Files): Likewise.
4664 * modules/xvasprintf-tests (Files): Likewise.
4666 2009-12-24 Eric Blake <ebb9@byu.net>
4668 test-nanosleep: fix typo
4669 * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
4671 Reported by Bruno Haible.
4673 2009-12-24 Bruno Haible <bruno@clisp.org>
4675 Reduce namespace pollution on glibc systems.
4676 * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
4677 * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
4679 * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
4680 <getopt.h> on glibc systems.
4681 * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
4683 * lib/fcntl.c: Include <unistd.h> here instead.
4685 2009-12-24 Bruno Haible <bruno@clisp.org>
4687 * lib/stdlib.in.h (includes): Fix typo in today's commit.
4689 2009-12-24 Eric Blake <ebb9@byu.net>
4691 tests: add signature checks
4692 * tests/signature.h (SIGNATURE_CHECK): New file.
4693 * modules/atexit-tests (Files): Use it.
4694 * modules/btowc-tests (Files): Likewise.
4695 * modules/canonicalize-lgpl-tests (Files): Likewise.
4696 * modules/ceilf-tests (Files): Likewise.
4697 * modules/ceill-tests (Files): Likewise.
4698 * modules/chown-tests (Files): Likewise.
4699 * modules/dprintf-posix-tests (Files): Likewise.
4700 * modules/dup2-tests (Files): Likewise.
4701 * modules/dup3-tests (Files): Likewise.
4702 * modules/duplocale-tests (Files): Likewise.
4703 * modules/fchdir-tests (Files): Likewise.
4704 * modules/fcntl-tests (Files): Likewise.
4705 * modules/fdopendir-tests (Files): Likewise.
4706 * modules/fflush-tests (Files): Likewise.
4707 * modules/flock-tests (Files): Likewise.
4708 * modules/floorf-tests (Files): Likewise.
4709 * modules/floorl-tests (Files): Likewise.
4710 * modules/fnmatch-tests (Files): Likewise.
4711 * modules/fopen-tests (Files): Likewise.
4712 * modules/fprintf-posix-tests (Files): Likewise.
4713 * modules/freopen-tests (Files): Likewise.
4714 * modules/frexp-nolibm-tests (Files): Likewise.
4715 * modules/frexp-tests (Files): Likewise.
4716 * modules/frexpl-nolibm-tests (Files): Likewise.
4717 * modules/frexpl-tests (Files): Likewise.
4718 * modules/fseek-tests (Files): Likewise.
4719 * modules/fseeko-tests (Files): Likewise.
4720 * modules/fsync-tests (Files): Likewise.
4721 * modules/ftell-tests (Files): Likewise.
4722 * modules/ftello-tests (Files): Likewise.
4723 * modules/futimens-tests (Files): Likewise.
4724 * modules/getaddrinfo-tests (Files): Likewise.
4725 * modules/getcwd-tests (Files): Likewise.
4726 * modules/getdelim-tests (Files): Likewise.
4727 * modules/getdtablesize-tests (Files): Likewise.
4728 * modules/getgroups-tests (Files): Likewise.
4729 * modules/gethostname-tests (Files): Likewise.
4730 * modules/getline-tests (Files): Likewise.
4731 * modules/getopt-posix-tests (Files): Likewise.
4732 * modules/gettimeofday-tests (Files): Likewise.
4733 * modules/glob-tests (Files): Likewise.
4734 * modules/iconv-tests (Files): Likewise.
4735 * modules/inet_ntop-tests (Files): Likewise.
4736 * modules/inet_pton-tests (Files): Likewise.
4737 * modules/isblank-tests (Files): Likewise.
4738 * modules/lchown-tests (Files): Likewise.
4739 * modules/ldexpl-tests (Files): Likewise.
4740 * modules/link-tests (Files): Likewise.
4741 * modules/linkat-tests (Files): Likewise.
4742 * modules/lseek-tests (Files): Likewise.
4743 * modules/lstat-tests (Files): Likewise.
4744 * modules/mbrtowc-tests (Files): Likewise.
4745 * modules/mbsinit-tests (Files): Likewise.
4746 * modules/mbsnrtowcs-tests (Files): Likewise.
4747 * modules/mbsrtowcs-tests (Files): Likewise.
4748 * modules/memchr-tests (Files): Likewise.
4749 * modules/memcmp-tests (Files): Likewise.
4750 * modules/memmem-tests (Files): Likewise.
4751 * modules/memrchr-tests (Files): Likewise.
4752 * modules/mkdir-tests (Files): Likewise.
4753 * modules/mkfifo-tests (Files): Likewise.
4754 * modules/mkfifoat-tests (Files): Likewise.
4755 * modules/mknod-tests (Files): Likewise.
4756 * modules/nanosleep-tests (Files): Likewise.
4757 * modules/nl_langinfo-tests (Files): Likewise.
4758 * modules/obstack-printf-tests (Files): Likewise.
4759 * modules/open-tests (Files): Likewise.
4760 * modules/openat-tests (Files): Likewise.
4761 * modules/perror-tests (Files): Likewise.
4762 * modules/pipe2-tests (Files): Likewise.
4763 * modules/poll-tests (Files): Likewise.
4764 * modules/popen-tests (Files): Likewise.
4765 * modules/posix_spawn-tests (Files): Likewise.
4766 * modules/posix_spawnp-tests (Files): Likewise.
4767 * modules/pread-tests (Files): Likewise.
4768 * modules/printf-posix-tests (Files): Likewise.
4769 * modules/pty-tests (Files): Likewise.
4770 * modules/random_r-tests (Files): Likewise.
4771 * modules/rawmemchr-tests (Files): Likewise.
4772 * modules/readlink-tests (Files): Likewise.
4773 * modules/remove-tests (Files): Likewise.
4774 * modules/rename-tests (Files): Likewise.
4775 * modules/renameat-tests (Files): Likewise.
4776 * modules/rmdir-tests (Files): Likewise.
4777 * modules/round-tests (Files): Likewise.
4778 * modules/roundf-tests (Files): Likewise.
4779 * modules/roundl-tests (Files): Likewise.
4780 * modules/select-tests (Files): Likewise.
4781 * modules/setenv-tests (Files): Likewise.
4782 * modules/sigaction-tests (Files): Likewise.
4783 * modules/sleep-tests (Files): Likewise.
4784 * modules/snprintf-posix-tests (Files): Likewise.
4785 * modules/snprintf-tests (Files): Likewise.
4786 * modules/sprintf-posix-tests (Files): Likewise.
4787 * modules/stat-tests (Files): Likewise.
4788 * modules/strcasestr-tests (Files): Likewise.
4789 * modules/strchrnul-tests (Files): Likewise.
4790 * modules/strerror-tests (Files): Likewise.
4791 * modules/strsignal-tests (Files): Likewise.
4792 * modules/strstr-tests (Files): Likewise.
4793 * modules/strtod-tests (Files): Likewise.
4794 * modules/strverscmp-tests (Files): Likewise.
4795 * modules/symlink-tests (Files): Likewise.
4796 * modules/symlinkat-tests (Files): Likewise.
4797 * modules/times-tests (Files): Likewise.
4798 * modules/trunc-tests (Files): Likewise.
4799 * modules/truncf-tests (Files): Likewise.
4800 * modules/truncl-tests (Files): Likewise.
4801 * modules/tsearch-tests (Files): Likewise.
4802 * modules/uname-tests (Files): Likewise.
4803 * modules/unlink-tests (Files): Likewise.
4804 * modules/unsetenv-tests (Files): Likewise.
4805 * modules/usleep-tests (Files): Likewise.
4806 * modules/utimensat-tests (Files): Likewise.
4807 * modules/vasprintf-tests (Files): Likewise.
4808 * modules/vdprintf-posix-tests (Files): Likewise.
4809 * modules/vfprintf-posix-tests (Files): Likewise.
4810 * modules/vprintf-posix-tests (Files): Likewise.
4811 * modules/vsnprintf-posix-tests (Files): Likewise.
4812 * modules/vsnprintf-tests (Files): Likewise.
4813 * modules/vsprintf-posix-tests (Files): Likewise.
4814 * modules/wcrtomb-tests (Files): Likewise.
4815 * modules/wcsnrtombs-tests (Files): Likewise.
4816 * modules/wcsrtombs-tests (Files): Likewise.
4817 * modules/wcwidth-tests (Files): Likewise.
4818 * tests/test-isfinite.c (isfinite): Ensure macro declaration.
4819 * tests/test-isinf.c (isinf): Likewise.
4820 * tests/test-isnan.c (isnan): Likewise.
4821 * tests/test-signbit.c (signbit): Likewise.
4822 * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
4823 declaration, either as macro or with correct signature.
4824 (select): Ensure function under test is declared with correct
4825 signature in correct header.
4826 * tests/test-atexit.c (atexit): Likewise.
4827 * tests/test-btowc.c (btowc): Likewise.
4828 * tests/test-canonicalize-lgpl.c (realpath)
4829 (canonicalize_file_name): Likewise.
4830 * tests/test-ceilf1.c (ceilf): Likewise.
4831 * tests/test-ceill.c (ceill): Likewise.
4832 * tests/test-chown.c (chown): Likewise.
4833 * tests/test-dprintf-posix.c (dprintf): Likewise.
4834 * tests/test-dup2.c (dup2): Likewise.
4835 * tests/test-dup3.c (dup3): Likewise.
4836 * tests/test-duplocale.c (duplocale): Likewise.
4837 * tests/test-fchdir.c (fchdir): Likewise.
4838 * tests/test-fchownat.c (fchownat): Likewise.
4839 * tests/test-fcntl.c (fcntl): Likewise.
4840 * tests/test-fdopendir.c (fdopendir): Likewise.
4841 * tests/test-fflush.c (fflush): Likewise.
4842 * tests/test-flock.c (flock): Likewise.
4843 * tests/test-floorf1.c (floorf): Likewise.
4844 * tests/test-floorl.c (floorl): Likewise.
4845 * tests/test-fnmatch.c (fnmatch): Likewise.
4846 * tests/test-fopen.c (fopen): Likewise.
4847 * tests/test-fprintf-posix.c (fprintf): Likewise.
4848 * tests/test-freopen.c (freopen): Likewise.
4849 * tests/test-frexp.c (frexp): Likewise.
4850 * tests/test-frexpl.c (frexpl): Likewise.
4851 * tests/test-fseek.c (fseek): Likewise.
4852 * tests/test-fseeko.c (fseeko): Likewise.
4853 * tests/test-fstatat.c (fstatat): Likewise.
4854 * tests/test-fsync.c (fsync): Likewise.
4855 * tests/test-ftell.c (ftell): Likewise.
4856 * tests/test-ftello.c (ftello): Likewise.
4857 * tests/test-futimens.c (futimens): Likewise.
4858 * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
4859 (gai_strerror): Likewise.
4860 * tests/test-getcwd.c (getcwd): Likewise.
4861 * tests/test-getdelim.c (getdelim): Likewise.
4862 * tests/test-getdtablesize.c (getdtablesize): Likewise.
4863 * tests/test-getgroups.c (getgroups): Likewise.
4864 * tests/test-gethostname.c (gethostname): Likewise.
4865 * tests/test-getline.c (getline): Likewise.
4866 * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
4868 * tests/test-gettimeofday.c (gettimeofday): Likewise.
4869 * tests/test-glob.c (glob, globfree): Likewise.
4870 * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
4871 * tests/test-inet_ntop.c (inet_ntop): Likewise.
4872 * tests/test-inet_pton.c (inet_pton): Likewise.
4873 * tests/test-isblank.c (isblank): Likewise.
4874 * tests/test-lchown.c (lchown): Likewise.
4875 * tests/test-ldexpl.c (ldexpl): Likewise.
4876 * tests/test-link.c (link): Likewise.
4877 * tests/test-linkat.c (linkat): Likewise.
4878 * tests/test-lseek.c (lseek): Likewise.
4879 * tests/test-lstat.c (lstat): Likewise.
4880 * tests/test-mbrtowc.c (mbrtowc): Likewise.
4881 * tests/test-mbsinit.c (mbsinit): Likewise.
4882 * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
4883 * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
4884 * tests/test-memchr.c (memchr): Likewise.
4885 * tests/test-memcmp.c (memcmp): Likewise.
4886 * tests/test-memmem.c (memmem): Likewise.
4887 * tests/test-memrchr.c (memrchr): Likewise.
4888 * tests/test-mkdir.c (mkdir): Likewise.
4889 * tests/test-mkdirat.c (mkdirat): Likewise.
4890 * tests/test-mkfifo.c (mkfifo): Likewise.
4891 * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
4892 * tests/test-mknod.c (mknod): Likewise.
4893 * tests/test-nanosleep.c (nanosleep): Likewise.
4894 * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
4895 * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
4897 * tests/test-open.c (open): Likewise.
4898 * tests/test-openat.c (openat): Likewise.
4899 * tests/test-perror.c (perror): Likewise.
4900 * tests/test-pipe2.c (pipe2): Likewise.
4901 * tests/test-poll.c (poll): Likewise.
4902 * tests/test-popen.c (popen, pclose): Likewise.
4903 * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
4904 (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
4905 (posix_spawnattr_setflags, posix_spawn_file_actions_init)
4906 (posix_spawn_file_actions_destroy)
4907 (posix_spawn_file_actions_addclose)
4908 (posix_spawn_file_actions_addopen)
4909 (posix_spawn_file_actions_adddup2): Likewise.
4910 * tests/test-posix_spawn3.c (posix_spawn): Likewise.
4911 * tests/test-pread.c (pread): Likewise.
4912 * tests/test-printf-posix.c (printf): Likewise.
4913 * tests/test-pty.c (openpty, forkpty): Likewise.
4914 * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
4915 (random_r): Likewise.
4916 * tests/test-rawmemchr.c (rawmemchr): Likewise.
4917 * tests/test-readlink.c (readlink): Likewise.
4918 * tests/test-remove.c (remove): Likewise.
4919 * tests/test-rename.c (rename): Likewise.
4920 * tests/test-renameat.c (renameat): Likewise.
4921 * tests/test-rmdir.c (rmdir): Likewise.
4922 * tests/test-round1.c (round): Likewise.
4923 * tests/test-roundf1.c (roundf): Likewise.
4924 * tests/test-roundl.c (roundl): Likewise.
4925 * tests/test-setenv.c (setenv): Likewise.
4926 * tests/test-sigaction.c (sigaction): Likewise.
4927 * tests/test-sleep.c (sleep): Likewise.
4928 * tests/test-snprintf.c (snprintf): Likewise.
4929 * tests/test-sprintf-posix.c (sprintf): Likewise.
4930 * tests/test-stat.c (stat): Likewise.
4931 * tests/test-stpncpy.c (stpncpy): Likewise.
4932 * tests/test-strcasestr.c (strcasestr): Likewise.
4933 * tests/test-strchrnul.c (strchrnul): Likewise.
4934 * tests/test-strerror.c (strerror): Likewise.
4935 * tests/test-strsignal.c (strsignal): Likewise.
4936 * tests/test-strstr.c (strstr): Likewise.
4937 * tests/test-strtod.c (strtod): Likewise.
4938 * tests/test-strverscmp.c (strverscmp): Likewise.
4939 * tests/test-symlink.c (symlink): Likewise.
4940 * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
4941 * tests/test-times.c (times): Likewise.
4942 * tests/test-trunc1.c (trunc): Likewise.
4943 * tests/test-truncf1.c (truncf): Likewise.
4944 * tests/test-truncl.c (truncl): Likewise.
4945 * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
4947 * tests/test-uname.c (uname): Likewise.
4948 * tests/test-unlink.c (unlink): Likewise.
4949 * tests/test-unlinkat.c (unlinkat): Likewise.
4950 * tests/test-unsetenv.c (unsetenv): Likewise.
4951 * tests/test-usleep.c (usleep): Likewise.
4952 * tests/test-utimensat.c (utimensat): Likewise.
4953 * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
4954 * tests/test-vdprintf-posix.c (vdprintf): Likewise.
4955 * tests/test-vfprintf-posix.c (vfprintf): Likewise.
4956 * tests/test-vprintf-posix.c (vprintf): Likewise.
4957 * tests/test-vsnprintf.c (vsnprintf): Likewise.
4958 * tests/test-vsprintf-posix.c (vsprintf): Likewise.
4959 * tests/test-wcrtomb.c (wcrtomb): Likewise.
4960 * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
4961 * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
4962 * tests/test-wcwidth.c (wcwidth): Likewise.
4964 build: pull in conditional headers during GNULIB_POSIXCHECK
4965 * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
4966 definitions from any conditionally-included headers.
4967 * lib/stdlib.in.h (includes): Likewise.
4968 * lib/unistd.in.h (includes): Likewise.
4970 2009-12-24 Bruno Haible <bruno@clisp.org>
4972 * tests/test-argv-iter.c: Include header file being tested immediately
4974 * tests/test-base64.c: Likewise.
4975 * tests/test-flock.c: Likewise.
4976 * tests/test-fsync.c: Likewise.
4977 * tests/test-getdate.c: Likewise.
4978 * tests/test-getndelim2.c: Likewise.
4979 * tests/test-isfinite.c: Likewise.
4980 * tests/test-isinf.c: Likewise.
4981 * tests/test-strerror.c: Likewise.
4982 * tests/test-strsignal.c: Likewise.
4984 2009-12-23 Eric Blake <ebb9@byu.net>
4986 unistd: work around cygwin bug
4987 * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
4988 * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
4989 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
4991 2009-12-23 Bruno Haible <bruno@clisp.org>
4993 localename: More tests.
4994 * tests/test-localename.c (SIZEOF): New macro.
4995 (categories): New variable.
4996 (test_locale_name, test_locale_name_posix, test_locale_name_environ,
4997 test_locale_name_default): Add test w.r.t. thread locale.
4998 (test_locale_name_thread): New function.
5001 localename: Make aware of thread locale.
5002 * lib/localename.h (gl_locale_name_thread): New declaration.
5003 (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
5004 behaviour with respect to thread locale.
5005 * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
5006 <langinfo.h>, glthread/lock.h.
5007 (SIZE_BITS): New macro.
5008 (string_hash): New function.
5009 (struct hash_node): New type.
5010 (HASH_TABLE_SIZE): New macro.
5011 (struniq_hash_table, struniq_lock): New variables.
5012 (struniq): New function.
5013 (gl_locale_name_thread): New function.
5014 (gl_locale_name): Invoke it.
5015 * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
5016 * modules/localename (Depends-on): Add lock.
5017 Reported by Mike Gran <spk121@yahoo.com>.
5019 2009-12-23 Eric Blake <ebb9@byu.net>
5022 * modules/va-args: New file.
5023 * m4/va-args.m4 (gl_VA_ARGS): Likewise.
5024 * MODULES.html.sh (Core language properties): Mention it.
5026 gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
5027 * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
5028 named alias for __attribute__((__unused__)).
5029 * lib/chown.c: Update client.
5030 * lib/fchmodat.c: Likewise.
5031 * lib/fts.c: Likewise.
5032 * lib/getdate.y: Likewise.
5033 * lib/getgroups.c: Likewise.
5034 * lib/getopt.c: Likewise.
5035 * lib/getugroups.c: Likewise.
5036 * lib/mkdir.c: Likewise.
5037 * lib/mkfifo.c: Likewise.
5038 * lib/mkfifoat.c: Likewise.
5039 * lib/mknod.c: Likewise.
5040 * lib/mknodat.c: Likewise.
5041 * lib/readlink.c: Likewise.
5042 * lib/se-context.in.h: Likewise.
5043 * lib/se-selinux.in.h: Likewise.
5044 * lib/sockets.c: Likewise.
5045 * lib/symlink.c: Likewise.
5046 * lib/symlinkat.c: Likewise.
5047 * lib/unicodeio.c: Likewise.
5048 * lib/unistr.h: Likewise.
5049 * tests/test-areadlink.c: Likewise.
5050 * tests/test-areadlinkat.c: Likewise.
5051 * tests/test-filenamecat.c: Likewise.
5052 * tests/test-fseeko.c: Likewise.
5053 * tests/test-ftello.c: Likewise.
5054 * tests/test-getdate.c: Likewise.
5055 * tests/test-getgroups.c: Likewise.
5056 * tests/test-gethostname.c: Likewise.
5057 * tests/test-quotearg.c: Likewise.
5058 * tests/test-version-etc.c: Likewise.
5059 * tests/test-xalloc-die.c: Likewise.
5060 * tests/test-xfprintf-posix.c: Likewise.
5061 * tests/test-xprintf-posix.c: Likewise.
5062 * tests/test-xvasprintf.c: Likewise.
5064 tests: avoid compiler warnings
5065 * tests/test-fcntl.c (main): Delete unused parameters.
5066 * tests/test-freopen-safer.c (main): Likewise.
5067 * tests/test-xalloc-die.c (main): Mark unused parameters.
5068 * tests/test-fseeko.c (main): Likewise.
5069 * tests/test-ftello.c (main): Likewise.
5070 * tests/test-nanosleep.c (main): Avoid declaration warning.
5071 * tests/test-sleep.c (main): Likewise.
5072 * tests/test-unsetenv.c (main): Silence warning about string
5074 * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
5076 2009-12-23 Bruno Haible <bruno@clisp.org>
5078 * tests/test-localename.c (test_locale_name): New function, extracted
5079 from main. Also test mixed situations.
5080 (test_locale_name_posix, test_locale_name_environ,
5081 test_locale_name_default): New functions.
5082 (main): Invoke them all.
5083 * modules/localename-tests (configure.ac): Test for newlocale.
5085 2009-12-23 Bruno Haible <bruno@clisp.org>
5087 unistd: Ensure getcwd gets declared before being overridden.
5088 * lib/unistd.in.h: Conditionally include <io.h>.
5090 2009-12-22 Bruno Haible <bruno@clisp.org>
5092 wchar: Diagnose broken combination of glibc and gcc versions and flags.
5093 * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
5094 (gl_WCHAR_H): Invoke it.
5095 * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
5096 * doc/posix-headers/wchar.texi: Mention the interoperability problem.
5097 Reported by Karl Berry <karl@freefriends.org>.
5099 2009-12-22 Eric Blake <ebb9@byu.net>
5101 math, unistd: avoid redundant includes
5102 * lib/math.in.h (isnan): No need to re-include <math.h>.
5103 * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
5105 getsubopt: work around cygwin bug
5106 * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
5107 avoid conflicting with system getsubopt.
5108 * doc/posix-functions/getsubopt.texi (getsubopt): Document the
5111 getopt: synchronize from glibc
5112 * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
5113 parameter order. Adjust all callers.
5114 (_getopt_internal_r, main): Adjust quoting in error messages.
5115 Drop considerations for outdated POSIX 1003.2 error message.
5116 * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
5118 * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
5120 test-getopt: test stderr behavior
5121 * modules/getopt-posix-tests (Depends-on): Add dup2.
5122 * tests/test-getopt.c (ASSERT): Avoid stderr.
5123 (main): Move stderr to a temporary file.
5124 * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
5125 Instead, add parameter to inform caller if output occurred.
5126 (test_getopt): Adjust all existing tests to expect silence, and
5127 add new tests of leading ":".
5128 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5129 glibc shortcomings with leading "-:" or "+:" in optstring.
5130 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5132 * doc/posix-functions/getopt.texi (getopt): Likewise.
5134 test-getopt: enhance test
5135 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
5137 * tests/test-getopt.c (OPTIND_MIN): Move...
5138 * tests/test-getopt.h (OPTIND_MIN): ...here.
5139 * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
5140 Require that optind=0 works, since modern BSD supports it in
5141 addition to optreset, and since coreutils expects it.
5142 (test_getopt_long_only): New test.
5143 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5144 glibc shortcomings with 'W;', and enforcement of optind=0.
5145 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5148 2009-12-21 Bruno Haible <bruno@clisp.org>
5150 localename: Improvements for MacOS X and Cygwin.
5151 * lib/localename.h (gl_locale_name_environ): New declaration.
5152 * lib/localename.c (gl_locale_name_environ): New function, extracted from
5153 gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
5154 (gl_locale_name_posix): Invoke it.
5155 (gl_locale_name_default): Add comments. Use Windows native API also on
5158 2009-12-21 Bruno Haible <bruno@clisp.org>
5160 Update list of Win32 locale ids.
5161 * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
5162 (LANG_SAMI): Renamed from LANG_SAAMI.
5163 (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
5164 LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
5165 LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
5166 LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
5167 (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
5168 SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
5169 SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
5170 SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
5171 SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
5172 SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
5173 SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
5174 SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
5175 SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
5176 SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
5177 SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
5178 SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
5179 SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
5180 SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
5181 SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
5182 SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
5183 SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
5184 SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
5185 SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
5186 SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
5187 SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
5188 SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
5189 SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
5190 SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
5191 SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
5192 SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
5193 SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
5194 SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
5195 SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
5196 SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
5197 SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
5198 SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
5199 SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
5200 SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
5201 SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
5202 SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
5203 SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
5204 SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
5205 SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
5206 SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
5207 SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
5208 SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
5209 SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
5210 SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
5211 SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
5212 SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
5213 SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
5214 SUBLANG_ZULU_SOUTH_AFRICA): New macros.
5215 (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
5216 locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
5217 Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
5218 Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
5219 Add more languages and countries for Sami, Sorbian. Add more countries
5220 for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
5221 for Pashto. Change country for Syriac, Tswana.
5223 2009-12-21 Eric Blake <ebb9@byu.net>
5225 test-utimens: avoid spurious failure
5226 * tests/test-chown.h (nap): Factor...
5227 * tests/nap.h: ...into new file.
5228 * tests/test-lchown.h (nap): Avoid duplication.
5229 * tests/test-utimens-common.h (nap): Use shared implementation,
5230 necessary on file systems with 1-second resolution.
5231 * modules/chown-tests (Files): Include new file.
5232 * modules/fdutimensat-tests (Files): Likewise.
5233 * modules/futimens-tests (Files): Likewise.
5234 * modules/lchown-tests (Files): Likewise.
5235 * modules/openat-tests (Files): Likewise.
5236 * modules/utimens-tests (Files): Likewise.
5237 * modules/utimensat-tests (Files): Likewise.
5239 2009-12-19 Eric Blake <ebb9@byu.net>
5241 futimens, utimensat: work around Linux bug
5242 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
5243 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5244 * lib/utimensat.c (rpl_utimensat): Work around it.
5245 * lib/futimens.c (rpl_futimens): Adjust comment.
5247 utimens: work around Linux ctime bug
5248 * lib/utimens.c (detect_ctime_bug): New helper function.
5249 (update_timespec): Differentiate between workaround needed for
5250 this bug vs. what is needed for systems that lack utimensat.
5251 (fdutimens, lutimens): Work around bug.
5253 utimens: check for ctime update
5254 * tests/test-utimens-common.h (check_ctime): Define.
5255 * tests/test-utimens.h (test_utimens): Expose the Linux bug.
5256 * tests/test-futimens.h (test_futimens): Likewise.
5257 * tests/test-lutimens.h (test_lutimens): Likewise.
5258 * doc/posix-functions/futimens.texi (futimens): Document the bug.
5259 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5261 2009-12-19 Bruno Haible <bruno@clisp.org>
5263 dprintf-posix: Check against memory leak fixed on 2009-12-15.
5264 * tests/test-dprintf-posix2.sh: New file.
5265 * tests/test-dprintf-posix2.c: New file.
5266 * modules/dprintf-posix-tests (Files): Add them.
5267 (configure.ac): Check for getrlimit and setrlimit.
5268 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
5270 2009-12-19 Bruno Haible <bruno@clisp.org>
5272 fprintf-posix: Check against memory leak fixed on 2009-12-15.
5273 * tests/test-fprintf-posix3.sh: New file.
5274 * tests/test-fprintf-posix3.c: New file.
5275 * modules/fprintf-posix-tests (Files): Add them.
5276 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
5278 2009-12-19 Eric Blake <ebb9@byu.net>
5280 dirfd: fix prototype
5281 * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
5282 * lib/dirfd.c (dirfd): Likewise.
5284 canonicalize: reduce memory usage
5285 * lib/canonicalize.c (canonicalize_filename_mode): Trim the
5287 Reported by Solar Designer <solar@openwall.com>.
5289 2009-12-19 Bruno Haible <bruno@clisp.org>
5291 New module attribute 'Applicability'.
5292 * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
5293 * gnulib-tool: New option --extract-applicability.
5294 (func_usage): Document it.
5295 (sed_extract_prog): Recognize it.
5296 (func_get_applicability): New function.
5297 (func_import): Generalize handling of 'link-warning' module.
5298 * modules/link-warning (Applicability): New section.
5299 * modules/arg-nonnull (Applicability): New section.
5300 Repoted by Simon Josefsson <simon@josefsson.org>.
5302 2009-12-19 Bruno Haible <bruno@clisp.org>
5305 * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
5306 * lib/fseeko.c (rpl_fseeko): Likewise.
5308 2009-12-16 José E. Marchesi <jemarch@gnu.org> (tiny change)
5310 * lib/gl_list.h: Fix typo in comment.
5312 2009-12-16 Eric Blake <ebb9@byu.net>
5314 fcntl: use to simplify other modules
5315 * modules/cloexec (Depends-on): Add fcntl.
5316 * modules/fchdir (Depends-on): Likewise.
5317 * modules/fd-safer-flag (Depends-on): Likewise.
5318 * modules/unistd-safer (Depends-on): Likewise.
5319 * modules/dup3 (configure.ac): Set module indicator.
5320 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
5322 * lib/fchdir.c (_gl_register_dup): Fix comment.
5323 * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
5324 * lib/dup-safer.c (dup_safer): Likewise.
5325 * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
5326 * lib/dup3.c (dup3): Likewise.
5327 * tests/test-fchdir.c (main): Enhance test.
5328 Fixes a dup_cloexec bug reported by Ondřej Vašík.
5330 fcntl: port portions of fcntl to mingw
5331 * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
5332 * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
5333 replacement for mingw.
5334 * modules/fcntl (Description): Update.
5335 (Depends-on): Add dup2.
5336 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
5337 * modules/fcntl-h (Makefile.am): Substitute it.
5338 * lib/fcntl.in.h (fcntl): Update declaration.
5339 (F_DUPFD, F_GETFD): New macros, when needed.
5340 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
5341 * doc/posix-functions/fcntl.texi (fcntl): Likewise.
5342 * tests/test-fcntl.c (check_flags, main): Enhance test for items
5345 fcntl: work around cygwin bug in F_DUPFD
5346 * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
5347 (gl_FUNC_FCNTL): Use it. Test for F_DUPFD bug.
5348 * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
5349 <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
5350 * doc/posix-functions/fcntl.texi (fcntl): Document it.
5352 fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
5353 * modules/fcntl (Files): List new files.
5354 (configure.ac): Run a test.
5355 * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
5356 * lib/fcntl.c (rpl_fcntl): Likewise.
5357 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
5358 (gl_FCNTL_H): Always replace fcntl.h.
5359 * modules/fcntl-h (Makefile.am): Substitute witnesses.
5360 * lib/fcntl.in.h (fcntl): Declare replacement.
5361 (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
5362 needed, plus a witness.
5363 * doc/posix-functions/fcntl.texi (fcntl): Document this.
5364 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
5365 * tests/test-fcntl.c: New file.
5366 * modules/fcntl-tests: Likewise.
5368 binary-io: avoid potential compilation warning
5369 * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
5372 fflush: avoid compilation error on NetBSD
5373 * lib/fflush.c (update_fpos_cache): Use a union to safely convert
5374 between off_t and fpos_t, since the latter is sometimes a struct.
5375 * lib/fseeko.c (rpl_fseeko): Likewise.
5376 Reported by Alexander Nasonov <alnsn@yandex.ru>.
5378 2009-12-15 Eric Blake <ebb9@byu.net>
5380 fcntl-h, stdio, sys_ioctl: fix declarations
5381 * lib/stdio.in.h (dprintf): Use of link warning on a variadic
5382 function must not take arguments.
5383 * lib/sys_ioctl.in.h (ioctl): Likewise.
5384 * lib/fcntl.in.h (openat): Likewise. Declare extern.
5385 (open): Add a link warning.
5387 2009-12-15 Jim Meyering <meyering@redhat.com>
5389 areadlink, areadlink-with-size: relax license to LGPLv2+
5390 * modules/areadlink (License): Relax to LGPLv2+.
5391 * modules/areadlink-with-size (License): Likewise.
5393 2009-12-15 Joel E. Denny <jdenny@clemson.edu>
5394 Bruno Haible <bruno@clisp.org>
5396 *printf: Fix memory leak.
5397 * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
5398 * lib/vfprintf.c (vfprintf): Likewise.
5399 * lib/dprintf.c (dprintf): Likewise.
5400 * lib/vdprintf.c (vdprintf): Likewise.
5402 2009-12-14 Eric Blake <ebb9@byu.net>
5404 accept4: adjust module dependencies
5405 * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
5407 utimens: one more try at avoiding compiler warning
5408 * lib/utimens.c (lutimens): Lower scope of result.
5410 2009-12-13 Bruno Haible <bruno@clisp.org>
5412 Move the malloc checking from module 'list' to new module 'xlist'.
5413 * modules/xlist: New file.
5414 * lib/gl_xlist.h: New file.
5415 * lib/gl_xlist.c: New file.
5416 * lib/gl_list.h (gl_list_create_empty, gl_list_create,
5417 gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
5418 gl_list_add_last, gl_list_add_before, gl_list_add_after,
5419 gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
5420 (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
5421 gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
5422 gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
5423 gl_sortedlist_nx_add): New declarations.
5424 (struct gl_list_implementation): Rename and change methods accordingly.
5425 (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
5426 (gl_list_nx_create): Renamed from gl_list_create.
5427 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
5428 (gl_list_nx_set_at): Renamed from gl_list_set_at.
5429 (gl_list_nx_add_first): Renamed from gl_list_add_first.
5430 (gl_list_nx_add_last): Renamed from gl_list_add_last.
5431 (gl_list_nx_add_before): Renamed from gl_list_add_before.
5432 (gl_list_nx_add_after): Renamed from gl_list_add_after.
5433 (gl_list_nx_add_at): Renamed from gl_list_add_at.
5434 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
5435 * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
5436 gl_list_create_empty.
5437 (gl_list_nx_create): Renamed from gl_list_create.
5438 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
5439 (gl_list_nx_set_at): Renamed from gl_list_set_at.
5440 (gl_list_nx_add_first): Renamed from gl_list_add_first.
5441 (gl_list_nx_add_last): Renamed from gl_list_add_last.
5442 (gl_list_nx_add_before): Renamed from gl_list_add_before.
5443 (gl_list_nx_add_after): Renamed from gl_list_add_after.
5444 (gl_list_nx_add_at): Renamed from gl_list_add_at.
5445 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
5446 * lib/gl_array_list.c: Don't include xalloc.h.
5447 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
5448 NULL upon out-of-memory.
5449 (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
5451 (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
5452 Change return type to 'int'.
5453 (gl_array_nx_set_at): Renamed from gl_array_set_at.
5454 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
5455 (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
5457 (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
5459 (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
5461 (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
5463 (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
5465 (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
5467 (gl_array_list_implementation): Update.
5468 * lib/gl_carray_list.c: Don't include xalloc.h.
5469 (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
5470 Return NULL upon out-of-memory.
5471 (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
5473 (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
5474 Change return type to 'int'.
5475 (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
5476 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
5477 (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
5479 (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
5481 (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
5483 (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
5484 (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
5485 (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
5487 (gl_carray_list_implementation): Update.
5488 * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
5489 * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
5490 gl_linked_create_empty. Return NULL upon out-of-memory.
5491 (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
5493 (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
5494 Change return type to 'int'. Return -1 upon out-of-memory.
5495 (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
5497 (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
5499 (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
5501 (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
5502 NULL upon out-of-memory.
5503 (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
5505 (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
5507 (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
5509 * lib/gl_linked_list.c: Don't include xalloc.h.
5510 (gl_linked_list_implementation): Update.
5511 * lib/gl_linkedhash_list.c: Don't include xalloc.h.
5512 (add_to_bucket): Change return type to 'int'.
5513 (gl_linkedhash_list_implementation): Update.
5514 * lib/gl_anytree_list1.h (free_subtree): New function.
5515 * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
5516 gl_tree_create_empty. Return NULL upon out-of-memory.
5517 (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
5518 Change return type to 'int'. Return -1 upon out-of-memory.
5519 (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
5521 (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
5522 (gl_tree_remove_node): New function, moved here from
5523 lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
5524 (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
5526 * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
5527 malloc, not xmalloc. Return NULL upon out-of-memory.
5528 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
5530 (gl_tree_remove_node_from_tree): New function, extracted from
5531 gl_tree_remove_node.
5532 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
5534 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
5536 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
5538 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
5540 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
5541 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
5542 not xmalloc. Return NULL upon out-of-memory.
5543 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
5545 (gl_tree_remove_node_from_tree): New function, extracted from
5546 gl_tree_remove_node.
5547 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
5549 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
5551 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
5553 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
5555 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
5556 * lib/gl_avltree_list.c: Don't include xalloc.h. Include
5557 gl_anytree_list1.h before gl_anyavltree_list2.h.
5558 (gl_avltree_list_implementation): Update.
5559 * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
5560 gl_anytree_list1.h before gl_anyavltree_list2.h.
5561 (gl_rbtree_list_implementation): Update.
5562 * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
5563 Change return type to 'int'. Return -1 upon out-of-memory. Use
5565 * lib/gl_avltreehash_list.c: Don't include xalloc.h.
5566 (gl_avltreehash_list_implementation): Update.
5567 * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
5568 (gl_rbtreehash_list_implementation): Update.
5569 * modules/array-list (Depends-on): Remove xalloc.
5570 * modules/carray-list (Depends-on): Likewise.
5571 * modules/linked-list (Depends-on): Likewise.
5572 * modules/linkedhash-list (Depends-on): Likewise.
5573 * modules/avltree-list (Depends-on): Likewise.
5574 * modules/rbtree-list (Depends-on): Likewise.
5575 * modules/avltreehash-list (Depends-on): Likewise.
5576 * modules/rbtreehash-list (Depends-on): Likewise.
5578 * modules/xsublist: New file.
5579 * lib/gl_xsublist.h: New file.
5580 * lib/gl_xsublist.c: New file.
5581 * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
5582 (gl_sublist_nx_create): New declaration.
5583 * lib/gl_sublist.c: Don't include xalloc.h.
5584 (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
5585 (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
5586 (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
5587 Change return type to 'int'. Return -1 upon out-of-memory.
5588 (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
5590 (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
5591 NULL upon out-of-memory.
5592 (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
5594 (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
5595 NULL upon out-of-memory.
5596 (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
5597 NULL upon out-of-memory.
5598 (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
5600 (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
5601 (gl_sublist_list_implementation): Update.
5602 (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
5604 * modules/sublist (Depends-on): Remove xalloc.
5606 * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
5607 * tests/test-carray_list.c: Likewise.
5608 * tests/test-linked_list.c: Likewise.
5609 * tests/test-linkedhash_list.c: Likewise.
5610 * tests/test-avltree_list.c: Likewise.
5611 * tests/test-rbtree_list.c: Likewise.
5612 * tests/test-avltreehash_list.c: Likewise.
5613 * tests/test-rbtreehash_list.c: Likewise.
5614 * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
5615 * modules/carray-list-tests (Makefile.am): Likewise.
5616 * modules/linked-list-tests (Makefile.am): Likewise.
5617 * modules/linkedhash-list-tests (Makefile.am): Likewise.
5618 * modules/avltree-list-tests (Makefile.am): Likewise.
5619 * modules/rbtree-list-tests (Makefile.am): Likewise.
5620 * modules/avltreehash-list-tests (Makefile.am): Likewise.
5621 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
5623 * NEWS: Mention the changes.
5625 * lib/clean-temp.c: Include gl_xlist.h.
5626 * modules/clean-temp (Depends-on): Add xlist.
5628 * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
5629 * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
5631 * tests/test-array_oset.c: Include gl_xlist.h.
5632 * modules/array-oset-tests (Depends-on): Add xlist.
5634 Reported by José E. Marchesi <jemarch@gnu.org>.
5636 2009-12-13 Bruno Haible <bruno@clisp.org>
5638 Move the malloc checking from module 'oset' to new module 'xoset'.
5639 * modules/xoset: New file.
5640 * lib/gl_xoset.h: New file.
5641 * lib/gl_xoset.c: New file.
5642 * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
5644 (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
5645 (struct gl_oset_implementation): Rename and change methods accordingly.
5646 (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
5647 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
5648 'int'. Mark as __warn_unused_result__.
5649 * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
5650 gl_oset_create_empty.
5651 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
5653 * lib/gl_array_oset.c: Don't include xalloc.h.
5654 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
5655 malloc, not xmalloc.
5656 (grow): Change return type to 'int'. Don't call xalloc_die.
5657 (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
5659 (gl_array_nx_add): Renamed from gl_array_add. Change return type to
5661 (gl_array_oset_implementation): Update.
5662 * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
5663 gl_tree_create_empty.
5664 (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
5666 * lib/gl_avltree_oset.c: Don't include xalloc.h.
5667 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
5669 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
5671 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
5673 (gl_avltree_oset_implementation): Update.
5674 * lib/gl_rbtree_oset.c: Don't include xalloc.h.
5675 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
5677 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
5679 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
5681 (gl_rbtree_oset_implementation): Update.
5682 * modules/array-oset (Depends-on): Remove xalloc.
5683 * modules/avltree-oset (Depends-on): Likewise.
5684 * modules/rbtree-oset (Depends-on): Likewise.
5685 * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
5686 * tests/test-avltree_oset.c: Likewise.
5687 * tests/test-rbtree_oset.c: Likewise.
5688 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
5689 * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
5690 * modules/rbtree-oset-tests (Makefile.am): Likewise.
5691 * NEWS: Mention the change.
5693 2009-12-05 Alfred M. Szmidt <ams@gnu.org>
5695 maint.mk: allow a project to override release-prep commands
5696 * top/maint.mk (alpha, beta, stable): Move release-preparatory
5697 commands into a new rule.
5698 (release-prep): New rule.
5699 (release-prep-hook): New overridable variable.
5701 2009-12-13 Bruno Haible <bruno@clisp.org>
5703 * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
5705 2009-12-13 Jim Meyering <meyering@redhat.com>
5707 maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
5708 * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
5710 2009-12-12 Bruno Haible <bruno@clisp.org>
5713 * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
5715 2009-12-12 Karl Berry <karl@gnu.org>
5717 * config/srclist.txt (strtoll.c): tab changes, no more sync.
5719 2009-12-12 Bruno Haible <bruno@clisp.org>
5721 * m4/po.m4: Undo incorrect untabification.
5723 2009-12-12 Bruno Haible <bruno@clisp.org>
5725 c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
5726 * modules/c-strtod (Depends-on): Add locale.
5727 * modules/c-strtold (Depends-on): Likewise.
5729 2009-12-12 Bruno Haible <bruno@clisp.org>
5731 * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
5733 2009-12-11 Eric Blake <ebb9@byu.net>
5735 setenv: relax requirement in light of POSIX ruling
5736 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
5738 * tests/test-setenv.c (main): Relax test.
5739 * tests/test-unsetenv.c (main): Likewise.
5740 * doc/posix-functions/setenv.texi (setenv): Document this.
5741 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
5743 2009-12-11 Bruno Haible <bruno@clisp.org>
5745 New module 'fd-safer-flag'.
5746 * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
5747 * lib/dup-safer.c (dup_safer_flag): Remove function.
5748 * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
5749 * lib/fd-safer.c (fd_safer_flag): Remove function.
5750 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
5751 * modules/cloexec (configure.ac): Drop indicator macro.
5752 * modules/fd-safer-flag: New file.
5753 * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
5754 * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
5755 * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
5757 2009-12-11 Bruno Haible <bruno@clisp.org>
5759 Tests for module 'nl_langinfo'.
5760 * modules/nl_langinfo-tests: New file.
5761 * tests/test-nl_langinfo.sh: New file.
5762 * tests/test-nl_langinfo.c: New file.
5764 New module 'nl_langinfo'.
5765 * lib/nl_langinfo.c: New file.
5766 * m4/nl_langinfo.m4: New file.
5767 * modules/nl_langinfo: New file.
5768 * doc/posix-functions/nl_langinfo.texi: Mention the new module.
5770 2009-12-11 Bruno Haible <bruno@clisp.org>
5772 Tests for module 'langinfo'.
5773 * modules/langinfo-tests: New file.
5774 * tests/test-langinfo.c: New file.
5776 New module 'langinfo'.
5777 * lib/langinfo.in.h: New file.
5778 * m4/langinfo_h.m4: New file.
5779 * modules/langinfo: New file.
5780 * doc/posix-headers/langinfo.texi: Mention the new module.
5782 2009-12-11 Bruno Haible <bruno@clisp.org>
5784 * lib/config.charset: Untabify.
5786 2009-12-11 Bruno Haible <bruno@clisp.org>
5788 * modules/unistd-safer (configure.ac): Drop indicator macro.
5790 2009-12-11 Bruno Haible <bruno@clisp.org>
5792 Move pipe2-safer code to its own file.
5793 * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
5794 * lib/pipe-safer.c (pipe2_safer): Remove function.
5795 * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
5796 (Makefile.am): Add it to lib_SOURCES.
5798 2009-12-10 Bruno Haible <bruno@clisp.org>
5800 * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
5802 2009-12-10 Bruno Haible <bruno@clisp.org>
5804 Declare which arguments expect non-NULL values, for GCC and clang.
5805 * build-aux/arg-nonnull.h: New file.
5806 * modules/arg-nonnull: New file.
5807 * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
5808 (inet_ntop, inet_pton): Use it.
5809 * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
5810 (closedir, dirfd, opendir, scandir, alphasort): Use it.
5811 * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
5812 (open, openat): Use it.
5813 * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
5815 * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
5816 (getopt, getopt_long, getopt_long_only): Use it.
5817 * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
5818 * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
5820 * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
5821 (iconv_open): Use it.
5822 * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
5823 (strtoimax, strtoumax): Use it.
5824 * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
5825 (duplocale): Use it.
5826 * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
5827 (frexp, frexpl): Use it.
5828 * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
5829 (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
5830 * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
5831 (tsearch, tfind, tdelete, twalk): Use it.
5832 * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
5833 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
5834 sigpending): Use it.
5835 * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
5836 (posix_spawn, posix_spawnp, posix_spawnattr_init,
5837 posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
5838 posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
5839 posix_spawnattr_setsigmask, posix_spawnattr_getflags,
5840 posix_spawnattr_setflags, posix_spawnattr_getpgroup,
5841 posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
5842 posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
5843 posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
5844 posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
5845 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
5847 * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
5848 (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
5849 rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
5850 obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
5851 rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
5852 vfprintf, vprintf, vsnprintf, vsprintf): Use it.
5853 * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
5854 (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
5855 mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
5856 setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
5857 strtoull, unsetenv): Use it.
5858 * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
5859 (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
5860 strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
5861 strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
5862 mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
5863 mbsspn, mbssep, mbstok_r, strverscmp): Use it.
5864 * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
5865 (strcasecmp, strncasecmp): Use it.
5866 * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
5867 (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
5868 rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
5869 rpl_setsockopt): Use it.
5870 * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
5871 (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
5872 mkfifoat, mknod, mknodat, stat, utimensat): Use it.
5873 * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
5874 (gettimeofday): Use it.
5875 * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
5877 * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
5879 * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
5880 (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
5881 * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
5882 (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
5883 getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
5884 pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
5885 unlinkat, write): Use it.
5886 * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
5887 (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
5888 * lib/argv-iter.h: Include arg-nonnull.h.
5889 (_ATTRIBUTE_NONNULL_): Remove macro.
5890 (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
5891 argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
5892 * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
5894 * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
5895 * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
5896 * lib/glob.c (_GL_ARG_NONNULL): Likewise.
5897 * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
5898 * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
5899 * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
5900 * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
5901 * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
5902 * modules/arpa_inet (Depends-on): Add arg-nonnull.
5903 (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
5904 * modules/dirent (Depends-on): Add arg-nonnull.
5905 (Makefile.am): Insert arg-nonnull.h into dirent.h.
5906 * modules/fcntl-h (Depends-on): Add arg-nonnull.
5907 (Makefile.am): Insert arg-nonnull.h into fcntl.h.
5908 * modules/fnmatch (Depends-on): Add arg-nonnull.
5909 (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
5910 * modules/getopt-posix (Depends-on): Add arg-nonnull.
5911 (Makefile.am): Insert arg-nonnull.h into getopt.h.
5912 * modules/glob (Depends-on): Add arg-nonnull.
5913 (Makefile.am): Insert arg-nonnull.h into glob.h.
5914 * modules/iconv_open (Depends-on): Add arg-nonnull.
5915 (Makefile.am): Insert arg-nonnull.h into iconv.h.
5916 * modules/inttypes (Depends-on): Add arg-nonnull.
5917 (Makefile.am): Insert arg-nonnull.h into inttypes.h.
5918 * modules/locale (Depends-on): Add arg-nonnull.
5919 (Makefile.am): Insert arg-nonnull.h into locale.h.
5920 * modules/math (Depends-on): Add arg-nonnull.
5921 (Makefile.am): Insert arg-nonnull.h into math.h.
5922 * modules/netdb (Depends-on): Add arg-nonnull.
5923 (Makefile.am): Insert arg-nonnull.h into netdb.h.
5924 * modules/search (Depends-on): Add arg-nonnull.
5925 (Makefile.am): Insert arg-nonnull.h into search.h.
5926 * modules/signal (Depends-on): Add arg-nonnull.
5927 (Makefile.am): Insert arg-nonnull.h into signal.h.
5928 * modules/spawn (Depends-on): Add arg-nonnull.
5929 (Makefile.am): Insert arg-nonnull.h into spawn.h.
5930 * modules/stdio (Depends-on): Add arg-nonnull.
5931 (Makefile.am): Insert arg-nonnull.h into stdio.h.
5932 * modules/stdlib (Depends-on): Add arg-nonnull.
5933 (Makefile.am): Insert arg-nonnull.h into stdlib.h.
5934 * modules/string (Depends-on): Add arg-nonnull.
5935 (Makefile.am): Insert arg-nonnull.h into string.h.
5936 * modules/strings (Depends-on): Add arg-nonnull.
5937 (Makefile.am): Insert arg-nonnull.h into strings.h.
5938 * modules/sys_socket (Depends-on): Add arg-nonnull.
5939 (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
5940 * modules/sys_stat (Depends-on): Add arg-nonnull.
5941 (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
5942 * modules/sys_time (Depends-on): Add arg-nonnull.
5943 (Makefile.am): Insert arg-nonnull.h into sys/time.h.
5944 * modules/sys_times (Depends-on): Add arg-nonnull.
5945 (Makefile.am): Insert arg-nonnull.h into sys/times.h.
5946 * modules/sys_utsname (Depends-on): Add arg-nonnull.
5947 (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
5948 * modules/time (Depends-on): Add arg-nonnull.
5949 (Makefile.am): Insert arg-nonnull.h into time.h.
5950 * modules/unistd (Depends-on): Add arg-nonnull.
5951 (Makefile.am): Insert arg-nonnull.h into unistd.h.
5952 * modules/wchar (Depends-on): Add arg-nonnull.
5953 (Makefile.am): Insert arg-nonnull.h into wchar.h.
5954 * modules/argv-iter (Depends-on): Add arg-nonnull.
5955 * tests/test-canonicalize.c (null_ptr): New function.
5957 * tests/test-canonicalize-lgpl.c (null_ptr): New function.
5959 * tests/test-memmem.c (null_ptr): New function.
5961 Reported by Jim Meyering.
5963 2009-12-10 Bruno Haible <bruno@clisp.org>
5965 Use spaces for indentation, not tabs.
5966 * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
5967 * m4/*.m4: Untabify.
5968 * build-aux/*.h: Untabify.
5969 * tests/**/*.[hc]: Untabify.
5970 * README: New section "Indent with spaces, not TABs", based on
5971 coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
5972 * NEWS: Mention the change.
5974 2009-12-10 Bruno Haible <bruno@clisp.org>
5976 pty test: Fix link error.
5977 * modules/pty-tests (Makefile.am): Add the default LDADD value to
5980 2009-12-07 Simon Josefsson <simon@josefsson.org>
5982 * modules/pty: New file.
5983 * modules/pty-tests: New file.
5984 * m4/pty.m4: New file.
5985 * tests/test-pty.c: New file.
5986 * doc/glibc-headers/pty.texi: Modified.
5987 * doc/glibc-functions/forkpty.texi: Modified.
5988 * doc/glibc-functions/openpty.texi: Modified.
5990 2009-12-10 Bruno Haible <bruno@clisp.org>
5992 Avoid syntax error in C++ mode.
5993 * lib/stdio.in.h (rename): Don't use parameter name 'new'.
5995 2009-12-10 Bruno Haible <bruno@clisp.org>
5997 Use sed with option -e.
5998 * gnulib-tool (func_version, func_emit_copyright_notice,
5999 func_emit_initmacro_end, func_import, func_create_testdir): Pass
6001 * modules/link-warning (Makefile.am): Likewise.
6003 2009-12-10 Jim Meyering <meyering@redhat.com>
6005 mgetgroups: do not write bytes beyond end of malloc'd buffer
6006 * lib/mgetgroups.c: Fix an off-by-one error. When we have no
6007 username, we call getgroups with a one-element-shorter buffer,
6008 but still told it the length was original, max_n_groups.
6010 2009-12-09 Eric Blake <ebb9@byu.net>
6012 cloexec: relax license
6013 * modules/cloexec (Maintainer): Add myself.
6014 (License): Use LGPL, not GPL.
6016 link-warning: optimize generation
6017 * modules/link-warning (Makefile.am): Reduce process usage.
6019 2009-12-09 Bruno Haible <bruno@clisp.org>
6021 * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
6022 workaround was added on 2009-11-17.
6024 2009-12-09 Jim Meyering <meyering@redhat.com>
6025 Bruno Haible <bruno@clisp.org>
6027 link-warning: Allow extra lines at the top of build-aux/link-warning.h.
6028 * modules/link-warning (Makefile.am): Make the comment-removing sed
6029 command more robust in the face of bootstrap-prepended comment lines.
6031 2009-12-09 Bruno Haible <bruno@clisp.org>
6033 * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
6036 2009-12-09 Simon Josefsson <simon@josefsson.org>
6037 Bruno Haible <bruno@clisp.org>
6039 * build-aux/link-warning.h: Add copyright notice.
6040 * modules/link-warning (Makefile.am): Generate link-warning.h from
6041 build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
6042 * NEWS: Mention change in link-warning module.
6043 * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
6044 * modules/dirent (Makefile.am): Add dependency to dirent.h.
6045 * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
6046 * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
6047 * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
6048 * modules/math (Makefile.am): Add dependency to math.h.
6049 * modules/search (Makefile.am): Add dependency to search.h.
6050 * modules/signal (Makefile.am): Add dependency to signal.h.
6051 * modules/spawn (Makefile.am): Add dependency to spawn.h.
6052 * modules/stdio (Makefile.am): Add dependency to stdio.h.
6053 * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
6054 * modules/string (Makefile.am): Add dependency to string.h.
6055 * modules/strings (Makefile.am): Add dependency to strings.h.
6056 * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
6057 * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
6058 * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
6059 * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
6060 * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
6061 * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
6062 * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
6063 * modules/unistd (Makefile.am): Add dependency to unistd.h.
6064 * modules/wchar (Makefile.am): Add dependency to wchar.h.
6066 2009-12-09 Bruno Haible <bruno@clisp.org>
6068 fchdir: Optimize away rpl_fstat when possible.
6069 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
6070 REPLACE_OPEN_DIRECTORY.
6071 * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
6073 2009-12-09 Bruno Haible <bruno@clisp.org>
6075 * lib/fchdir.c: Update comment.
6077 2009-12-09 Bruno Haible <bruno@clisp.org>
6079 * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
6081 2009-12-08 Eric Blake <ebb9@byu.net>
6083 fchdir: avoid memory leak on re-registration.
6084 * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
6086 2009-12-08 Jim Meyering <meyering@redhat.com>
6088 init.sh: avoid Solaris 10 /bin/sh portability problem
6089 Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
6091 $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
6092 $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
6094 tests/init.sh relied on that, accepting a --set-path=DIR argument,
6095 and two tests used that idiom.
6096 * tests/init.sh: Update suggested usage comments.
6097 (path_prepend_): New function, to be used in place
6098 of the --src-path=DIR option.
6099 (setup_): Move PATH-prepending code into path_prepend_.
6100 * tests/test-pread.sh: Adapt to new usage.
6101 * tests/test-xalloc-die.sh: Likewise.
6103 2009-12-08 Simon Josefsson <simon@josefsson.org>
6105 * doc/gnulib.texi (Glibc pty.h): Add.
6106 * doc/glibc-functions/forkpty.texi: Add.
6107 * doc/glibc-functions/openpty.texi: Add.
6108 Suggested by Bruno Haible.
6110 2009-12-08 Eric Blake <ebb9@byu.net>
6112 fchdir: fix logic bugs
6113 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
6114 * tests/test-fchdir.c (main): Enhance test.
6115 * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
6118 dup2: fix logic bugs
6119 * lib/dup2.c (dup2): Fix logic bugs. Use HAVE_DUP2 rather than
6120 REPLACE_DUP2 to decide when rpl_dup2 is needed.
6121 * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
6123 (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
6125 2009-12-07 Eric Blake <ebb9@byu.net>
6127 unlink: fix m4 detection
6128 * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
6130 unistd-safer: add unit test
6131 * modules/unistd-safer-tests: New file.
6132 * tests/test-dup-safer.c: Likewise.
6133 * tests/test-cloexec.c (setmode): Avoid compiler warning.
6134 * tests/test-dup2.c (setmode): Likewise.
6135 * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
6137 cloexec: preserve text vs. binary across dup_cloexec
6138 * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
6140 * modules/dup2-tests (Depends-on): Add binary-io.
6141 * modules/cloexec-tests (Depends-on): Likewise.
6142 * tests/test-dup2.c (setmode, is_mode): New helpers.
6143 (main): Add tests that translation mode is preserved.
6144 * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
6145 Reported by Bruno Haible.
6147 mgetgroups: reduce duplicate listings
6148 * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
6150 * tests/test-chown.h (test_chown): Simplify client.
6151 * tests/test-lchown.h (test_lchown): Likewise.
6153 2009-12-06 Bruno Haible <bruno@clisp.org>
6155 * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
6158 2009-12-06 Bruno Haible <bruno@clisp.org>
6160 * lib/progname.c: Include stdio.h, stdlib.h.
6161 (set_program_name): Reject a NULL argument.
6163 2009-12-05 Eric Blake <ebb9@byu.net>
6165 pipe2-safer: new module
6166 * modules/pipe2-safer: New file.
6167 * lib/unistd-safer.h (pipe2_safer): New prototype.
6168 * lib/unistd--.h (pipe2): New wrapper.
6169 * lib/pipe-safer.c (pipe2_safer): New function.
6170 * modules/pipe (Depends-on): Add pipe2-safer.
6171 * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
6173 stdlib-safer: preserve cloexec flag for mkostemp[s]
6174 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
6177 unistd-safer: allow preservation of cloexec status via flag
6178 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
6180 * lib/dup-safer.c (dup_safer_flag): New function.
6181 * lib/fd-safer.c (fd_safer_flag): Likewise.
6182 * modules/cloexec (configure.ac): Set witness.
6184 test-dup2: enhance test
6185 * modules/dup2-tests (Depends-on): Add cloexec.
6186 * tests/test-dup2.c (main): Enhance test.
6188 cloexec: add dup_cloexec
6189 * lib/cloexec.h (dup_cloexec): New prototype. Add copyright
6190 header and comments.
6191 * lib/cloexec.c (set_cloexec_flag): Add comments.
6192 (dup_cloexec): New function, with mingw implementation borrowed
6194 * lib/w32spawn.h (dup_noinherit): ...here.
6195 * modules/execute (Depends-on): Add cloexec.
6196 * modules/pipe (Depends-on): Likewise.
6197 * modules/cloexec (Depends-on): Add dup2.
6198 * modules/cloexec-tests (Files): New file.
6199 * tests/test-cloexec.c: Likewise.
6201 test-xalloc-die: fix test for mingw
6202 * modules/xalloc-die-tests (Files): Add tests/init.sh.
6203 * tests/test-xalloc-die.sh: Rewrite to use init.sh. Strip
6204 directory and .exe suffix off argv[0] output.
6206 test-fseeko: fix test for mingw
6207 * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
6208 than undefining fseek, so test will pass on mingw.
6210 2009-12-05 Bruno Haible <bruno@clisp.org>
6212 * lib/progname.h (set_program_name): Clarify specification.
6213 * lib/progname.c (set_program_name): Likewise.
6214 Reported by Jim Meyering.
6216 2009-12-05 Jim Meyering <meyering@redhat.com>
6218 maint.mk: backslash-escape parens in default regexp
6219 * top/maint.mk (news-check-regexp): Now that we're using grep -E,
6220 backslash-escape the literal parentheses.
6222 maint.mk: news-date-check: use grep -E
6223 * top/maint.mk (today): Define a Make variable, not a...
6224 (news-date-check): ...shell variable.
6225 (news-date-regexp): Use the Make variable.
6226 Use grep's -E option. Change the failing diagnostic to mention
6227 the variable, $(news-date-regexp).
6229 2009-12-04 Alfred M. Szmidt <ams@gnu.org>
6231 maintainer-makefile: allow customization of NEWS entry format
6232 * top/maint.mk (news-date-regexp): New overridable variable.
6233 (news-date-check): Use it.
6235 2009-12-04 Eric Blake <ebb9@byu.net>
6237 mgetgroups: add xgetgroups, and avoid ENOSYS failures
6238 * lib/mgetgroups.h (xgetgroups): New prototype.
6239 * lib/mgetgroups.c (xgetgroups): New wrapper.
6240 (mgetgroups): Handle ENOSYS.
6241 * modules/mgetgroups (Depends-on): Add realloc.
6242 Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
6244 mgetgroups: avoid argument promotion issues with -1
6245 * lib/mgetgroups.c (mgetgroups): A cast is required when checking
6247 * tests/test-chown.h (getegid, test_chown): Likewise.
6248 * tests/test-lchown.h (getegid, test_lchown): Likewise.
6250 2009-12-03 Paolo Bonzini <bonzini@gnu.org>
6252 exclude: Fix header file problems.
6253 * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
6255 2009-12-01 Jim Meyering <meyering@redhat.com>
6257 fts: fts_open: do not let an empty string cause immediate failure
6258 This is required in support of GNU rm, for which the command
6259 "rm A '' B" must process and remove both A and B, in spite of
6260 the empty string argument.
6261 * lib/fts.c (fts_open): Do not let the presence of an empty string
6262 cause fts_open to fail immediately. Most fts-using tools must be
6263 able to process all arguments, in order, and can be expected to
6264 diagnose such arguments themselves.
6266 2009-11-30 Eric Blake <ebb9@byu.net>
6268 utimens: fix compilation error
6269 * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
6270 Declare variable at right scope.
6272 2009-11-29 Jim Meyering <meyering@redhat.com>
6274 bootstrap: handle perl-5.11's changed --version output
6275 * build-aux/bootstrap (get_version): Handle perl separately,
6276 since perl-5.11's --version output is different.
6278 2009-11-28 Jim Meyering <meyering@redhat.com>
6280 userspec: depend on the inttostr module, too
6281 * modules/userspec (Depends-on): Add inttostr.
6283 userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
6284 * lib/userspec.c (parse_with_separator): Do not accept a user ID
6285 number of MAXUID when it evaluates to (uid_t) -1.
6286 Likewise for group ID. Reported by Matt McCutchen in
6287 <http://savannah.gnu.org/bugs/?28113>
6289 userspec: reformat to use spaces, not TABs
6290 * lib/userspec.c: Expand TABs to spaces.
6291 Add Emacs' "indent-tabs-mode: nil" hint.
6293 2009-11-27 Eric Blake <ebb9@byu.net>
6295 getopt-gnu: flush out another BSD bug
6296 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
6297 * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
6299 * tests/test-getopt.h (test_getopt): End lists with NULL.
6300 * tests/test-getopt_long.h (test_getopt_long): Likewise.
6301 (test_getopt_long_posix): Enhance test.
6302 * modules/getopt-posix-tests (Depends-on): Add stdbool.
6303 * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
6305 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6308 2009-11-27 Simon Josefsson <simon@josefsson.org>
6310 * modules/idpriv-droptemp-tests (Notice): Fix text.
6312 2009-11-27 Jim Meyering <meyering@redhat.com>
6314 test-xalloc-die: avoid spurious failure due to libtool argv difference
6315 In a libtool-enabled project, this test would fail due to a difference
6316 in the emitted program name, e.g.,
6317 -test-xalloc-die: memory exhausted
6318 +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
6319 Use program to avoid that.
6320 * modules/xalloc-die-tests (Depends-on): Add progname.
6321 * tests/test-xalloc-die.c: Include progname.h".
6322 (program_name): Remove decl.
6323 (main): Call set_program_name.
6324 * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
6326 2009-11-26 Richard Jones <rjones@redhat.com>
6328 w32sock: leave win32 error in place.
6329 * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
6331 2009-11-26 Eric Blake <ebb9@byu.net>
6333 init.sh: suggest to use skip_ and fail_ functions in comments
6334 * tests/init.sh: Add a sentence.
6336 2009-11-25 Bruno Haible <bruno@clisp.org>
6338 init.sh: add documentation in comments
6339 * tests/init.sh: Add some developer and user documentation.
6341 2009-11-26 Jim Meyering <meyering@redhat.com>
6343 init.sh: accommodate even those who specify bogus srcdir manually
6344 * tests/init.sh: Normally, srcdir is guaranteed by automake and
6345 configure-time tests to be sanitized, so that there is no need to
6346 use "$srcdir" in Makefile rules and shell scripts. Using $srcdir
6347 (with no double quotes) suffices. However, since tests may be
6348 invoked manually, and since you may explicitly set srcdir to the
6349 name of a directory containing spaces, do quote its uses here.
6350 * tests/test-pread.sh: Likewise.
6351 Suggested by Bruno Haible.
6353 test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
6354 * tests/test-pread.sh: Write no data into the pipe, because
6355 test-pread actually reads none. This avoids a diagnostic,
6356 "bash: echo: write error: Broken pipe", that arises in the unusual
6357 event something is ignoring SIGPIPE, and might be interpreted
6358 as some sort of failure. Reported by Bruno Haible.
6360 2009-11-25 Jim Meyering <meyering@redhat.com>
6362 test-pread: cover failure with ESPIPE and EINVAL
6363 * tests/test-pread.c (main): Test for failure, too.
6364 * tests/test-pread.sh: Invoke with stdin on a pipe.
6365 Suggested by Eric Blake.
6367 pread: improvement and fix
6368 * modules/pread (Depends-on): Depend on lseek, for portability to
6369 e.g., mingw. Suggested by Eric Blake.
6370 * lib/pread.c (__libc_read): Define. Reported by Richard W.M. Jones.
6372 unistd.in.h: correct declaration of pread
6373 * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
6374 Reported by Richard W.M. Jones.
6376 test-pread.sh: distribute the test script
6377 * modules/pread-tests (Files): Include test-pread.sh.
6379 test-pread.sh: clean up
6380 * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
6381 * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
6382 That is unnecessary, since it's always ".".
6383 Suggestion from Eric Blake.
6385 test-pread.sh: make executable
6386 * tests/test-pread.sh: Set executable bit.
6387 Reported by Eric Blake.
6389 correct typo in test-pread.sh
6390 * tests/test-pread.sh: Add #! line.
6393 * tests/test-pread.c: New file.
6394 * tests/test-pread.sh: Likewise.
6395 * modules/pread-tests: Likewise.
6398 * modules/pread: New file.
6399 * lib/unistd.in.h (pread): Define/declare.
6400 * lib/pread.c (pread): New file.
6401 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
6402 * modules/unistd (Makefile.am): Substitute witnesses.
6403 * doc/posix-functions/pread.texi (pread): Update.
6404 * MODULES.html.sh: Add pread.
6406 2009-11-25 Jim Meyering <meyering@redhat.com>
6408 tests/init.sh: new file to be used via most *.sh tests
6409 * tests/init.sh: New file.
6411 2009-11-25 Eric Blake <ebb9@byu.net>
6413 utimens: work around older Linux failure with symlinks
6414 * lib/utimens.c (lutimensat_works_really): New variable.
6415 (fdutimens, lutimens): Use it to manage kernels that support
6416 nanosecond times on files, but not on symlinks.
6417 Reported by Ondřej Vašík.
6419 utimes: fix configure grammar
6420 * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
6422 2009-11-25 Paolo Bonzini <bonzini@gnu.org>
6424 regex: Fix fastmap for multibyte character ranges.
6425 * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
6426 characters when a multibyte character range is included.
6428 2009-11-22 Andy Wingo <wingo@pobox.com>
6430 version-etc: work also with AM_INIT_AUTOMAKE's no-define option
6431 * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
6433 2009-11-24 Bruno Haible <bruno@clisp.org>
6435 doc: Most *_l functions exist in MacOS X 10.5.
6436 * doc/posix-functions/duplocale.texi: Update platforms list.
6437 * doc/posix-functions/freelocale.texi: Likewise.
6438 * doc/posix-functions/newlocale.texi: Likewise.
6439 * doc/posix-functions/uselocale.texi: Likewise.
6440 * doc/posix-functions/isalnum_l.texi: Likewise.
6441 * doc/posix-functions/isalpha_l.texi: Likewise.
6442 * doc/posix-functions/isblank_l.texi: Likewise.
6443 * doc/posix-functions/iscntrl_l.texi: Likewise.
6444 * doc/posix-functions/isdigit_l.texi: Likewise.
6445 * doc/posix-functions/isgraph_l.texi: Likewise.
6446 * doc/posix-functions/islower_l.texi: Likewise.
6447 * doc/posix-functions/isprint_l.texi: Likewise.
6448 * doc/posix-functions/ispunct_l.texi: Likewise.
6449 * doc/posix-functions/isspace_l.texi: Likewise.
6450 * doc/posix-functions/isupper_l.texi: Likewise.
6451 * doc/posix-functions/iswalnum_l.texi: Likewise.
6452 * doc/posix-functions/iswalpha_l.texi: Likewise.
6453 * doc/posix-functions/iswblank_l.texi: Likewise.
6454 * doc/posix-functions/iswcntrl_l.texi: Likewise.
6455 * doc/posix-functions/iswctype_l.texi: Likewise.
6456 * doc/posix-functions/iswdigit_l.texi: Likewise.
6457 * doc/posix-functions/iswgraph_l.texi: Likewise.
6458 * doc/posix-functions/iswlower_l.texi: Likewise.
6459 * doc/posix-functions/iswprint_l.texi: Likewise.
6460 * doc/posix-functions/iswpunct_l.texi: Likewise.
6461 * doc/posix-functions/iswspace_l.texi: Likewise.
6462 * doc/posix-functions/iswupper_l.texi: Likewise.
6463 * doc/posix-functions/iswxdigit_l.texi: Likewise.
6464 * doc/posix-functions/isxdigit_l.texi: Likewise.
6465 * doc/posix-functions/nl_langinfo_l.texi: Likewise.
6466 * doc/posix-functions/strcasecmp_l.texi: Likewise.
6467 * doc/posix-functions/strcoll_l.texi: Likewise.
6468 * doc/posix-functions/strfmon_l.texi: Likewise.
6469 * doc/posix-functions/strftime_l.texi: Likewise.
6470 * doc/posix-functions/strncasecmp_l.texi: Likewise.
6471 * doc/posix-functions/strxfrm_l.texi: Likewise.
6472 * doc/posix-functions/tolower_l.texi: Likewise.
6473 * doc/posix-functions/toupper_l.texi: Likewise.
6474 * doc/posix-functions/towctrans_l.texi: Likewise.
6475 * doc/posix-functions/towlower_l.texi: Likewise.
6476 * doc/posix-functions/towupper_l.texi: Likewise.
6477 * doc/posix-functions/wcscoll_l.texi: Likewise.
6478 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
6479 * doc/posix-functions/wctrans_l.texi: Likewise.
6480 * doc/posix-functions/wctype_l.texi: Likewise.
6481 * doc/glibc-functions/strptime_l.texi: Likewise.
6482 * doc/glibc-functions/strtod_l.texi: Likewise.
6483 * doc/glibc-functions/strtof_l.texi: Likewise.
6484 * doc/glibc-functions/strtol_l.texi: Likewise.
6485 * doc/glibc-functions/strtold_l.texi: Likewise.
6486 * doc/glibc-functions/strtoll_l.texi: Likewise.
6487 * doc/glibc-functions/strtoul_l.texi: Likewise.
6488 * doc/glibc-functions/strtoull_l.texi: Likewise.
6489 * doc/glibc-functions/wcsftime_l.texi: Likewise.
6490 * doc/glibc-functions/wcstod_l.texi: Likewise.
6491 * doc/glibc-functions/wcstof_l.texi: Likewise.
6492 * doc/glibc-functions/wcstol_l.texi: Likewise.
6493 * doc/glibc-functions/wcstold_l.texi: Likewise.
6494 * doc/glibc-functions/wcstoll_l.texi: Likewise.
6495 * doc/glibc-functions/wcstoul_l.texi: Likewise.
6496 * doc/glibc-functions/wcstoull_l.texi: Likewise.
6498 2009-11-24 Bruno Haible <bruno@clisp.org>
6500 duplocale: Fix logic bug.
6501 * lib/duplocale.c: Don't include <langinfo.h>.
6502 (_NL_LOCALE_NAME): Remove macro.
6503 (rpl_duplocale): Use setlocale instead of nl_langinfo.
6504 * tests/test-duplocale.c (main): Also test duplocale after uselocale.
6506 2009-11-23 Jim Meyering <meyering@redhat.com>
6508 test-update-copyright: don't hard-code /usr/bin/perl
6509 * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
6510 perl to print the current year. Gilles Espinasse reported that
6511 the replaced use of perl was hard-coded as /usr/bin/perl.
6513 2009-11-23 Bruno Haible <bruno@clisp.org>
6515 duplocale: Add support for glibc 2.3.x.
6516 * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
6518 2009-11-22 Bruno Haible <bruno@clisp.org>
6520 vasnprintf: Tiny optimization.
6521 * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
6524 2009-11-22 Bruno Haible <bruno@clisp.org>
6526 Tests for module 'duplocale'.
6527 * modules/duplocale-tests: New file.
6528 * tests/test-duplocale.c: New file.
6530 New module 'duplocale'.
6531 * m4/duplocale.m4: New file.
6532 * lib/locale.in.h (duplocale): New declaration.
6533 * lib/duplocale.c: New file.
6534 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
6535 gl_LOCALE_H_DEFAULTS): New macros.
6536 (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
6537 gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
6538 * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
6540 * modules/duplocale: New file.
6541 * doc/posix-functions/duplocale.texi: Mention the glibc bug.
6543 2009-11-22 Bruno Haible <bruno@clisp.org>
6545 * modules/locale-tests (configure.ac): Test for newlocale function.
6546 * tests/test-locale.c: When the system has extended locale functions,
6547 verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
6549 locale: Make locale_t available when possible.
6550 * lib/locale.in.h: Include <xlocale.h> when it exists.
6551 * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
6552 replace <locale.h> if it does not define locale_t but <xlocale.h> does.
6553 * modules/locale (Depends-on): Add extensions.
6554 (Makefile.am): Also substitute HAVE_XLOCALE_H.
6555 * doc/posix-headers/locale.texi: Document the problem with locale_t.
6557 2009-11-22 Bruno Haible <bruno@clisp.org>
6560 * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
6562 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
6563 * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6564 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
6566 2009-11-22 Bruno Haible <bruno@clisp.org>
6568 error: account for the possibility of freopen (stdout).
6569 * lib/error.c: Include <unistd.h>.
6570 (flush_stdout): New function, extracted from error and error_at_line.
6571 Determine stdout's fd dynamically.
6572 (error, error_at_line): Invoke flush_stdout.
6573 * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
6574 * modules/error (Depends-on): Add unistd.
6576 2009-11-22 Bruno Haible <bruno@clisp.org>
6578 diffseq: Add comment.
6579 * lib/diffseq.h (IF_LINT): Add comment about pitfall.
6581 2009-11-22 Jim Meyering <meyering@redhat.com>
6583 c-stack: avoid defining an unused static function
6584 * lib/c-stack.c (find_stack_direction): Do not define this function
6585 when it will not be used.
6587 diffseq: avoid spurious gcc warnings
6588 * lib/diffseq.h (IF_LINT2): Define.
6589 (compareseq): Use it to initialize two members of "part".
6590 This avoids two used-uninitialized warnings.
6592 2009-11-21 Jim Meyering <meyering@redhat.com>
6594 c-stack: avoid "ignoring return value of `write'" warning
6595 * lib/c-stack.c: Include "ignore-value.h".
6596 (die): Explicitly ignore each write return value.
6597 * modules/c-stack (Depends-on): Add ignore-value.
6599 2009-11-21 Bruno Haible <bruno@clisp.org>
6601 diffseq: reduce scope of variable 'best'.
6602 * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
6603 variable, earlier used for two different purposes.
6605 2009-11-21 Jim Meyering <meyering@redhat.com>
6607 diffseq: remove useless assignment to "best"
6608 * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
6609 assignment. At that point "best" is already guaranteed to be zero.
6611 2009-11-20 Eric Blake <ebb9@byu.net>
6613 build: mention ftp redirector in release announcements
6614 * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
6615 values that used to come from cfg.mk; mention FTP redirect URL.
6616 * build-aux/announce-gen: Mention the mirror list.
6617 Suggested by Karl Berry.
6619 nanosleep: improve port to mingw
6620 * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
6621 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
6622 LIB_NANOSLEEP, but only when needed.
6623 * modules/select (Link): Document LIBSOCKET.
6624 * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
6627 nanosleep: work around cygwin bug
6628 * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
6629 Fix logic bug when nanosleep fails. Work around cygwin 1.5.x
6631 (getnow): Delete, not needed.
6632 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
6634 * modules/nanosleep (Depends-on): Add intprops and verify. Drop
6635 clock-time, gettime.
6636 * doc/posix-functions/nanosleep.texi (nanosleep): Document the
6638 * modules/nanosleep-tests: New test.
6639 * tests/test-nanosleep.c: New file.
6641 sleep: work around cygwin bug
6642 * lib/sleep.c (rpl_sleep): Work around the bug.
6643 * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
6644 (gl_PREREQ_SLEEP): Delete unused macro.
6645 * modules/sleep (Depends-on): Add verify.
6646 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
6647 * modules/unistd (Makefile.am): Substitute witness.
6648 * lib/unistd.in.h (sleep): Update prototype.
6649 * doc/posix-functions/sleep.texi (sleep): Document the bug.
6650 * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
6651 * modules/sleep-tests (Depends-on): Check for alarm.
6653 2009-11-20 Jim Meyering <meyering@redhat.com>
6655 maint.mk: improve sc_prohibit_magic_number_exit
6656 * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
6657 so it does not match uses like System.exit(1).
6658 Add comments showing how to correct all offenders.
6660 2009-11-19 Eric Blake <ebb9@byu.net>
6662 xalloc-die-tests: add missing library
6663 * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
6665 test-xvasprintf: silence compiler warnings
6666 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
6667 empty string from gcc.
6669 2009-11-19 Jim Meyering <meyering@redhat.com>
6671 xfreopen: new module, from coreutils
6672 * modules/xfreopen: New module.
6673 * lib/xfreopen.c: New file.
6674 * lib/xfreopen.h: New file.
6675 * MODULES.html.sh (File stream based Input/Output"): Add it.
6677 2009-11-19 Eric Blake <ebb9@byu.net>
6679 manywarnings: depend on warnings
6680 * modules/manywarnings (Depends-on): Add warnings.
6682 build: avoid compiler warnings
6683 * lib/select.c (rpl_select): Delete unused variable.
6684 * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
6686 2009-11-18 Eric Blake <ebb9@byu.net>
6688 tests: avoid false negative with --with-packager
6689 * tests/test-version-etc.sh: Discard packager information.
6690 * tests/test-argp-version-etc-1.sh: Likewise.
6691 Reported by Mike Frysinger.
6693 utimens: fix regression on Solaris
6694 * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
6695 * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
6696 can only change fd timestamps via futimesat. Instead, use an
6697 additional witness macro to avoid BSD bug.
6698 Reported by Jim Meyering.
6700 2009-11-17 Eric Blake <ebb9@byu.net>
6702 usleep: use it to simplify tests
6703 * modules/stat-time-tests (Depends-on): Add usleep.
6704 (configure.ac): Drop usleep check.
6705 * modules/chown-tests (Depends-on, configure.ac): Likewise.
6706 * modules/lchown-tests (Depends-on, configure.ac): Likewise.
6707 * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
6708 * modules/futimens-tests (Depends-on, configure.ac): Likewise.
6709 * modules/openat-tests (Depends-on, configure.ac): Likewise.
6710 * modules/utimens-tests (Depends-on, configure.ac): Likewise.
6711 * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
6712 * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
6714 * tests/test-chown.h (nap): Rely on nicer usleep semantics.
6715 * tests/test-lchown.h (nap): Likewise.
6716 * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
6717 * tests/test-stat-time.c (nap): Likewise.
6718 * tests/test-utimens-common.h (nap): Update comments.
6721 * modules/usleep: New file.
6722 * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
6723 * lib/usleep.c (usleep): Likewise.
6724 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
6725 * modules/unistd (Makefile.am): Substitute witnesses.
6726 * lib/unistd.in.h (usleep): Add declaration.
6727 * doc/pastposix-functions/usleep.texi (usleep): Document this.
6728 * MODULES.html.sh (Date and time): Likewise.
6729 * modules/usleep-tests (Depends-on): New test.
6730 * tests/test-usleep.c: New file.
6732 chown: work around OpenBSD bug
6733 * lib/chown.c (rpl_chown): Work around the bug.
6734 * lib/lchown.c (rpl_lchown): Attempt to do likewise.
6735 * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
6736 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
6737 * modules/chown (Depends-on): Add stdbool.
6738 * modules/lchown (Depends-on): Likewise.
6739 * doc/posix-functions/chown.texi (chown): Document the bug.
6740 * doc/posix-functions/lchown.texi (lchown): Likewise.
6741 * tests/test-lchown.h (test_chown): Relax test.
6743 mkstemp: avoid conflict with C++ keyword template
6744 * lib/mkdtemp.c (mkdtemp): Change spelling of template.
6745 * lib/mkostemp.c (mkostemp): Likewise.
6746 * lib/mkostemps.c (mkostemps): Likewise.
6747 * lib/mkstemp.c (mkstemp): Likewise.
6748 * lib/mkstemps.c (mkstemps): Likewise.
6750 xalloc-die-tests: optimize
6751 * tests/test-xalloc-die.sh: Reduce number of processes.
6753 2009-11-17 Simon Josefsson <simon@josefsson.org>
6755 * gnulib-tool: Support LGPLv3+ licenses in module files. Tiny
6756 patch from ludo@gnu.org (Ludovic Courtès).
6758 2009-11-17 Jim Meyering <meyering@redhat.com>
6760 version-etc: use proper license string
6761 * modules/version-etc (License): Use LGPL, not LGPLv3+.
6762 * modules/version-etc-fsf: Likewise.
6764 2009-11-17 Simon Josefsson <simon@josefsson.org>
6766 * tests/test-xalloc-die.sh: Add license. Check that nothing is
6767 printed to stdout. Deal with EOL differences.
6769 2009-11-17 Eric Blake <ebb9@byu.net>
6771 unsetenv: work around Solaris bug
6772 * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
6773 * lib/unsetenv.c (rpl_unsetenv): Work around it.
6774 Reported by Jim Meyering.
6776 vasnprintf: avoid compiler warnings
6777 * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
6779 * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
6781 2009-11-17 Simon Josefsson <simon@josefsson.org>
6783 * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
6784 settings since xalloc-die is no longer the self test,
6787 2009-11-17 Jim Meyering <meyering@redhat.com>
6789 test-xalloc-die.sh: make the code agree with the commit log
6790 * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
6791 at the end, just in case you happen to have a test-xalloc-die
6792 program in some other PATH directory.
6794 test-xalloc-die.sh: fix a portability bug
6795 * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
6796 Instead, set PATH to start with "." and invoke via "test-xalloc-die".
6797 Otherwise, argv[0] (as often seen in diagnostics) would be too
6798 system-dependent, sometimes with, and sometimes without the leading "./".
6800 version-etc-fsf: relax license to LGPLv3+
6801 * modules/version-etc-fsf (License): Relax license.
6803 2009-11-16 Eric Blake <ebb9@byu.net>
6805 xalloc-die-tests: avoid printing null pointer
6806 * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
6808 * tests/test-xalloc-die.c (program_name): Declare.
6809 * tests/test-xalloc-die.sh (tmpfiles): New file.
6811 setenv, unsetenv: work around various bugs
6812 * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
6813 (setenv) [HAVE_SETENV]: Work around bugs.
6814 * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
6815 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
6817 (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
6818 * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
6819 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
6820 * modules/stdlib (Makefile.am): Update substitutions.
6821 * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
6822 * doc/posix-functions/setenv.texi (setenv): Document the bugs.
6823 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
6824 * modules/setenv-tests: New test.
6825 * modules/unsetenv-tests: Likewise.
6826 * tests/test-setenv.c: New file.
6827 * tests/test-unsetenv.c: Likewise.
6829 2009-11-16 Jim Meyering <meyering@redhat.com>
6831 version-etc: relax license to LGPLv3+
6832 * modules/version-etc (License): Relax license.
6834 better AC_REQUIRE expanded-before-required-warning avoidance
6835 * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
6836 with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
6837 Suggested by Eric Blake. This change also reverts commit 1b712ba8,
6838 which is no longer needed.
6840 2009-11-16 Eric Blake <ebb9@byu.net>
6842 test-freading: clean up temporary file
6843 * tests/test-freading.c (main): Remove file on success, and use
6844 ASSERT more liberally.
6845 Reported by Jim Meyering.
6847 2009-11-16 Jim Meyering <meyering@redhat.com>
6849 avoid new AC_REQUIRE expanded-before-required warnings
6850 * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
6852 * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
6853 * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
6855 2009-11-15 Simon Josefsson <simon@josefsson.org>
6857 * tests/test-xalloc-die.c: New file.
6858 * modules/xalloc-die-tests: New file.
6859 * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
6860 XFAIL_TESTS so it can be appended by modules.
6862 2009-11-15 Simon Josefsson <simon@josefsson.org>
6864 * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898. Reported
6865 by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
6867 2009-11-14 Eric Blake <ebb9@byu.net>
6869 fnmatch: avoid compiler warning
6870 * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
6871 to silence compiler warning about mismatch signedness in ?:.
6872 Reported by Robert Millan.
6874 intprops: add double-inclusion guard
6875 * lib/intprops.h: Allow idempotent includes.
6876 Suggested by Bruce Korb.
6878 openat: detect Solaris fchownat bug
6879 * lib/fchownat.c (rpl_fchownat): Work around Solaris bug. Avoid
6880 penalizing glibc chownat when only lchownat is broken.
6881 * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
6882 trailing slash bugs.
6883 * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
6884 * modules/openat-tests (Files): Include more files.
6885 (Depends-on): Add mgetgroups, sleep, stat-time.
6886 (configure.ac): Add additional checks.
6887 (Makefile.am): Build new test.
6888 * tests/test-fchownat.c: New file.
6890 lchown: detect Solaris and FreeBSD bug
6891 * lib/lchown.c (rpl_lchown): Work around bug.
6892 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
6893 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6894 * modules/unistd (Makefile.am): Populate it.
6895 * lib/unistd.in.h (lchown): Update declaration.
6896 * doc/posix-functions/lchown.texi (lchown): Document the bug.
6897 * modules/lchown-tests: New file.
6898 * tests/test-lchown.h (test_lchown): Likewise.
6899 * tests/test-lchown.c (main): Likewise.
6901 chown: detect Solaris and FreeBSD bug
6902 * lib/chown.c (rpl_chown): Work around bug.
6903 * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
6904 (gl_PREREQ_CHOWN): Delete.
6905 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6906 * modules/unistd (Makefile.am): Populate it.
6907 * lib/unistd.in.h (chown): Update declaration.
6908 * lib/lchown.c (chown): Update client.
6909 * modules/lchown (Depends-on): Add lstat.
6910 * doc/posix-functions/chown.texi (chown): Document the bug.
6911 * doc/posix-functions/getgroups.texi (getgroups): Document
6913 * modules/chown-tests: New file.
6914 * tests/test-chown.h (test_chown): Likewise.
6915 * tests/test-chown.c (main): Likewise.
6917 2009-11-14 Robert Millan <rmh.grub@aybabtu.com> (tiny change)
6919 gnulib-tool: correctly detect absence of m4 directories
6920 * gnulib-tool: Avoid extra newline on data passed to wc -l.
6922 2009-11-14 Jim Meyering <meyering@redhat.com>
6924 maint.mk: Prohibit inclusion of "xalloc.h" without use.
6925 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
6927 2009-11-14 John W. Eaton <jwe@gnu.org>
6929 strftime.h: wrap funtion declaration in extern "C" block
6930 * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
6932 2009-11-13 Eric Blake <ebb9@byu.net>
6934 getgroups: avoid compiler warning
6935 * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
6937 getgroups: work around FreeBSD bug
6938 * lib/getgroups.c (rpl_getgroups): Work around the bug.
6939 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
6940 * doc/posix-functions/getgroups.texi (getgroups): Document it.
6941 * tests/test-getgroups.c (main): Fix buffer overrun.
6943 getgroups: avoid compilation failure
6944 * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
6945 * modules/getgroups (Depends-on): Add stdint.
6947 2009-11-13 Jim Meyering <meyering@redhat.com>
6949 test-getgroups: avoid compilation failure
6950 * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
6952 2009-11-13 Eric Blake <ebb9@byu.net>
6954 mgetgroups: new module, taken from coreutils
6955 * modules/mgetgroups: New file.
6956 * lib/mgetgroups.h: Likewise.
6957 * lib/mgetgroups.c (mgetgroups): Likewise.
6958 * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
6959 * MODULES.html.sh (Users and groups): Mention it.
6961 getgroups: don't expose GETGROUPS_T to user
6962 * lib/getgroups.c (rpl_getgroups): Change signature. Copy array
6963 an element at a time if GETGROUPS_T is wrong size.
6964 * lib/getugroups.h (getugroups): Change signature.
6965 * lib/unistd.in.h (getgroups): Likewise.
6966 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
6967 signature needs fixing.
6968 * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
6970 * modules/group-member (Depends-on): Add getgroups.
6971 * lib/group-member.c (group_info, get_group_info): Use gid_t.
6972 (group_member): Rely on getgroups replacement.
6973 * lib/getugroups.c (getugroups): Use gid_t.
6974 * tests/test-getgroups.c (main): Likewise.
6975 * NEWS: Mention the signature change.
6976 * doc/posix-functions/getgroups.texi (getgroups): Mention the
6977 problem with signature.
6978 * doc/glibc-functions/setgroups.texi (setgroups): Mention that
6979 GETGROUPS_T is still useful for setgroups.
6981 getgroups, getugroups: provide stubs for mingw
6982 * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
6983 * lib/getugroups.c (getugroups): Likewise.
6984 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
6985 function. Modernize replacement scheme.
6986 (gl_PREREQ_GETGROUPS): Delete.
6987 * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
6988 * modules/getgroups (configure.ac): Declare witness.
6989 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
6990 * modules/unistd (Depends-on): Substitute witness.
6991 * lib/unistd.in.h (getgroups): Declare replacement.
6993 getgroups: avoid calling exit
6994 * modules/getgroups (Depends-on): Add malloc-posix and unistd,
6996 * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
6998 * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
6999 exiting, in the rare case of malloc failure.
7001 getgroups: fix logic error
7002 * lib/getgroups.c (rpl_getgroups): Don't fail if current process
7003 has more than 20 groups.
7004 * modules/getgroups-tests: New test.
7005 * tests/test-getgroups.c: New file.
7007 2009-11-13 Simon Josefsson <simon@josefsson.org>
7009 * tests/test-base64.c: Improve.
7011 2009-11-13 Simon Josefsson <simon@josefsson.org>
7013 * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
7014 Blake <ebb9@byu.net>.
7016 2009-11-13 Simon Josefsson <simon@josefsson.org>
7018 * tests/test-xvasprintf.c: Add %s%s related checks.
7020 2009-11-12 Eric Blake <ebb9@byu.net>
7022 version-etc: match standards.texi style
7023 * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
7024 and use <> only for URLs.
7026 2009-11-10 Kamil Dudka <kdudka@redhat.com>
7028 fts: do not fail on a submount during traversal
7029 * lib/fts.c (fts_build): Read the stat info again after opening
7030 a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
7031 Original report at http://bugzilla.redhat.com/501848.
7033 2009-11-12 Jim Meyering <meyering@redhat.com>
7035 bootstrap: sync from coreutils
7036 * build-aux/bootstrap (bootstrap_epilogue): New function.
7037 Use git_modules_config in one more place. This make bootstrap's
7038 --gnulib-srcdir option more useful for testing.
7040 bootstrap: generalize autoheader check
7041 * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
7044 2009-11-11 Eric Blake <ebb9@byu.net>
7046 mkfifoat: use new modules for Solaris and BSD bugs
7047 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
7048 * lib/mkfifoat.c (mknodat): Split...
7049 * lib/mknodat.c (mknodat): ...into new file.
7050 * modules/mkfifoat (Files): Ship new file.
7051 (Depends-on): Add mkfifo, mknod.
7052 * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
7053 (Depends-on): Add symlink.
7054 * tests/test-mkfifoat.c (main): Enhance test. Drop portions now
7055 redundant with test_mkfifo.h.
7056 (do_mkfifoat, do_mknodat): New helpers.
7059 * modules/mknod: New file.
7060 * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
7061 * lib/mknod.c (mknod): Likewise.
7062 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7064 * modules/sys_stat (Makefile.am): Substitute them.
7065 * lib/sys_stat.in.h (mknod): Declare replacement.
7066 * MODULES.html.sh (Support for systems lacking POSIX:2008):
7068 * doc/posix-functions/mknod.texi (mknod): Likewise.
7069 * modules/mknod-tests: New test.
7070 * tests/test-mknod.c: Likewise.
7073 * modules/mkfifo: New file.
7074 * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7075 * lib/mkfifo.c (mkfifo): Likewise.
7076 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7078 * modules/sys_stat (Makefile.am): Substitute them.
7079 * lib/sys_stat.in.h (mkfifo): Declare replacement.
7080 * MODULES.html.sh (Support for systems lacking POSIX:2008):
7082 * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
7083 * modules/mkfifo-tests: New test.
7084 * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
7085 from test-mkfifoat.c.
7086 * tests/test-mkfifo.c: New file.
7088 readlink: detect FreeBSD bug
7089 * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
7091 * doc/posix-functions/readlink.texi (readlink): Document the bug.
7092 * tests/test-readlink.h (test_readlink): Enhance test.
7094 symlink: detect FreeBSD bug
7095 * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
7097 * doc/posix-functions/symlink.texi (symlink): Document the bug.
7098 * tests/test-symlink.h (test_symlink): Enhance test.
7100 2009-11-10 Eric Blake <ebb9@byu.net>
7102 link: detect FreeBSD bug
7103 * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
7105 * doc/posix-functions/link.texi (link): Document the bug.
7106 * tests/test-link.h (test_link): Enhance test.
7107 * tests/test-linkat.c (main): Update caller.
7109 unlink, remove: detect FreeBSD bug
7110 * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
7112 * doc/posix-functions/unlink.texi (unlink): Document the bug.
7113 * doc/posix-functions/remove.texi (remove): Likewise.
7114 * tests/test-unlink.h (test_unlink): Enhance test.
7115 * tests/test-remove.c (main): Likewise.
7117 2009-11-09 Eric Blake <ebb9@byu.net>
7119 rename: detect FreeBSD bug
7120 * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
7122 * modules/renameat-tests (Depends-on): Add filenamecat.
7123 * tests/test-rename.h (test_rename): Allow one more errno.
7124 * tests/test-renameat.c (main): Likewise.
7125 * doc/posix-functions/rename.texi (rename): Document the bug.
7127 open: detect FreeBSD bug
7128 * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
7130 * doc/posix-functions/open.texi (open): Document the bug.
7131 * doc/posix-functions/utimes.texi (utimes): Likewise.
7132 * tests/test-open.h (test_open): Add parameters, and test symlink
7134 * tests/test-open.c (main): Adjust caller.
7135 * tests/test-fcntl-safer.c (main): Likewise.
7136 * modules/open-tests (Depends-on): Add stdbool, symlink.
7137 * modules/fcntl-safer-tests (Depends-on): Likewise.
7138 * tests/test-openat.c (main): Add test-open tests.
7140 stat: detect FreeBSD bug
7141 * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
7143 * doc/posix-functions/stat.texi (stat): Document the bug.
7144 * tests/test-stat.h (test_stat_func): Add argument.
7145 * tests/test-stat.c (main): Adjust caller.
7146 * tests/test-fstatat.c (main): Likewise.
7147 * modules/stat-tests (Depends-on): Add stdbool, symlink.
7148 Reported by Jim Meyering.
7150 2009-11-09 James Youngman <jay@gnu.org>
7152 strftime.c: include ignore-value.h only when FPRINTFTIME is defined
7153 * lib/strftime.c: Correct placement of #include "ignore-value.h".
7155 2009-11-08 Jim Meyering <meyering@redhat.com>
7157 utimens: remove invalid futimesat call
7158 * lib/utimens.c (fdutimens): Remove invalid futimesat call.
7159 It used the file descriptor of the target file as the DIR_FD
7160 parameter and NULL as the file name. That caused failure with
7161 errno == EFAULT on FreeBSD-8.0-rc2
7163 2009-11-07 Eric Blake <ebb9@byu.net>
7165 fflush, freadseek: use fseeko, not fseek
7166 * lib/fflush.c (clear_ungetc_buffer_preserving_position)
7167 (clear_ungetc_buffer): Avoid potential problems on large files.
7168 * lib/freadseek.c (freadseek): Likewise.
7169 * modules/freadseek (Depends-on): Add fseeko.
7170 * modules/fseek (configure.ac): Set a witness.
7171 * tests/test-fflush.c (main): Use fseeko.
7172 * tests/test-fpurge.c (fseek): Disable link warning.
7173 * tests/test-freadable.c (fseek): Likewise.
7174 * tests/test-freading.c (fseek): Likewise.
7175 * tests/test-fseeko.c (fseek): Likewise.
7176 * tests/test-ftell.c (fseek): Likewise.
7177 * tests/test-ftello.c (fseek): Likewise.
7178 * tests/test-fwritable.c (fseek): Likewise.
7179 * tests/test-fwriting.c (fseek): Likewise.
7181 2009-11-06 Simon Josefsson <simon@josefsson.org>
7183 * modules/memchr (Depends-on): Drop getpagesize dependency.
7185 2009-11-06 Simon Josefsson <simon@josefsson.org>
7187 * build-aux/pmccabe2html: Disable execute bit. Suggested by
7188 Reported by Ludovic Courtès.
7189 * build-aux/pmccabe2html: Improve example usage.
7190 * build-aux/pmccabe2html: Drop #! header. Doc fix.
7192 2009-11-06 Jim Meyering <meyering@redhat.com>
7194 do-release-commit-and-tag: New module.
7195 Automate the release-commit and tag process.
7196 * build-aux/do-release-commit-and-tag: New script, from coreutils.
7197 * modules/do-release-commit-and-tag: New file.
7198 * MODULES.html.sh (Support for maintaining and releasing): Add it.
7200 2009-11-06 Simon Josefsson <simon@josefsson.org>
7202 * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
7203 because test-select.c uses inet_pton.
7205 2009-11-06 Simon Josefsson <simon@josefsson.org>
7207 * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
7208 GETADDRINFO_LIB. Bump serial number.
7209 * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
7210 Suggested by Eric Blake <ebb9@byu.net>.
7212 2009-11-05 Eric Blake <ebb9@byu.net>
7214 strtod: detect darwin bug
7215 * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
7216 Reported by Leo Davis.
7218 freopen-safer: new module
7219 * modules/freopen-safer: New module.
7220 * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
7221 * lib/freopen-safer.c (freopen_safer): New file.
7222 * lib/stdio-safer.h (freopen_safer): New declaration.
7223 * lib/stdio--.h (freopen): New override.
7224 * MODULES.html.sh (File stream based Input/Output): Mention it.
7225 * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
7226 freopen-safer module.
7227 * doc/posix-functions/stderr.texi (stderr): Likewise.
7228 * doc/posix-functions/stdin.texi (stdin): Likewise.
7229 * doc/posix-functions/stdout.texi (stdout): Likewise.
7230 * modules/freopen-safer-tests: New test.
7231 * tests/test-reopen-safer.c: New file.
7233 2009-11-05 Jim Meyering <meyering@redhat.com>
7235 maint.mk: Prohibit inclusion of "close-stream.h" without use.
7236 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
7238 2009-11-05 Simon Josefsson <simon@josefsson.org>
7240 * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
7242 2009-11-05 Simon Josefsson <simon@josefsson.org>
7244 * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
7246 2009-11-05 Simon Josefsson <simon@josefsson.org>
7249 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
7250 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7252 2009-11-05 Simon Josefsson <simon@josefsson.org>
7254 * tests/test-func.c: Also test value of __func__.
7256 2009-11-05 Simon Josefsson <simon@josefsson.org>
7258 * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
7259 may be an 8-bit type. Reported by Bruno Haible <bruno@clisp.org>.
7261 2009-11-05 Bruno Haible <bruno@clisp.org>
7264 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
7265 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7266 Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
7268 2009-11-05 Bruno Haible <bruno@clisp.org>
7270 Tests for module 'inet_pton'.
7271 * modules/inet_pton-tests: New file.
7272 * tests/test-inet_pton.c: New file.
7274 2009-11-05 Bruno Haible <bruno@clisp.org>
7276 Tests for module 'inet_ntop'.
7277 * modules/inet_ntop-tests: New file.
7278 * tests/test-inet_ntop.c: New file.
7280 2009-11-04 Eric Blake <ebb9@byu.net>
7282 stdlib-safer: wrap all mkstemp variants
7283 * modules/mkostemp (configure.ac): Set witness.
7284 * modules/mkostemps (configure.ac): Likewise.
7285 * modules/mkstemps (configure.ac): Likewise.
7286 * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
7287 (mkstemps_safer): Wrap more functions.
7288 * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
7290 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
7291 (mkstemps_safer): Implement the wrappers.
7293 mkstemps, mkostemps: new modules
7294 * modules/mkostemps: New module.
7295 * modules/mkstemps: Likewise.
7296 * lib/mkostemps.c (mkostemps): New file.
7297 * lib/mkstemps.c (mkstemps): Likewise.
7298 * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
7299 * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
7300 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
7301 * modules/stdlib (Makefile.am): Substitute them.
7302 * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
7303 * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
7304 * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
7305 * doc/gnulib.texi (Glibc stdlib.h): Include them.
7306 * MODULES.html.sh (File system functions): Mention them.
7308 tempname: resync from glibc
7309 * lib/tempname.c (__gen_tempname): Add suffixlen argument. Use
7310 same values for __GT_FILE as glibc. Abort even when assertions
7312 * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
7313 match its value otherwise. Allow idempotent inclusion.
7314 * lib/mkdtemp.c (mkdtemp): Adjust caller.
7315 * lib/mkostemp.c (mkostemp): Likewise.
7316 * lib/mkstemp.c (mkstemp): Likewise.
7317 * lib/tmpfile.c (tmpfile): Likewise.
7318 * NEWS: Document this.
7320 utimens: fix use of futimens on older Linux
7321 * lib/utimens.c (fdutimens): Use updated, rather than original,
7322 timespec to avoid bug in older Linux kernel.
7323 Reported by Simon Josefsson.
7325 2009-11-04 Bruno Haible <bruno@clisp.org>
7327 Make num_processors more flexible and consistent.
7328 * lib/nproc.h (enum nproc_query): New type.
7329 (num_processors): Add a 'query' argument.
7330 * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
7331 (num_processors): Add a 'query' argument. Test the value of the
7332 OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
7333 mingw, count the number of CPUs available for the current process.
7334 * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
7335 Check for sched_getaffinity and sched_getaffinity_np.
7336 * modules/nproc (Depends-on): Add c-ctype, extensions.
7337 * NEWS: Mention the change.
7339 2009-11-03 Bruno Haible <bruno@clisp.org>
7341 * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
7343 2009-11-03 Jim Meyering <meyering@redhat.com>
7345 test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
7346 * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
7349 2009-11-02 Eric Blake <ebb9@byu.net>
7351 mktime, timegm: share common declaration
7352 * lib/mktime-internal.h: New file.
7353 * lib/mktime.c: Use it rather than open-coding a declaration.
7354 * lib/timegm.c: Likewise.
7355 * modules/mktime (Files): Ship it.
7356 * modules/timegm (Files): Likewise.
7357 Suggested by Bruno Haible.
7359 test-update-copyright: update test to match script changes
7360 * tests/test-update-copyright.sh: Avoid hard-coding perl
7361 location. Don't update *.bak created by earlier runs.
7363 2009-11-02 Paul Eggert <eggert@cs.ucla.edu>
7364 Simon Josefsson <simon@josefsson.org>
7365 Bruno Haible <bruno@clisp.org>
7367 Fix link error on Solaris 8.
7368 * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
7369 also in libnsl. Define also INET_PTON_LIB.
7370 * modules/inet_pton (Link): New section.
7372 2009-11-02 Simon Josefsson <simon@josefsson.org>
7373 Bruno Haible <bruno@clisp.org>
7375 * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
7376 * modules/inet_ntop (Link): New section.
7377 Reported by Boyan Kasarov <bkasarov@gmail.com>.
7379 2009-11-02 Eric Blake <ebb9@byu.net>
7381 maint: avoid compiler warnings in m4 macros
7382 * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
7383 * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
7385 2009-11-02 Simon Josefsson <simon@josefsson.org>
7387 * m4/pmccabe2html.m4: Remove file.
7388 * modules/pmccabe2html: Drop pmccabe2html.m4. Don't call m4
7389 function. Change maintainer.
7390 * build-aux/pmccabe2html: Use /bin/sh with magic instead of
7391 hard-coding path to awk. Tiny patch from ludo@gnu.org (Ludovic
7394 2009-10-31 Eric Blake <ebb9@byu.net>
7396 fseeko: fix m4 regression
7397 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro. Fixes
7398 regression from 2009-10-27.
7399 Reported by Ralf Wildenhues.
7401 2009-10-31 Jim Meyering <meyering@redhat.com>
7403 inttostr: aesthetics and improved (compile-time) safety
7404 Define inttype_is_signed rather than inttype_is_unsigned,
7405 since the sole use is via "#if inttype_is_signed".
7406 * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
7407 inttype_is_unsigned.
7408 * lib/offtostr.c (inttype_is_signed): Likewise.
7409 * lib/uinttostr.c (inttype_is_signed): Likewise.
7410 * lib/umaxtostr.c (inttype_is_signed): Likewise.
7411 * lib/inttostr.c (inttostr): Use verify to cross-check the
7412 inttype_is_signed value and the signedness of the actual type.
7413 * modules/inttostr (Depends-on): Add verify.
7415 2009-10-30 Eric Blake <ebb9@byu.net>
7417 build: avoid compiler warnings
7418 * lib/fchmodat.c (lchmod): Mark unused variables.
7419 * lib/getopt.c (_getopt_initialize): Likewise.
7420 * lib/mktime.c (__mktime_internal): Provide prototype.
7421 * lib/inttostr.c (inttostr): Avoid compiler warning even with
7422 older gcc that do not understand #pragma GCC diagnostic.
7423 * lib/uinttostr.c (inttype_is_unsigned): Define.
7424 * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
7426 2009-10-30 Michael Haubenwallner <michael.haubenwallner@salomon.at>
7428 stat: fix compilation on AIX
7429 * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
7430 only see struct stat64.
7432 2009-10-30 Eric Blake <ebb9@byu.net>
7434 exclude: make more robust
7435 * lib/exclude.c (excluded_file_name): Abort on unexpected value,
7436 rather than masking a coding bug.
7437 Suggested by Bruno Haible.
7439 2009-10-30 Jim Meyering <meyering@redhat.com>
7441 perl scripts: remove #!/usr/bin/perl in favor of more portable...
7442 Rather than putting #!/usr/bin/perl on the first line,
7443 start with a variant of what's recommended by "man perlrun" that
7444 invokes the first "perl" program from your shell's search path.
7445 * build-aux/gitlog-to-changelog: Replace #!... as above.
7446 Add a "Local Variables" perl mode setting.
7447 Prompted by a patch from Ludovic Courtès.
7448 Improved by Eric Blake.
7449 * build-aux/useless-if-before-free: Likewise.
7450 * build-aux/announce-gen: Likewise.
7451 * build-aux/update-copyright: Likewise.
7453 2009-10-29 Eric Blake <ebb9@byu.net>
7455 filenamecat-lgpl: adjust clients
7456 * modules/linkat (Depends-on): Use filenamecat-lgpl, not
7458 * modules/renameat (Depends-on): Likewise.
7460 filenamecat: split into filenamecat-lgpl
7461 * modules/filenamecat-lgpl: New module.
7462 * modules/filenamecat (Files): Move library-safe files into
7464 (Depends-on): Add filenamecat-lgpl.
7465 (configure.ac): Declare witness.
7466 * lib/filenamecat.h (file_name_concat): Only declare when using
7468 * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
7470 * lib/filenamecat-lgpl.c: ...into new file.
7471 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
7472 (gl_FILE_NAME_CONCAT): Use it.
7473 * MODULES.html.sh (File system functions): Mention new module.
7475 argp: avoid memory leak
7476 * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
7477 * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
7478 base_name, since the latter malloc()s and can call exit().
7479 Leak introduced 2006-07-03.
7481 dirname-lgpl: adjust clients that don't need full dirname
7482 * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
7483 * modules/filenamecat (Depends-on): Likewise.
7484 * modules/linkat (Depends-on): Likewise.
7485 * modules/mkancesdirs (Depends-on): Likewise.
7486 * modules/mkdir (Depends-on): Likewise.
7487 * modules/openat (Depends-on): Likewise.
7488 * modules/savewd (Depends-on): Likewise.
7489 * modules/rename (Depends-on): Likewise.
7490 (License): Relax license.
7491 * modules/mkdir-tests (Depends-on): Drop progname.
7492 (Makefile.am): Delete unneeded LDADD.
7493 * modules/rename-tests (Depends-on, Makefile.am): Likewise.
7495 dirname: split into dirname-lgpl
7496 * modules/dirname-lgpl: New module.
7497 * modules/dirname (Files): Move library-safe files into
7499 (Depends-on): Add dirname-lgpl.
7500 (configure.ac): Declare witness.
7501 * modules/double-slash-root (License): Relax license.
7502 * lib/dirname.h (base_name, dir_name): Only declare when using GPL
7504 * lib/dirname.c (dir_len, mdir_name): Move...
7505 * lib/dirname-lgpl.c: ...into new file.
7506 * lib/basename.c (last_component, base_len): Move...
7507 * lib/basename-lgpl.c: ...into new file.
7508 * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
7509 (gl_DIRNAME): Use it.
7510 * MODULES.html.sh (Enhancements for POSIX:2008 functions):
7512 * modules/dirname-tests (Depends-on): Add progname.
7513 * tests/test-dirname.c (program_name): Delete.
7515 mkdir: make safe for libraries
7516 * modules/mkdir (Depends-on): Drop xalloc.
7517 * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
7520 tests: avoid some compiler warnings
7521 * tests/test-getaddrinfo.c (simple): Mark static, and allow string
7523 * tests/test-memchr.c (main): Avoid type mismatch.
7524 * tests/test-arpa_inet.c (main): Avoid unused parameters.
7525 * tests/test-base64.c (main): Likewise.
7526 * tests/test-getdelim.c (main): Likewise.
7527 * tests/test-gethostname.c (main): Likewise.
7528 * tests/test-getline.c (main): Likewise.
7529 * tests/test-netinet_in.c (main): Likewise.
7530 * tests/test-select.c (open_server_socket, main): Likewise.
7531 * tests/test-select-stdin.c (main): Likewise.
7532 * tests/test-sockets.c (main): Likewise.
7533 * tests/test-strsignal.c (main): Likewise.
7534 * tests/test-sys_select.c (main): Likewise.
7535 * tests/test-sys_socket.c (main): Likewise.
7536 * tests/test-u64.c (main): Likewise.
7537 * tests/test-xfprintf-posix.c (main): Likewise.
7538 * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
7540 sockets: avoid compiler warning
7541 * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
7543 maint: detect usage(1) and other suspicious exits
7544 * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
7546 2009-10-29 Jim Meyering <meyering@redhat.com>
7548 timespec: long-to-int truncation could make timespec_cmp malfunction
7549 * lib/timespec.h (timespec_cmp): Do not interpret a difference of
7550 a multiple of 2^32 nanoseconds as no difference.
7552 2009-10-28 Jim Meyering <meyering@redhat.com>
7554 fprintftime: wrap macro code argument in "do {...} while(0)"
7555 * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
7556 cpy macro must be a statement that can be followed by a semicolon.
7557 Now that the else clause contains a comment and is hence longer
7558 than one line, I require curly braces. That in turn requires
7559 that we wrap this code block in the standard do...while(0).
7561 fprintftime: remove stray semicolon from previous change
7562 * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
7564 fprintftime: avoid a warning about ignored fwrite return value
7565 * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
7566 (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
7568 * modules/fprintftime (Depends-on): Add ignore-value.
7570 exclude: avoid an unwarranted warning
7571 * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
7573 2009-10-27 Eric Blake <ebb9@byu.net>
7575 fseek: avoid compilation failure when fflush is replaced
7576 * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
7577 * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
7579 * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
7580 module is not in use; since REPLACE_FSEEK worked otherwise.
7581 (GNULIB_FTELLO): Likewise for ftell.
7582 Reported by Ian Beckwith and others.
7584 2009-10-27 Bruno Haible <bruno@clisp.org>
7586 * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
7587 Reported by Jim Meyering.
7589 2009-10-27 Jim Meyering <jim@meyering.net>
7590 Bruno Haible <bruno@clisp.org>
7592 Avoid warning despite dropping the return value of fwrite.
7593 * lib/unicodeio.c: Include ignore-value.h.
7594 (fwrite_success_callback): Explicitly ignore fwrite's return value.
7595 * modules/unicodeio (Depends-on): Add ignore-value.
7597 2009-10-26 Eric Blake <ebb9@byu.net>
7599 areadlinkat: fix fallback path
7600 * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
7603 2009-10-22 Pádraig Brady <P@draigBrady.com>
7605 Use a better IO block size for modern systems
7606 * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
7607 * lib/md2.c: Likewise.
7608 * lib/md4.c: Likewise.
7609 * lib/md5.c: Likewise.
7610 * lib/sha1.c: Likewise.
7611 * lib/sha256.c: Likewise.
7612 * lib/sha512.c: Likewise.
7614 2009-10-22 Eric Blake <ebb9@byu.net>
7616 tests: avoid several compiler warnings
7617 * tests/test-getcwd.c (main): Avoid buffer underflow.
7618 * tests/test-getdate.c (main): String literals are not safe with
7619 putenv, so use setenv. Declare unused argument.
7620 * modules/getdate-tests (Depends-on): Add setenv.
7621 * tests/test-argv-iter.c (main): Declare unused argument. Avoid
7622 problems with string literals in char *.
7623 * tests/test-hash.c (main): Avoid shadowing declaration.
7624 (insert_new): Treat string literals as char const *.
7625 * tests/test-getopt.h (test_getopt): Likewise.
7626 (getopt_loop): Alter types to minimize casting elsewhere.
7627 * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
7628 (test_getopt_long_posix): Likewise.
7629 (do_getopt_long): Add wrapper to minimize casting.
7630 * tests/test-atexit.c (clear_temp_file): Use void.
7631 * tests/test-areadlink-with-size.c (main): Declare unused
7633 * tests/test-areadlink.c (main): Likewise.
7634 * tests/test-areadlinkat-with-size.c (main): Likewise.
7635 * tests/test-areadlinkat.c (main): Likewise.
7636 * tests/test-canonicalize-lgpl.c (main): Likewise.
7637 * tests/test-canonicalize.c (main): Likewise.
7638 * tests/test-dirent-safer.c (main): Likewise.
7639 * tests/test-dirname.c (main): Likewise.
7640 * tests/test-dup2.c (main): Likewise.
7641 * tests/test-fchdir.c (main): Likewise.
7642 * tests/test-fcntl-h.c (main): Likewise.
7643 * tests/test-fcntl-safer.c (main): Likewise.
7644 * tests/test-fdopendir.c (main): Likewise.
7645 * tests/test-fdutimensat.c (main): Likewise.
7646 * tests/test-fflush.c (main): Likewise.
7647 * tests/test-filenamecat.c (main): Likewise.
7648 * tests/test-filevercmp.c (main): Likewise.
7649 * tests/test-fopen-safer.c (main): Likewise.
7650 * tests/test-fopen.c (main): Likewise.
7651 * tests/test-fpending.c (main): Likewise.
7652 * tests/test-fpurge.c (main): Likewise.
7653 * tests/test-freading.c (main): Likewise.
7654 * tests/test-fstatat.c (main): Likewise.
7655 * tests/test-fsync.c (main): Likewise.
7656 * tests/test-futimens.c (main): Likewise.
7657 * tests/test-getndelim2.c (main): Likewise.
7658 * tests/test-gettimeofday.c (main): Likewise.
7659 * tests/test-getopt.c (main): Likewise.
7660 * tests/test-i-ring.c (main): Likewise.
7661 * tests/test-inttypes.c (main): Likewise.
7662 * tests/test-link.c (main): Likewise.
7663 * tests/test-lstat.c (main): Likewise.
7664 * tests/test-math.c (main): Likewise.
7665 * tests/test-md5.c (main): Likewise.
7666 * tests/test-memchr2.c (main): Likewise.
7667 * tests/test-memrchr.c (main): Likewise.
7668 * tests/test-mkdir.c (main): Likewise.
7669 * tests/test-mkdirat.c (main): Likewise.
7670 * tests/test-mkfifoat.c (main): Likewise.
7671 * tests/test-open.c (main): Likewise.
7672 * tests/test-openat-safer.c (main): Likewise.
7673 * tests/test-openat.c (main): Likewise.
7674 * tests/test-quotearg.c (main): Likewise.
7675 * tests/test-rawmemchr.c (main): Likewise.
7676 * tests/test-readlink.c (main): Likewise.
7677 * tests/test-remove.c (main): Likewise.
7678 * tests/test-rename.c (main): Likewise.
7679 * tests/test-renameat.c (main): Likewise.
7680 * tests/test-rmdir.c (main): Likewise.
7681 * tests/test-sha1.c (main): Likewise.
7682 * tests/test-signal.c (main): Likewise.
7683 * tests/test-sigaction.c (main): Likewise.
7684 * tests/test-stat.c (main): Likewise.
7685 * tests/test-stat-time.c (main): Likewise.
7686 * tests/test-stddef.c (main): Likewise.
7687 * tests/test-stdint.c (main): Likewise.
7688 * tests/test-stdio.c (main): Likewise.
7689 * tests/test-stdlib.c (main): Likewise.
7690 * tests/test-strchrnul.c (main): Likewise.
7691 * tests/test-strerror.c (main): Likewise.
7692 * tests/test-string.c (main): Likewise.
7693 * tests/test-strtod.c (main): Likewise.
7694 * tests/test-strverscmp.c (main): Likewise.
7695 * tests/test-symlink.c (main): Likewise.
7696 * tests/test-symlinkat.c (main): Likewise.
7697 * tests/test-sys_stat.c (main): Likewise.
7698 * tests/test-sys_time.c (main): Likewise.
7699 * tests/test-time.c (main): Likewise.
7700 * tests/test-unistd.c (main): Likewise.
7701 * tests/test-unlink.c (main): Likewise.
7702 * tests/test-unlinkat.c (main): Likewise.
7703 * tests/test-utimens.c (main): Likewise.
7704 * tests/test-utimensat.c (main): Likewise.
7705 * tests/test-version-etc.c (main): Likewise.
7706 * tests/test-wchar.c (main): Likewise.
7707 * tests/test-wctype.c (main): Likewise.
7708 * tests/test-xprintf-posix.c (main): Likewise.
7709 * tests/test-posixtm.c (main): Likewise.
7710 (STREQ): Delete unused macro.
7711 * tests/test-linkat.c (main): Declare unused arguments. Avoid
7713 * tests/test-memchr.c (main): Likewise.
7715 2009-10-21 Eric Blake <ebb9@byu.net>
7717 areadlinkat: avoid failure on older glibc
7718 * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
7719 rather than mis-comparing 0 against FUNC_RESULT of char*.
7721 2009-10-21 Bruno Haible <bruno@clisp.org>
7723 * modules/stpncpy (License): Relicense under LGPLv2+.
7724 Reported by David Lutterkort <lutter@redhat.com>.
7726 2009-10-20 Eric Blake <ebb9@byu.net>
7728 utimensat: work around Solaris 9 bug
7729 * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
7730 has trailing slash bugs.
7731 * tests/test-lutimens.h (test_lutimens): Enhance test.
7732 * tests/test-utimens.h (test_utimens): Likewise.
7733 * doc/posix-functions/utime.texi (utime): Enhance documentation.
7734 * doc/posix-functions/utimes.texi (utimes): Likewise.
7735 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7736 * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
7737 * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
7738 * doc/posix-functions/futimens.texi (futimens): Likewise.
7740 fdutimensat: new module
7741 * modules/fdutimensat: New file.
7742 * lib/fdutimensat.c (fdutimensat): Likewise.
7743 * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
7744 * MODULES.html.sh (File system functions): Mention module.
7745 * modules/fdutimensat-tests: New test.
7746 * tests/test-fdutimensat.c: Likewise.
7748 doc: regenerate INSTALL
7749 * doc/INSTALL: Reflect recent autoconf update.
7750 * doc/INSTALL.ISO: Likewise.
7751 * doc/INSTALL.UTF-8: Likewise.
7753 2009-10-20 Pádraig Brady <P@draigBrady.com>
7755 acl: warn if ACL support is not detected
7756 * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
7758 2009-10-19 Giuseppe Scrivano <gscrivano@gnu.org>
7760 * lib/nproc.h: Add extern "C" block for C++.
7762 2009-10-18 Reuben Thomas <rrt@sc3d.org>
7763 Bruno Haible <bruno@clisp.org>
7765 * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
7766 * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
7767 * doc/posix-functions/isalpha.texi: Likewise.
7768 * doc/posix-functions/isblank.texi: Likewise.
7769 * doc/posix-functions/iscntrl.texi: Likewise.
7770 * doc/posix-functions/isdigit.texi: Likewise.
7771 * doc/posix-functions/isgraph.texi: Likewise.
7772 * doc/posix-functions/islower.texi: Likewise.
7773 * doc/posix-functions/isprint.texi: Likewise.
7774 * doc/posix-functions/ispunct.texi: Likewise.
7775 * doc/posix-functions/isspace.texi: Likewise.
7776 * doc/posix-functions/isupper.texi: Likewise.
7777 * doc/posix-functions/isxdigit.texi: Likewise.
7779 2009-10-18 Bruno Haible <bruno@clisp.org>
7781 Tests for module 'isblank'.
7782 * modules/isblank-tests: New file.
7783 * tests/test-isblank.c: New file.
7785 New module 'isblank'.
7786 * lib/isblank.c: New file.
7787 * m4/isblank.m4: New file.
7788 * modules/isblank: New file.
7789 * doc/posix-functions/isblank.texi: Mention the new module.
7791 2009-10-18 Bruno Haible <bruno@clisp.org>
7794 * lib/ctype.in.h: New file.
7795 * m4/ctype.m4: New file.
7796 * modules/ctype: New file.
7797 * doc/posix-headers/ctype.texi: Mention the new module.
7799 2009-10-18 Jim Meyering <meyering@redhat.com>
7801 m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
7802 Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
7803 right after its initialization, rather than farther down.
7804 Keeping these in close proximity makes it easier to ensure
7805 that each such variable is initialized. E.g.,
7808 AC_SUBST([LIB_CLOCK_GETTIME])
7810 This change also increments these serial numbers.
7811 * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
7812 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
7813 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7815 2009-10-18 Bruno Haible <bruno@clisp.org>
7817 Don't let environment variables perturb build.
7818 * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
7819 (gl_PREREQ_GETHRXTIME): ... not here.
7821 2009-10-18 Bruno Haible <bruno@clisp.org>
7823 Avoid symlink attack in localcharset module.
7824 * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
7825 (O_NOFOLLOW): Define fallback.
7826 (get_charset_aliases): Don't open the file if it is a symbolic link.
7827 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
7829 (gl_FCNTL_H): Require it.
7830 * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
7831 * modules/localcharset (Files): Add m4/fcntl_h.m4.
7832 Reported by Fergal Glynn <fglynn@veracode.com>.
7834 2009-10-18 Bruno Haible <bruno@clisp.org>
7836 Implement nproc for mingw.
7837 * lib/nproc.c: Include <windows.h>
7838 (num_processors): On native Windows platforms, try GetSystemInfo.
7840 2009-10-18 Bruno Haible <bruno@clisp.org>
7842 Implement nproc for IRIX.
7843 * lib/nproc.c: Include <sys/sysmp.h>.
7844 (num_processors): On IRIX systems, try sysmp.
7845 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
7847 2009-10-18 Bruno Haible <bruno@clisp.org>
7849 Implement nproc for HP-UX.
7850 * lib/nproc.c: Include <sys/pstat.h>
7851 (num_processors): On HP-UX systems, try pstat_getdynamic.
7852 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
7855 2009-10-18 Giuseppe Scrivano <gscrivano@gnu.org>
7856 Bruno Haible <bruno@clisp.org>
7858 Implement nproc for NetBSD, OpenBSD.
7859 * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
7860 (ARRAY_SIZE): New macro.
7861 (num_processors): On BSD systems, try sysctl of HW_NCPU.
7862 * m4/nproc.m4: New file.
7863 * modules/nproc (Files): Add m4/nproc.m4.
7864 (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
7865 (Makefile.am): Instead, augment lib_SOURCES.
7867 2009-10-18 Bruno Haible <bruno@clisp.org>
7869 Fix recognition of sys/sysctl.h on OpenBSD 4.0.
7870 * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
7873 2009-10-16 Eric Blake <ebb9@byu.net>
7875 utimensat: new module
7876 * modules/utimensat: New file.
7877 * lib/utimensat.c (utimensat): Likewise.
7878 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7879 * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
7880 so we can work around Linux bugs.
7881 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7882 * modules/sys_stat (Makefile.am): Substitute them.
7883 * lib/sys_stat.in.h (utimensat): Declare it.
7884 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7885 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7886 * modules/utimensat-tests: New test.
7887 * tests/test-utimensat.c: Likewise.
7889 utimens: let lutimens work on non-symlinks
7890 * lib/utimens.c (lutimens): Fall back to utimens rather than
7891 failing with ENOSYS, when file is not a symlink.
7892 (utimens): Reduce redirection.
7893 * tests/test-lutimens.h (test_lutimens): Update test to cover
7895 * tests/test-utimens.h (test_utimens): Update test to cover
7897 * tests/test-utimens.c (main): Update caller.
7899 utimens: cache whether utimensat syscall works
7900 * lib/utimens.c (utimensat_works_really): New cache variable.
7901 (fdutimens, lutimens): Use it to avoid failing syscall.
7903 test-stat-time, test-utimens: improve portability
7904 * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
7905 ext4 on alpha, and for cygwin.
7906 * tests/test-utimens-common.h: New file.
7907 (nap): Factor delays into single function.
7908 * tests/test-lutimens.h (test_lutimens): Use new header.
7909 * tests/test-futimens.h (test_futimens): Likewise.
7910 * tests/test-utimens.h (test_utimens): Likewise. Also, force NFS
7911 timestamps to occur from same machine, as was done previously for
7913 * modules/utimens-tests (Files): Ship new file.
7914 * modules/futimens-tests (Files): Likewise.
7915 Reported in part by Jim Meyering.
7917 sys_stat: sort replacement declarations
7918 * lib/sys_stat.in.h: Sort declarations.
7919 * lib/futimens.c (futimens): Fix typo.
7921 2009-10-15 Jim Meyering <meyering@redhat.com>
7923 don't let environment settings perturb build
7924 Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
7925 could cause a configure-time and/or build-time malfunction.
7926 Typically, a configure-time function-in-library test is performed
7931 prefix_saved_LIBS=$LIBS
7932 AC_SEARCH_LIBS([FUNC], [LIB_NAME],
7933 [test "$ac_cv_search_FUNC" = "none required" ||
7934 LIB_VAR=$ac_cv_search_FUNC])
7935 LIBS=$prefix_saved_LIBS
7937 However, in each of the files affected by this change, the LIB_VAR=
7938 initialization was omitted. Thus, when set in the environment, its
7939 value would propagate into generated Makefiles when FUNC is not found
7941 * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
7942 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
7943 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7945 2009-10-14 Eric Blake <ebb9@byu.net>
7947 fchdir: avoid infinite recursion in mingw
7948 * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
7951 test-stat-time: port to mingw
7952 * tests/test-stat-time.c (force_unlink): Return a value.
7953 (test_ctime) [W32]: Fix compilation error.
7954 (nap): Don't call usleep with too large an argument. Use
7956 * doc/pastposix-functions/usleep.texi (usleep): Document the
7959 2009-10-13 Jim Meyering <meyering@redhat.com>
7961 use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
7962 * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
7963 * modules/pipe-filter-ii: Likewise.
7964 * modules/sys_socket-tests: Likewise.
7965 * modules/tsearch-tests: Likewise.
7966 * Makefile (sc_prefer_ac_check_funcs_once): New rule.
7967 (check): Depend on it.
7969 2009-10-12 Eric Blake <ebb9@byu.net>
7971 utimens-tests: port to NFS file systems
7972 * tests/test-utimens.h (test_utimens): Refactor utimecmp
7973 comparisons to avoid spurious failures from timestamp drift
7974 between NFS machines.
7976 2009-10-12 Eric Blake <ebb9@byu.net>
7978 stat-time-tests: minor cleanups
7979 * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
7980 * tests/test-stat-time.c (nap): Separate assignment from call.
7981 Suggested by Paolo Bonzini and Bruno Haible.
7983 sys_stat: guarantee struct timespec
7984 * lib/sys_stat.in.h (includes): Always include <time.h>
7985 * modules/sys_stat (Depends-on): Add time.
7986 * tests/test-sys_stat.c: Guarantee struct timespec, as well as
7987 mode_t permission values.
7988 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
7989 get at subsecond timestamps.
7991 2009-10-10 Eric Blake <ebb9@byu.net>
7993 futimens: new module
7994 * modules/futimens: New file.
7995 * lib/futimens.c (futimens): Likewise.
7996 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
7997 * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
7998 we can work around Linux bugs.
7999 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8000 * modules/sys_stat (Makefile.am): Substitute them.
8001 * lib/sys_stat.in.h (futimens): Declare it.
8002 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8003 * doc/posix-functions/futimens.texi (futimens): Likewise.
8004 * modules/futimens-tests: New test.
8005 * tests/test-futimens.c: Likewise.
8007 utimens: introduce fdutimens
8008 * lib/utimens.h (fdutimens): New prototype.
8009 * lib/utimens.c (gl_futimens): Move guts...
8010 (fdutimens): ...to new interface.
8011 * tests/test-utimens.c (do_fdutimens): Use it.
8013 utimens: add UTIME_NOW and UTIME_OMIT support
8014 * lib/utimens.c (validate_timespec, update_timespec): New helper
8016 (gl_futimens, lutimens): Use them.
8017 * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
8019 (Link): Mention resulting library dependency.
8020 * modules/utimecmp (Link): Likewise.
8021 * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
8022 (Makefile.am): Pick up library dependency.
8023 * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
8025 * tests/test-sys_stat.c: Test the definitions.
8026 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
8027 * NEWS: Document library dependency.
8029 utimecmp: support symlink timestamps
8030 * lib/utimecmp.c (utimecmp): Use new interface. Skip effort of
8031 hashing when possible. Use pathconf when available.
8032 (SYSCALL_RESOLUTION): Recognize tighter resolution.
8033 * modules/utimecmp (Depends-on): Add lstat.
8035 utimens: add lutimens interface
8036 * lib/utimens.c (lutimens): New function.
8037 * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
8038 * lib/utimens.h (lutimens): Declare new interface.
8039 * tests/test-utimens.c (main): Enhance test.
8040 * tests/test-lutimens.h (test_lutimens): New file.
8041 * modules/utimens-tests (Files): Distribute it.
8042 (Depends-on): Add symlink.
8043 (configure.ac): Check for usleep.
8045 utimens: validate futimens usage
8046 * lib/utimens.c (gl_futimens): Require valid fd up front, using
8047 fewer syscalls on failure later on. Avoid compiler warning on
8049 * modules/utimens (Depends-on): Add dup2.
8052 * modules/utimens-tests: New test.
8053 * tests/test-utimens.h: New file.
8054 * tests/test-futimens.h: Likewise.
8055 * tests/test-utimens.c: Likewise.
8057 doc: mention timestamp portability issues
8058 * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
8060 * doc/posix-functions/utime.texi (utime): Likewise.
8061 * doc/posix-functions/utimes.texi (utimes): Likewise.
8062 * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
8064 * doc/posix-functions/futimens.texi (futimens): Mention utimens
8066 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8067 Mention weakness with symlink timestamps.
8068 * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
8069 to utimensat/futimens instead.
8070 * doc/gnulib.texi (Glibc sys/time.h): Include new file.
8072 test-dup2: enhance test
8073 * tests/test-dup2.c (main): Also check AT_FDCWD.
8075 test-stat-time: avoid more spurious failures
8076 * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
8077 xfs; and avoid race if the two timestamps cross quantization edge.
8079 relocatable: prefer 'file system' over 'filesystem'
8080 * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
8081 (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
8082 * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
8083 * doc/relocatable.texi (Enabling Relocatability): Likewise.
8084 * lib/relocatable.c (compute_curr_prefix): Likewise.
8086 2009-10-10 Jim Meyering <meyering@redhat.com>
8088 stat-time-tests: check for the usleep function
8089 * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
8091 2009-10-10 Bruno Haible <bruno@clisp.org>
8093 * modules/xnanosleep: Put the Link section after the Include section.
8095 2009-10-09 Eric Blake <ebb9@byu.net>
8097 dup2: work around FreeBSD 6.1 bug
8098 * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
8099 * doc/posix-functions/dup2.texi (dup2): Document it.
8100 Reported by Nelson H. F. Beebe and Jim Meyering.
8102 test-stat-time: port to buggy NFS clients
8103 * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
8104 (test_ctime): Also skip test if mtime and ctime are skewed.
8106 maint: prefer 'file system' over 'filesystem'
8107 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
8108 * doc/posix-functions/lstat.texi (lstat): Likewise.
8109 * lib/file-has-acl.c (file_has_acl): Likewise.
8110 * lib/fwriteerror.c [TEST]: Likewise.
8111 * tests/test-areadlink.h (test_areadlink): Likewise.
8112 * tests/test-areadlinkat-with-size.c (main): Likewise.
8113 * tests/test-areadlinkat.c (main): Likewise.
8114 * tests/test-canonicalize-lgpl.c (main): Likewise.
8115 * tests/test-canonicalize.c (main): Likewise.
8116 * tests/test-fstatat.c (main): Likewise.
8117 * tests/test-linkat.c (main): Likewise.
8118 * tests/test-lstat.h (test_lstat_func): Likewise.
8119 * tests/test-mkdir.h (test_mkdir): Likewise.
8120 * tests/test-readlink.h (test_readlink): Likewise.
8121 * tests/test-remove.c (main): Likewise.
8122 * tests/test-rename.h (test_rename): Likewise.
8123 * tests/test-renameat.c (main): Likewise.
8124 * tests/test-rmdir.h (test_rmdir_func): Likewise.
8125 * tests/test-symlink.h (test_symlink): Likewise.
8126 * tests/test-symlinkat.c (main): Likewise.
8127 * tests/test-unlink.h (test_unlink_func): Likewise.
8128 * tests/test-unlinkat.c (main): Likewise.
8130 maint: make realtime library usage explicit
8131 * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
8132 * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
8133 * modules/settime (Link): Likewise.
8134 * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
8136 test-stat-time: speed up execution
8137 * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
8139 (nap): New helper function.
8140 (prepare_test): Use it to reduce sleep time.
8141 (test_mtime, test_ctime, test_birthtime): Allow for subsecond
8143 * modules/stat-time-tests (configure.ac): Check for usleep.
8145 2009-10-09 Jim Meyering <meyering@redhat.com>
8147 selinux-h: always use getfilecon wrappers
8148 * lib/getfilecon.c: New file.
8149 * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
8150 [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
8151 [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
8152 (fgetfilecon): Provide a stub.
8153 * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
8154 AC_SUBST SELINUX_SELINUX_H, since now we're generating that
8155 file unconditionally.
8156 When <selinux/selinux.h> is found, arrange to use wrappers.
8157 * modules/selinux-h (Files): Add getfilecon.c.
8158 (Makefile.am): Substitute include-next-related bits
8159 into the now-always-generated selinux/selinux.h file.
8160 * doc/glibc-functions/lgetfilecon.texi: New file.
8161 * doc/glibc-functions/fgetfilecon.texi: New file.
8162 * doc/glibc-functions/getfilecon.texi: New file.
8163 * doc/glibc-functions/getfilecon-desc.texi: New file.
8164 * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
8165 which to pull in the new files.
8166 * MODULES.html.sh (Misc): Add selinux-h.
8168 2009-10-08 Jim Meyering <meyering@redhat.com>
8170 unistd: fix comment typo
8171 * lib/unistd.in.h (euidaccess): Fix a comment typo.
8173 2009-10-08 Eric Blake <ebb9@byu.net>
8175 areadlink: use SIZE_MAX consistently
8176 * modules/areadlink (Depends-on): Add stdint.
8177 * modules/areadlink-with-size (Depends-on): Likewise.
8178 * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
8179 gives NULL; drop sys/types, since unistd gives size_t; and add
8180 stdint for SIZE_MAX.
8181 (SIZE_MAX): Rely on headers.
8182 * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
8184 * lib/areadlink.c (includes): Drop sys/types, and add stdint.
8185 (SIZE_MAX): Likewise.
8186 (INITIAL_BUF_SIZE): Turn into enum.
8187 * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
8189 2009-10-08 Jim Meyering <meyering@redhat.com>
8191 areadlinkat: avoid compilation failure
8192 * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
8193 Fix typo in comment.
8195 2009-10-07 Eric Blake <ebb9@byu.net>
8197 areadlinkat-with-size: new module
8198 * modules/areadlinkat-with-size: New module.
8199 * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
8200 * lib/areadlink.h (areadlinkat): Declare it.
8201 * MODULES.html.sh (File system functions): Mention it.
8202 * modules/areadlinkat-with-size-tests: New test.
8203 * tests/test-areadlinkat-with-size.c: New file.
8205 xreadlinkat: new module
8206 * modules/xreadlinkat: New module.
8207 * lib/xreadlinkat.c (xreadlinkat): New file.
8208 * lib/xreadlink.h (xreadlinkat): Declare it.
8209 * MODULES.html.sh (File system functions): Mention it.
8211 areadlinkat: new module
8212 * lib/at-func.c (FUNC_FAIL): New define.
8213 (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
8214 * modules/areadlinkat: New module.
8215 * lib/linkat.c (areadlinkat): Move...
8216 * lib/areadlinkat.c (areadlinkat): ...to new file.
8217 * lib/areadlink.h (areadlinkat): Declare it.
8218 * modules/linkat (Depends-on): Add areadlinkat.
8219 * MODULES.html.sh (File system functions): Mention it.
8220 * modules/areadlinkat-tests: New test.
8221 * tests/test-areadlinkat.c: New file.
8223 areadlink, areadlink-with-size: add tests
8224 * modules/areadlink-tests: New test.
8225 * modules/areadlink-with-size-tests: Likewise.
8226 * tests/test-areadlink.h: New file.
8227 * tests/test-areadlink.c: Likewise.
8228 * tests/test-areadlink-with-size.c: Likewise.
8230 maint: minor cleanups
8231 * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
8232 _UNUSED_PARAMETER_ instead.
8233 * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
8234 * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
8235 * modules/linkat-tests (Files): Distribute test-link.h.
8237 openat, utimens: whitespace cleanup
8238 * lib/openat.c: Prefer space throughout, rather than mix of 8
8240 * lib/at-func.c: Likewise.
8241 * lib/utimens.c: Likewise.
8243 openat: avoid using wrong fd
8244 * lib/openat.c (openat_permissive): Reject user's fd if saving the
8245 working directory chooses same fd.
8246 * lib/at-func.c (AT_FUNC_NAME): Likewise.
8248 mkdir, mkdirat: fix cygwin 1.5.x bug
8249 * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
8250 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
8251 * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
8253 (gl_PREREQ_MKDIR): Delete unused macro.
8254 * modules/mkdir (Files): Track file rename.
8255 (configure.ac): Update macro name.
8256 * modules/openat (Depends-on): Add mkdir.
8257 * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
8259 mkdir, mkdirat: add tests
8260 * modules/mkdir-tests: New test.
8261 * tests/test-mkdir.h: New file.
8262 * tests/test-mkdir.c: Likewise.
8263 * tests/test-mkdirat.c: Likewise.
8264 * modules/openat-tests (Files): Add new files.
8265 (Makefile.am): Run new test.
8267 2009-10-06 Eric Blake <ebb9@byu.net>
8269 doc: tweak *at function documentation
8270 * doc/posix-functions/faccessat.texi (faccessat): Mention
8271 known issue with replacement.
8272 * doc/posix-functions/fchdir.texi (fchdir): Likewise.
8273 * doc/posix-functions/linkat.texi (linkat): Likewise.
8274 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
8275 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
8276 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8277 * doc/posix-functions/renameat.texi (renameat): Likewise.
8278 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
8280 openat: fix GNU/Hurd bug in unlinkat
8281 * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
8283 * doc/posix-functions/unlink.texi (unlink): Document this.
8284 * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
8286 fdopendir: fix GNU/Hurd bug
8287 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
8288 allowing non-directory fds.
8289 * lib/fdopendir.c (rpl_fdopendir): Work around it.
8290 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
8291 * modules/dirent (Makefile.am): Substitute it.
8292 * lib/dirent.in.h (fdopendir): Declare replacement.
8293 * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
8294 * tests/test-fdopendir.c (main): Test something other than
8295 /dev/null, since on Hurd that behaves like a directory.
8297 test-symlink: port to GNU/Hurd
8298 * tests/test-symlink.h (test_symlink): Relax expected errno.
8300 doc: tweak more cygwin information
8301 * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
8302 now compatible with glibc.
8303 * doc/posix-functions/getopt.texi (getopt): Likewise.
8305 getopt-gnu: add another test
8306 * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
8307 guarantee behavior relied on by m4.
8308 * tests/test-getopt.c (main): Use it.
8309 * modules/getopt-posix-tests (Depends-on): Add setenv.
8310 See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
8312 getopt: fix compilation on darwin
8313 * lib/getopt.in.h (includes): Leave breadcrumbs during system
8315 * lib/unistd.in.h (getopt): Use them to avoid recursive include.
8316 Reported by Ludovic Courtès.
8318 2009-10-06 Bruno Haible <bruno@clisp.org>
8320 * modules/size_max (Description): Discourage its use.
8321 Reported by Simon Josefsson.
8323 2009-10-06 Jim Meyering <meyering@redhat.com>
8325 linkat: avoid compilation failure
8326 * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
8328 2009-10-05 Eric Blake <ebb9@byu.net>
8330 linkat: support Linux 2.6.17
8331 * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
8332 linkat on Linux, but allow cache variable override.
8333 * lib/linkat.c (rpl_linkat): Define override.
8334 * modules/linkat (Depends-on): Add symlinkat.
8335 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
8336 * modules/unistd (Makefile.am): Substitute it.
8337 * lib/unistd.in.h (linkat): Declare replacement.
8338 Reported by Pádraig Brady.
8340 quotearg: port test to systems with C.UTF-8 locale
8341 * tests/test-quotearg.c (struct result_strings): Add another
8342 member, differentiating between C.ASCII and C.UTF-8 handling.
8343 (compare_strings): Add parameter.
8344 (main): Adjust all callers.
8346 getopt: avoid clash with FreeBSD _getopt_internal
8347 * lib/getopt.in.h (_getopt_internal): Override the name.
8348 * lib/getopt_int.h (includes): Pick up any overrides.
8349 Reported by Reuben Thomas.
8351 hash: allow C89 compilation
8352 * lib/hash.c (check_tuning): Move declaration before statement.
8353 Reported by Reuben Thomas.
8355 2009-10-05 Karl Berry <karl@gnu.org>
8357 * doc/gnulib.texi: @include execvpe.texi, missing for several days.
8359 2009-10-04 Paolo Bonzini <bonzini@gnu.org>
8360 Bruno Haible <bruno@clisp.org>
8362 * lib/uname.c (uname): Use a table-driven algorithm to compute
8363 Windows NT versions.
8365 2009-10-04 Bruno Haible <bruno@clisp.org>
8367 * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
8368 program_invocation_short_name.
8369 * modules/progname (configure.ac): Test for presence of
8370 program_invocation_short_name.
8371 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
8373 2009-10-04 Bruno Haible <bruno@clisp.org>
8375 * lib/progname.c (set_program_name): Fix comment.
8376 Reported by Jim Meyering.
8378 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
8379 Bruno Haible <bruno@clisp.org>
8381 * lib/uname.c: Include <string.h>.
8382 (uname): Do only one call to GetVersionEx in the common case.
8384 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
8385 Bruno Haible <bruno@clisp.org>
8387 * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
8388 PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
8389 (uname): Add support for Windows CE and various non-x86 CPU types.
8391 2009-10-03 Bruno Haible <bruno@clisp.org>
8393 * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
8394 invocation to tests/configure.ac.
8395 Reported by Ian Beckwith <ianb@erislabs.net>.
8397 2009-10-02 Eric Blake <ebb9@byu.net>
8399 fchdir: avoid compiler warning
8400 * lib/fchdir.c (canonicalize_file_name)
8401 [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
8403 test-open: support mingw errno values
8404 * tests/test-open.h (test_open): Relax test.
8405 * tests/test-fopen.h (test_fopen): Likewise.
8406 * tests/test-openat-safer.c (main): Likewise.
8408 open: fix opening directory on mingw
8409 * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
8411 test-open: on GNU/Hurd, /dev/null is a directory
8412 * tests/test-fopen.h (main): Rename...
8413 (test_fopen): ...to this. Use a guaranteed non-directory when
8414 confirming open behavior on trailing slash.
8415 * tests/test-openat-safer.c (main): Likewise.
8416 * tests/test-open.h (main): Likewise....
8417 (test_open): ...to this.
8418 * tests/test-fopen.c (main): Adjust caller.
8419 * tests/test-fopen-safer.c (main): Likewise.
8420 * tests/test-open.c (main): Likewise.
8421 * tests/test-fcntl-safer.c (main): Likewise.
8422 Reported by Samuel Thibault.
8424 rename, fchdir: don't ignore chdir failure
8425 * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
8426 * lib/rename.c (rpl_rename) [W32]: Likewise.
8427 (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
8428 an empty destination directory if source cannot be renamed,
8429 although there is still possibility for failure.
8430 * doc/posix-functions/rename.texi (rename): Document the race.
8431 Reported by Jim Meyering.
8433 maint: cleanup whitespace in recent commits
8434 * lib/rename.c (rpl_rename): Remove tabs.
8435 * tests/test-link.h (test_link): Likewise.
8436 * lib/fchdir.c (get_name): Likewise.
8437 Reported by Jim Meyering.
8439 2009-10-02 Ben Pfaff <blp@gnu.org>
8441 relocatable-prog-wrapper: Add missing dependency on
8443 * modules/relocatable-prog-wrapper: Add dependency.
8444 Reported by Ian Beckwith <ianb@erislabs.net>.
8446 2009-10-02 Eric Blake <ebb9@byu.net>
8448 renameat: fix Solaris bugs
8449 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
8451 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
8452 * modules/stdio (Makefile.am): Substitute it.
8453 * lib/stdio.in.h (renameat): Declare replacement.
8454 * lib/renameat.c (rpl_renameat): Implement fix.
8456 renameat: new module
8457 * modules/renameat: New file.
8458 * lib/renameat.c (renameat): Likewise.
8459 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
8460 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
8461 * modules/stdio (Makefile.am): Substitute them.
8462 * lib/stdio.in.h (renameat): Declare it.
8463 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8464 * doc/posix-functions/renameat.texi (renameat): Likewise.
8465 * modules/renameat-tests: New test.
8466 * tests/test-renameat.c: Likewise.
8468 rename: fix mingw bugs
8469 * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
8470 directory overwrite bugs.
8472 rename: fix another cygwin 1.5 bug
8473 * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
8475 * lib/rename.c (rpl_rename): Don't penalize NetBSD with
8476 unnecessary cygwin workarounds. Also work around bug with moving
8477 full directory onto an empty one.
8478 * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
8480 rename-dest-slash: merge into rename module
8481 * modules/rename-dest-slash (Status): Mark obsolete.
8482 (Depends-on): Add rename.
8483 (Files): Let rename do it all.
8484 * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
8485 subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
8486 * m4/rename-dest-slash.m4: ...so this file can be deleted.
8487 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
8488 * lib/rename.c (rpl_rename): Update comments.
8490 rename: fix cygwin 1.5.x bugs
8491 * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
8492 * lib/rename.c (rpl_rename): Work around them.
8493 * modules/rename (Depends-on): Add same-inode.
8495 rename: fix Solaris 10 bug
8496 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
8497 * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
8500 rename: fix Solaris 9 bug
8501 * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
8502 on non-directory. Avoid calling exit.
8503 * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
8505 * modules/rename-tests (Depends-on): Drop lstat.
8506 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
8507 (gl_PREREQ_RENAME): Delete unused macro.
8509 rename-dest-slash: fix NetBSD bug
8510 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
8512 * modules/rename-dest-slash (Depends-on): Add same-inode.
8514 rename-tests: new test, exposes several platform bugs
8515 * modules/rename-tests: New file.
8516 * tests/test-rename.h: Likewise.
8517 * tests/test-rename.c: Likewise.
8518 * doc/posix-functions/rename.texi (rename): Improve documentation,
8519 including bugs that will eventually be fixed in gnulib.
8521 2009-10-02 Paolo Bonzini <bonzini@gnu.org>
8523 * lib/uname.c: Include <stdlib.h>
8524 (uname): Assume version info is available.
8526 2009-10-02 Jim Meyering <meyering@redhat.com>
8528 gnu-web-doc-update: correct --help output
8529 * build-aux/gnu-web-doc-update: Make --help output relevant.
8531 gnu-web-doc-update: add standard options
8532 * build-aux/gnu-web-doc-update: Add --help, --version, etc.
8534 gnu-web-doc-update: New module.
8535 Use this script to automatically update the on-line web documentation
8536 for your GNU project at http://www.gnu.org/software/$pkg/manual/
8537 * modules/gnu-web-doc-update: New file, from coreutils.
8538 * build-aux/gnu-web-doc-update: New script.
8540 2009-10-01 Paolo Bonzini <bonzini@gnu.org>
8542 link: LoadLibrary is not needed.
8543 * lib/link.c: Use GetModuleHandle.
8545 2009-10-01 Eric Blake <ebb9@byu.net>
8547 getopt: bump serial number
8548 * m4/getopt.m4: Increment serial number, to account for 2009-09-24
8551 tests: tighten link, rmdir, and remove tests
8552 * tests/test-link.h (includes): No need to use <config.h> here.
8553 Clean up if directory hard link was created, otherwise test for
8555 * tests/test-linkat.c (main): Simplify.
8556 * tests/test-remove.c (main): Enhance test for trailing '.'.
8557 * tests/test-rmdir.h (test_rmdir_func): Likewise.
8559 2009-10-01 Jim Meyering <meyering@redhat.com>
8561 maint.mk: requiring "make major" was annoying, for a "minor" release.
8562 What is intended is "stable", to contrast with alpha and beta,
8563 so require "make stable", not "make major".
8564 * build-aux/announce-gen (%valid_release_types): s/major/stable/.
8565 (get_tool_versions): Likewise.
8566 * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
8568 2009-09-30 Ben Pfaff <blp@gnu.org>
8570 Fix broken build of replacement for Windows tmpfile().
8571 * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
8572 flags argument added along with the 'mkostemp' module.
8574 2009-09-28 Bruno Haible <bruno@clisp.org>
8576 Avoid identifier clash with POSIX function 'remove' defined as a macro.
8577 * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
8579 (gl_list_remove): Update.
8580 * lib/gl_list.c (gl_list_remove): Update.
8581 * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
8583 (gl_oset_remove): Update.
8584 * lib/gl_list.c (gl_oset_remove): Update.
8585 Reported by Eric Blake.
8587 2009-09-28 Eric Blake <ebb9@byu.net>
8589 doc: mention yet more cygwin 1.7 status
8590 * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
8592 * doc/glibc-functions/execvpe.texi (execvpe): New file.
8593 * doc/gnulib.texi (Glibc unistd.h): Mention it.
8595 argp: fix test failure
8596 * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
8597 that are not upper-case. Pass correct range to tolower.
8599 2009-09-27 Jim Meyering <meyering@redhat.com>
8601 test-yesno: work around sparc-dash here-document infelicity
8602 Without this change, the literal \177 byte in a here document
8603 would make dash 0.5.5.1-3 access uninitialized memory.
8604 * tests/test-yesno.sh: Don't put the \177 byte in the here document.
8605 Instead, use a marker, "@", and filter through tr to create the desired
8606 contents. Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
8608 2009-09-27 Bruno Haible <bruno@clisp.org>
8610 Disable untested support for new flavours of ACLs on AIX.
8611 * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
8613 * lib/set-mode-acl.c (qset_acl): Likewise.
8615 2008-12-07 Bruno Haible <bruno@clisp.org>
8617 Add support for new flavours of ACLs on AIX. (Untested.)
8618 * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
8619 (file_has_acl): Add support for newer AIX.
8620 * lib/set-mode-acl.c (qset_acl): Likewise.
8621 * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
8622 Rainer Tammer <tammer@tammer.net>.
8624 2009-09-26 Eric Blake <ebb9@byu.net>
8626 argp: fix compilation of getopt
8627 * lib/getopt.in.h (includes): Use different guard than glibc.
8628 Reported by Sergey Poznyakoff.
8630 doc: mention more cygwin 1.7 status
8631 * doc/posix-functions/access.texi (access): Mention cygwin 1.5
8633 * doc/posix-functions/execl.texi (execl): Likewise.
8634 * doc/posix-functions/execle.texi (execle): Likewise.
8635 * doc/posix-functions/execlp.texi (execlp): Likewise.
8636 * doc/posix-functions/execv.texi (execv): Likewise.
8637 * doc/posix-functions/execve.texi (execve): Likewise.
8638 * doc/posix-functions/execvp.texi (execvp): Likewise.
8639 * doc/glibc-functions/canonicalize_file_name.texi
8640 (canonicalize_file_name): Cygwin 1.7 now provides this.
8641 * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
8642 * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
8643 on AT_SYMLINK_NOFOLLOW.
8645 2009-09-24 Eric Blake <ebb9@byu.net>
8647 test-linkat: make test more robust
8648 * tests/test-linkat.c (main): Avoid collision with EEXIST.
8650 getopt: fix inclusion guards for cygwin
8651 * modules/getopt-posix (Depends-on): Add include-next.
8652 (Makefile.am): Substitute more items in replacement header.
8653 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
8655 * lib/getopt.in.h (includes): Use split inclusion guard, and
8656 prefer <getopt.h> over include <unistd.h> when one is present.
8657 (option): Also override name of 'struct option'.
8659 same-inode: revert prior change; it is not yet ready
8660 * NEWS: Undo mention of this change.
8661 * lib/same-inode.h (same-inode.h): Undo tri-state change.
8662 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
8663 * lib/cycle-check.c (cycle_check): Likewise.
8664 * lib/same.c (same_name): Likewise.
8665 * lib/at-func2.c (at_func2): Likewise.
8667 2009-09-23 Eric Blake <ebb9@byu.net>
8670 * modules/linkat: New file.
8671 * lib/at-func2.c (at_func2): Likewise.
8672 * lib/linkat.c (linkat): Likewise.
8673 * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
8674 * lib/openat-priv.h (at_func2): Add declaration.
8675 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8676 * modules/unistd (Makefile.am): Substitute them.
8677 * lib/unistd.in.h (linkat): Declare it.
8678 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8679 * doc/posix-functions/linkat.texi (linkat): Likewise.
8680 * doc/posix-functions/link.texi (link): Tweak wording.
8681 * tests/test-link.c (main): Move guts...
8682 * tests/test-link.h (test_link): ...into new file.
8683 * modules/linkat-tests: New test.
8684 * tests/test-linkat.c: Likewise.
8685 * modules/link-tests (Files): Ship new file.
8686 (Depends-on): Add stdbool.
8688 dirname: add library-safe mdir_name
8689 * lib/dirname.h (mdir_name): New prototype.
8690 * lib/dirname.c (dir_name): Move guts...
8691 (mdir_name): ...to new function that avoids xalloc_die.
8693 fchdir: another mingw fix
8694 * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
8695 * lib/fchdir.c (get_name): New helper method; skips canonicalize
8696 on mingw (where it has not yet been ported), and make it optional
8698 (_gl_register_fd): Use it.
8700 same-inode: make SAME_INODE tri-state, to port to mingw
8701 * NEWS: Mention this change.
8702 * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
8703 st_ino always being 0.
8704 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
8705 * lib/cycle-check.c (cycle_check): Likewise.
8706 * lib/same.c (same_name): Likewise.
8708 lstat: avoid mingw compilation error
8709 * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
8710 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
8712 * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
8714 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
8715 the checks for lstat.
8716 (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
8718 link: fix test failure on Solaris 9
8719 * lib/link.c (rpl_link): Don't assume link will catch bogus
8720 trailing slash on source.
8722 test-symlinkat: enhance test
8723 * tests/test-readlink.c (main): Move guts...
8724 * tests/test-readlink.h (test_readlink): ...into new file.
8725 * tests/test-symlink.c (main): Move guts...
8726 * tests/test-symlink.h (test_symlink): ...into new file.
8727 * tests/test-symlinkat.c (main): Use new files for further
8729 (do_symlink, do_readlink): New helper functions.
8730 * modules/symlink-tests (Files): Ship new file.
8731 (Depends-on): Add stdbool.
8732 * modules/readlink-tests (Files): Ship new file.
8733 (Depends-on): Add stdbool.
8734 * modules/symlinkat-tests (Files): Use new files.
8736 2009-09-23 Eric Blake <ebb9@byu.net>
8738 readlink: document portability issue with symlink length
8739 * doc/posix-functions/lstat.texi (lstat): Mention that some file
8740 systems have bogus st_size on symlinks, and mention the
8741 areadlink-with-size module.
8742 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
8743 * doc/posix-functions/readlink.texi (readlink): Mention the
8744 areadlink module, and ERANGE failure.
8745 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8746 * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
8748 readlink: fix Solaris 9 bug with trailing slash
8749 * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
8750 * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
8751 * doc/posix-functions/readlink.texi (readlink): Document this.
8752 * modules/readlink-tests: New test.
8753 * tests/test-readlink.c: Likewise.
8755 readlink: fix cygwin 1.5.x bug with return type
8756 * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
8757 * lib/unistd.in.h (readlink): Use ssize_t.
8758 * lib/readlink.c (readlink): Likewise.
8759 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8760 * modules/unistd (Makefile.am): Substitute it.
8761 * lib/unistd.in.h (readlink): Declare replacement.
8762 * doc/posix-functions/readlink.texi (readlink): Document this.
8764 symlink: use throughout gnulib
8765 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
8766 * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
8767 symlink is not used.
8768 * modules/symlinkat (Depends-on): Add symlink.
8769 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
8770 * modules/canonicalize-tests (Depends-on): Likewise.
8771 * modules/lstat-tests (Depends-on): Likewise.
8772 * modules/openat-tests (Depends-on): Likewise.
8773 * modules/remove-tests (Depends-on): Likewise.
8774 * modules/rmdir-tests (Depends-on): Likewise.
8775 * modules/unlink-tests (Depends-on): Likewise.
8776 * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
8777 * tests/test-canonicalize.c (symlink): Likewise.
8778 * tests/test-fstatat.c (symlink): Likewise.
8779 * tests/test-lstat.c (symlink): Likewise.
8780 * tests/test-remove.c (symlink): Likewise.
8781 * tests/test-rmdir.c (symlink): Likewise.
8782 * tests/test-unlink.c (symlink): Likewise.
8783 * tests/test-unlinkat.c (symlink): Likewise.
8785 symlink: new module, for Solaris 9 bug
8786 * modules/symlink: New file.
8787 * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
8788 * lib/symlink.c: Likewise.
8789 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
8790 * modules/unistd (Makefile.am): Substitute them.
8791 * lib/unistd.in.h (symlink): Declare replacement.
8792 * MODULES.html.sh (File system functions): Mention it.
8793 * doc/posix-functions/symlink.texi (symlink): Likewise.
8794 * modules/symlink-tests: New test.
8795 * tests/test-symlink.c: Likewise.
8797 2009-09-23 Bruno Haible <bruno@clisp.org>
8799 * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
8801 Test case: gnulib-tool --import --with-tests atexit inttypes.
8802 Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
8804 2009-09-23 Bruno Haible <bruno@clisp.org>
8806 * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
8807 subcommand, not in a subshell.
8809 2009-09-22 Eric Blake <ebb9@byu.net>
8811 unistd: sort replacement declarations
8812 * lib/unistd.in.h: Sort declarations.
8814 open, openat: minor optimization
8815 * lib/open.c (open): If open succeeded, len is non-zero.
8816 * lib/openat.c (rpl_openat): Likewise.
8818 link-follow: ensure correct result
8819 * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
8820 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
8821 distinguish between possible failures.
8823 2009-09-21 Eric Blake <ebb9@byu.net>
8825 fts: avoid compiler warning
8826 * lib/fts.c (dirent_inode_sort_may_be_useful)
8827 (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
8829 2009-09-19 Bruno Haible <bruno@clisp.org>
8831 * lib/progreloc.c (canonicalize_file_name): New declaration.
8833 2009-09-19 Eric Blake <ebb9@byu.net>
8836 * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
8838 openat: fix openat bugs on Solaris 9
8839 * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
8840 * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
8841 * modules/openat (Depends-on): Add open.
8842 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
8843 * modules/fcntl-h (Makefile.am): Substitute it.
8844 * lib/fcntl.in.h (openat): Declare replacement.
8845 * doc/posix-functions/openat.texi (openat): Document this.
8847 openat: move fstatat and unlinkat into correct files
8848 * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
8850 * lib/openat.c (fstatat, unlinkat): Move...
8851 * lib/fstatat.c (fstatat): ...into correct files.
8852 * lib/unlinkat.c (unlinkat): Likewise.
8854 openat: fix unlinkat bugs on Solaris 9
8855 * lib/unlinkat.c (unlinkat): New file.
8856 * modules/openat (Depends-on): Add unlink.
8857 (Files): Distribute it.
8858 * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
8859 trailing slash behavior is broken.
8860 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8861 * modules/unistd (Makefile.am): Substitute it.
8862 * lib/unistd.in.h (unlinkat): Declare replacement.
8863 * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
8865 openat: fix fstatat bugs on Solaris 9
8866 * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
8868 * doc/posix-functions/fstatat.texi (fstatat): Document this.
8870 test-unlinkat: enhance test, to expose Solaris 9 bug
8871 * tests/test-unlink.c (main): Factor guts...
8872 * tests/test-unlink.h (test_rmdir_func): ...into new file.
8873 * tests/test-rmdir.h (test_rmdir_func): Add parameter.
8874 * tests/test-rmdir.c (main): Adjust caller.
8875 * tests/test-unlinkat.c (main): Likewise. Add unlink tests.
8876 (unlinker): New helper function.
8877 (rmdirat): Enhance check.
8878 * modules/rmdir-tests (Depends-on): Add stdbool.
8879 * modules/unlink-tests (Depends-on): Likewise.
8880 (Files): Add test-unlink.h.
8881 * modules/openat-tests (Files): Likewise.
8882 (Depends-on): Add unlinkdir.
8884 test-fstatat: new test, to expose Solaris 9 bugs
8885 * tests/test-stat.c (main): Factor guts...
8886 * tests/test-stat.h (test_stat_func): ...into new file.
8887 * tests/test-lstat.c (main): Factor guts...
8888 * tests/test-lstat.h (test_lstat_func): ...into new file.
8889 * tests/test-fstatat.c: New file.
8890 * modules/stat-tests (Files): Add test-stat.h.
8891 * modules/lstat-tests (Files): Add test-lstat.h.
8892 (Depends-on): Add stdbool.
8893 * modules/openat-tests (Depends-on): Add pathmax.
8894 (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
8895 (Makefile.am): Run new test.
8897 remove: new module, for mingw and Solaris 9 bugs
8898 * modules/remove: New file.
8899 * lib/remove.c: Likewise.
8900 * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
8901 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
8902 * modules/stdio (Makefile.am): Use them.
8903 * lib/stdio.in.h (remove): Declare replacement.
8904 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8905 * doc/posix-functions/remove.texi (remove): Likewise.
8906 * modules/remove-tests: New test.
8907 * tests/test-remove.c: Likewise.
8909 unlink: new module, for Solaris 9 bug
8910 * modules/unlink: New file.
8911 * lib/unlink.c: Likewise.
8912 * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8913 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8914 * modules/unistd (Makefile.am): Use them.
8915 * lib/unistd.in.h (stat): Declare replacement.
8916 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8917 * doc/posix-functions/unlink.texi (unlink): Likewise.
8918 * modules/unlink-tests: New test.
8919 * tests/test-unlink.c: Likewise.
8921 lstat: fix Solaris 9 bug
8922 * lib/lstat.c (lstat): Also check for trailing slash on
8923 non-symlink, non-directories. Use stat module to simplify logic.
8924 * doc/posix-functions/lstat.texi (lstat): Document it.
8925 * modules/lstat-tests (Depends-on): Add errno, same-inode.
8926 (configure.ac): Check for symlink.
8927 * tests/test-lstat.c (main): Add more tests.
8929 stat: add as dependency to other modules
8930 * modules/chown (Depends-on): Add stat.
8931 * modules/euidaccess (Depends-on): Likewise.
8932 * modules/fchdir (Depends-on): Likewise.
8933 * modules/isdir (Depends-on): Likewise.
8934 * modules/link (Depends-on): Likewise.
8935 * modules/lstat (Depends-on): Likewise.
8936 * modules/mkdir-p (Depends-on): Likewise.
8937 * modules/modechange (Depends-on): Likewise.
8938 * modules/open (Depends-on): Likewise.
8939 * modules/readlink (Depends-on): Likewise.
8940 * modules/same (Depends-on): Likewise.
8942 stat: fix Solaris 9 bug
8943 * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
8945 * lib/stat.c (rpl_stat): Work around it.
8946 * doc/posix-functions/stat.texi (stat): Update documentation.
8948 stat: new module, for mingw bug
8949 * modules/stat: New file.
8950 * lib/stat.c: Likewise.
8951 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8952 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8953 * modules/sys_stat (Makefile.am): Use them.
8954 * lib/sys_stat.in.h (stat): Declare replacement.
8955 * lib/openat.c (fstatat): Deal with lstat and stat being function
8957 * modules/openat (Depends-on): Add inline.
8958 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8959 * doc/posix-functions/stat.texi (stat): Likewise.
8960 * modules/stat-tests: New test.
8961 * tests/test-stat.c: Likewise.
8963 2009-09-19 Jim Meyering <meyering@redhat.com>
8965 syntax-check: detect unnecessary inclusion of canonicalize.h
8966 * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
8968 2009-09-19 Eric Blake <ebb9@byu.net>
8970 canonicalize-lgpl: adjust clients to use correct header
8971 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
8972 (gl_CANONICALIZE_LGPL): Use correct shell quoting.
8973 * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
8974 * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
8975 * lib/progreloc.c (includes): Likewise.
8977 2009-09-19 Jim Meyering <meyering@redhat.com>
8979 test-posixtm.c: correct a comment
8980 * tests/test-posixtm.c: Correct first-line comment.
8981 Spotted by Eric Blake.
8983 2009-09-16 Jim Meyering <meyering@redhat.com>
8985 posixtm-tests: make T const-correct; add a test case
8986 * tests/test-posixtm.c (T): Declare const.
8987 Add a test for -(2^31+1).
8988 Remove useless can-succeed-only-in-2002 test.
8990 posixtm-tests: adjust the sole failing test
8991 * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
8992 expected output matches what mktime now produces. Cross-checked via
8993 erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
8995 posixtm: move #ifdef'd tests into a new module
8996 * lib/posixtm.c (posixtime): Remove #ifdef'd tests. Move to...
8997 * tests/test-posixtm.c: ... this new file.
8998 * modules/posixtm-tests: New module.
9000 2009-09-19 Eric Blake <ebb9@byu.net>
9002 openat: simplify use of at-func.c
9003 * lib/at-func.c (includes): Include prerequisites here, to
9004 simplify requirements on client files.
9005 * lib/openat-priv.h: Add double-inclusion guard.
9006 * lib/faccessat.c (includes): Simplify.
9007 * lib/fchmodat.c (includes): Likewise.
9008 * lib/fchownat.c (includes): Likewise.
9009 * lib/mkdirat.c (includes): Likewise.
9010 * lib/mkfifoat.c (includes): Likewise.
9011 * lib/symlinkat.c (includes): Likewise.
9013 openat: allow return of fd 0
9014 * modules/chdir-long (Depends-on): Relax openat-safer to openat.
9015 * modules/save-cwd (Depends-on): Replace fcntl-safer with
9017 * lib/chdir-long.c (includes): Replace "fcntl--.h" with
9018 <fcntl.h>; this module does not leak fds.
9019 * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
9020 must be allowed to return 0, leaving openat_safer to add the
9022 (openat_permissive): Avoid writing to just-opened fd 2 if
9023 restoring the current directory fails.
9024 * lib/openat-die.c (openat_restore_fail): Add comment.
9025 * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
9026 (save_cwd): Guarantee safe fd, but without use of open_safer.
9027 * tests/test-openat.c: New test.
9028 * modules/openat-tests (Files, Makefile.am): Distribute and build
9031 relocatable-prog-wrapper: fix build
9032 * modules/relocatable-prog-wrapper (Files): Update name of
9033 canonicalize m4 file, broken on 2009-09-17.
9034 Reported by emad hajjar <aleppos@hotmail.com>.
9036 2009-09-19 Bruno Haible <bruno@clisp.org>
9038 * lib/safe-alloc.h: Use the standard header with GPL copyright.
9039 * lib/safe-alloc.c: Likewise.
9040 Reported by Ian Beckwith <ianb@erislabs.net>.
9042 2009-09-18 Bruno Haible <bruno@clisp.org>
9044 * gnulib-tool: Add advice to "cannot find configure.ac" error message.
9045 Reported by <erobles@sensacd.com.mx>.
9047 2009-09-17 Eric Blake <ebb9@byu.net>
9049 canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
9050 * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
9051 slashes when checking if last component is missing.
9052 * tests/test-canonicalize.c (main): Test this.
9054 canonicalize, canonicalize-lgpl: honor // if distinct from /
9055 * modules/canonicalize (Files): Add double-slash-root.m4.
9056 * modules/canonicalize-lgpl (Files): Likewise.
9057 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9058 (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
9059 * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
9060 fallback definition.
9061 (canonicalize_filename_mode): Use it to protect //.
9062 * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
9063 (__realpath): Likewise.
9064 * tests/test-canonicalize.c (main): Test this.
9065 * tests/test-canonicalize-lgpl.c (main): Likewise.
9066 * modules/canonicalize-tests (Depends-on): Add same-inode.
9067 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9069 canonicalize-lgpl: fix glibc bug with trailing slash
9070 * m4/canonicalize-lgpl.m4: Move contents...
9071 * m4/canonicalize.m4: ...here.
9072 (gl_CANONICALIZE_LGPL): Factor realpath check...
9073 (gl_FUNC_REALPATH_WORKS): ...into new macro. Enhance to catch
9074 glibc 2.3.5 bug, fixed 2005-04-27.
9075 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
9076 (gl_PREREQ_CANONICALIZE_LGPL): Inline...
9077 (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
9078 * modules/canonicalize-lgpl (Files): Manage file rename.
9079 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9080 * modules/stdlib (Makefile.am): Substitute witness.
9081 * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
9083 * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
9084 replacement is required.
9085 * lib/canonicalize.c (canonicalize_file_name): Likewise.
9086 * doc/glibc-functions/canonicalize_file_name.texi
9087 (canonicalize_file_name): Document this.
9088 * doc/posix-functions/realpath.texi (realpath): Likewise.
9090 canonicalize-lgpl: reject non-directory with trailing slash
9091 * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
9092 * tests/test-canonicalize-lgpl.c (main): Enhance test. This
9093 catches failures in glibc 2.3.5.
9094 * tests/test-canonicalize.c (main): Likewise.
9096 canonicalize-lgpl: use native realpath if it works
9097 * lib/canonicalize-lgpl.c (realpath): Guard with
9098 FUNC_REALPATH_WORKS.
9099 * lib/stdlib.in.h (realpath): Make declaration optional based on
9101 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
9102 native realpath works.
9103 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9104 * modules/stdlib (Makefile.am): Substitute witness.
9106 canonicalize, canonicalize-lgpl: use <stdlib.h>
9107 * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
9108 (Include): Mention <stdlib.h>.
9109 (configure.ac): Mention functions we provide.
9110 * modules/canonicalize (configure.ac): Likewise.
9111 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
9112 realpath if canonicalize_file_name is missing.
9113 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
9114 * modules/stdlib (Makefile.am): Substitute witnesses.
9115 * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
9116 * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
9117 * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
9118 * NEWS: Document this.
9119 * doc/glibc-functions/canonicalize_file_name.texi
9120 (canonicalize_file_name): Likewise.
9121 * doc/posix-functions/realpath.texi (realpath): Likewise.
9122 * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
9124 test-canonicalize: consolidate into single C program
9125 * tests/test-canonicalize.sh: Delete; move setup into...
9126 * tests/test-canonicalize.c (main): ...the program, making it
9127 easier to run in debugger. Add some tests.
9128 * modules/canonicalize-tests (Files): Remove unused file.
9129 (Depends-on): Add progname.
9130 (configure.ac, Makefile.am): Simplify.
9132 test-canonicalize-lgpl: consolidate into single C program
9133 * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
9134 * tests/test-canonicalize-lgpl.c (main): ...the program, making it
9135 easier to run in debugger. Add some tests.
9136 * modules/canonicalize-lgpl-tests (Files): Remove unused file.
9137 (configure.ac, Makefile.am): Simplify.
9139 canonicalize: avoid resolvepath
9140 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
9142 * lib/canonicalize.c (includes): Simplify.
9143 (canonicalize_file_name): Drop resolvepath implementation.
9144 * modules/canonicalize (Depends-on): Drop filenamecat.
9146 canonicalize: don't lose errno
9147 * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
9150 canonicalize: simplify errno handling
9151 * lib/canonicalize.c (__set_errno): Delete macro, and use direct
9154 canonicalize, canonicalize-lgpl: update module dependencies
9155 * modules/canonicalize (Depends-on): Add extensions, lstat,
9157 (Files): Drop pathmax.h.
9158 (configure.ac): Adjust macro name.
9159 * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
9160 lstat, stdlib, sys_stat.
9161 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
9162 (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
9164 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
9165 (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
9166 (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
9167 * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
9168 declaration, if available.
9169 * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
9170 we can rely on the readlink module.
9171 (MAXSYMLINKS): Also consult SYMLOOP_MAX.
9172 (includes): Use <unistd.h> unconditionally.
9174 2009-09-17 Eric Blake <ebb9@byu.net>
9176 maint: make Include sections of modules consistent
9177 * modules/alloca: Use only header name; no need to list #include.
9178 * modules/alloca-opt: Likewise.
9179 * modules/arpa_inet: Likewise.
9180 * modules/canon-host: Likewise.
9181 * modules/configmake: Likewise.
9182 * modules/dirent: Likewise.
9183 * modules/eealloc: Likewise.
9184 * modules/environ: Likewise.
9185 * modules/fchdir: Likewise.
9186 * modules/fcntl: Likewise.
9187 * modules/fcntl-h: Likewise.
9188 * modules/gethrxtime: Likewise.
9189 * modules/gettime: Likewise.
9190 * modules/ignore-value: Likewise.
9191 * modules/inet_ntop: Likewise.
9192 * modules/inet_pton: Likewise.
9193 * modules/inttypes: Likewise.
9194 * modules/isnand-nolibm: Likewise.
9195 * modules/isnanf-nolibm: Likewise.
9196 * modules/mbchar: Likewise.
9197 * modules/mbfile: Likewise.
9198 * modules/mbiter: Likewise.
9199 * modules/mbuiter: Likewise.
9200 * modules/netdb: Likewise.
9201 * modules/netinet_in: Likewise.
9202 * modules/nproc: Likewise.
9203 * modules/pagealign_alloc: Likewise.
9204 * modules/poll: Likewise.
9205 * modules/printf-frexp: Likewise.
9206 * modules/pthread: Likewise.
9207 * modules/putenv: Likewise.
9208 * modules/random_r: Likewise.
9209 * modules/relocatable-prog: Likewise.
9210 * modules/search: Likewise.
9211 * modules/select: Likewise.
9212 * modules/selinux-h: Likewise.
9213 * modules/settime: Likewise.
9214 * modules/signal: Likewise.
9215 * modules/size_max: Likewise.
9216 * modules/socklen: Likewise.
9217 * modules/ssize_t: Likewise.
9218 * modules/stdarg: Likewise.
9219 * modules/stdbool: Likewise.
9220 * modules/stddef: Likewise.
9221 * modules/stdint: Likewise.
9222 * modules/stdio: Likewise.
9223 * modules/stdlib: Likewise.
9224 * modules/string: Likewise.
9225 * modules/strings: Likewise.
9226 * modules/sys_file: Likewise.
9227 * modules/sys_ioctl: Likewise.
9228 * modules/sys_select: Likewise.
9229 * modules/sys_socket: Likewise.
9230 * modules/sys_stat: Likewise.
9231 * modules/sys_time: Likewise.
9232 * modules/sys_times: Likewise.
9233 * modules/sys_utsname: Likewise.
9234 * modules/sys_wait: Likewise.
9235 * modules/sysexits: Likewise.
9236 * modules/time: Likewise.
9237 * modules/times: Likewise.
9238 * modules/tmpfile: Likewise.
9239 * modules/trim: Likewise.
9240 * modules/unistd: Likewise.
9241 * modules/wchar: Likewise.
9242 * modules/wctype: Likewise.
9244 2009-09-17 Bruno Haible <bruno@clisp.org>
9246 Make getdate.y compile on QNX and NetBSD 5 / i386.
9247 * m4/getdate.m4 (gl_GETDATE): Conditionally define
9248 TIME_T_FITS_IN_LONG_INT.
9249 * lib/getdate.y (long_time_t): New type.
9250 (relative_time): Change type of 'seconds' field to long_time_t.
9251 (get_date): Update types of local variables. Check against overflow
9252 during conversion from long_time_t to time_t.
9253 Reported by Matt Kraai <kraai@ftbfs.org>
9254 and Hasso Tepper <hasso@netbsd.org>.
9256 2009-09-17 Bruno Haible <bruno@clisp.org>
9258 * modules/COPYING: Update copyright years.
9259 * modules/README: Likeiwse.
9260 * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
9261 Reported by Ian Beckwith <ianb@erislabs.net>.
9263 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
9265 * users.txt: Update references for gnuit package.
9267 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
9269 * m4/getdelim.m4: Fix typo in copyright line.
9271 2009-09-17 Bruno Haible <bruno@clisp.org>
9273 * lib/atoll.c: Use the standard header with GPL copyright.
9274 * lib/argz.in.h: Likewise.
9275 * lib/glob.c: Likewise.
9276 * lib/glob-libc.h: Likewise.
9277 * lib/random_r.c: Likewise.
9278 * lib/siglist.h: Likewise.
9279 * lib/strsignal.c: Likewise.
9280 Reported by Ian Beckwith <ianb@erislabs.net>.
9282 2009-09-17 Eric Blake <ebb9@byu.net>
9284 rmdir: ensure correct dependency order
9285 * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
9287 2009-09-17 Bruno Haible <bruno@clisp.org>
9289 Disable assertion that fails on NetBSD 5 / i386.
9290 * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
9291 Reported by Sam Steingold <sds@gnu.org>
9292 and Hasso Tepper <hasso@netbsd.org>.
9294 2009-09-16 Eric Blake <ebb9@byu.net>
9296 unlinkdir: port to mingw
9297 * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
9298 on which no one can unlink a directory.
9300 stdlib: sort witness names
9301 * modules/stdlib (Makefile.am): Sort replacements.
9302 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
9303 * lib/stdlib.in.h: Likewise.
9305 parse-duration-tests: avoid link failure
9306 * modules/parse-duration-tests (test_parse_duration_LDADD): Add
9308 Reported by Tom G. Christensen.
9310 openat-tests: ensure unlinkat behaves like rmdir
9311 * tests/test-rmdir.c (main): Factor guts...
9312 * tests/test-rmdir.h (test_rmdir_func): ...into new file.
9313 * modules/rmdir-tests (Files): Ship new file.
9314 * modules/openat-tests: New test.
9315 * tests/test-unlinkat.c: Likewise.
9317 rmdir-errno: mark obsolete, it is unsafe for cross-compilation
9318 * modules/rmdir-errno (Status, Notice): Now obsolete.
9320 rmdir: work around cygwin 1.5.x and mingw bugs
9321 * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
9322 * lib/rmdir.c (rmdir): Work around it.
9323 * modules/rmdir (Status, Notice): No longer obsolete.
9324 (Files): Add dos.m4.
9325 (Depends-on): Add unistd.
9326 (configure.ac): Set witnesses.
9327 (License): Relax to LGPLv2+.
9328 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
9329 * modules/unistd (Makefile.am): Substitute witnesses.
9330 * lib/unistd.in.h (rmdir): Declare replacement.
9331 * doc/posix-functions/rmdir.texi (rmdir): Document this.
9332 * modules/rmdir-tests: New tests.
9333 * tests/test-rmdir.c: Likewise.
9335 2009-09-15 Eric Blake <ebb9@byu.net>
9337 fchdir: improve use of replacement functions
9338 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
9339 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
9340 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
9342 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
9343 * modules/sys_stat (Makefile.am): Substitute correct witness.
9344 * modules/dirent (Makefile.am): Likewise.
9345 * modules/unistd (Makefile.am): Likewise.
9346 * lib/dirent.in.h (opendir, closedir): Use better witnesses.
9347 * lib/unistd.in.h (dup): Likewise.
9348 * lib/sys_stat.in.h (fstat): Likewise.
9350 maint: ignore gnulib-tool temp files
9351 * .gitignore: Ignore files created during gnulib-tool --test.
9353 2009-09-13 Jim Meyering <meyering@redhat.com>
9355 posixtm: don't reject a time that specify "60" as the number of seconds
9356 * lib/posixtm.c (posixtime): The code to reject invalid dates
9357 would also reject a time specified with the .60 suffix.
9358 But POSIX allows that, in order to accommodate leap seconds.
9360 (main): Adjust tests accordingly.
9361 * modules/posixtm (Depends-on): Add stpcpy.
9363 2009-09-11 Jim Meyering <meyering@redhat.com>
9365 announce-gen: include [$release_type] in emitted Subject:
9366 * build-aux/announce-gen (get_tool_versions): Include [$release_type],
9367 e.g., [stable] in the emitted Subject: line.
9369 2009-09-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9371 Remove obsolete macros from several modules.
9372 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
9373 obsolete Autoconf macros with their modern counterparts.
9374 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
9375 * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
9376 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
9377 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
9378 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
9379 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9380 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
9381 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
9382 * m4/poll.m4 (gl_FUNC_POLL): Likewise.
9383 * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
9384 * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9385 * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9386 * m4/select.m4 (gl_FUNC_SELECT): Likewise.
9387 * m4/sockets.m4 (gl_SOCKETS): Likewise.
9388 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
9389 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
9390 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
9391 * m4/time_r.m4 (gl_TIME_R): Likewise.
9392 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
9393 * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
9394 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
9396 Fix copyright header in build-aux scripts.
9397 * build-aux/git-version-gen: Fix copyright header to match GPLv3
9399 * build-aux/ncftpput-ftp: Likewise.
9400 * build-aux/update-copyright: Likewise.
9402 2009-09-09 Eric Blake <ebb9@byu.net>
9404 test-link: allow Linux choice of errno
9405 * tests/test-link.c (main): Relax test for alternate error.
9407 strndup: fix improper m4 caching
9408 * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
9409 inside AC_CACHE_CHECK. Use REPLACE_STRNDUP, not HAVE_STRNDUP.
9410 (gl_PREREQ_STRNDUP): Delete.
9411 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
9412 * modules/string (Makefile.am): Substitute it.
9413 * lib/string.in.h (strndup): Modernize prototype.
9415 getcwd: port to mingw
9416 * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
9417 different from the POSIX assumptions made throughout the getcwd
9418 module; fortunately, the mingw getcwd does not need replacement.
9419 (gl_FUNC_GETCWD_NULL): Skip test on mingw.
9420 * modules/getcwd-tests: New test.
9421 * tests/test-getcwd.c: Likewise.
9423 link: fix platform bugs
9424 * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
9425 * lib/link.c (link): Work around them. Fix related mingw bug.
9426 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
9427 * modules/unistd (Makefile.am): Substitute it.
9428 * lib/unistd.in.h (link): Declare replacement.
9429 * doc/posix-functions/link.texi (link): Document this.
9430 * modules/link (Depends-on): Add strdup-posix, sys_stat.
9432 test-link: consolidate into single C program, test more cases
9433 * tests/test-link.sh: Delete.
9434 * tests/test-link.c: Test more error conditions. Exposes bugs on
9435 at least Cygwin and Solaris.
9436 * modules/link-tests (Files): Remove unused file.
9437 (Depends-on): Add errno, sys_stat.
9438 (Makefile.am): Simplify.
9440 2009-09-08 Bruno Haible <bruno@clisp.org>
9442 Work around towlower, towupper bug on mingw.
9443 * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
9444 * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
9445 * doc/posix-functions/towlower.texi: Mention the mingw bug.
9446 * doc/posix-functions/towupper.texi: Likewise.
9447 Reported by Eric Blake.
9449 2009-09-08 Jim Meyering <meyering@redhat.com>
9451 build: don't try to run autoheader if we don't use it
9452 * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
9453 is not used in configure.ac.
9455 2009-09-08 Eric Blake <ebb9@byu.net>
9457 euidaccess: fix compilation error
9458 * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
9460 rawmemchr: relax license
9461 * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
9463 Reported by Jim Meyering.
9465 mkfifoat: new module
9466 * modules/mkfifoat: New file.
9467 * lib/mkfifoat.c: Likewise.
9468 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
9469 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9470 * modules/sys_stat (Makefile.am): Use them.
9471 * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
9472 * MODULES.html.sh (File system functions): Mention module.
9473 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9474 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9475 * modules/mkfifoat-tests: New test.
9476 * tests/test-mkfifoat.c: Likewise.
9478 strchrnul: relax license
9479 * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
9481 Reported by Jim Meyering.
9483 2009-09-08 Eric Blake <ebb9@byu.net>
9485 fstatat: fix compilation on Solaris
9486 * lib/fstatat.c (includes): Add fcntl.h.
9487 Reported by Pádraig Brady.
9489 2009-09-07 Eric Blake <ebb9@byu.net>
9491 rename: modernize replacement
9492 * modules/rename (Depends-on): Add stdio.
9493 (configure.ac): Declare witness.
9494 * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
9495 stdio take care of replacement.
9496 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
9497 * modules/stdio (Makefile.am): Substitute them.
9498 * lib/stdio.in.h (rename): Declare replacement.
9499 * lib/rename.c (includes): Allow cross-compilation to non-windows
9501 * doc/posix-functions/rename.texi (rename): Improve
9504 stdio: sort witness names
9505 * modules/stdio (Makefile.am): Sort replacements.
9506 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9507 * lib/stdio.in.h: Likewise.
9509 getcwd: minor cleanups
9510 * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
9511 (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
9513 openat: provide more convenience names
9514 * modules/faccessat (configure.ac): Add C witness.
9515 * lib/unistd.in.h (readlinkat): Fix typo.
9516 * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
9517 convenience wrappers.
9518 * top/maint.mk (sc_prohibit_openat_without_use): Allow these
9519 wrappers in syntax checks.
9521 2009-09-06 Eric Blake <ebb9@byu.net>
9523 doc: fix comments in recent patches
9524 * lib/faccessat.c: Mention correct function.
9525 * lib/fchmodat.c: Likewise.
9526 * lib/fchownat.c: Likewise.
9527 * lib/symlinkat.c: Likewise.
9528 * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
9531 faccessat, symlinkat: continue cleanup of previous patch
9532 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
9533 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
9534 * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
9535 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
9536 * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
9537 * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
9540 2009-09-06 Bruno Haible <bruno@clisp.org>
9542 * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
9543 (fstatat): Declare if GNULIB_FSTATAT is set.
9544 (mkdirat): Declare if GNULIB_MKDIRAT is set.
9545 * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
9546 (unlinkat): Declare if GNULIB_UNLINKAT is set.
9547 * modules/fcntl-h (Files): Remove m4/openat.m4.
9548 * modules/sys_stat (Files): Remove m4/openat.m4.
9549 (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
9550 GNULIB_MKDIRAT instead of GNULIB_OPENAT.
9551 * modules/unistd (Files): Remove m4/openat.m4.
9552 (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
9554 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
9555 HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
9556 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
9557 GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
9558 HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
9560 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
9561 GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
9562 Don't require gl_OPENAT_DEFAULTS.
9563 * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
9564 gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
9565 GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
9566 (gl_OPENAT_DEFAULTS): Remove macro.
9568 2009-09-06 Bruno Haible <bruno@clisp.org>
9570 * modules/openat (configure.ac): Remove unneeded witness.
9572 2009-09-06 Bruno Haible <bruno@clisp.org>
9574 Set errno to ENOSYS when a function is entirely unsupported.
9575 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
9577 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
9578 * modules/chown (Depends-on): Remove errno.
9580 2009-09-06 Bruno Haible <bruno@clisp.org>
9582 * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
9584 2009-09-06 Bruno Haible <bruno@clisp.org>
9586 * lib/sys_stat.in.h: Fix preprocessor command indentation.
9588 2009-09-06 Ben Pfaff <blp@gnu.org>
9589 Bruno Haible <bruno@clisp.org>
9591 Work around a glibc bug in strtok_r.
9592 * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
9593 Undefine if UNDEFINE_STRTOK_R is set.
9594 * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
9595 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9596 REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
9597 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
9598 * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
9600 * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
9602 2009-09-06 Sergey Poznyakoff <gray@gnu.org.ua>
9605 * lib/exclude.c: Include wctype.h
9607 2009-09-06 Akim Demaille <demaille@gostai.com>
9609 bootstrap: improve error message
9610 * build-aux/bootstrap (find_tool): Upon failure, report the list
9612 Honor the initial value of the envvar.
9614 2009-09-05 Eric Blake <ebb9@byu.net>
9616 symlinkat: new module
9617 * modules/symlinkat: New file.
9618 * lib/symlinkat.c: Likewise.
9619 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
9620 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9621 * modules/unistd (Makefile.am): Use them.
9622 * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
9623 (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
9624 * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
9625 * MODULES.html.sh (File system functions): Mention module.
9626 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9627 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9628 * modules/symlinkat-tests: New test.
9629 * tests/test-symlinkat.c: Likewise.
9631 test-openat-safer: add more checks
9632 * tests/test-openat-safer.c (main): Check more code paths.
9634 2009-09-05 Jim Meyering <meyering@redhat.com>
9636 syntax-check: detect unnecessary inclusion of openat.h
9637 * top/maint.mk (sc_prohibit_openat_without_use): New rule.
9639 2009-09-05 Bruno Haible <bruno@clisp.org>
9641 Support towlower, towupper.
9642 * doc/posix-functions/towlower.texi: Mention module wctype.
9643 * doc/posix-functions/towupper.texi: Likewise.
9644 * lib/wctype.in.h (towlower, towupper): New functions.
9645 * tests/test-wctype.c: Include stdio.h, stdlib.h.
9646 (ASSERT): New macro.
9648 (main): Test also towlower, towupper. Test WEOF argument.
9649 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
9651 2009-09-05 Bruno Haible <bruno@clisp.org>
9653 Fix conversion behaviour when the input is invalid.
9654 * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
9655 mark occurring in first pass of indirect conversion.
9656 * tests/test-striconveh.c (main): Test conversion of invalid ASCII
9658 Found by clang's static analyzer.
9660 2009-09-05 Bruno Haible <bruno@clisp.org>
9662 * tests/test-striconveh.c (main): Test indirect conversion on platforms
9663 where direct conversion is possible.
9665 2009-09-04 Eric Blake <ebb9@byu.net>
9667 openat: fail with ENOENT on empty name
9668 * lib/openat-proc.c (openat_proc_name): Special-case the empty
9671 link-follow: fix logic bug in prior patch
9672 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
9673 reversed sense of yes and no in prior patch. Avoid confusing
9674 compilation failure with desired semantics.
9676 link-follow: accomodate mingw and cross-compilation
9677 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
9678 (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this. Change
9679 cross-compilation results to -1, to make linkat easier to
9680 implement when cross-compiling. Trivially support mingw.
9681 * modules/link-follow (configure.ac): Call new name.
9682 * NEWS: Mention this.
9684 2009-09-03 Eric Blake <ebb9@byu.net>
9686 faccessat: compile replacement
9687 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
9690 fts: fix compilation error
9691 * lib/fts.c (includes): Re-add "openat.h", for
9692 openat_needs_fchdir.
9694 faccessat: new module
9695 * modules/faccessat: New file.
9696 * lib/faccessat.c: Likewise.
9697 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
9698 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9699 * modules/unistd (Makefile.am): Use it.
9700 * lib/unistd.in.h (faccessat): Declare it.
9701 (F_OK, X_OK, W_OK, R_OK): Provide definitions.
9702 * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
9703 * MODULES.html.sh (File system functions): Mention it.
9704 * doc/posix-functions/faccessat.texi (faccessat): Likewise.
9705 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
9707 euidaccess: prefer POSIX over non-standard implementation
9708 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
9709 * lib/euidaccess.c (euidaccess): Use it if available.
9711 openat: make template easier to use
9712 * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
9713 AT_FUNC_F2 to be undefined.
9714 (VALIDATE_FLAG): New macro; use it to reject bad flags.
9715 (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
9716 * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
9717 * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
9718 * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
9720 * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
9721 * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
9722 [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
9725 openat: declare in POSIX headers
9726 * NEWS: Mention this.
9727 * modules/openat (configure.ac): Declare witnesses.
9728 (Depends-on): Add fcntl-h, sys_stat, unistd.
9729 (Include): Mention correct headers.
9730 * modules/fcntl-h (Depends-on): Add link-warning.
9731 (Files): Add openat.m4.
9732 (Makefile.am): Substitute witnesses.
9733 * modules/sys_stat (Files, Makefile.am): Likewise.
9734 * modules/unistd (Files, Makefile.am): Likewise.
9735 * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
9736 (gl_OPENAT_DEFAULTS): New macro.
9737 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
9738 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
9739 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
9740 (SYS_STAT_H): Remove unused variable.
9741 * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
9742 * lib/fcntl--.h (includes): Remove unneeded header.
9743 * lib/openat-safer.c (includes): Likewise.
9744 * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
9745 (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
9746 appropriate headers.
9747 (__OPENAT_PREFIX): Delete.
9748 * lib/fcntl.in.h (openat): Provide declaration.
9749 (AT_FDCWD): Fix Solaris bug.
9750 (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
9751 * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
9752 * lib/fchmodat.c (includes): Adjust to find declaration.
9753 * lib/fchownat.c (includes): Likewise.
9754 * lib/mkdirat.c (includes): Likewise.
9755 * lib/fstatat.c (includes): Likewise. Ensure original fstatat is
9758 2009-09-02 Eric Blake <ebb9@byu.net>
9760 errno: use consistently
9761 * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
9762 * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
9763 * lib/canonicalize.c (ELOOP): Likewise.
9764 * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
9765 * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
9766 * lib/lchown.c (EOPNOTSUPP): Likewise.
9767 * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
9768 * lib/savewd.c (ESTALE): Likewise.
9769 * lib/settime.c (ENOSYS): Likewise.
9770 * lib/utimens.c (ENOSYS): Likewise.
9771 * lib/xgethostname.c (ENAMETOOLONG): Likewise.
9772 * lib/chdir-safer.c (ELOOP): Likewise.
9773 (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
9774 * modules/c-stack (Depends-on): Add errno.
9775 * modules/canonicalize (Depends-on): Likewise.
9776 * modules/chdir-safer (Depends-on): Likewise.
9777 * modules/fdopendir (Depends-on): Likewise.
9778 * modules/inet_ntop (Depends-on): Likewise.
9779 * modules/inet_pton (Depends-on): Likewise.
9780 * modules/lchown (Depends-on): Likewise.
9781 * modules/openat (Depends-on): Likewise.
9782 * modules/savewd (Depends-on): Likewise.
9783 * modules/settime (Depends-on): Likewise.
9784 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
9786 fts: avoid leaking fds
9787 * modules/fts (Depends-on): Add cloexec.
9788 * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
9791 fts: make directory fds more robust
9792 * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
9793 (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
9795 backupfile, chdir-long, fts, savedir: make safer
9796 * lib/backupfile.c (includes): Use "dirent--.h", since
9797 numbered_backup can write to stderr during readdir.
9798 * lib/savedir.c (includes): Likewise.
9799 * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
9800 emulation can write to stderr on failure.
9801 * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
9802 * lib/getcwd.c: Document why opendir_safer is unused.
9803 * lib/glob.c: Likewise.
9804 * lib/scandir.c: Likewise.
9805 * lib/openat-proc.c: Likewise, for open_safer.
9806 * modules/backupfile (Depends-on): Add dirent-safer.
9807 * modules/savedir (Depends-on): Likewise.
9808 * modules/fts (Depends-on): Add dirent-safer and openat-safer.
9809 * modules/chdir-long (Depends-on): Add openat-safer.
9811 openat-safer: new module
9812 * modules/openat-safer: New file.
9813 * lib/openat-safer.c: Likewise.
9814 * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
9815 * lib/fcntl-safer.h (openat_safer): Declare.
9816 * lib/fcntl--.h (openat): Override.
9817 * MODULES.html.sh (File descriptor based I/O): Mention it.
9818 * lib/openat.h: Add double-inclusion guards.
9819 * lib/openat.c (includes): Only include "fcntl-safer.h", not
9820 "fcntl--.h", so we can implement openat.
9821 * modules/openat-safer-tests: New test.
9822 * tests/test-openat-safer.c: New file.
9824 dirent-safer: new module
9825 * modules/dirent-safer: New file.
9826 * lib/dirent--.h: Likewise.
9827 * lib/dirent-safer.h: Likewise.
9828 * lib/opendir-safer.c: Likewise.
9829 * m4/dirent-safer.m4: Likewise.
9830 * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
9831 * modules/dirent-safer-tests: New test.
9832 * tests/test-dirent-safer.c: New file.
9833 * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
9835 fdopendir: optimize on mingw
9836 * lib/unistd.in.h (_gl_directory_name): New prototype.
9837 * lib/fchdir.c (_gl_directory_name): Implement it.
9838 (fchdir): Use it to simplify implementation.
9839 * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
9840 fchdir, when available, to avoid calling [f]chdir().
9842 fdopendir: split into its own module
9843 * lib/openat.c (fdopendir): Move...
9844 * lib/fdopendir.c: ...into new file.
9845 * modules/fdopendir: New module.
9846 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
9847 * modules/openat (Depends-on): Add fdopendir.
9848 * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
9850 * modules/savedir (Depends-on): Only need fdopendir, not full
9852 * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
9853 * lib/openat.h (fdopendir): Drop prototype.
9854 * lib/dirent.in.h (fdopendir): Provide prototype.
9855 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
9856 * modules/dirent (Makefile.am): Substitute them.
9857 * MODULES.html.sh (File system functions): Mention it.
9858 * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
9859 * modules/fdopendir-tests: New file.
9860 * tests/test-fdopendir.c: Likewise.
9862 fchdir: use more consistent macro convention
9863 * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
9864 * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
9865 REPLACE_FCHDIR, rather than relying on config.h macros.
9866 * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
9867 inside a single make-time REPLACE_FCHDIR block, rather than using
9868 the config.h FCHDIR_REPLACEMENT.
9869 * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
9870 AC_SUBST'd, also AC_DEFINE it. Don't define FCHDIR_REPLACEMENT.
9871 Manage fstat replacement.
9872 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
9874 * modules/sys_stat (Files): Add m4/unistd_h.m4.
9875 (Makefile.am): Substitute REPLACE_FCHDIR.
9876 * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
9878 * lib/dup-safer.c (dup_safer): Likewise.
9879 * lib/dup2.c (rpl_dup2): Likewise.
9880 * lib/dup3.c (rpl_dup3): Likewise.
9881 * lib/open.c (rpl_open): Likewise.
9883 fchdir: simplify error handling, and support dup3
9884 * modules/fchdir (Depends-on): Use strdup-posix, not strdup. Add
9885 stdbool, malloc-posix, realloc-posix.
9886 * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
9887 (ensure_dirs_slot): Return false on allocation failure.
9889 (_gl_register_dup): New function.
9890 (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
9891 (_gl_register_fd): Close fd on allocation failure.
9892 * lib/fcntl.in.h (_gl_register_fd): Update signature.
9893 * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
9895 (rpl_dup2_fchdir): Delete prototype.
9896 * lib/open.c (open): Update caller.
9897 * lib/dup2.c (dup2): Track fchdir metadata.
9898 * lib/dup3.c (dup3): Likewise.
9899 * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
9900 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
9902 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9904 * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
9905 AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
9906 don't pass arguments to AC_OUTPUT.
9908 2009-09-02 Bruno Haible <bruno@clisp.org>
9910 * modules/mkdtemp (License): Relicense under LGPLv2+.
9911 Reported by Paolo Bonzini.
9913 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9915 Replace uses of obsolete autoconf macros in Jim's modules.
9916 The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
9917 AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
9918 can evoke a warning from autoconf when run with -Wobsolete
9919 enabled. They were declared obsolete for good reasons (see
9920 the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
9921 recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
9922 should not continue using the deprecated macros.
9923 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
9924 obsolete Autoconf macros with modern counterparts.
9925 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9926 * m4/dos.m4 (gl_AC_DOS): Likewise.
9927 * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
9928 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
9929 * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
9930 * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
9931 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
9932 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
9933 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
9934 * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
9935 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
9937 * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
9938 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
9939 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
9940 * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
9941 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
9942 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
9944 2009-09-01 Eric Blake <ebb9@byu.net>
9946 fchdir: fix off-by-one bug in previous patch
9947 * lib/fchdir.c (rpl_fstat): Use correct bounds.
9948 (_gl_unregister_fd): Delete useless if.
9950 2009-09-01 Daniel P. Berrange <berrange@redhat.com>
9952 maint.mk: sort the list of syntax-check rules
9953 * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
9954 easier to get a sense of progress when the rules are run sequentially
9955 and take a long time.
9957 2009-09-01 Simon Josefsson <simon@josefsson.org>
9959 * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
9960 * modules/netinet_in: Likewise.
9961 * modules/sys_file: Likewise.
9962 * modules/sys_ioctl: Likewise.
9963 * modules/sys_select: Likewise.
9964 * modules/sys_socket: Likewise.
9965 * modules/sys_stat: Likewise.
9966 * modules/sys_time: Likewise.
9967 * modules/sys_times: Likewise.
9968 * modules/sys_utsname: Likewise.
9969 * modules/sys_wait: Likewise.
9971 2009-09-01 Jim Meyering <meyering@redhat.com>
9973 fts: help ensure that return values are not ignored
9974 * lib/fts_.h (__GNUC_PREREQ): Define.
9975 (__attribute_warn_unused_result__): Define.
9976 (fts_children, fts_close, fts_open, fts_read): Declare with
9977 __attribute_warn_unused_result__.
9979 fts: fts_close now fails also when closing a dir file descriptor fails
9980 * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
9981 and propagate to caller, along with errno.
9983 announce-gen: correct formatting in --help output
9984 * build-aux/announce-gen (usage): Move the one-line description in
9985 --help output "up", to where it belongs, just after Usage:.
9987 2009-08-31 Eric Blake <ebb9@byu.net>
9989 fchdir: port to mingw
9990 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
9991 * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
9992 opened, then use a substitute.
9993 * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
9995 * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
9996 (_gl_register_fd): No need to check stat if open already filters
9998 (fchdir): Fix error condition to match POSIX.
9999 * modules/fchdir (Depends-on): Add sys_stat.
10000 * doc/posix-functions/open.texi (open): Document the limitation.
10001 * modules/fchdir-tests: New file.
10002 * tests/test-fchdir.c: Likewise.
10004 canonicalize: allow cross-testing from cygwin to mingw
10005 * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
10006 (Makefile.am): Pass it through TESTS_ENVIRONMENT.
10007 * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
10009 * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
10010 target does not support symlinks.
10011 * tests/test-canonicalize-lgpl.sh: Likewise.
10013 chown: avoid compilation warning on mingw
10014 * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
10015 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
10017 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10018 * modules/chown (Depends-on): Add errno.
10020 2009-08-31 Stefano Lattarini <stefano.lattarini@gmail.com> (tiny change)
10022 * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
10025 2009-08-31 Jim Meyering <meyering@redhat.com>
10027 canonicalize: remove useless initialization
10028 * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
10029 initialization of local, "end".
10031 2009-08-30 Bruno Haible <bruno@clisp.org>
10033 Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
10034 * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
10037 2009-08-30 Bruno Haible <bruno@clisp.org>
10039 * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
10040 /usr/xpg4/bin/tr when it exists.
10041 * tests/test-pipe-filter-gi1.sh: Likewise.
10043 2009-08-30 Bruno Haible <bruno@clisp.org>
10045 Work around deficient /usr/bin/id program on Solaris.
10046 * tests/test-file-has-acl.sh (ID): New variable.
10047 * tests/test-set-mode-acl.sh (ID): Likewise.
10048 * tests/test-copy-acl.sh (ID): Likewise.
10049 * tests/test-copy-file.sh (ID): Likewise.
10051 2009-08-30 Bruno Haible <bruno@clisp.org>
10053 New module 'xstriconveh'.
10054 * lib/xstriconveh.h: New file.
10055 * lib/xstriconveh.c: New file.
10056 * modules/xstriconveh: New file.
10058 2009-08-30 Bruno Haible <bruno@clisp.org>
10060 Make it easier to use mem_cd_iconveh.
10061 * lib/striconveh.h (iconveh_t): New type.
10062 (iconveh_open, iconveh_close): New declarations.
10063 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10064 with a single 'const iconveh_t *' argument.
10065 * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
10066 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10067 with a single 'const iconveh_t *' argument.
10068 (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
10069 * tests/test-striconveh.c (main): Update.
10070 * NEWS: Mention the change.
10072 2009-08-30 Bruno Haible <bruno@clisp.org>
10074 * doc/posix-functions/iconv_open.texi: Mention indirect conversion
10077 2009-08-30 Bruno Haible <bruno@clisp.org>
10079 Work around iconv_open problem on Solaris.
10080 * lib/iconv_open-solaris.gperf: New file.
10081 * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
10082 * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
10083 * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
10084 (Makefile.am): Add rule for iconv_open-solaris.h. Augment
10085 BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
10086 * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
10088 2009-08-29 Jim Meyering <meyering@redhat.com>
10090 maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
10091 * top/maint.mk (cvs-check): Remove target; it was just an alias
10092 to the better-named vc-diff-check.
10093 (maintainer-distcheck): Remove rule. It was used only from
10094 the (alpha/beta/major) target, and all of its commands but one
10095 were coreutils-specific.
10096 (vc-dist): Remove rule.
10097 (alpha beta major): Run "$(MAKE) distcheck" explicitly.
10098 Run vc-diff-check, not vc-dist.
10099 Run $(MAKE) dist with XZ_OPT=-9ev. Note spelling, with "-".
10101 2009-08-27 Bruno Haible <bruno@clisp.org>
10103 * tests/test-bitrotate.c (main): Remove test that uses a shift count
10106 2009-08-27 Bruno Haible <bruno@clisp.org>
10108 * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
10110 * doc/func.texi: Document the SunPRO C bug.
10112 2009-08-27 Bruno Haible <bruno@clisp.org>
10114 Fix link error on Solaris.
10115 * tests/test-parse-duration.c (xstrdup): Remove function.
10117 2009-08-26 Pádraig Brady <P@draigbrady.com>
10119 ignore-value: handle pointer types, too
10120 * lib/ignore-value.h (__attribute__): Remove definition.
10121 (ignore_value): Remove use of "__attribute__ ((unused))" in favor
10122 of a more concise and more-often effective "(void) i" statement.
10123 (ignore_ptr): New function to suppress warnings from functions that
10124 return pointers, and to make it explicit that one function doesn't
10127 2009-08-25 Bruno Haible <bruno@clisp.org>
10129 dup2: work around a Linux bug.
10130 * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
10131 * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
10132 * doc/posix-functions/dup2.texi: Mention the Linux bug.
10133 Reported by Simon Josefsson.
10135 2009-08-25 Jim Meyering <meyering@redhat.com>
10137 libguestfs uses gnulib
10138 * users.txt: Add libguestfs.
10140 2009-08-24 Eric Blake <ebb9@byu.net>
10142 dup2, pipe2: fix some recent test failures on cygwin 1.5.x
10143 * lib/pipe2.c (includes): Add binary-io.h.
10144 * lib/dup2.c (rpl_dup2): Correct buggy errno value.
10146 2009-08-24 Bruno Haible <bruno@clisp.org>
10148 Tolerate declared but missing accept4 syscall.
10149 * lib/accept4.c (accept4): Invoke original accept4 function first, if
10151 * lib/sys_socket.in.h (accept4): If the function is already present,
10153 * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
10154 * modules/accept4 (Makefile.am): Compile accept4.c always.
10155 Reported by Paolo Bonzini and Eric Blake.
10157 2009-08-23 Bruno Haible <bruno@clisp.org>
10159 New module 'accept4'.
10160 * lib/sys_socket.in.h (accept4): New declaration.
10161 * lib/accept4.c: New file.
10162 * m4/accept4.m4: New file.
10163 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
10164 GNULIB_ACCEPT4, HAVE_ACCEPT4.
10165 * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
10167 * modules/accept4: New file.
10168 * doc/glibc-functions/accept4.texi: Mention the new module.
10170 2009-08-24 Jim Meyering <meyering@redhat.com>
10172 progname: also set global program_invocation_name, when possible
10173 Before this change, a libtool-enabled program that calls glibc's
10174 error function would report the program name as
10175 "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
10176 * modules/progname (configure.ac): Check for a declaration of
10177 program_invocation_name.
10178 * lib/progname.c: Include <errno.h>.
10179 (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
10180 Set program_invocation_name.
10182 2009-08-23 Bruno Haible <bruno@clisp.org>
10184 * lib/dup3.c: Include <string.h>.
10186 2009-08-23 Bruno Haible <bruno@clisp.org>
10188 * lib/dup3.c (dup3): Test only once whether the system actually exists.
10189 * lib/pipe2.c (pipe2): Likewise.
10190 Suggested by Eric Blake.
10192 2009-08-23 Bruno Haible <bruno@clisp.org>
10194 Tolerate declared but missing dup3 syscall.
10195 * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
10196 * lib/unistd.in.h (dup3): If the function is already present,
10198 * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
10199 * modules/dup3 (Makefile.am): Compile dup3.c always.
10200 Reported by Paolo Bonzini.
10202 2009-08-23 Bruno Haible <bruno@clisp.org>
10204 Tolerate declared but missing pipe2 syscall.
10205 * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
10207 * lib/unistd.in.h (pipe2): If the function is already present,
10209 * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
10210 * modules/pipe2 (Makefile.am): Compile pipe2.c always.
10211 Reported by Paolo Bonzini.
10213 2009-08-23 Bruno Haible <bruno@clisp.org>
10215 * lib/pipe2.c (pipe2): Move #ifs inside function.
10217 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
10219 quotearg: document limitations of quote_these_too
10220 * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
10221 those limitations are created.
10222 * lib/quotearg.h (set_char_quoting): Document that digits and
10223 letters that are special after backslash are not permitted.
10224 (quotearg_char): Cross-reference set_char_quoting documentation.
10226 2009-08-23 Joel E. Denny <jdenny@clemson.edu>
10228 quotearg: implement custom_quoting_style
10229 * lib/quotearg.c: (struct quoting_options): Add left_quote and
10230 right_quote fields.
10231 (set_custom_quoting): New public function.
10232 (quotearg_buffer_restyled): Add left_quote and right_quote
10233 arguments, handle them very much like locale quoting, and update
10235 (quotearg_n_custom): New public function.
10236 (quotearg_n_custom_mem): New public function.
10237 (quotearg_custom): New public function.
10238 (quotearg_custom_mem): New public function.
10239 * lib/quotearg.h: Prototype and document new public functions.
10240 (enum quoting_style): For escape_quoting_style and
10241 clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
10242 ignored even though they're otherwise like c_quoting_style.
10243 Add custom_quoting_style member and document with comparison to
10244 clocale_quoting_style.
10245 * tests/test-quotearg.c (custom_quotes): New array.
10246 (custom_results): New array.
10247 (main): Extend to test custom quoting.
10249 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
10251 quotearg: fix right quote escaping when it's in quote_these_too
10252 * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
10253 quote, be sure to prepend only one backslash.
10254 * tests/test-quotearg.c (use_quote_double_quotes): New function.
10257 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
10259 quotearg-tests: test escaping of embedded locale quotes
10260 * tests/test-quotearg.c (struct result_strings): Add member for
10262 (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
10263 (inputs): Add new input.
10264 (results_g): Add expected results.
10265 (flag_results): Likewise.
10266 (locale_results): Likewise.
10267 (compare_strings): Check those.
10269 2009-08-23 Bruno Haible <bruno@clisp.org>
10271 Tests for module 'dup3'.
10272 * modules/dup3-tests: New file.
10273 * tests/test-dup3.c: New file.
10276 * lib/unistd.in.h (dup3): New declaration.
10277 * lib/dup3.c: New file.
10278 * m4/dup3.m4: New file.
10279 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
10281 * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
10282 * modules/dup3: New file.
10283 * doc/glibc-functions/dup3.texi: Mention the new module.
10285 2009-08-23 Bruno Haible <bruno@clisp.org>
10287 Tweak the dup2 test.
10288 * tests/test-dup2.c (main): Create the test file empty. Verify that an
10289 out-of-range fd yields EBADF. Verify that after writing to /dev/null,
10290 the test file is still empty. Fix argument order of lseek.
10292 2009-08-23 Bruno Haible <bruno@clisp.org>
10294 Avoid test link errors when the modules getopt-gnu, gettext are used.
10295 * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
10296 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10298 2009-08-23 Bruno Haible <bruno@clisp.org>
10300 Fix getdtablesize() on mingw.
10301 * lib/getdtablesize.c (getdtablesize): Implement differently.
10302 * lib/unistd.in.h (getdtablesize): Improve comment.
10304 2009-08-23 Bruno Haible <bruno@clisp.org>
10306 New module 'mkostemp'.
10307 Based on Ulrich Drepper's 2007-08-10 change in glibc.
10308 * lib/stdlib.in.h (mksotemp): New declaration.
10309 * lib/mkostemp.c: New file, from glibc with modifications.
10310 * lib/tempname.h (GT_FILE): Remove outdated comment.
10311 (gen_tempname): Add flags argument.
10312 * lib/tempname.c (__GT_BIGFILE): Remove macro.
10313 (__GT_FILE): Map to 1.
10314 (small_open, large_open): Remove macros.
10315 (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
10316 * lib/mkstemp.c (mkstemp): Update.
10317 * lib/mkdtemp.c (mkdtemp): Likewise.
10318 * m4/mkostemp.m4: New file.
10319 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
10321 * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
10323 * modules/mkostemp: New file, based on modules/mkstemp.
10324 * doc/glibc-functions/mkostemp.texi: Mention the new module.
10325 * NEWS: Mention the change.
10327 2009-08-23 Bruno Haible <bruno@clisp.org>
10329 * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
10330 Reported by Eric Blake.
10332 2009-08-23 Bruno Haible <bruno@clisp.org>
10334 * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
10335 Reported by Eric Blake.
10337 2009-08-23 Bruno Haible <bruno@clisp.org>
10339 * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
10340 * modules/pipe2 (Depends-on): Likewise.
10342 2009-08-23 Eric Blake <ebb9@byu.net>
10344 fcntl-h: add O_TTY_INIT support
10345 * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
10346 * tests/test-fcntl-h.c (o): Test it.
10347 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10349 fcntl-h: rename from fcntl, in preparation for fcntl(2)
10350 * modules/fcntl: Move <fcntl.h> header replacement...
10351 * modules/fcntl-h: ...to new name, so as not to collide with
10352 like-named function.
10353 * tests/test-fcntl.c: Rename...
10354 * tests/test-fcntl-h.c: ...to this. Test FD_CLOEXEC.
10355 * modules/fcntl-tests: Rename...
10356 * modules/fcntl-h-tests: ...to this. Update test file name.
10357 * modules/chdir-long (Depends-on): Update clients.
10358 * modules/chdir-safer (Depends-on): Likewise.
10359 * modules/fcntl-safer (Depends-on): Likewise.
10360 * modules/fts (Depends-on): Likewise.
10361 * modules/mkancesdirs (Depends-on): Likewise.
10362 * modules/mkdir-p (Depends-on): Likewise.
10363 * modules/open (Depends-on): Likewise.
10364 * modules/savewd (Depends-on): Likewise.
10365 * MODULES.html.sh (systems lacking POSIX:2008): Update name.
10366 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10368 2009-08-22 Bruno Haible <bruno@clisp.org>
10370 * modules/binary-io (License): Relicense under LGPL.
10371 * modules/pipe2 (License): Likewise.
10373 2009-08-22 Bruno Haible <bruno@clisp.org>
10375 * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
10377 * lib/pipe-filter-gi.c (filter_init): Likewise.
10378 Reported by Eric Blake.
10380 2009-08-22 Bruno Haible <bruno@clisp.org>
10382 * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
10383 * modules/pipe (Depends-on): Add pipe2.
10385 2009-08-22 Bruno Haible <bruno@clisp.org>
10387 Tests for module 'pipe2'.
10388 * modules/pipe2-tests: New file.
10389 * tests/test-pipe2.c: New file.
10391 New module 'pipe2'.
10392 * lib/unistd.in.h (pipe2): New declaration.
10393 * lib/pipe2.c: New file.
10394 * m4/pipe2.m4: New file.
10395 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
10397 * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
10398 * modules/pipe2: New file.
10399 * doc/glibc-functions/pipe2.texi: Mention the new module.
10401 2009-08-22 Bruno Haible <bruno@clisp.org>
10403 Reference some new glibc functions.
10404 * doc/glibc-functions/accept4.texi: New file.
10405 * doc/glibc-functions/dup3.texi: New file.
10406 * doc/glibc-functions/mkostemp.texi: New file.
10407 * doc/glibc-functions/pipe2.texi: New file.
10408 * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
10409 (Glibc sys/socket.h): Refer to accept4.
10410 (Glibc unistd.h): Refer to dup3, pipe2.
10411 Reported by Eric Blake.
10413 2009-08-22 Jim Meyering <meyering@redhat.com>
10414 Bruno Haible <bruno@clisp.org>
10416 annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
10417 This makes it so packages using automake-1.11's silent-rules option
10418 can print e.g., a single "GEN configmake.h" line, rather than
10419 the 30+ statements that perform the job. If you want to see the
10420 actual commands, you can still run "make V=1".
10421 * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
10422 so that make output is abbreviated when those variables are defined
10424 * modules/argz: Likewise.
10425 * modules/arpa_inet: Likewise.
10426 * modules/byteswap: Likewise.
10427 * modules/configmake: Likewise.
10428 * modules/dirent: Likewise.
10429 * modules/errno: Likewise.
10430 * modules/fcntl: Likewise.
10431 * modules/float: Likewise.
10432 * modules/fnmatch: Likewise.
10433 * modules/getopt-posix: Likewise.
10434 * modules/glob: Likewise.
10435 * modules/iconv_open: Likewise.
10436 * modules/inttypes: Likewise.
10437 * modules/localcharset: Likewise.
10438 * modules/locale: Likewise.
10439 * modules/math: Likewise.
10440 * modules/netdb: Likewise.
10441 * modules/netinet_in: Likewise.
10442 * modules/poll: Likewise.
10443 * modules/posix_spawnp-tests: Likewise.
10444 * modules/sched: Likewise.
10445 * modules/search: Likewise.
10446 * modules/selinux-h: Likewise.
10447 * modules/signal: Likewise.
10448 * modules/spawn: Likewise.
10449 * modules/stdarg: Likewise.
10450 * modules/stdbool: Likewise.
10451 * modules/stddef: Likewise.
10452 * modules/stdint: Likewise.
10453 * modules/stdio: Likewise.
10454 * modules/stdlib: Likewise.
10455 * modules/string: Likewise.
10456 * modules/strings: Likewise.
10457 * modules/sys_file: Likewise.
10458 * modules/sys_ioctl: Likewise.
10459 * modules/sys_select: Likewise.
10460 * modules/sys_socket: Likewise.
10461 * modules/sys_stat: Likewise.
10462 * modules/sys_time: Likewise.
10463 * modules/sys_times: Likewise.
10464 * modules/sys_utsname: Likewise.
10465 * modules/sys_wait: Likewise.
10466 * modules/sysexits: Likewise.
10467 * modules/time: Likewise.
10468 * modules/unistd: Likewise.
10469 * modules/wchar: Likewise.
10470 * modules/wctype: Likewise.
10472 2009-08-22 Jim Meyering <meyering@redhat.com>
10474 announce-gen: detect write failure
10475 * build-aux/announce-gen: Add Coda at end.
10476 Remove equivalent-but-more-verbose block at top.
10478 2009-08-19 Akim Demaille <demaille@gostai.com>
10480 bootstrap: --help to stdout.
10481 * bootstrap (usage): Don't send --help to stderr.
10482 Use a here doc instead of a long string.
10484 2009-08-21 Eric Blake <ebb9@byu.net>
10486 test-popen-safer: split from test-popen
10487 * tests/test-popen.c (main): Move...
10488 * tests/test-popen.h: ...into new file.
10489 * tests/test-popen-safer2.c: New file.
10490 * modules/popen-tests (Files): Add test-popen.h.
10491 * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
10492 Suggested by Bruno Haible.
10494 test-fcntl-safer: split from test-open
10495 * tests/test-open.c (main): Move...
10496 * tests/test-open.h: ...into new file.
10497 * tests/test-fcntl-safer.c: New file.
10498 * modules/open-tests (Files): Add test-open.h.
10499 * modules/fcntl-safer-tests: New file.
10500 Suggested by Bruno Haible.
10502 test-fopen-safer: split from test-fopen
10503 * tests/test-fopen.c (main): Move...
10504 * tests/test-fopen.h: ...into new file.
10505 * tests/test-fopen-safer.c: New file.
10506 * modules/fopen-tests (Files): Add test-fopen.h.
10507 * modules/fopen-safer-tests: New file.
10508 Suggested by Bruno Haible.
10510 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
10512 popen-safer: test O_CLOEXEC at run-time.
10513 * lib/popen-safer.c: Test O_CLOEXEC at run-time.
10515 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
10517 fcntl: move more flags to the header
10518 * lib/cloexec.c: Do not define FD_CLOEXEC here.
10519 * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
10520 * lib/fcntl.in.h: Do both things here.
10522 2009-08-21 Jim Meyering <meyering@redhat.com>
10524 consistently remove $@-t before redirecting to it
10525 * modules/argz: Remove $@-t and $@ before redirecting to the former.
10526 * modules/alloca-opt: Likewise.
10527 * modules/byteswap: Likewise.
10528 * modules/fnmatch: Likewise.
10529 * modules/getopt-posix: Likewise.
10530 * modules/glob: Likewise.
10531 * modules/poll: Likewise.
10532 * modules/posix_spawnp-tests: Likewise.
10533 * modules/sys_socket: Likewise.
10534 * modules/sysexits: Likewise.
10536 2009-08-21 Eric Blake <ebb9@byu.net>
10538 popen: simplify access to original popen
10539 * lib/popen.c (rpl_popen): No need to worry about popen being a
10541 Reported by Bruno Haible.
10543 2009-08-20 Eric Blake <ebb9@byu.net>
10545 build: avoid some compiler warnings
10546 * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
10547 * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
10549 (new_exclude_segment, excluded_file_pattern_p)
10550 (excluded_file_name_p): Reduce scope.
10551 * lib/vasnprintf.c (decimal_point_char): Avoid warning on
10552 old-style declaration.
10554 2009-08-20 Simon Josefsson <simon@josefsson.org>
10556 * tests/test-exclude1.sh: Handle Windows EOL.
10557 * tests/test-exclude2.sh: Likewise.
10558 * tests/test-exclude3.sh: Likewise.
10559 * tests/test-exclude4.sh: Likewise.
10560 * tests/test-exclude5.sh: Likewise.
10561 * tests/test-exclude6.sh: Likewise.
10562 * tests/test-exclude7.sh: Likewise.
10564 2009-08-19 Akim Demaille <demaille@gostai.com>
10566 bootstrap: find sha1sum when named gsha1sum.
10567 * bootstrap (find_tool): New.
10571 2009-08-20 Jim Meyering <meyering@redhat.com>
10573 maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
10574 * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
10575 expression that converts "." in a file name to "\." in the resulting
10576 regexp. Start with a dummy statement, so that prior shell variable
10577 definitions are expanded portably. Reported by Simon Josefsson.
10579 2009-08-20 Paolo Bonzini <bonzini@gnu.org>
10581 Fix polling for writeability of a screen buffer.
10582 * lib/poll.c: Distinguish input and screen buffers for the
10583 Win32 implementation.
10584 * lib/select.c: Likewise.
10586 2009-08-19 Eric Blake <ebb9@byu.net>
10588 popen-safer: prevent popen from clobbering std descriptors
10589 * modules/popen-safer: New file.
10590 * lib/popen-safer.c: Likewise.
10591 * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
10592 * lib/stdio--.h (popen): Provide override.
10593 * lib/stdio-safer.h (popen_safer): Provide declaration.
10594 * tests/test-popen.c (includes): Partially test this.
10595 * modules/popen-safer-tests: New file, for more tests.
10596 * tests/test-popen-safer.c: Likewise.
10597 * MODULES.html.sh (file stream based Input/Output): Mention it.
10599 tests: test some of the *-safer modules
10600 * modules/fopen-safer (Depends-on): Add fopen.
10601 * modules/fcntl-safer (Depends-on): Add fcntl.
10602 * modules/stdlib-safer (Depends-on): Add stdlib.
10603 (configure.ac): Set indicator.
10604 * modules/unistd-safer (configure.ac): Likewise.
10605 * modules/tmpfile-safer (configure.ac): Likewise.
10606 (Depends-on): Add tmpfile.
10607 * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
10609 * tests/test-fopen.c (includes): Test safer versions when they are
10611 * tests/test-open.c (includes): Likewise.
10613 popen: fix cygwin 1.5 bug when stdin closed
10614 * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
10615 * modules/popen: New file.
10616 * modules/popen-tests: Likewise.
10617 * tests/test-popen.c: Likewise.
10618 * m4/popen.m4: Likewise.
10619 * lib/popen.c: Likewise.
10620 * lib/stdio.in.h (popen): New declaration.
10621 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
10622 * modules/stdio (Makefile.am): Likewise.
10623 * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
10625 2009-08-17 Joel E. Denny <jdenny@clemson.edu>
10627 maint.mk: give full control over update-copyright exclusions
10628 * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
10629 ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
10630 (update-copyright): Don't force inclusion of top-level
10631 ChangeLog. Don't force exclusion of all COPYING files, but make
10632 them the default exclusion instead.
10634 2009-08-16 Bruno Haible <bruno@clisp.org>
10636 Fix test failures on Solaris 10.
10637 * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
10638 tests when Solaris iconv() is used.
10639 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
10640 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
10641 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
10642 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
10643 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
10645 2009-08-16 Bruno Haible <bruno@clisp.org>
10647 Fix test failures on Solaris 10.
10648 * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
10649 'tr' program and pass it as first argument.
10650 * tests/test-pipe-filter-gi1.sh: Likewise.
10651 * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
10652 program as first argument.
10653 * tests/test-pipe-filter-gi1.c (main): Likewise.
10655 2009-08-16 Eric Blake <ebb9@byu.net>
10657 fpurge: fix previous commits
10658 * modules/fpurge (Makefile.am): Make replacement conditional,
10659 partially reverting 2007-04-29 change; missed in previous
10661 * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
10664 2009-08-16 Bruno Haible <bruno@clisp.org>
10666 Clarify fpurge's effect on the file position.
10667 * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
10668 * tests/test-fpurge.c (main): Make a second pass for checking the file
10671 2009-08-16 Bruno Haible <bruno@clisp.org>
10673 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
10674 declaration of fpurge is missing.
10675 * tests/test-fpurge.c (main): Check that the file has not more contents
10676 than expected. Close the file before removing it.
10678 2009-08-15 Eric Blake <ebb9@byu.net>
10680 fpurge: don't wrap working cygwin implementation
10681 * lib/fpurge.c (fpurge): Fix comment typo.
10682 * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
10683 1.7 to avoid replacement.
10684 * tests/test-fpurge.c (main): Enhance test.
10686 2009-08-15 Eric Blake <ebb9@byu.net>
10687 and Jim Meyering <meyering@redhat.com>
10689 test-update-copyright: skip if perl is insufficient
10690 * tests/test-update-copyright.sh: Failure to run maintainer tool
10691 should not cause testsuite failure on cygwin 1.5.
10693 2009-08-14 Eric Blake <ebb9@byu.net>
10695 doc: mention more functions added in cygwin 1.7.0
10696 * doc/posix-headers/limits.texi (limits.h): Update for recent
10698 * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
10699 * doc/posix-functions/wordexp.texi (wordexp): Likewise.
10700 * doc/posix-functions/wordfree.texi (wordfree): Likewise.
10701 * doc/posix-functions/setlocale.texi (setlocale): Likewise.
10702 * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
10704 2009-08-14 Eric Blake <ebb9@byu.net>
10706 maint.mk: simplify update-copyright rule
10707 * top/maint.mk (update-copyright-local): Delete, and document how
10708 to do it in cfg.mk instead.
10709 (update-copyright-exclude-regexp): Delete, and document how to do
10710 it in .x-update-copyright instead.
10711 (update-copyright): Simplify, thanks to VC_LIST_EXCEPT. Don't
10714 2009-08-14 Bruno Haible <bruno@clisp.org>
10716 * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
10718 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
10720 maint.mk: support update-copyright-env
10721 * top/maint.mk (update-copyright-env): Define place-holder.
10722 (update-copyright): Expand $(update-copyright-env) before
10723 invoking update-copyright.
10725 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
10727 update-copyright: implement forced reformatting
10728 * build-aux/update-copyright: Implement and document
10729 UPDATE_COPYRIGHT_FORCE.
10730 * tests/test-update-copyright.sh: Test it.
10732 2009-08-14 Eric Blake <ebb9@byu.net>
10733 and Bruno Haible <bruno@clisp.org>
10735 stddef: fix NetBSD 5.0 NULL bug, rather than working around it
10736 * tests/test-locale.c: Revert previous patch related to NULL.
10737 * tests/test-stdio.c: Likewise.
10738 * tests/test-stdlib.c: Likewise.
10739 * tests/test-string.c: Likewise.
10740 * tests/test-unistd.c: Likewise.
10741 * modules/time-tests (Depends-on): Add verify.
10742 * modules/wchar-tests (Depends-on): Likewise.
10743 * tests/test-time.c: Test for NULL compliance.
10744 * tests/test-wchar.c: Likewise.
10745 * modules/locale (Depends-on): Add stddef.
10746 * modules/stdio (Depends-on): Likewise.
10747 * modules/stdlib (Depends-on): Likewise.
10748 * modules/string (Depends-on): Likewise.
10749 * modules/time (Depends-on): Likewise.
10750 * modules/unistd (Depends-on): Likewise.
10751 * modules/wchar (Depends-on): Likewise.
10752 * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
10753 * lib/stdlib.in.h (includes): Likewise.
10754 * lib/string.in.h (includes): Likewise.
10755 * lib/time.in.h (includes): Likewise.
10756 * lib/unistd.in.h (includes): Likewise.
10757 * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
10759 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
10760 * m4/stddef_h.m4: New file.
10761 * modules/stddef: Likewise.
10762 * lib/stddef.in.h: Likewise.
10763 * modules/stddef-tests: Likewise.
10764 * tests/test-stddef.c: Likewise.
10765 * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
10766 * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
10767 * doc/posix-headers/locale.texi (locale.h): Likewise.
10768 * doc/posix-headers/stdio.texi (stdio.h): Likewise.
10769 * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10770 * doc/posix-headers/string.texi (string.h): Likewise.
10771 * doc/posix-headers/time.texi (time.h): Likewise.
10772 * doc/posix-headers/unistd.texi (unistd.h): Likewise.
10773 * doc/posix-headers/wchar.texi (wchar.h): Likewise.
10775 2009-08-14 Eric Blake <ebb9@byu.net>
10777 doc: improve git diff of texinfo files
10778 * .gitattributes: Add rule for *.texi files, with hint on how to
10780 Copied from m4, and based on a report by Bruno Haible.
10782 2009-08-14 Bruno Haible <bruno@clisp.org>
10784 Disable multithread support by default on Cygwin 1.5.x for real.
10785 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
10787 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
10789 update-copyright: much ado about intervals
10790 * build-aux/update-copyright: Implement and document
10791 UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
10792 of copyright year intervals.
10793 Also, document UPDATE_COPYRIGHT_YEAR.
10794 * tests/test-update-copyright.sh: Test it.
10796 update-copyright: convert 2-digit to 4-digit years
10797 * build-aux/update-copyright: Implement and document.
10798 * tests/test-update-copyright.sh: Update.
10800 2009-08-14 Jim Meyering <meyering@redhat.com>
10802 test-exclude: avoid coreutils "make check" failure
10803 * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
10804 just as in test-argmatch.c.
10806 2009-08-13 Eric Blake <ebb9@byu.net>
10808 test-dup2: fix bad assumption
10809 * tests/test-dup2.c (main): Tolerate leaked fds from environment.
10810 Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
10812 test-version-etc: fix CRLF portability issue
10813 * tests/test-version-etc.sh: Use tr, not sed, as not all sed
10815 * tests/test-argp-version-etc-1.sh: Likewise.
10817 getopt: update client modules
10818 * modules/argp (Depends-on): Use getopt-gnu.
10819 * modules/git-merge-changelog (Depends-on): Likewise.
10820 * modules/long-options (Depends-on): Likewise.
10821 * modules/xstrtol (Depends-on): Likewise.
10823 2009-08-13 Simon Josefsson <simon@josefsson.org>
10825 * tests/test-version-etc.sh: Don't fail on different
10826 project/version. Don't fail on CRLF differences. Rewrite to use
10827 multiple -e instead of multiple sed forks, suggested by Eric Blake
10829 * tests/test-argp-version-etc-1.sh: Likewise.
10831 2009-08-13 Simon Josefsson <simon@josefsson.org>
10833 * tests/test-version-etc.sh: Don't fail on different
10836 2009-08-12 Bruno Haible <bruno@clisp.org>
10838 Tests for modules 'getopt-posix', 'getopt-gnu'.
10839 * modules/getopt-posix-tests: New file.
10840 * tests/test-getopt.c: New file.
10841 * tests/test-getopt.h: New file.
10842 * tests/test-getopt_long.h: New file.
10844 New modules 'getopt-posix', 'getopt-gnu'.
10845 * modules/getopt-gnu: New file, renamed from modules/getopt.
10846 * modules/getopt-posix: New file.
10847 * modules/getopt: Turn into an obsolete alias for getopt-gnu.
10848 * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
10849 (gl_GETOPT): Remove macro.
10850 (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
10851 Disable the test against BSD systems that declare optreset. Test
10852 against mingw bug. Test against lack of support of optional arguments
10854 * doc/glibc-headers/getopt.texi: Update module name and list of
10855 relevant platforms.
10856 * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
10857 'getopt-gnu' and more portability problems.
10858 * NEWS: Mention the changes.
10860 2009-08-12 Bruno Haible <bruno@clisp.org>
10862 Ensure that optarg etc. get declared by <unistd.h>.
10863 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
10864 AC_USE_SYSTEM_EXTENSIONS.
10865 * modules/getopt (Depends-on): Add 'extensions'.
10867 2009-08-12 Bruno Haible <bruno@clisp.org>
10869 Avoid test link errors.
10870 * modules/pipe-filter-ii-tests (Makefile.am): Define
10871 test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
10872 * modules/pipe-filter-gi-tests (Makefile.am): Define
10873 test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
10874 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10876 2009-08-12 Bruno Haible <bruno@clisp.org>
10878 * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
10879 gl_GETOPT_SUBSTITUTE before.
10880 (gl_GETOPT): Use it.
10881 * m4/argp.m4 (gl_ARGP): Update.
10882 Reported by Sergey Poznyakoff.
10884 * m4/getopt.m4: Reorder macros.
10885 (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
10886 (gl_GETOPT_SUBSTITUTE): Remove macro.
10888 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
10890 Minor improvement in gitlog-to-changelog
10892 * build-aux/gitlog-to-changelog: New option `--format' makes
10893 output format string configurable.
10895 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
10897 Optimize exclude: use hash tables for non-wildcard patterns.
10899 * lib/exclude.c: Include hash.h and mbuiter.h
10900 (struct exclude_pattern, exclude_segment): New data types.
10901 (struct exclude): Rewrite.
10902 (fnmatch_pattern_has_wildcards): New function.
10903 (new_exclude_segment, free_exclude_segment): New functions.
10904 (excluded_file_pattern_p, excluded_file_name_p): New functions.
10905 (excluded_file_name, add_exclude): Rewrite using new struct exclude.
10906 * lib/exclude.h (is_fnmatch_pattern): New prototype.
10907 * modules/exclude: Depend on hash and mbuiter.
10909 * modules/exclude-tests: New file.
10910 * tests/test-exclude.c: New file.
10911 * tests/test-exclude1.sh: New file.
10912 * tests/test-exclude2.sh: New file.
10913 * tests/test-exclude3.sh: New file.
10914 * tests/test-exclude4.sh: New file.
10915 * tests/test-exclude5.sh: New file.
10916 * tests/test-exclude6.sh: New file.
10917 * tests/test-exclude7.sh: New file.
10919 2009-08-12 Bruno Haible <bruno@clisp.org>
10921 Ensure that getopt() gets declared by <unistd.h>.
10922 * lib/unistd.in.h: Conditionally include getopt.h.
10923 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
10924 Set GNULIB_UNISTD_H_GETOPT.
10925 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10926 GNULIB_UNISTD_H_GETOPT.
10927 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
10929 2009-08-12 Bruno Haible <bruno@clisp.org>
10932 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
10933 gl_replace_getopt instead of GETOPT_H.
10935 2009-08-12 Bruno Haible <bruno@clisp.org>
10937 * m4/getopt.m4: Add comments.
10939 2009-08-12 Bruno Haible <bruno@clisp.org>
10941 Disable multithread support by default on Cygwin 1.5.x.
10942 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
10943 set gl_use_threads=no if not specified otherwise.
10945 2009-08-11 Bruno Haible <bruno@clisp.org>
10947 Avoid compilation error on NetBSD 5.0.
10948 * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
10949 * tests/test-stdio.c: Likewise.
10950 * tests/test-stdlib.c: Likewise.
10951 * tests/test-string.c: Likewise.
10952 * tests/test-unistd.c: Likewise.
10953 Reported by Greg Troxel <gdt@ir.bbn.com>
10954 at <https://savannah.gnu.org/support/?106973>.
10956 2009-08-11 Bruno Haible <bruno@clisp.org>
10958 * modules/dup2-tests (Depends-on): Remove close.
10960 Undo 2009-07-19 commit.
10961 * modules/acl-tests (Depends-on): Remove close.
10962 * modules/binary-io-tests (Depends-on): Likewise.
10963 * modules/closein-tests (Depends-on): Likewise.
10964 * modules/flock-tests (Depends-on): Likewise.
10965 * modules/fsync-tests (Depends-on): Likewise.
10966 * modules/lseek-tests (Depends-on): Likewise.
10967 * modules/pipe-tests (Depends-on): Likewise.
10968 * modules/posix_spawn-tests (Depends-on): Likewise.
10969 * modules/posix_spawnp-tests (Depends-on): Likewise.
10970 * modules/stat-time-tests (Depends-on): Likewise.
10971 * modules/yesno-tests (Depends-on): Likewise.
10973 2009-08-10 Bruno Haible <bruno@clisp.org>
10975 * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
10977 2009-08-10 Bruno Haible <bruno@clisp.org>
10980 * lib/write.c (rpl_write): Cast result of _get_osfhandle.
10982 2009-08-10 Bruno Haible <bruno@clisp.org>
10984 Don't optimize AC_LIBOBJs, as they may appear in different contexts.
10985 * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
10986 not only the first time.
10987 * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
10988 * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
10989 * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
10990 is 1, not only the the first time.
10992 2009-08-10 Bruno Haible <bruno@clisp.org>
10994 Make it possible to use module 'gethostname' without module 'close'.
10995 * lib/unistd.in.h (close): Evoke a link error only if
10996 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
10997 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10998 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10999 * modules/unistd (Makefile.am): Substitute
11000 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11001 * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
11002 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11003 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
11004 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11005 * modules/sys_ioctl (Makefile.am): Substitute
11006 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11007 * modules/socket (configure.ac): On native Windows, set
11008 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
11009 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11010 Reported by Sam Steingold <sds@gnu.org>.
11012 2009-08-10 Bruno Haible <bruno@clisp.org>
11014 * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
11015 * modules/ioctl (configure.ac): Likewise.
11017 2009-08-10 Bruno Haible <bruno@clisp.org>
11019 Avoid collision between gnulib wrapper and libintl wrapper.
11020 * lib/stdio-write.c (printf): Don't define if a printf wrapper is
11021 already defined in intl/printf.c.
11022 (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
11023 (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
11025 2009-08-09 Bruno Haible <bruno@clisp.org>
11027 Make <sys/select.h> really self-contained, also on Solaris 10.
11028 * lib/sys_select.in.h: Include <string.h>.
11029 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
11030 Solaris 10 problem.
11031 * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
11032 * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
11033 Reported by Jim Meyering.
11035 2009-08-09 Bruno Haible <bruno@clisp.org>
11037 Avoid warnings from 'aclocal' that are due to a use of macro name
11038 AM_XGETTEXT_OPTION that is not defined in automake.
11039 * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
11041 * modules/error (configure.ac): Likewise.
11042 * modules/propername (configure.ac): Likewise.
11043 * modules/vasprintf (configure.ac): Likewise.
11044 * modules/verror (configure.ac): Likewise.
11045 * modules/xprintf (configure.ac): Likewise.
11046 * modules/xvasprintf (configure.ac): Likewise.
11048 2009-08-08 Bruno Haible <bruno@clisp.org>
11050 Avoid compilation error in C++ mode.
11051 * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
11052 Reported by Sam Steingold <sds@gnu.org>.
11054 2009-08-08 Bruno Haible <bruno@clisp.org>
11056 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
11057 for the various Unix platforms.
11058 * doc/posix-headers/limits.texi: Update platforms list regarding
11060 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11062 2009-08-07 Jim Meyering <meyering@redhat.com>
11064 selinux-at: fix typo in a comment
11065 * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
11066 Spotted by Paolo Bonzini.
11068 selinux-at: remove redundant m4 code, add documentation
11069 * modules/selinux-at (configure.ac): Remove redundant code.
11070 LIB_SELINUX is already set via the dependent module, selinux-h.
11071 (Include): Add quotes around selinux-at.h.
11072 * lib/selinux-at.h: Add documentation.
11073 Reported by Bruno Haible in
11074 http://marc.info/?l=gnulib-bug&m=124958988300749
11076 2009-08-07 Bruno Haible <bruno@clisp.org>
11078 Avoid link error on MacOS X 10.3 and 10.4.
11079 * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
11080 on non-ELF systems.
11081 * lib/argp-pv.c (argp_program_version): Likewise.
11082 Reported by Simon Josefsson.
11084 2009-08-07 Simon Josefsson <simon@josefsson.org>
11086 * tests/test-version-etc.sh: Use $EXEEXT.
11088 2009-08-06 Joel E. Denny <jdenny@clemson.edu>
11090 update-copyright: update documentation to point to maint.mk
11091 * build-aux/update-copyright: Here.
11093 2009-08-06 Jim Meyering <meyering@redhat.com>
11095 maint.mk: support update-copyright-local
11096 * top/maint.mk (update-copyright-local): Define place-holder.
11097 (update-copyright): Depend on $(update-copyright-local).
11099 2009-08-06 Jim Meyering <meyering@redhat.com>
11101 selinux-at: new module
11102 Initially written for coreutils, this module will soon be
11103 used by findutils, too.
11104 * MODULES.html.sh [Misc]: Add selinux-at.
11105 * lib/selinux-at.h: New file, from coreutils.
11106 * lib/selinux-at.c: Likewise.
11107 * modules/selinux-at: Likewise.
11108 (License): Change from LGPL to GPL, since it depends
11109 on the GPL'd openat module.
11112 * README: Remove references to cogito.
11113 Remove cvs-repo-updating instructions from 2007.
11114 Don't imply that CVS is better if you have limited disk space.
11116 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11118 update-copyright: support C-style comments
11119 * build-aux/update-copyright: Implement and document.
11120 * tests/test-update-copyright.sh: Test.
11122 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11124 update-copyright: support omitted "(C)"
11125 * build-aux/update-copyright: Implement and document. Also,
11126 allow variable whitespace before "(C)".
11127 * tests/test-update-copyright.sh: Test.
11129 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11131 update-copyright: don't trip on non-FSF copyright statements
11132 * build-aux/update-copyright: Fix so that the first correctly
11133 formatted FSF copyright statement is recognized no matter what
11134 appears before it. Update documentation.
11135 * tests/test-update-copyright.sh: Test that.
11137 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11139 update-copyright: clean up code a little
11140 * build-aux/update-copyright: Append "_re" to the name of any
11141 variable holding a regular expression.
11142 Replace "old" and "new" with "stmt" in variable names.
11143 Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
11145 Format code more consistently.
11147 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
11149 update-copyright-tests: improve portability
11150 * tests/test-update-copyright.sh: Use cmp if diff cannot handle
11151 -u or /dev/null. Suggested by Jim Meyering and Eric Blake.
11153 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
11155 update-copyright: support @copyright{} and ©
11156 * build-aux/update-copyright: Implement and document.
11157 * tests/test-update-copyright.sh: Test.
11159 2009-08-04 Jim Meyering <meyering@redhat.com>
11161 update-copyright-tests: correctly test EOL=\r\n handling
11162 * tests/test-update-copyright.sh: Put \r at the end of some lines
11163 for the dos-eol tests. Based on a patch by Joel E. Denny.
11165 maint.mk: make update-copyright exclusion list more configurable
11166 * top/maint.mk (update-copyright): Default to excluding COPYING,
11167 but allow an override, in case someone does want to update that file.
11169 maint.mk: don't update copyright date in COPYING
11170 * top/maint.mk (update-copyright): Exclude COPYING.
11172 maint.mk: add a copyright-updating rule
11173 * top/maint.mk (update-copyright): New rule.
11174 Derived from coreutils/Makefile.am.
11176 update-copyright: rename some variables
11177 * build-aux/update-copyright: Rename a few variables for clarity.
11178 Tweak syntax. List Joel E. Denny as coauthor.
11180 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
11182 update-copyright: fix bug for 2-digit last year and add tests
11183 * build-aux/update-copyright: Fix bug.
11184 Use UPDATE_COPYRIGHT_YEAR from environment as current year if
11186 * modules/update-copyright-tests: New
11187 * tests/test-update-copyright.sh: New.
11189 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
11191 update-copyright: handle leading tabs in line prefix
11192 * build-aux/update-copyright: Count leading tabs as 8 spaces
11193 when computing margin. This helps with the formatting of
11194 ChangeLogs, for example.
11195 Fix documentation a little.
11197 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
11199 update-copyright: support EOL=\r\n
11200 * build-aux/update-copyright: Implement that.
11202 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
11204 update-copyright: automatically format copyright statements
11205 * build-aux/update-copyright: Implement that.
11206 Also, be a little more predictable and safer by always failing
11207 when the full copyright format is not perfectly recognized as an
11208 unbroken whole. Discussed at
11209 <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
11210 Rewrite documentation.
11212 2009-08-03 Bruno Haible <bruno@clisp.org>
11214 * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
11216 2009-08-02 Bruno Haible <bruno@clisp.org>
11218 Tests for module 'uname'.
11219 * modules/uname-tests: New file.
11220 * tests/test-uname.c: New file.
11222 New module 'uname'.
11223 * lib/uname.c: New file.
11224 * m4/uname.m4: New file.
11225 * modules/uname: New file.
11226 * doc/posix-functions/uname.texi: Mention the new module.
11228 2009-08-02 Bruno Haible <bruno@clisp.org>
11230 Tests for module 'sys_utsname'.
11231 * modules/sys_utsname-tests: New file.
11232 * tests/test-sys_utsname.c: New file.
11234 New module 'sys_utsname'.
11235 * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
11236 * m4/sys_utsname_h.m4: New file.
11237 * modules/sys_utsname: New file.
11238 * doc/posix-headers/sys_utsname.texi: Mention the new module.
11240 2009-08-02 Bruno Haible <bruno@clisp.org>
11242 Implicitly initialize the sockets library.
11243 * lib/gethostname.c: Include sockets.h.
11244 (rpl_gethostname): Invoke gl_sockets_startup.
11245 * lib/socket.c: Include sockets.h.
11246 (rpl_socket): Invoke gl_sockets_startup.
11247 * modules/gethostname (Depends-on): Add sockets.
11248 * modules/socket (Depends-on): Likewise.
11249 * tests/test-poll.c: Don't include sockets.h.
11250 (main): Don't invoke gl_sockets_startup.
11251 * tests/test-select.c: Don't include sockets.h.
11252 (main): Don't invoke gl_sockets_startup.
11254 2009-08-02 Bruno Haible <bruno@clisp.org>
11256 Allow multiple calls to gl_sockets_startup.
11257 * lib/sockets.c (initialized_sockets_version): New variable.
11258 (gl_sockets_startup): Do nothing if already called for this or a higher
11260 (gl_sockets_cleanup): Reset initialized_sockets_version.
11262 2009-08-03 Simon Josefsson <simon@josefsson.org>
11264 * tests/test-argp-version-etc-1.sh: Use EXEEXT. Don't fail on
11265 different project/version.
11267 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
11268 Bruno Haible <bruno@clisp.org>
11270 Tests for module 'pipe-filter-gi'.
11271 * modules/pipe-filter-gi-tests: New file.
11272 * tests/test-pipe-filter-gi1.sh: New file.
11273 * tests/test-pipe-filter-gi1.c: New file.
11274 * tests/test-pipe-filter-gi2.sh: New file.
11275 * tests/test-pipe-filter-gi2-main.c: New file.
11276 * tests/test-pipe-filter-gi2-child.c: New file.
11278 New module 'pipe-filter-gi'.
11279 * lib/pipe-filter-gi.c: New file.
11280 * modules/pipe-filter-gi: New file.
11282 2009-08-02 Bruno Haible <bruno@clisp.org>
11283 Paolo Bonzini <bonzini@gnu.org>
11285 Tests for module 'pipe-filter-ii'.
11286 * modules/pipe-filter-ii-tests: New file.
11287 * tests/test-pipe-filter-ii1.sh: New file.
11288 * tests/test-pipe-filter-ii1.c: New file.
11289 * tests/test-pipe-filter-ii2.sh: New file.
11290 * tests/test-pipe-filter-ii2-main.c: New file.
11291 * tests/test-pipe-filter-ii2-child.c: New file.
11293 New module 'pipe-filter-ii'.
11294 * lib/pipe-filter.h: New file.
11295 * lib/pipe-filter-ii.c: New file.
11296 * lib/pipe-filter-aux.h: New file.
11297 * modules/pipe-filter-ii: New file.
11299 2009-08-02 Simon Josefsson <simon@josefsson.org>
11301 * lib/gc-libgcrypt.c: Change copyright to FSF.
11302 * lib/gc-gnulib.c: Likewise.
11304 2009-08-02 Martin Lambers <marlam@marlam.de> (tiny change)
11306 * lib/gethostname.c: Include limits.h.
11308 2009-08-02 Simon Josefsson <simon@josefsson.org>
11309 Bruno Haible <bruno@clisp.org>
11311 Ensure HOST_NAME_MAX as part of the gethostname module.
11312 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
11313 define also HOST_NAME_MAX.
11314 * tests/test-gethostname.c: Include <limits.h>.
11315 (main): Check also HOST_NAME_MAX.
11316 * doc/posix-headers/limits.texi: Document the mingw problem.
11318 2009-08-02 Bruno Haible <bruno@clisp.org>
11320 * lib/gethostname.c (gethostname): Fix handling of large len argument.
11323 2009-03-31 Simon Josefsson <simon@josefsson.org>
11325 * lib/gethostname.c: Add Windows wrapper.
11326 * m4/gethostname.m4: Look for gethostname in -lws2_32.
11327 * modules/gethostname: Depend on sys_socket & errno, for also
11328 added lib/w32sock.h. Add GETHOSTNAME_LIB link directive.
11329 * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
11331 2009-07-31 Jim Meyering <meyering@redhat.com>
11333 getloadavg: fix symbol name in comment
11334 * lib/getloadavg.c: Correct a typo I introduced when adding
11335 comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
11336 Matt Kraai spotted the problem.
11338 2009-07-29 Matt Kraai <mkraai@beckman.com>
11340 getloadavg: check whether n_name is a pointer, for QNX 6.4.1
11341 * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
11342 code also if ! defined N_NAME_POINTER.
11343 * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
11344 This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
11345 but the n_name member is a 12-byte array.
11347 2009-07-29 Joel E. Denny <jdenny@clemson.edu>
11349 update-copyright: generalize comment handling
11350 * build-aux/update-copyright: Handle copyright statements
11351 within more comment styles.
11353 Report any file with an external copyright holder or parse failure.
11355 2009-07-29 Jim Meyering <meyering@redhat.com>
11357 mktime: correct setting of REPLACE_MKTIME
11358 * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
11360 update-copyright: new module
11361 * modules/update-copyright: New file.
11362 * build-aux/update-copyright: New file.
11363 * MODULES.html.sh (maint+release support): Add update-copyright.
11365 2009-07-27 Bruno Haible <bruno@clisp.org>
11367 Fix compilation error when <ctime> is used and mktime is replaced.
11368 * lib/time.in.h (mktime): New declaration.
11369 * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
11370 REPLACE_MKTIME instead of defining mktime in config.h.
11371 * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
11372 * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
11373 Reported by Ross McFarland <rwmcfa1@neces.com>.
11375 2009-07-27 Bruno Haible <bruno@clisp.org>
11377 * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
11378 Reported by Matt Kraai <mkraai@beckman.com>.
11380 2009-07-25 Jim Meyering <meyering@redhat.com>
11382 maint.mk: avoid warnings about missing files
11383 * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
11384 diagnostic when .prev-version does not exist.
11385 (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
11386 (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
11387 nonexistent cfg.mk.
11388 Suggestions from Simon Josefsson.
11390 2009-07-25 Bruno Haible <bruno@clisp.org>
11392 * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
11393 defined as macros. Needed on QNX 6.4.1.
11394 Reported by Matt Kraai <mkraai@beckman.com>.
11396 2009-07-23 Jim Meyering <meyering@redhat.com>
11398 maint.mk: invoke "make dist" with a working value of XZ_OPT
11399 * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
11401 2009-07-22 Matt Kraai <mkraai@beckman.com> (tiny change)
11403 Make fseeko.c compile on QNX.
11404 * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
11406 2009-07-22 Peter Simons <simons@cryp.to>
11408 C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
11409 * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
11410 * lib/md4.h: Likewise.
11411 * lib/md5.h: Likewise.
11412 * lib/sha1.h: Likewise.
11413 * lib/sha256.h: Likewise.
11414 * lib/sha512.h: Likewise.
11416 tests-sha1: don't assign literal string to 'char *' variable
11417 * tests/test-sha1.c (main): Declare locals with "const" to match
11418 attributes of the right hand side.
11420 2009-07-21 Eric Blake <ebb9@byu.net>
11422 dup2: fix more mingw problems
11423 * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
11425 * doc/posix-functions/dup2.texi (dup2): Document the bug.
11426 * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
11427 * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
11428 (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
11429 care of mingw bugs.
11431 2009-07-21 Jim Meyering <meyering@redhat.com>
11433 vc-list-files: avoid failure when /bin/sh is dash
11434 * build-aux/vc-list-files: Avoid a shell portability problem with dash.
11435 On some Debian based systems, /bin/sh is a symlink to dash, and running
11436 this command would omit the "/" following each 'tests' prefix:
11437 dash -x build-aux/vc-list-files -C . tests
11438 That is because bash and dash work differently:
11439 $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
11443 2009-07-21 Eric Blake <ebb9@byu.net>
11445 dup2-tests: test previous patch
11446 * modules/dup2-tests: New file.
11447 * tests/test-dup2.c: Likewise.
11448 * tests/test-open.c (main): Avoid unspecified behavior.
11449 * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
11452 dup2: work around mingw and cygwin 1.5 bug
11453 * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
11454 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11455 * modules/unistd (Makefile.am): Substitute it.
11456 * lib/unistd.in.h (dup2): Declare the replacement.
11457 * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
11458 * doc/posix-functions/dup2.texi (dup2): Document the bugs.
11459 * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
11460 * modules/execute (Depends-on): Add dup2.
11461 * modules/fseterr (Depends-on): Likewise.
11462 * modules/pipe (Depends-on): Likewise.
11463 * modules/posix_spawn-internal (Depends-on): Likewise.
11465 2009-07-21 Bruno Haible <bruno@clisp.org>
11467 * modules/.gitattributes: New file.
11469 2009-07-20 Bruno Haible <bruno@clisp.org>
11471 * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
11474 2009-07-20 Eric Blake <ebb9@byu.net>
11476 test-pipe: make a bit more robust.
11477 * tests/test-pipe.c (myerr): Allow error messages regardless of
11478 what we do to stderr.
11479 (test_pipe): Rearrange to avoid deadlock.
11480 (child_main): Try a larger read, to ensure we avoided deadlock.
11481 * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
11482 * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
11485 2009-07-19 Jim Meyering <meyering@redhat.com>
11487 fts: avoid false-positive cycle-detection
11488 * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
11489 for each new command line argument.
11491 2009-07-19 Bruno Haible <bruno@clisp.org>
11493 Fix build error on mingw with the modules sys_select and unistd.
11494 * modules/acl-tests (Depends-on): Add close.
11495 * modules/binary-io-tests (Depends-on): Likewise.
11496 * modules/closein-tests (Depends-on): Likewise.
11497 * modules/flock-tests (Depends-on): Likewise.
11498 * modules/fsync-tests (Depends-on): Likewise.
11499 * modules/lseek-tests (Depends-on): Likewise.
11500 * modules/pipe-tests (Depends-on): Likewise.
11501 * modules/posix_spawn-tests (Depends-on): Likewise.
11502 * modules/posix_spawnp-tests (Depends-on): Likewise.
11503 * modules/stat-time-tests (Depends-on): Likewise.
11504 * modules/yesno-tests (Depends-on): Likewise.
11506 2009-07-19 Bruno Haible <bruno@clisp.org>
11508 Unify conditionals.
11509 * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
11510 macros, not at the compiler macros.
11511 * lib/pipe.c: Likewise.
11512 * lib/execute.c: Likewise.
11513 * lib/spawni.c: Likewise.
11515 2009-07-19 Bruno Haible <bruno@clisp.org>
11517 Fix handling of closed stdin/stdout/stderr on mingw.
11518 * lib/w32spawn.h: Include unistd.h.
11519 (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
11520 file descriptor with O_NOINHERIT flag.
11521 (fd_safer_noinherit): New function, based on fd-safer.c.
11522 (dup_safer_noinherit): New function, based on dup-safer.c.
11523 (undup_safer_noinherit): New function.
11524 * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
11525 dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
11526 * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
11527 instead of fd_safer.
11528 * tests/test-pipe.c: Include <windows.h>.
11529 (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
11531 * tests/test-pipe.c (child_main, parent_main): New functions, extracted
11533 (test_pipe): Pass an extra argument for disambiguation.
11534 (main): Invoke parent_main or child_main.
11536 * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
11539 2009-07-18 Eric Blake <ebb9@byu.net>
11541 test-pipe: fix mingw build
11542 * tests/test-pipe.c (main): Avoid fcntl on mingw.
11544 2009-07-18 Bruno Haible <bruno@clisp.org>
11546 * modules/pipe-tests (Makefile.am): Fix typo.
11548 2009-07-18 Eric Blake <ebb9@byu.net>
11550 error: fix mingw build
11551 * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
11552 Reported by Bruno Haible.
11554 error: avoid undefined use of stdout
11555 * lib/error.c (error, error_at_line): Check that fd 1 is open
11556 before flushing stdout. Avoids a crash on cygwin when libsigsegv
11557 is handling faults and the close_stdout module wants to report the
11558 detection of closed stdout as an error.
11560 2009-07-17 Eric Blake <ebb9@byu.net>
11562 pipe: be robust in face of closed fds
11563 * lib/pipe.c (create_pipe): Closed standard descriptors in parent
11564 should cause child to misbehave.
11565 * modules/pipe-tests: New module.
11566 * tests/test-pipe.c: New file.
11567 * tests/test-pipe.sh: New file.
11568 Reported by Akim Demaille.
11570 2009-07-14 Bruno Haible <bruno@clisp.org>
11572 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
11573 Reported by anonymous kc.
11575 2009-07-07 Jim Meyering <meyering@redhat.com>
11577 maint.mk: don't look for translatable strings in *.m4 or *.mk
11578 * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
11579 when searching for translatable strings.
11581 2009-07-05 Jim Meyering <meyering@redhat.com>
11583 remove superfluous parentheses in STREQ definition
11584 * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
11585 * lib/getugroups.c (STREQ): Likewise.
11586 * lib/fnmatch.c (STREQ): Likewise.
11587 Spotted by Bruno Haible.
11589 2009-07-04 Jim Meyering <meyering@redhat.com>
11591 argv-iter: new module
11592 * MODULES.html.sh: Add argv-iter.
11593 * lib/argv-iter.c, lib/argv-iter.h: New files.
11594 * modules/argv-iter: New file.
11595 * modules/argv-iter-tests: New file.
11596 * tests/test-argv-iter.c: Test it.
11598 2009-07-04 Bruno Haible <bruno@clisp.org>
11601 * lib/git-merge-changelog.c (compute_mapping): In the case where file1
11602 contains more exact copies of a given entry than file2, leave the extra
11603 copies unpaired rather than aborting.
11604 Reported by Eric Blake.
11606 2009-07-02 Bruno Haible <bruno@clisp.org>
11608 Speedup git-merge-changelog for git cherry-pick.
11609 * lib/git-merge-changelog.c (struct entries_mapping): New type.
11610 (entries_mapping_get): New function, extracted from compute_mapping.
11611 (entries_mapping_reverse_get): New function.
11612 (compute_mapping): Add a 'full' argument. Return the result in a
11613 'struct entries_mapping'.
11614 (main): Update. Access the mappings through entries_mapping_get.
11615 Reported by Eric Blake.
11617 2009-07-02 Bruno Haible <bruno@clisp.org>
11619 * lib/git-merge-changelog.c (compute_mapping): Fix determination of
11622 2009-07-02 Bruno Haible <bruno@clisp.org>
11624 Speed up approximate search for matching ChangeLog entries.
11625 * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
11626 argument. Call fstrcmp_bounded instead of fstrcmp.
11627 (compute_mapping, try_split_merged_entry, main): Update callers.
11629 2009-07-02 Bruno Haible <bruno@clisp.org>
11631 * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
11633 2009-06-30 Bruno Haible <bruno@clisp.org>
11635 Reduce the number of uc_is_cased calls.
11636 * lib/unicase.h (casing_suffix_context_t): Add
11637 'first_char_except_ignorable' field.
11638 * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
11639 (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
11640 * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
11641 Update initializer.
11642 * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
11643 case-ignorable characters.
11644 * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
11645 * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
11646 * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
11647 * modules/unicase/u16-suffix-context (Depends-on): Likewise.
11648 * modules/unicase/u32-suffix-context (Depends-on): Likewise.
11650 2009-06-30 Bruno Haible <bruno@clisp.org>
11652 Tests for module 'unicase/ignorable'.
11653 * modules/unicase/ignorable-tests: New file.
11654 * tests/unicase/test-ignorable.c: New file, generated by
11657 Tests for module 'unicase/cased'.
11658 * modules/unicase/cased-tests: New file.
11659 * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
11660 * tests/unicase/test-predicate-part1.h: New file, derived from
11661 tests/unictype/test-predicate-part1.h.
11662 * tests/unicase/test-predicate-part2.h: New file, same as
11663 tests/unictype/test-predicate-part2.h.
11665 Fix evaluation of "Before C" condition of FINAL_SIGMA.
11666 * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
11667 (output_casing_properties): New function.
11669 * lib/unicase/cased.h: New file, generated by gen-uni-tables.
11670 * lib/unicase/cased.c: Include unictype/bitmap.h.
11671 (uc_is_cased): Define through a bitmap lookup.
11672 * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
11673 * lib/unicase/ignorable.c: Include unictype/bitmap.h.
11674 (uc_is_case_ignorable): Define through a bitmap lookup.
11675 * modules/unicase/cased (Files): Add lib/unicase/cased.h,
11676 lib/unictype/bitmap.h.
11677 (Depends-on): Add inline. Clean up.
11678 * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
11679 lib/unictype/bitmap.h.
11680 (Depends-on): Add inline. Clean up.
11681 * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
11683 * tests/unicase/test-u16-tolower.c (main): Likewise.
11684 * tests/unicase/test-u32-tolower.c (main): Likewise.
11686 2009-06-30 Bruno Haible <bruno@clisp.org>
11688 * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
11689 * lib/unicase/u16-casemap.c: Likewise.
11690 * lib/unicase/u32-casemap.c: Likewise.
11692 2009-06-29 Bruno Haible <bruno@clisp.org>
11694 Define u32_casefold as a wrapper around u32_ct_casefold.
11695 * lib/unicase/u32-casefold.c: Update.
11696 * modules/unicase/u32-casefold (Depends-on): Add
11697 unicase/u32-ct-casefold, unicase/empty-prefix-context,
11698 unicase/empty-suffix-context. Clean up.
11700 Define u16_casefold as a wrapper around u16_ct_casefold.
11701 * lib/unicase/u16-casefold.c: Update.
11702 * modules/unicase/u16-casefold (Depends-on): Add
11703 unicase/u16-ct-casefold, unicase/empty-prefix-context,
11704 unicase/empty-suffix-context. Clean up.
11706 Define u8_casefold as a wrapper around u8_ct_casefold.
11707 * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
11708 * lib/unicase/u8-casefold.c: Update.
11709 * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
11710 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11712 Define u32_totitle as a wrapper around u32_ct_totitle.
11713 * lib/unicase/u32-totitle.c: Update.
11714 * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
11715 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11717 Define u16_totitle as a wrapper around u16_ct_totitle.
11718 * lib/unicase/u16-totitle.c: Update.
11719 * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
11720 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11722 Define u8_totitle as a wrapper around u8_ct_totitle.
11723 * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
11725 (FUNC): Delegate to U_CT_TOTITLE.
11726 * lib/unicase/u8-totitle.c: Update.
11727 * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
11728 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11730 * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
11732 * modules/unicase/u32-tolower (Depends-on): Add
11733 unicase/empty-prefix-context, unicase/empty-suffix-context.
11735 * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
11737 * modules/unicase/u16-tolower (Depends-on): Add
11738 unicase/empty-prefix-context, unicase/empty-suffix-context.
11740 * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
11741 * modules/unicase/u8-tolower (Depends-on): Add
11742 unicase/empty-prefix-context, unicase/empty-suffix-context.
11744 * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
11746 * modules/unicase/u32-toupper (Depends-on): Add
11747 unicase/empty-prefix-context, unicase/empty-suffix-context.
11749 * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
11751 * modules/unicase/u16-toupper (Depends-on): Add
11752 unicase/empty-prefix-context, unicase/empty-suffix-context.
11754 * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
11755 * modules/unicase/u8-toupper (Depends-on): Add
11756 unicase/empty-prefix-context, unicase/empty-suffix-context.
11758 New module 'unicase/u32-ct-casefold'.
11759 * lib/unicase/u32-ct-casefold.c: New file.
11760 * modules/unicase/u32-ct-casefold: New file.
11762 New module 'unicase/u16-ct-casefold'.
11763 * lib/unicase/u16-ct-casefold.c: New file.
11764 * modules/unicase/u16-ct-casefold: New file.
11766 New module 'unicase/u8-ct-casefold'.
11767 * lib/unicase/u8-ct-casefold.c: New file.
11768 * lib/unicase/u-ct-casefold.h: New file, derived from
11769 lib/unicase/u-casefold.h.
11770 * modules/unicase/u8-ct-casefold: New file.
11772 New module 'unicase/u32-ct-totitle'.
11773 * lib/unicase/u32-ct-totitle.c: New file.
11774 * modules/unicase/u32-ct-totitle: New file.
11776 New module 'unicase/u16-ct-totitle'.
11777 * lib/unicase/u16-ct-totitle.c: New file.
11778 * modules/unicase/u16-ct-totitle: New file.
11780 New module 'unicase/u8-ct-totitle'.
11781 * lib/unicase/u8-ct-totitle.c: New file.
11782 * lib/unicase/u-ct-totitle.h: New file, derived from
11783 lib/unicase/u-totitle.h.
11784 * modules/unicase/u8-ct-totitle: New file.
11786 New module 'unicase/u32-ct-tolower'.
11787 * lib/unicase/u32-ct-tolower.c: New file.
11788 * modules/unicase/u32-ct-tolower: New file.
11790 New module 'unicase/u16-ct-tolower'.
11791 * lib/unicase/u16-ct-tolower.c: New file.
11792 * modules/unicase/u16-ct-tolower: New file.
11794 New module 'unicase/u8-ct-tolower'.
11795 * lib/unicase/u8-ct-tolower.c: New file.
11796 * modules/unicase/u8-ct-tolower: New file.
11798 New module 'unicase/u32-ct-toupper'.
11799 * lib/unicase/u32-ct-toupper.c: New file.
11800 * modules/unicase/u32-ct-toupper: New file.
11802 New module 'unicase/u16-ct-toupper'.
11803 * lib/unicase/u16-ct-toupper.c: New file.
11804 * modules/unicase/u16-ct-toupper: New file.
11806 New module 'unicase/u8-ct-toupper'.
11807 * lib/unicase/u8-ct-toupper.c: New file.
11808 * modules/unicase/u8-ct-toupper: New file.
11810 Add context arguments to u*_casemap functions.
11811 * lib/unicase/unicasemap.h: Include unicase.h.
11812 (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
11813 suffix_context arguments.
11814 * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
11816 (FUNC): Add prefix_context and suffix_context arguments. Use
11817 uc_is_cased and uc_is_case_ignorable.
11818 * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
11819 * lib/unicase/u16-casemap.c: Likewise.
11820 * lib/unicase/u32-casemap.c: Likewise.
11821 * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
11822 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11823 * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
11824 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11825 * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
11826 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11828 New module 'unicase/u32-suffix-context'.
11829 * lib/unicase/u32-suffix-context.c: New file.
11830 * modules/unicase/u32-suffix-context: New file.
11832 New module 'unicase/u16-suffix-context'.
11833 * lib/unicase/u16-suffix-context.c: New file.
11834 * modules/unicase/u16-suffix-context: New file.
11836 New module 'unicase/u8-suffix-context'.
11837 * lib/unicase/u8-suffix-context.c: New file.
11838 * lib/unicase/u-suffix-context.h: New file.
11839 * modules/unicase/u8-suffix-context: New file.
11841 New module 'unicase/empty-suffix-context'.
11842 * lib/unicase/empty-suffix-context.c: New file.
11843 * modules/unicase/empty-suffix-context: New file.
11845 New module 'unicase/u32-prefix-context'.
11846 * lib/unicase/u32-prefix-context.c: New file.
11847 * modules/unicase/u32-prefix-context: New file.
11849 New module 'unicase/u16-prefix-context'.
11850 * lib/unicase/u16-prefix-context.c: New file.
11851 * modules/unicase/u16-prefix-context: New file.
11853 New module 'unicase/u8-prefix-context'.
11854 * lib/unicase/u8-prefix-context.c: New file.
11855 * lib/unicase/u-prefix-context.h: New file.
11856 * lib/unicase/context.h: New file.
11857 * modules/unicase/u8-prefix-context: New file.
11859 New module 'unicase/empty-prefix-context'.
11860 * lib/unicase/empty-prefix-context.c: New file.
11861 * modules/unicase/empty-prefix-context: New file.
11863 New module 'unicase/ignorable'.
11864 * lib/unicase/ignorable.c: New file.
11865 * modules/unicase/ignorable: New file.
11867 New module 'unicase/cased'.
11868 * lib/unicase/caseprop.h: New file.
11869 * lib/unicase/cased.c: New file.
11870 * modules/unicase/cased: New file.
11872 New functions for case mapping of substrings.
11873 * lib/unicase.h (casing_prefix_context_t): New type.
11874 (unicase_empty_prefix_context): New variable.
11875 (u8_casing_prefix_context, u16_casing_prefix_context,
11876 u32_casing_prefix_context, u8_casing_prefixes_context,
11877 u16_casing_prefixes_context, u32_casing_prefixes_context): New
11879 (casing_suffix_context_t): New type.
11880 (unicase_empty_suffix_context): New variable.
11881 (u8_casing_suffix_context, u16_casing_suffix_context,
11882 u32_casing_suffix_context, u8_casing_suffixes_context,
11883 u16_casing_suffixes_context, u32_casing_suffixes_context,
11884 u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
11885 u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
11886 u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
11889 2009-06-28 Jim Meyering <meyering@redhat.com>
11891 boostrap: indent only with spaces
11892 * build-aux/bootstrap: Indent only with spaces, never TABs.
11894 bootstrap: split long lines
11895 * build-aux/bootstrap: Keep line length < 80.
11897 bootstrap: sync from coreutils
11898 * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
11899 just as autoreconf does. Verify a list of prerequisite
11900 package-name,version-number pairs if defined in bootstrap.conf.
11901 Refer to README-prereq, if prerequisites are not satisfied.
11903 2009-06-27 Eric Blake <ebb9@byu.net>
11905 tests: add test for bogus NULL definition
11906 * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
11907 * tests/test-stdlib.c: Likewise.
11908 * tests/test-string.c: Likewise.
11909 * tests/test-locale.c: Likewise.
11910 * tests/test-unistd.c: Likewise.
11911 * modules/stdio-tests (Depends-on): Add verify.
11912 * modules/stdlib-tests (Depends-on): Likewise.
11913 * modules/string-tests (Depends-on): Likewise.
11914 * modules/locale-tests (Depends-on): Likewise.
11915 * modules/unistd-tests (Depends-on): Likewise.
11917 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11919 * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
11920 self-explaining comment.
11921 * m4/selinux-selinux-h: Update serial.
11922 (gl_LIBSELINUX): New macro, adding a warning for missing development
11923 packages to code extracted from...
11924 (gl_HEADERS_SELINUX_SELINUX_H): ... this one. Require gl_LIBSELINUX.
11925 Add warning for missing development packages here, too.
11927 2009-06-26 Paolo Bonzini <bonzini@gnu.org>
11929 * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
11931 2009-06-25 Eric Blake <ebb9@byu.net>
11933 version-etc: fix regression
11934 * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
11936 (version_etc): Use it, to catch bugs with trailing NULL.
11937 * lib/version-etc.c (version_etc_arn): Delete unused argument.
11938 (version_etc_va): Fix logic bug.
11939 * modules/version-etc-tests: Add test.
11940 * tests/test-version-etc.c: New file.
11941 * tests/test-version-etc.sh: Likewise.
11943 2009-06-25 Sam Steingold <sds@gnu.org>
11945 * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
11946 mbtowc declaration.
11948 2009-06-25 Eric Blake <ebb9@byu.net>
11950 fpurge: migrate into <stdio.h>
11951 * lib/fpurge.h: Delete...
11952 * lib/stdio.in.h (fpurge): ...and declare here, instead.
11953 * lib/fpurge.c (fpurge): Change declaring header.
11954 * modules/fpurge (Files): Drop deleted file.
11955 (Depends-on): Add stdio.
11956 (configure.ac): Set witness.
11957 * modules/stdio (Makefile.am): Support fpurge macros.
11958 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11959 * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
11960 * lib/fflush.c: Update client.
11961 * tests/test-fpurge.c: Likewise.
11962 * NEWS: Mention the change.
11964 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
11966 * lib/argp-version-etc.c (program_authors): Add const
11968 * lib/version-etc.c: Fix typos in the comments.
11969 * modules/argp-version-etc: Depends on version-etc.
11971 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
11973 argp-version-etc: new module.
11975 * lib/argp-version-etc.c: New file.
11976 * lib/argp-version-etc.h: New file.
11977 * modules/argp-version-etc: New file.
11978 * modules/argp-version-etc-tests: New file.
11979 * tests/test-argp-version-etc.c: New test.
11980 * tests/test-argp-version-etc-1.sh: New test.
11982 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
11984 Provide additional interfaces and documentation for version-etc
11987 * lib/version-etc.c (version_etc_arn, version_etc_ar): New
11989 * lib/version-etc.h (version_etc_arn, version_etc_ar): New
11992 2009-06-24 Bruno Haible <bruno@clisp.org>
11994 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
11995 HAVE_LIB${NAME} macro.
11996 Reported by Sam Steingold <sds@gnu.org>.
11998 2009-06-23 Simon Josefsson <simon@josefsson.org>
12000 * modules/hash-tests (test_hash_LDADD): Link to libintl when
12003 2009-06-21 Bruno Haible <bruno@clisp.org>
12005 Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
12007 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
12008 together with LIB${NAME}, LTLIB${NAME}.
12009 Reported by Sam Steingold <sds@gnu.org>.
12011 2009-06-20 Jim Meyering <meyering@redhat.com>
12013 tests: make sc_require_test_exit_idiom more generic
12014 * top/maint.mk (Exit_witness_file): New overridable variable.
12015 (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
12016 Relax test for /^Exit \$fail$$/ to just /^Exit ./.
12018 2009-06-19 Jim Meyering <meyering@redhat.com>
12020 hash: reverse order of src/dst parameters in an internal interface
12021 * lib/hash.c (transfer_entries): Reverse order of parameters to
12022 put DST before SRC. Adjust callers.
12024 tests: test-hash: avoid wholesale duplication
12025 * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
12026 Instead, use a loop and add a single conditional.
12028 tests: test-hash: allow seed selection via a command line argument
12029 * tests/test-hash.c (get_seed): New function.
12032 2009-06-19 Eric Blake <ebb9@byu.net>
12034 hash: avoid memory leak on allocation failure
12035 * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
12036 failure. Factor repeated algorithm...
12037 (transfer_entries): ...into new helper routine.
12038 (hash_delete): React to hash_rehash return value.
12040 hash: reduce memory pressure in hash_rehash no-op case
12041 * lib/hash.c (next_prime): Avoid overflow.
12042 (hash_initialize): Factor bucket size computation...
12043 (compute_bucket_size): ...into new helper function.
12044 (hash_rehash): Use new function and open coding to reduce memory
12045 pressure, and avoid a memory leak in USE_OBSTACK code.
12046 Reported by Jim Meyering.
12048 2009-06-18 Eric Blake <ebb9@byu.net>
12050 hash: make rotation more obvious
12051 * modules/hash (Depends-on): Add bitrotate and stdint.
12052 * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
12053 * lib/hash.c (headers): Drop limits.h. Add stdint.h.
12054 (SIZE_MAX): Rely on headers for definition.
12055 (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
12056 (raw_hasher): Use rotr_sz.
12057 Suggested by Jim Meyering.
12059 hash: fix memory leak in last patch
12060 * lib/hash.c (hash_rehash): Avoid memory leak.
12062 hash: avoid no-op rehashing
12063 * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
12065 hash: provide default callback functions
12066 * lib/hash.c (raw_hasher, raw_comparator): New functions.
12067 (hash_initialize): Use them as defaults.
12068 * tests/test-hash.c (main): Test this.
12070 hash: minor optimization
12071 * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
12073 (hash_initialize): Document this promise.
12074 (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
12075 * tests/test-hash.c (hash_compare_strings): Test this.
12077 2009-06-18 Bruno Haible <bruno@clisp.org>
12079 * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
12080 going to be replaced anyway.
12082 2009-06-18 Bruno Haible <bruno@clisp.org>
12084 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
12086 (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
12087 be replaced anyway.
12089 2009-06-18 Eric Blake <ebb9@byu.net>
12091 hash: check for resize before insertion
12092 * lib/hash.c (hash_insert): Check whether bucket usage exceeds
12093 threshold before insertion, so that a pathological hash_rehash
12094 that fills every bucket can still trigger another rehash.
12096 2009-06-18 Jim Meyering <meyering@redhat.com>
12098 hash-tests: add a loop around the small tests
12099 * tests/test-hash.c (main): Repeat small tests with selected
12100 small initial table sizes.
12102 2009-06-17 Eric Blake <ebb9@byu.net>
12104 hash: minor cleanups
12105 * lib/hash.h (hash_entry): Make opaque, by moving...
12106 * lib/hash.c (hash_entry): ...here.
12107 (hash_insert): Clarify restrictions on what can be inserted.
12108 (hash_get_next): Clarify when it is safe to remove an element
12110 (check_tuning): Skip verification when tuning is known safe.
12111 (hash_initialize): Clarify restrictions on tuning.
12113 2009-06-17 Jim Meyering <jim@meyering.net>
12114 and Eric Blake <ebb9@byu.net>
12116 hash-tests: new module
12117 * modules/hash-tests: New file.
12118 * tests/test-hash.c: New file.
12120 2009-06-17 Eric Blake <ebb9@byu.net>
12122 strstr-simple: document new module
12123 * MODULES.html.sh: Document new module.
12125 strstr, strcasestr: replace on platforms with broken memchr
12126 * modules/strstr: Split into...
12127 * modules/strstr-simple: ...new module that does not care about
12128 performance, but does care about glibc bug.
12129 * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
12130 (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
12131 if platform memchr is broken, per Debian bug 521737.
12132 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
12134 * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
12135 * doc/posix-functions/strstr.texi (strstr): Document the fix.
12136 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
12137 * modules/mountlist (Depends-on): Add strstr-simple.
12138 * modules/gen-uni-tables (Depends-on): Likewise.
12139 * modules/argz (Depends-on): Add strstr.
12141 2009-06-17 Bruno Haible <bruno@clisp.org>
12143 * modules/posix_spawn-internal (Depends-on): Add errno.
12145 2009-06-17 Bruno Haible <bruno@clisp.org>
12147 Define missing ESTALE on Interix 3.5.
12148 * lib/errno.in.h (ESTALE): Assign a value if missing.
12149 * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
12150 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
12152 * doc/posix-headers/errno.texi: Mention the Interix bug.
12153 Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
12155 2009-06-15 Eric Blake <ebb9@byu.net>
12157 memchr, memchr2: add valgrind exception
12158 * lib/memchr.valgrind: New file.
12159 * lib/memchr2.valgrind: New file.
12160 * modules/memchr (Files): Distribute valgrind file.
12161 * modules/memchr2 (Files): Likewise.
12163 docs: memchr is no longer obsolete
12164 * MODULES.html.sh: Move memchr from obsolete to string.h section.
12165 * lib/string.in.h (memchr): Simplify logic.
12167 2009-06-14 Jim Meyering <meyering@redhat.com>
12169 link-follow: fix the "checking..." message to not mention trailing slash
12170 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
12171 never considered trailing slashes.
12173 2009-06-14 Bruno Haible <bruno@clisp.org>
12175 * m4/memchr.m4: Mention also the bug on IA-64.
12176 * doc/posix-functions/memchr.texi: Likewise.
12178 2009-06-12 Eric Blake <ebb9@byu.net>
12180 memchr: detect broken x86_64 and alpha implementations
12181 * modules/memchr-tests (Depends-on): Move mmap detection...
12182 * modules/memchr (Depends-on): ...here.
12183 (configure.ac): Set indicator.
12184 * lib/string.in.h (memchr): Declare replacement.
12185 * modules/string (Makefile.am): Trigger replacement.
12186 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
12187 * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
12189 * doc/posix-functions/memchr.texi (memchr): Document the bug.
12190 * modules/getpagesize (License): Relax license.
12192 2009-06-11 Bruno Haible <bruno@clisp.org>
12194 * lib/idpriv.h: Add more references.
12196 2009-06-08 Bruno Haible <bruno@clisp.org>
12198 Tests for module 'idpriv-droptemp'.
12199 * modules/idpriv-droptemp-tests: New file.
12200 * tests/test-idpriv-droptemp.sh: New file.
12201 * tests/test-idpriv-droptemp.su.sh: New file.
12202 * tests/test-idpriv-droptemp.c: New file.
12204 New module 'idpriv-droptemp'.
12205 * lib/idpriv-droptemp.c: New file.
12206 * modules/idpriv-droptemp: New file.
12208 2009-06-08 Bruno Haible <bruno@clisp.org>
12210 Tests for module 'idpriv-drop'.
12211 * modules/idpriv-drop-tests: New file.
12212 * tests/test-idpriv-drop.sh: New file.
12213 * tests/test-idpriv-drop.su.sh: New file.
12214 * tests/test-idpriv-drop.c: New file.
12216 New module 'idpriv-drop'.
12217 * lib/idpriv.h: New file.
12218 * lib-idpriv-drop.c: New file.
12219 * m4/idpriv.m4: New file.
12220 * modules/idpriv-drop: New file.
12222 2009-06-08 Bruno Haible <bruno@clisp.org>
12224 * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
12225 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12226 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12227 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12228 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12229 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12230 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12232 2009-06-08 Eric Blake <ebb9@byu.net>
12234 test-strstr: use memory fence, when possible
12235 * tests/test-strstr.c (main): Use memory fence, in order to be
12236 more likely to trigger Debian bug 521737.
12237 * modules/strstr-tests (Files): Pull in additional files.
12239 memchr: no longer obsolete, for wider field testing
12240 * modules/memchr (Status, Notice): Delete, this module is no
12242 * modules/vasnprintf (Depends-on): Add memchr.
12244 2009-06-07 Jim Meyering <meyering@redhat.com>
12246 hash: declare some functions with the warn_unused_result attribute
12247 * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
12249 2009-06-07 Bruno Haible <bruno@clisp.org>
12251 * tests/test-alignof.c: Don't test int64_t if it does not exist.
12252 Reported by Eric Blake.
12254 2009-06-06 Eric Blake <ebb9@byu.net>
12256 test-alignof: fix typo with long double
12257 * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
12260 2009-06-06 Neil Jerram <neil@ossau.uklinux.net> (tiny change)
12262 Escape non-texinfo { and }s.
12263 * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
12266 2009-06-04 Jim Meyering <meyering@redhat.com>
12268 gitlog-to-changelog: don't infloop on an empty commit log
12269 * build-aux/gitlog-to-changelog: Warn about an empty log message.
12270 Reported by Boris Petersen <transacid@centerim.org>.
12272 2009-06-03 Mike Frysinger <vapier@gentoo.org>
12274 version-etc: extend for packagers
12275 Add three new configure options, intended for packagers:
12276 --with-packager="packager name"
12277 --with-packager-version="packager-specific version"
12278 --with-packager-bug-reports="packager bug reporting"
12279 An example with coreutils:
12281 --with-packager=Gentoo \
12282 --with-packager-bug-report=http://bugs.gentoo.org/ \
12283 --with-packager-version="patchset 1.6"
12284 $ ./src/ls --version | head -n2
12285 ls (GNU coreutils) 7.1-dirty
12286 Packaged by Gentoo (patchset 1.6)
12287 Note that the bug reporting info via --help doesn't show up because
12288 coreutils uses its own custom emit_bug_reporting_address() implementation
12289 in src/system.h. If it didn't, it'd look like:
12290 $ ./src/ls --help | tail -n4
12291 Report bugs to <bug-coreutils@gnu.org>.
12292 Report Gentoo bugs to <http://bugs.gentoo.org/>.
12293 GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
12294 General help using GNU software: <http://www.gnu.org/gethelp/>.
12295 * lib/version-etc.c: Print new information, if provided.
12296 * m4/version-etc.m4: New file.
12297 * modules/version-etc (Files): Add m4/version-etc.m4.
12298 (configure.ac): Add gl_VERSION_ETC.
12300 2009-05-31 Bruno Haible <bruno@clisp.org>
12302 * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
12304 * modules/alignof-tests (Dependencies): Add stdint.
12305 Reported by Eric Blake.
12307 2009-05-31 Bruno Haible <bruno@clisp.org>
12309 * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
12310 restriction due to compiler bugs.
12311 Reported by Eric Blake.
12313 2009-05-31 Simon Josefsson <simon@josefsson.org>
12314 Bruno Haible <bruno@clisp.org>
12316 Fix test-alignof failure.
12317 * lib/alignof.h (alignof_slot): New macro.
12318 (alignof_type): New macro, with the same semantics as the previous
12320 (alignof): Alias to alignof_slot.
12321 * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
12322 check that the results are usable as constant expressions.
12324 2009-05-31 Bruno Haible <bruno@clisp.org>
12326 * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
12327 * tests/test-memchr.c (main): Check that memchr does not read past the
12328 first occurrence of the byte.
12329 * tests/test-strstr.c (main): Update comment.
12330 Suggested by Eric Blake.
12332 2009-05-30 Bruno Haible <bruno@clisp.org>
12334 * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
12335 detail how to use dumpbin.
12336 Reported by David Byron <dbyron@dbyron.com>.
12338 2009-06-02 Simon Josefsson <simon@josefsson.org>
12340 * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
12342 2009-06-02 Simon Josefsson <simon@josefsson.org>
12344 * m4/manywarnings.m4: Add GCC 4.4 warnings.
12346 2009-05-28 Bruno Haible <bruno@clisp.org>
12348 * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
12351 2009-05-28 Simon Josefsson <simon@josefsson.org>
12353 * gnulib-tool (func_import): Transform license on build-aux/ files too.
12355 2009-05-27 Simon Josefsson <simon@josefsson.org>
12357 * gnulib-tool (sed_transform_main_lib_file)
12358 (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
12361 2009-05-26 Simon Josefsson <simon@josefsson.org>
12363 * tests/test-strstr.c: Add another self-test.
12364 * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
12365 strdup. Suggested by Eric Blake <ebb9@byu.net>.
12367 2009-05-23 Bruno Haible <bruno@clisp.org>
12369 * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
12372 2009-05-21 Bruno Haible <bruno@clisp.org>
12374 Simplify use of mode_t varargs.
12375 * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
12376 uses 'mode_t' or 'int'.
12377 * lib/openat.c (openat): Likewise.
12378 * lib/open-safer.c (open_safer): Likewise.
12379 * m4/mode_t.m4: New file.
12380 * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
12381 * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
12382 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
12383 * modules/open (Files): Add m4/mode_t.m4.
12384 * modules/openat (Files): Likewise.
12385 * modules/fcntl-safer (Files): Likewise.
12386 Suggested by Eric Blake.
12388 2009-05-21 Pádraig Brady <P@draigbrady.com>
12390 * doc/glibc-functions/fallocate.texi: New file.
12391 * doc/gnulib.texi: Include it.
12393 2009-05-21 Eric Blake <ebb9@byu.net>
12394 Bruno Haible <bruno@clisp.org>
12396 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
12398 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
12400 2009-05-21 Eric Blake <ebb9@byu.net>
12401 Bruno Haible <bruno@clisp.org>
12403 Second attempt to work around an AIX 5.3, 6.1 compiler bug with
12404 include_next. Fix of 2008-11-20 commit.
12405 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
12406 NEXT_AS_FIRST_DIRECTIVE_FOO_H.
12407 * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
12409 * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
12410 instead of NEXT_MATH_H.
12412 2009-05-21 Bruno Haible <bruno@clisp.org>
12414 Avoid redefinition warnings for SIZE_MAX.
12415 * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
12416 Reported by Simon Josefsson.
12418 2009-05-21 Bruno Haible <bruno@clisp.org>
12420 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
12423 2009-05-20 Bruno Haible <bruno@clisp.org>
12425 Make zeroptr.h work on mingw.
12426 * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
12428 * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
12429 * modules/memchr2-tests (configure.ac): Likewise.
12430 * modules/memcmp-tests (configure.ac): Likewise.
12431 * modules/memmem-tests (configure.ac): Likewise.
12432 * modules/memrchr-tests (configure.ac): Likewise.
12433 Reported by Simon Josefsson.
12435 2009-05-20 Simon Josefsson <simon@josefsson.org>
12437 * tests/test-glob.c: Include string.h for strcmp prototype.
12439 2009-05-20 Simon Josefsson <simon@josefsson.org>
12441 * modules/getdelim (Depends-on): Add explicit stdint, although it
12442 was implicitly already pulled in via realloc-posix.
12443 * lib/getdelim.c: Get SIZE_MAX from stdint.h.
12445 2009-05-20 Simon Josefsson <simon@josefsson.org>
12447 MinGW and IRIX does not have sa_family_t type. Reported by "Tom
12448 G. Christensen" <tgc@jupiterrise.com>.
12449 * m4/sys_socket_h.m4: Check for sa_family_t.
12450 * lib/sys_socket.in.h: Typedef sa_family_t when needed.
12451 * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
12452 * tests/test-sys_socket.c: Check that sa_family_t works.
12454 2009-05-18 Eric Blake <ebb9@byu.net>
12456 maint.mk: allow gnulib_dir in VPATH build
12457 * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
12459 2009-05-15 Jim Meyering <meyering@redhat.com>
12461 maint.mk: Give gnulib_dir a default definition.
12462 * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
12463 Thus, most packages no longer need to specify this variable in cfg.mk
12465 2009-05-14 Tom Prince <tom.prince@ualberta.net> (tiny change)
12467 rename.m4: fix typos that would make non-mingw cross-configure fail
12468 * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
12470 2009-05-13 Eric Blake <ebb9@byu.net>
12472 mmap-anon: avoid out-of-order autoconf expansion
12473 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
12474 SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
12475 * modules/memchr-tests (Depends-on): Add extensions.
12476 * modules/memchr2-tests (Depends-on): Add extensions.
12477 * modules/memcmp-tests (Depends-on): Add extensions.
12478 * modules/memmem-tests (Depends-on): Add extensions.
12479 * modules/memrchr-tests (Depends-on): Add extensions.
12481 2009-05-13 Bruno Haible <bruno@clisp.org>
12483 Make some tests ISO C 99 compliant.
12484 * tests/zerosize-ptr.h: New file.
12485 * tests/test-memchr.c: Include zerosize-ptr.h.
12486 (main): Use a zero-size object pointer instead of NULL.
12487 * tests/test-memchr2.c: Include zerosize-ptr.h.
12488 (main): Use a zero-size object pointer instead of NULL.
12489 * tests/test-memcmp.c: Include zerosize-ptr.h.
12490 (main): Use a zero-size object pointer instead of NULL.
12491 * tests/test-memmem.c: Include zerosize-ptr.h.
12492 (main): Use a zero-size object pointer instead of NULL.
12493 * tests/test-memrchr.c: Include zerosize-ptr.h.
12494 (main): Use a zero-size object pointer instead of NULL.
12495 * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
12497 (Depends-on): Add getpagesize.
12498 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12499 * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
12501 (Depends-on): Add getpagesize.
12502 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12503 * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
12505 (Depends-on): Add getpagesize.
12506 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12507 * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
12509 (Depends-on): Add getpagesize.
12510 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12511 * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
12513 (Depends-on): Add getpagesize.
12514 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12516 2009-05-12 Bruno Haible <bruno@clisp.org>
12518 Tests for module 'alignof'.
12519 * modules/alignof-tests: New file.
12520 * tests/test-alignof.c: New file.
12522 2009-05-12 Bruno Haible <bruno@clisp.org>
12525 * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
12526 vendor compilers that are always correct.
12528 2009-05-12 Bruno Haible <bruno@clisp.org>
12530 Make the MAP_ANONYMOUS detection work on HP-UX 11.
12531 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
12532 not whether its fully works.
12534 2009-05-12 Bruno Haible <bruno@clisp.org>
12536 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
12538 2009-05-12 Jim Meyering <meyering@redhat.com>
12540 * top/maint.mk: Adjust backslash alignment.
12542 2009-05-11 Simon Josefsson <simon@josefsson.org>
12544 * top/maint.mk: Make $(srcdir)/build-aux configurable.
12546 2009-05-11 Eric Blake <ebb9@byu.net>
12548 argp: avoid undefined behavior
12549 * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
12552 2009-05-08 Simon Josefsson <simon@josefsson.org>
12554 * tests/test-vc-list-files-git.sh: Do git config of user.email and
12555 user.name to prevent git commit from complaining.
12557 2009-05-10 Bruno Haible <bruno@clisp.org>
12559 * gnulib-tool (func_import, func_create_testdir, copy-file): Change
12560 sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
12561 it rewrites every file name only once.
12562 Reported by Simon Josefsson. Helped by Ralf Wildenhues.
12564 2009-05-08 Bruno Haible <bruno@clisp.org>
12566 * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
12569 2009-05-08 Simon Josefsson <simon@josefsson.org>
12571 * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
12572 sockaddr_storage test.
12574 2009-05-07 Simon Josefsson <simon@josefsson.org>
12576 * modules/sys_socket (Makefile.am): Substitute
12577 HAVE_STRUCT_SOCKADDR_STORAGE. Depend on alignof.
12578 * m4/sys_socket_h.m4: Check for sockaddr_storage.
12579 * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
12580 * tests/test-sys_socket.c: Check sockaddr_storage.
12582 2009-05-08 Bruno Haible <bruno@clisp.org>
12584 New module 'alignof'.
12585 * lib/alignof.h: New file.
12586 * modules/alignof: New file.
12588 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
12589 Bruno Haible <bruno@clisp.org>
12591 Fix test-file-has-acl on FreeBSD.
12592 * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
12593 mask is implicitly added.
12594 * tests/test-file-has-acl.c: Include <signal.h>.
12595 (main): Terminate the test after 5 seconds.
12596 * modules/acl-tests (configure.ac): Check for alarm function.
12598 2009-05-04 Bruno Haible <bruno@clisp.org>
12600 Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
12601 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
12602 * modules/errno (configure.ac): Drop AC_REQUIRE.
12603 * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
12604 * modules/multiarch (configure.ac): Drop AC_REQUIRE.
12606 2009-05-04 Simon Josefsson <simon@josefsson.org>
12608 * modules/glob-tests: New module.
12609 * tests/test-glob.c: Add.
12611 2009-05-04 Simon Josefsson <simon@josefsson.org>
12613 * modules/fnmatch-tests: New module.
12614 * tests/test-fnmatch.c: Add.
12616 2009-05-04 Eric Blake <ebb9@byu.net>
12618 maint: make the new no-submodule-changes rule VPATH-safe
12619 * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
12621 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
12622 Bruno Haible <bruno@clisp.org>
12624 acl: Fix infinite loop on FreeBSD.
12625 * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
12626 of return value from acl_get_entry.
12627 * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
12630 2009-05-03 Bruno Haible <bruno@clisp.org>
12632 * lib/acl-internal.h (acl_entries): Clarify return value.
12633 * lib/acl_entries.c (acl_entries): Likewise.
12635 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
12637 Bug fix in acl module.
12638 * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
12640 2009-05-03 Bruno Haible <bruno@clisp.org>
12642 Create gperf-generated file in the source dir, not in the build dir.
12643 * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
12644 iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
12645 * modules/unicase/locale-language (unicase/locale-languages.h):
12647 * modules/unicase/special-casing (unicase/special-casing-table.h):
12649 * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
12650 * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
12651 * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
12652 Reported by Ralf Wildenhues.
12654 2009-05-03 Bruno Haible <bruno@clisp.org>
12656 * modules/fnmatch (Description, configure.ac): Taken from
12658 * modules/fnmatch-posix: Turn into a symbolic reference to the
12659 'fnmatch' module, and deprecate.
12660 * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
12662 2009-05-03 Bruno Haible <bruno@clisp.org>
12664 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
12665 gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
12666 Reported by Ralf Wildenhues.
12668 2009-05-04 Simon Josefsson <simon@josefsson.org>
12670 * m4/fnmatch.m4: Fix fnmatch re-define.
12672 2009-04-27 David Bartley <dtbartle@csclub.uwaterloo.ca>
12674 priv-set: new module and tests; adapt write-any-file
12675 * lib/priv-set.c: New file.
12676 * lib/priv-set.h: New file.
12677 * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
12678 * lib/write-any-file.c: Simplify by using priv-set module.
12679 * m4/priv-set.m4: New file.
12680 * modules/priv-set: New file.
12681 * modules/unlinkdir: Add dependency on priv-set module.
12682 * modules/write-any-file: Likewise.
12684 Tests for module 'priv-set'.
12685 * modules/priv-set-tests: New file.
12686 * tests/test-priv-set.c: New file.
12688 2009-05-03 Jim Meyering <meyering@redhat.com>
12689 Bruno Haible <bruno@clisp.org>
12691 * lib/propername.c (proper_name_utf8): Ignore no-op translations;
12692 use the converted UTF-8 variant of the name instead.
12694 2009-05-03 Jim Meyering <meyering@redhat.com>
12696 tests: tighten some getdate tests
12697 * tests/test-getdate.c (main): Tighten tests: require equality,
12698 not just greater than. Set TZ envvar to UTC0.
12700 2009-05-03 Giuseppe Scrivano <gscrivano@gnu.org>
12702 getdate: correctly interpret "next monday" when run on a Monday
12703 * lib/getdate.y (get_date): Correct the calculation of tm_mday so
12704 that e.g., "next tues" (when run on a tuesday) results in a date
12705 that is one week in the future, and not today's date.
12706 I.e., add a week when the wday is the same as the current one.
12707 Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
12708 and earlier by Martin Bernreuther and Jan Minář.
12709 * tests/test-getdate.c (main): Check that "next DAY" is always in
12710 the future and that "last DAY" is always in the past.
12712 2009-05-02 Jim Meyering <meyering@redhat.com>
12714 build: ensure that a release build fails when a submodule is unclean
12715 * top/maint.mk (no-submodule-changes): New rule.
12716 (alpha beta major): Depend on it.
12718 2009-05-02 Bruno Haible <bruno@clisp.org>
12720 Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
12721 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
12722 shell variable gl_fnmatch_required to detect which variant is
12724 (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
12725 gl_FUNC_FNMATCH_POSIX.
12726 * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
12727 exclude fnmatch-posix.
12729 2009-05-02 Bruno Haible <bruno@clisp.org>
12731 Relicense mbsrtowcs and strnlen1 under LGPLv2+.
12732 * modules/mbsrtowcs (License): Change to LGPLv2+.
12733 * modules/strnlen1 (License): Likewise.
12734 Reported by Simon Josefsson.
12736 2009-05-02 Bruno Haible <bruno@clisp.org>
12738 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
12740 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
12741 gnulib-tool was called with option --source-base=lib.
12743 2009-05-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12745 Use automake *-local hooks without commands, for extensibility.
12746 * modules/localcharset (Makefile.am): Rename install-exec-local
12747 rule to install-exec-localcharset, and make it a prerequisite of
12748 install-exec-local. Likewise, rename the uninstall-local rule to
12749 uninstall-localcharset, and make it a prerequisite of the former.
12751 2009-05-01 Bruno Haible <bruno@clisp.org>
12753 * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
12754 * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
12755 set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
12756 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
12757 * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
12758 * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
12759 m4/locale-zh.m4, m4/codeset.m4.
12761 * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
12762 set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
12763 * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
12766 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
12767 REPLACE_WCRTOMB if mbstate_t must be replaced.
12768 * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
12769 Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
12771 2009-05-01 Bruno Haible <bruno@clisp.org>
12773 Avoid compiler warnings when redefining macros defined by <libintl.h>.
12774 * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
12775 dngettext, dcngettext, textdomain, bindtextdomain,
12776 bind_textdomain_codeset): Undefine before redefining.
12778 2009-04-30 Bruno Haible <bruno@clisp.org>
12780 Fix bug introduced on 2009-04-25.
12781 * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
12782 gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
12783 * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
12785 * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
12787 * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
12789 Reported by Elbert_Pol <elbert.pol@gmail.com>.
12791 2009-04-28 Bruno Haible <bruno@clisp.org>
12794 * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
12795 * lib/uninorm.h (u*_normxfrm): Fix description of return value.
12796 * lib/unicase.h (u*_casexfrm): Likewise.
12797 Reported by Paolo Bonzini.
12799 2009-04-28 Bruno Haible <bruno@clisp.org>
12801 Fix a compilation error.
12802 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
12803 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
12804 Reported by Jim Meyering.
12806 2009-04-27 Bruno Haible <bruno@clisp.org>
12808 New module 'libunistring'.
12809 * modules/libunistring: New file.
12810 * m4/libunistring.m4: New file.
12811 * MODULES.html.sh (Unicode string functions): Add it.
12813 2009-04-27 Eric Blake <ebb9@byu.net>
12815 maint.mk: allow package-specific header to provide <config.h>
12816 * top/maint.mk (sc_require_config_h): New variable.
12817 (sc_require_config_h, sc_require_config_h_first): Use it.
12819 2009-04-27 Simon Josefsson <simon@josefsson.org>
12821 * top/maint.mk (sc_avoid_if_before_free): Except
12822 useless-if-before-free script.
12824 2009-04-27 Eric Blake <ebb9@byu.net>
12826 maintainer-makefile: depend on all required helper scripts
12827 * modules/maintainer-makefile (Depends-on): Add vc-list-files and
12828 useless-if-before-free.
12829 * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
12830 version, rather than assuming gnulib checkout is available.
12831 Reported by Simen Josefsson.
12833 2009-04-26 Bruno Haible <bruno@clisp.org>
12835 Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
12836 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
12839 2009-04-26 Bruno Haible <bruno@clisp.org>
12841 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
12842 * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
12843 AC_LIB_HAVE_LINKFLAGS.
12845 2009-04-26 Bruno Haible <bruno@clisp.org>
12847 Simplify calling convention of u*_conv_from_encoding.
12848 * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
12849 u32_conv_from_encoding): Expect a resultbuf argument and return the
12850 result directly as a pointer.
12851 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
12852 * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
12853 * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
12854 * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
12855 * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
12856 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
12858 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
12859 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
12860 * lib/vasnprintf.c (VASNPRINTF): Update.
12861 * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
12862 * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
12863 * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
12864 * NEWS: Mention the change.
12866 2009-04-26 Bruno Haible <bruno@clisp.org>
12868 Simplify calling convention of u*_conv_to_encoding.
12869 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
12870 u32_conv_to_encoding): Expect a resultbuf argument and return the
12871 result directly as a pointer.
12872 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
12873 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
12874 freeing scaled_offsets if mem_iconveha failed.
12875 * lib/unicase/u-casexfrm.h (FUNC): Update.
12876 * lib/uninorm/u-normxfrm.h (FUNC): Update.
12877 * lib/vasnprintf.c (VASNPRINTF): Update.
12878 * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
12879 * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
12880 * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
12881 * NEWS: Mention the change.
12883 2009-04-26 Bruno Haible <bruno@clisp.org>
12885 Avoid test failures on AIX and OSF/1.
12886 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
12888 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
12889 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
12891 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
12892 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
12893 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
12894 * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
12895 * doc/posix-functions/malloc.texi: Document the portability problem
12896 related to malloc(0).
12898 2009-04-26 Bruno Haible <bruno@clisp.org>
12900 * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
12901 * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
12902 * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
12904 2009-04-25 Bruno Haible <bruno@clisp.org>
12906 Avoid link error when creating a namespace clean library.
12907 * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
12908 as macro with arguments if already defined as an alias.
12909 * lib/signbitf.c (gl_signbitf): Don't undefine.
12910 * lib/signbitd.c (gl_signbitd): Don't undefine.
12911 * lib/signbitl.c (gl_signbitl): Don't undefine.
12913 2009-04-25 Jim Meyering <meyering@redhat.com>
12915 vc-list-files: fix another quoting bug
12916 * build-aux/vc-list-files: Avoid sed backslash expansion
12917 of pathological directory names.
12919 2009-04-25 Eric Blake <ebb9@byu.net>
12921 vc-list-files: fix shell quoting error
12922 * build-aux/vc-list-files: Protect against $ in $dir. Normalize
12925 2009-04-25 Jim Meyering <meyering@redhat.com>
12927 vc-list-files: restore lost functionality with subdir argument
12928 * build-aux/vc-list-files: When given a non-"." sub-directory
12929 argument, substitute the $dir/ prefix back onto each resulting name.
12930 Otherwise, coreutils' root_tests check would fail.
12932 2009-04-24 Eric Blake <ebb9@byu.net>
12934 vc-list-files: ignore git symlinks
12935 * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
12936 than ls-files, to ignore git symlinks.
12938 maint.mk: import improvements from m4
12939 * top/maint.mk (VC-tag): Use signing key from cfg.mk.
12940 (move_if_change): Delete unused macro.
12941 (news-date-check, vc-diff-check): Support VPATH builds.
12942 (announcement): Likewise. Split --bootstrap-tools list...
12943 (boostrap-tools): ...into separate list, which can be overridden
12945 (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
12946 requiring dependency on useless-if-before-free module.
12947 (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
12948 Support VPATH builds.
12950 2009-04-24 Jim Meyering <meyering@redhat.com>
12952 maint.mk: remove coreutils-specific rules and variables
12953 * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
12954 (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
12955 (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
12957 maint.mk: remove obsolete rule
12958 * top/maint.mk (rel-check): Remove rule.
12959 (WGET, WGETFLAGS): Remove now-unused variables.
12961 2009-04-24 Simon Josefsson <simon@josefsson.org>
12963 * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
12966 * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
12967 '$(PATH_SEPARATOR)' instead of ':'.
12969 2009-04-24 Simon Josefsson <simon@josefsson.org>
12971 * lib/getopt1.c (main): Use 'const' for static array.
12973 2009-04-24 Simon Josefsson <simon@josefsson.org>
12975 * top/maint.mk: Sync with coreutils.
12976 * NEWS: Explain incompatibilities.
12978 2009-04-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12979 Bruno Haible <bruno@clisp.org>
12981 Fix cross-compilation results.
12982 * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
12983 statement, as third argument of AC_TRY_RUN.
12984 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
12985 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
12987 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12988 * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
12990 * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12991 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
12992 * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
12994 2009-04-20 Bruno Haible <bruno@clisp.org>
12996 Avoid test failure on mingw.
12997 * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
12999 2009-04-20 Bruno Haible <bruno@clisp.org>
13001 Avoid compilation error on mingw.
13002 * modules/localename-tests (Depends-on): Add locale.
13004 2009-04-19 Bruno Haible <bruno@clisp.org>
13006 Support for building a shared library on Windows platforms.
13007 * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
13008 (main): Test the presence of UNINORM_NFC here.
13009 * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
13010 (main): Test the presence of UNINORM_NFD here.
13011 * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
13012 (main): Test the presence of UNINORM_NFKC here.
13013 * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
13014 (main): Test the presence of UNINORM_NFKD here.
13016 2009-04-19 Bruno Haible <bruno@clisp.org>
13018 Avoid a compiler warning.
13019 * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
13020 Change type of variable 'sequence'.
13022 2009-04-19 Bruno Haible <bruno@clisp.org>
13024 * modules/configmake (Makefile.am): When the contents of configmake.h
13025 does not change, arrange to preserve its modification time.
13027 2009-04-17 Simon Josefsson <simon@josefsson.org>
13029 * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
13032 2009-04-16 Jim Meyering <meyering@redhat.com>
13034 useless-if-before-free: improve conversion code
13035 * build-aux/useless-if-before-free: Adjust code-in-comment to match
13036 "...!= 0" as well as "...!= NULL". emacs has one of the former.
13038 2009-04-14 Bruno Haible <bruno@clisp.org>
13040 * modules/fcntl (Depends-on): Add extensions.
13041 * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
13043 2009-04-12 Ben Pfaff <blp@gnu.org>
13045 Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
13046 * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
13048 2009-03-20 Ben Pfaff <blp@gnu.org>
13050 Make rename replace existing destinations on Windows.
13051 * m4/rename.m4: Add test for Mingw.
13052 * lib/rename.c: Add rename replacement that uses MoveFileEx with
13053 MOVEFILE_REPLACE_EXISTING to replace existing destination files.
13054 * doc/posix-functions/rename.texi: Document.
13056 2009-04-10 Bruno Haible <bruno@clisp.org>
13058 New include file "iconveh.h".
13059 * lib/iconveh.h: New file, extracted from lib/striconveh.h.
13060 * lib/striconveh.h: Include it.
13061 (enum iconv_ilseq_handler): Remove definition.
13062 * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
13064 * lib/striconveha.c: Include striconveh.h.
13065 * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
13066 * modules/striconveh (Files): Add lib/iconveh.h.
13067 * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
13070 2009-04-10 Bruno Haible <bruno@clisp.org>
13072 * lib/uniconv.h: Update comment.
13074 2009-04-10 Bruno Haible <bruno@clisp.org>
13076 * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
13078 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
13079 * lib/unistr/u16-mbtouc-aux.c: Likewise.
13080 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
13081 * lib/unistr/u8-mbtouc.c: Inside libunistring, include
13082 "unistring-notinline.h", so that the function gets defined always.
13083 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
13084 * lib/unistr/u8-uctomb.c: Likewise.
13085 * lib/unistr/u16-mbtouc.c: Likewise.
13086 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
13087 * lib/unistr/u16-uctomb.c: Likewise.
13088 * lib/unistr/u32-mbtouc.c: Likewise.
13089 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
13090 * lib/unistr/u32-uctomb.c: Likewise.
13092 2009-04-10 Bruno Haible <bruno@clisp.org>
13094 Mark 'utime' obsolete.
13095 * modules/utime (Status, Notice): New sections.
13096 Suggested by Jim Meyering.
13098 Fix cross-compile guess for utime test.
13099 * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
13101 * doc/posix-functions/utime.texi: Give more precisions.
13102 Reported by Jan <ipif@ymail.com>.
13104 2009-04-09 Kamil Dudka <kdudka@redhat.com>
13106 filevercmp: correct today's change
13107 * lib/filevercmp.c: Also handle coreutils' test inputs.
13108 * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
13110 Fix regression in 'filevercmp' module. Thanks Sven Joachim
13112 * lib/filevercmp.c: Special handle for "", "." and "..".
13113 * tests/test-filevercmp.c: Enlarge the set suite.
13115 2009-04-07 Jim Meyering <meyering@redhat.com>
13117 useless-if-before-free: show how to remove braced useless free, too
13118 * build-aux/useless-if-before-free: still only in a comment, though.
13120 2009-04-07 Reuben Thomas <rrt@sc3d.org>
13122 maint.mk: import changes to syntax-check macros from coreutils
13123 * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
13124 Use them in the relevant macros.
13126 2009-04-06 Bruno Haible <bruno@clisp.org>
13128 Fix unportable use of bit-fields.
13129 * lib/unicase/special-casing.h (struct special_casing_rule): Change the
13130 bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
13131 AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
13133 2009-04-06 Bruno Haible <bruno@clisp.org>
13135 Avoid test failures on AIX and OSF/1.
13136 * tests/unicase/test-u8-casefold.c (check): Account for the possibility
13137 that malloc(0) = NULL.
13138 * tests/unicase/test-u8-tolower.c (check): Likewise.
13139 * tests/unicase/test-u8-totitle.c (check): Likewise.
13140 * tests/unicase/test-u8-toupper.c (check): Likewise.
13141 * tests/unicase/test-u16-casefold.c (check): Likewise.
13142 * tests/unicase/test-u16-tolower.c (check): Likewise.
13143 * tests/unicase/test-u16-totitle.c (check): Likewise.
13144 * tests/unicase/test-u16-toupper.c (check): Likewise.
13145 * tests/unicase/test-u32-casefold.c (check): Likewise.
13146 * tests/unicase/test-u32-tolower.c (check): Likewise.
13147 * tests/unicase/test-u32-totitle.c (check): Likewise.
13148 * tests/unicase/test-u32-toupper.c (check): Likewise.
13149 * tests/uninorm/test-u8-nfc.c (check): Likewise.
13150 * tests/uninorm/test-u8-nfd.c (check): Likewise.
13151 * tests/uninorm/test-u8-nfkc.c (check): Likewise.
13152 * tests/uninorm/test-u8-nfkd.c (check): Likewise.
13153 * tests/uninorm/test-u16-nfc.c (check): Likewise.
13154 * tests/uninorm/test-u16-nfd.c (check): Likewise.
13155 * tests/uninorm/test-u16-nfkc.c (check): Likewise.
13156 * tests/uninorm/test-u16-nfkd.c (check): Likewise.
13157 * tests/uninorm/test-u32-nfc.c (check): Likewise.
13158 * tests/uninorm/test-u32-nfd.c (check): Likewise.
13159 * tests/uninorm/test-u32-nfkc.c (check): Likewise.
13160 * tests/uninorm/test-u32-nfkd.c (check): Likewise.
13162 2009-04-05 Bruno Haible <bruno@clisp.org>
13164 Work around an autoconf limitation.
13165 * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
13166 comment line if it would be longer than 3 KB.
13168 2009-04-05 Bruno Haible <bruno@clisp.org>
13170 Avoid test failure with libiconv-1.13.
13171 * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
13172 of the expected test results.
13174 2009-04-05 Bruno Haible <bruno@clisp.org>
13176 * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
13177 noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
13178 that it should be installed.
13180 2009-04-05 Bruno Haible <bruno@clisp.org>
13182 * gnulib-tool: New option --copy-file.
13183 (func_usage): Document it.
13184 (func_dest_tmpfilename): Moved out of func_import.
13185 (func_add_file, func_update_file): New functions, extracted from
13187 (func_import): Update.
13189 2009-04-05 Karl Berry <karl@gnu.org>
13191 * README: prominently mention gnulib-tool.
13192 Rearrange sections so getting the code is near the top.
13194 2009-04-05 Bruno Haible <bruno@clisp.org>
13196 * lib/unicase.h: Mention u*_cmp2.
13197 * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13198 * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
13199 * lib/unicase/ulc-casecmp.c: Likewise.
13200 * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
13201 * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
13202 * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
13204 * modules/unicase/ulc-casecmp (Depends-on): Likewise.
13205 * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
13207 * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
13210 * lib/uninorm.h: Mention u*_cmp2.
13211 * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13212 * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
13213 * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
13214 * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
13215 * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
13217 * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
13219 * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
13222 New module 'unistr/u32-cmp2'.
13223 * lib/unistr/u32-cmp2.c: New file.
13224 * modules/unistr/u32-cmp2: New file.
13226 New module 'unistr/u16-cmp2'.
13227 * lib/unistr/u16-cmp2.c: New file.
13228 * modules/unistr/u16-cmp2: New file.
13230 New module 'unistr/u8-cmp2'.
13231 * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
13232 * lib/unistr/u8-cmp2.c: New file.
13233 * lib/unistr/u-cmp2.h: New file.
13234 * modules/unistr/u8-cmp2: New file.
13236 2009-04-05 Bruno Haible <bruno@clisp.org>
13238 * lib/unictype.h (uc_property_is_valid): New macro.
13239 * tests/unictype/test-pr_byname.c (main): Use it.
13241 * lib/unistr.h: Doc fixes.
13242 * lib/uniconv.h: Doc fixes.
13243 * lib/unictype.h: Doc fixes.
13245 2009-04-03 Paul Eggert <eggert@cs.ucla.edu>
13247 Port coreutils 7.2 to Solaris 8.
13249 * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
13250 * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
13251 for Solaris 8. This is a bit of a hack, as it means it's the
13252 caller's responsibility to add -lnsl if needed, but most likely it
13253 won't be needed since only getaddrinfo uses this and getaddrinfo
13254 isn't needed on Solaris 8.
13256 * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
13257 problem to Solaris 8 encountered with coreutils 7.2, which
13258 resulted in a message "fnmatch.c:292: warning: passing argument 4
13259 of 'mbsrtowcs' from incompatible pointer type". Also, add mbsinit
13260 at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
13262 2009-04-03 Simon Josefsson <simon@josefsson.org>
13264 * m4/ld-version-script.m4: Add FIXME comment.
13266 2009-04-02 Simon Josefsson <simon@josefsson.org>
13268 * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
13269 SOVERSION variable.
13271 2009-04-02 Bruno Haible <bruno@clisp.org>
13273 * Makefile (info, html, dvi, pdf): Combine the rules.
13274 Suggested by Jim Meyering.
13276 2009-04-01 Bruno Haible <bruno@clisp.org>
13278 * Makefile (info, html, dvi, pdf): New targets.
13279 Reported by Reuben Thomas <rrt@sc3d.org>.
13281 2009-04-01 Bruno Haible <bruno@clisp.org>
13283 * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
13284 can be put into PATH.
13285 Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
13287 2009-04-01 Bruno Haible <bruno@clisp.org>
13289 * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
13291 2009-04-01 Bruno Haible <bruno@clisp.org>
13293 Rename module 'visibility'.
13294 * modules/lib-symbol-visibility: Renamed from modules/visibility.
13295 * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
13296 * doc/gnulib.texi: Update.
13297 * MODULES.html.sh (Misc): Update.
13298 * NEWS: Mention the change.
13300 2009-04-01 Simon Josefsson <simon@josefsson.org>
13302 * modules/lib-msvc-compat: New module. Thanks to Bruno Haible
13303 <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
13304 Eric Blake <ebb9@byu.net> for review.
13305 * MODULES.html.sh: Add lib-msvc-compat.
13306 * doc/gnulib.texi: Link to new section.
13307 * m4/ld-output-def.m4: New file.
13308 * doc/ld-output-def.texi: New file.
13310 2009-04-01 Simon Josefsson <simon@josefsson.org>
13312 Rename ld-version-script to lib-symbol-versions. Suggested by
13313 Bruno Haible <bruno@clisp.org>.
13314 * modules/ld-version-script: Renamed to lib-symbol-versions.
13315 * doc/ld-version-script.texi: Fix module name.
13316 * MODULES.html.sh: Add lib-symbol-versions.
13318 2009-03-31 Simon Josefsson <simon@josefsson.org>
13320 * modules/u64-tests: New file.
13321 * tests/test-u64.c: New file.
13323 2009-03-04 Simon Josefsson <simon@josefsson.org>
13325 * MODULES.html.sh: Mention u64.
13326 * modules/u64: New module.
13327 * modules/crypto/sha512: Depend on u64 module instead of providing
13330 2009-03-27 Eric Blake <ebb9@byu.net>
13332 test-strerror: make debugging EAI_SYSTEM easier
13333 * modules/getaddrinfo-tests (Depends-on): Add strerror.
13334 * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
13335 failure was EAI_SYSTEM.
13337 2009-03-25 Bruno Haible <bruno@clisp.org>
13339 Fix a problem with --enable-relocatable on Solaris 7.
13340 * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
13343 2009-03-25 Eric Blake <ebb9@byu.net>
13345 test-sockets: avoid gcc warning
13346 * tests/test-sockets.c (main): Silence compiler warning.
13348 2009-03-25 Paul Eggert <eggert@cs.ucla.edu>
13350 New modules nproc, pthread, contributed by Glen Lenker.
13352 * MODULES.html.sh: Add pthread, nproc.
13353 * lib/nproc.c: New file.
13354 * lib/nproc.h: New file.
13355 * lib/pthread.in.h: New file.
13356 * m4/pthread.m4: New file.
13357 * modules/nproc: New file.
13358 * modules/pthread: New file.
13360 2009-03-24 Simon Josefsson <simon@josefsson.org>
13362 * modules/unicase/locale-language-tests (test_locale_language_LDADD):
13365 2009-03-24 Kamil Dudka <kdudka@redhat.com>
13367 filevercmp: handle simple~ and numbered.~3~ backup suffixes
13368 * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
13369 * tests/test-filevercmp.c: Add tests for backup suffixes.
13371 2009-03-24 Simon Josefsson <simon@josefsson.org>
13373 * modules/stdlib (Depends-on): Add stdint, needed when defining
13374 struct random_data on, for example, HP-UX 10.20. Reported by
13375 Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13377 2009-03-24 Simon Josefsson <simon@josefsson.org>
13379 * lib/readline.c (readline): Call fflush on stdout after printing
13382 2009-03-20 Bruno Haible <bruno@clisp.org>
13384 Remove dependency from 'close' module to -lws2_32 on native Windows.
13385 * lib/close-hook.h: New file.
13386 * lib/close-hook.c: New file.
13387 * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
13389 (_gl_close_fd_maybe_socket): Remove function.
13390 (rpl_close): Invoke execute_all_close_hooks instead of
13391 _gl_close_fd_maybe_socket.
13392 * lib/sockets.c: Include close-hook.h, w32sock.h.
13393 (close_fd_maybe_socket): New function, essentially from lib/close.c.
13394 (close_sockets_hook): New variable.
13395 (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
13396 (gl_sockets_cleanup): Unregister it.
13397 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
13398 * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
13399 * modules/close-hook: New file.
13400 * modules/close (Files): Remove lib/w32sock.h.
13401 (Depends-on): Add close-hook.
13402 (Link): Remove section.
13403 * modules/sockets (Files): Add lib/w32sock.h.
13404 (Depends-on): Add close-hook.
13405 * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
13407 * NEWS: Mention that LIB_CLOSE is gone.
13409 2009-03-23 Eric Blake <ebb9@byu.net>
13411 signal-tests: test previous patch
13412 * tests/test-signal.c: New file.
13413 * modules/signal-tests: Likewise.
13415 signal.h: always support 'volatile sig_atomic_t'
13416 * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
13417 (gl_SIGNAL_H_DEFAULTS): Add a default.
13418 * modules/signal (Makefile.am): Substitute if needed.
13419 * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
13420 users can blindly add volatile.
13421 * doc/posix-headers/signal.texi (signal.h): Document it.
13422 Reported by Matthew Woehlke.
13424 2009-03-23 Jim Meyering <meyering@redhat.com>
13426 pathmax: PATH_MAX: use pathconf only when available
13427 * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
13428 only if HAVE_PATHCONF is defined. Patch by Sylvain Beucler.
13429 * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
13430 This avoids a link failure in a PSP cross-compilation environment
13431 described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
13433 * lib/vasnprintf.c (divide): Fix typo in comment.
13435 2009-03-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13437 * gnulib-tool (func_filter_filelist): Fix comment.
13439 2009-03-20 Bruno Haible <bruno@clisp.org>
13441 Make sockets.h self-contained.
13442 * lib/sockets.c: Include sockets.h first.
13443 * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
13445 2009-03-19 Eric Blake <ebb9@byu.net>
13447 doc: mention more functions added in cygwin 1.7.0
13448 * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
13450 * doc/posix-functions/log2f.texi: Likewise.
13452 2009-03-19 Jim Meyering <meyering@redhat.com>
13454 fsusage: avoid syntax error due to statement-before-declaration
13455 * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
13456 after all declarations. Reported by Matthew Woehlke in
13457 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
13459 2009-03-18 Eric Blake <ebb9@byu.net>
13461 build-aux/compile: sync from automake
13462 * build-aux/compile: New file, from automake.
13463 * config/srclist.txt: Mention build-aux/compile.
13465 2009-03-17 Bruno Haible <bruno@clisp.org>
13467 * lib/git-merge-changelog.c: Fix typo in comment.
13468 Reported by Reuben Thomas <rrt@sc3d.org>.
13470 2009-03-17 Reuben Thomas <rrt@sc3d.org>
13472 * m4/regex.m4: update and improve help for
13473 --without-included-regex.
13475 2009-03-17 Simon Josefsson <simon@josefsson.org>
13477 * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
13478 failure on missing include files.
13480 2009-03-17 Eric Blake <ebb9@byu.net>
13482 doc: mention more functions added in cygwin 1.7.0
13483 * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
13485 * doc/posix-functions/fwscanf.texi: Likewise.
13486 * doc/posix-functions/swprintf.texi: Likewise.
13487 * doc/posix-functions/swscanf.texi: Likewise.
13488 * doc/posix-functions/vfwprintf.texi: Likewise.
13489 * doc/posix-functions/vfwscanf.texi: Likewise.
13490 * doc/posix-functions/vswprintf.texi: Likewise.
13491 * doc/posix-functions/vswscanf.texi: Likewise.
13492 * doc/posix-functions/vwprintf.texi: Likewise.
13493 * doc/posix-functions/vwscanf.texi: Likewise.
13494 * doc/posix-functions/wcscasecmp.texi: Likewise.
13495 * doc/posix-functions/wcsdup.texi: Likewise.
13496 * doc/posix-functions/wcsftime.texi: Likewise.
13497 * doc/posix-functions/wcsncasecmp.texi: Likewise.
13498 * doc/posix-functions/wprintf.texi: Likewise.
13499 * doc/posix-functions/wscanf.texi: Likewise.
13500 * doc/glibc-functions/gethostbyname2.texi: Likewise.
13502 2009-03-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13504 maint.mk: really add $(AM_MAKEFLAGS)
13505 * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
13506 was inadvertently omitted in the last commit.
13507 Spotted by Bruno Haible.
13509 maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
13510 * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
13511 $(AM_MAKEFLAGS)' rather than plain `make'.
13513 gnulib-tool: execute $MAKE not make
13514 * gnulib-tool: Default $MAKE to 'make'.
13515 (func_create_testdir, func_create_megatestdir): Use $MAKE rather
13516 than make. Initialize $MAKE in the do-autobuild script.
13518 gnulib-tool: use $MAKE not make in generated files
13519 * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
13520 make, in generated files. Initialize $MAKE in the do-autobuild
13523 * top/GNUmakefile (_have-git-version-gen): Fix typo.
13525 GNUmakefile: disable parallelism only for multiple, recursive targets
13526 * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
13527 additions in the Makefile.
13528 (AM_RECURSIVE_TARGETS): New macro, override only if not provided
13530 (.NOTPARALLEL): Only disable parallel builds if multiple targets
13531 are listed on the command line and at least one of them is
13532 listed in $(ALL_RECURSIVE_TARGETS).
13534 2009-03-14 Bruno Haible <bruno@clisp.org>
13536 * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
13537 utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
13538 * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
13539 * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
13540 utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
13541 * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
13542 * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
13544 * modules/unistr/u8-strchr (Depends-on): Likewise.
13545 * modules/unistr/u8-strrchr (Depends-on): Likewise.
13546 * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
13548 * modules/unistr/u16-strchr (Depends-on): Likewise.
13549 * modules/unistr/u16-strrchr (Depends-on): Likewise.
13551 2009-03-12 Bruno Haible <bruno@clisp.org>
13553 Work around select() bug on Interix 3.5.
13554 * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
13555 * lib/select.c (rpl_select): Add an implementation for Unix platforms.
13556 * m4/select.m4: New file.
13557 * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
13558 * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
13559 * modules/select (Files): Add m4/select.m4.
13560 (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
13561 * modules/nanosleep (Depends-on): Add select.
13562 * modules/poll (Depends-on): Likewise.
13563 * doc/posix-functions/select.texi: Mention the Interix bug.
13564 Reported by Markus Duft <mduft@gentoo.org>.
13566 * lib/select.c: Renamed from lib/winsock-select.c.
13567 * modules/select (Files): Add lib/select.c, remove
13568 lib/winsock-select.c.
13569 (configure.ac): Update.
13571 2009-03-12 Jim Meyering <meyering@redhat.com>
13573 avoid gcc warnings about unused macro definitions
13574 * lib/readtokens.c (STREQ): Remove unused definition.
13575 * lib/xmalloc.c (SIZE_MAX): Likewise.
13576 * lib/openat-die.c (N_): Likewise.
13577 * lib/mountlist.c (SIZE_MAX): Remove definition.
13578 Instead, include <stdint.h>.
13579 * lib/readutmp.c: Likewise.
13580 * modules/readutmp (Depends-on): Add stdint.
13581 * modules/mountlist (Depends-on): Add stdint.
13582 * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
13584 2009-03-10 Bruno Haible <bruno@clisp.org>
13586 Tests for module 'mbmemcasecoll'.
13587 * modules/mbmemcasecoll-tests: New file.
13588 * tests/test-mbmemcasecoll1.sh: New file.
13589 * tests/test-mbmemcasecoll2.sh: New file.
13590 * tests/test-mbmemcasecoll3.sh: New file.
13591 * tests/test-mbmemcasecoll.c: New file.
13593 New module 'mbmemcasecoll'.
13594 * lib/mbmemcasecoll.h: New file.
13595 * lib/mbmemcasecoll.c: New file.
13596 * modules/mbmemcasecoll: New file.
13598 * tests/test-mbmemcasecmp.h: New file, extracted from
13599 tests/test-mbmemcasecmp.c.
13600 * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
13601 (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
13603 * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
13605 2009-03-09 Bruno Haible <bruno@clisp.org>
13607 Tests for module 'mbmemcasecmp'.
13608 * modules/mbmemcasecmp-tests: New file.
13609 * tests/test-mbmemcasecmp1.sh: New file.
13610 * tests/test-mbmemcasecmp2.sh: New file.
13611 * tests/test-mbmemcasecmp3.sh: New file.
13612 * tests/test-mbmemcasecmp.c: New file.
13614 New module 'mbmemcasecmp'.
13615 * lib/mbmemcasecmp.h: New file.
13616 * lib/mbmemcasecmp.c: New file.
13617 * modules/mbmemcasecmp: New file.
13619 2009-03-09 Bruno Haible <bruno@clisp.org>
13621 Tests for module 'unicase/ulc-casecoll'.
13622 * modules/unicase/ulc-casecoll-tests: New file.
13623 * tests/unicase/test-ulc-casecoll1.sh: New file.
13624 * tests/unicase/test-ulc-casecoll2.sh: New file.
13625 * tests/unicase/test-ulc-casecoll.c: New file.
13627 New module 'unicase/ulc-casecoll'.
13628 * lib/unicase.h (ulc_casecoll): New declaration.
13629 * lib/unicase/ulc-casecoll.c: New file.
13630 * modules/unicase/ulc-casecoll: New file.
13632 New module 'unicase/ulc-casexfrm'.
13633 * lib/unicase.h (ulc_casexfrm): New declaration.
13634 * lib/unicase/ulc-casexfrm.c: New file.
13635 * modules/unicase/ulc-casexfrm: New file.
13637 2009-03-09 Bruno Haible <bruno@clisp.org>
13639 Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
13642 * m4/mbscasecmp.m4: Remove file.
13643 * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
13644 (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
13646 * m4/mbscasestr.m4: Remove file.
13647 * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
13648 (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
13650 * m4/mbschr.m4: Remove file.
13651 * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
13652 (configure.ac): Remove gl_FUNC_MBSCHR invocation.
13654 * m4/mbscspn.m4: Remove file.
13655 * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
13656 (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
13658 * m4/mbslen.m4: Remove file.
13659 * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
13660 (configure.ac): Remove gl_FUNC_MBSLEN invocation.
13662 * m4/mbsncasecmp.m4: Remove file.
13663 * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
13664 (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
13666 * m4/mbsnlen.m4: Remove file.
13667 * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
13668 (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
13670 * m4/mbspbrk.m4: Remove file.
13671 * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
13672 (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
13674 * m4/mbspcasecmp.m4: Remove file.
13675 * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
13676 (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
13678 * m4/mbsrchr.m4: Remove file.
13679 * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
13680 (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
13682 * m4/mbssep.m4: Remove file.
13683 * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
13684 (configure.ac): Remove gl_FUNC_MBSSEP invocation.
13686 * m4/mbsspn.m4: Remove file.
13687 * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
13688 (configure.ac): Remove gl_FUNC_MBSSPN invocation.
13690 * m4/mbsstr.m4: Remove file.
13691 * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
13692 (configure.ac): Remove gl_FUNC_MBSSTR invocation.
13694 * m4/mbstok_r.m4: Remove file.
13695 * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
13696 (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
13698 * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
13700 * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
13701 AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
13703 * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
13705 2009-03-08 Bruno Haible <bruno@clisp.org>
13707 Tests for module 'unicase/ulc-casecmp'.
13708 * modules/unicase/ulc-casecmp-tests: New file.
13709 * tests/unicase/test-ulc-casecmp1.sh: New file.
13710 * tests/unicase/test-ulc-casecmp2.sh: New file.
13711 * tests/unicase/test-ulc-casecmp.c: New file.
13713 New module 'unicase/ulc-casecmp'.
13714 * lib/unicase.h (ulc_casecmp): New declaration.
13715 * lib/unicase/ulc-casecmp.c: New file.
13716 * lib/unicase/u-casecmp.h (FUNC): Change argument types to
13717 'const SRC_UNIT *'.
13718 * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
13719 * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
13720 * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
13721 * modules/unicase/ulc-casecmp: New file.
13723 Tests for module 'unicase/u32-is-cased'.
13724 * modules/unicase/u32-is-cased-tests: New file.
13725 * tests/unicase/test-u32-is-cased.c: New file.
13727 Tests for module 'unicase/u16-is-cased'.
13728 * modules/unicase/u16-is-cased-tests: New file.
13729 * tests/unicase/test-u16-is-cased.c: New file.
13731 Tests for module 'unicase/u8-is-cased'.
13732 * modules/unicase/u8-is-cased-tests: New file.
13733 * tests/unicase/test-u8-is-cased.c: New file.
13734 * tests/unicase/test-is-cased.h: New file.
13736 New module 'unicase/u32-is-cased'.
13737 * lib/unicase/u32-is-cased.c: New file.
13738 * modules/unicase/u32-is-cased: New file.
13740 New module 'unicase/u16-is-cased'.
13741 * lib/unicase/u16-is-cased.c: New file.
13742 * modules/unicase/u16-is-cased: New file.
13744 New module 'unicase/u8-is-cased'.
13745 * lib/unicase/u8-is-cased.c: New file.
13746 * lib/unicase/u-is-cased.h: New file.
13747 * modules/unicase/u8-is-cased: New file.
13749 Tests for module 'unicase/u32-is-casefolded'.
13750 * modules/unicase/u32-is-casefolded-tests: New file.
13751 * tests/unicase/test-u32-is-casefolded.c: New file.
13753 Tests for module 'unicase/u16-is-casefolded'.
13754 * modules/unicase/u16-is-casefolded-tests: New file.
13755 * tests/unicase/test-u16-is-casefolded.c: New file.
13757 Tests for module 'unicase/u8-is-casefolded'.
13758 * modules/unicase/u8-is-casefolded-tests: New file.
13759 * tests/unicase/test-u8-is-casefolded.c: New file.
13760 * tests/unicase/test-is-casefolded.h: New file.
13762 New module 'unicase/u32-is-casefolded'.
13763 * lib/unicase/u32-is-casefolded.c: New file.
13764 * modules/unicase/u32-is-casefolded: New file.
13766 New module 'unicase/u16-is-casefolded'.
13767 * lib/unicase/u16-is-casefolded.c: New file.
13768 * modules/unicase/u16-is-casefolded: New file.
13770 New module 'unicase/u8-is-casefolded'.
13771 * lib/unicase/u8-is-casefolded.c: New file.
13772 * modules/unicase/u8-is-casefolded: New file.
13774 Tests for module 'unicase/u32-is-titlecase'.
13775 * modules/unicase/u32-is-titlecase-tests: New file.
13776 * tests/unicase/test-u32-is-titlecase.c: New file.
13778 Tests for module 'unicase/u16-is-titlecase'.
13779 * modules/unicase/u16-is-titlecase-tests: New file.
13780 * tests/unicase/test-u16-is-titlecase.c: New file.
13782 Tests for module 'unicase/u8-is-titlecase'.
13783 * modules/unicase/u8-is-titlecase-tests: New file.
13784 * tests/unicase/test-u8-is-titlecase.c: New file.
13785 * tests/unicase/test-is-titlecase.h: New file.
13787 New module 'unicase/u32-is-titlecase'.
13788 * lib/unicase/u32-is-titlecase.c: New file.
13789 * modules/unicase/u32-is-titlecase: New file.
13791 New module 'unicase/u16-is-titlecase'.
13792 * lib/unicase/u16-is-titlecase.c: New file.
13793 * modules/unicase/u16-is-titlecase: New file.
13795 New module 'unicase/u8-is-titlecase'.
13796 * lib/unicase/u8-is-titlecase.c: New file.
13797 * modules/unicase/u8-is-titlecase: New file.
13799 Tests for module 'unicase/u32-is-lowercase'.
13800 * modules/unicase/u32-is-lowercase-tests: New file.
13801 * tests/unicase/test-u32-is-lowercase.c: New file.
13803 Tests for module 'unicase/u16-is-lowercase'.
13804 * modules/unicase/u16-is-lowercase-tests: New file.
13805 * tests/unicase/test-u16-is-lowercase.c: New file.
13807 Tests for module 'unicase/u8-is-lowercase'.
13808 * modules/unicase/u8-is-lowercase-tests: New file.
13809 * tests/unicase/test-u8-is-lowercase.c: New file.
13810 * tests/unicase/test-is-lowercase.h: New file.
13812 New module 'unicase/u32-is-lowercase'.
13813 * lib/unicase/u32-is-lowercase.c: New file.
13814 * modules/unicase/u32-is-lowercase: New file.
13816 New module 'unicase/u16-is-lowercase'.
13817 * lib/unicase/u16-is-lowercase.c: New file.
13818 * modules/unicase/u16-is-lowercase: New file.
13820 New module 'unicase/u8-is-lowercase'.
13821 * lib/unicase/u8-is-lowercase.c: New file.
13822 * modules/unicase/u8-is-lowercase: New file.
13824 Tests for module 'unicase/u32-is-uppercase'.
13825 * modules/unicase/u32-is-uppercase-tests: New file.
13826 * tests/unicase/test-u32-is-uppercase.c: New file.
13828 Tests for module 'unicase/u16-is-uppercase'.
13829 * modules/unicase/u16-is-uppercase-tests: New file.
13830 * tests/unicase/test-u16-is-uppercase.c: New file.
13832 Tests for module 'unicase/u8-is-uppercase'.
13833 * modules/unicase/u8-is-uppercase-tests: New file.
13834 * tests/unicase/test-u8-is-uppercase.c: New file.
13835 * tests/unicase/test-is-uppercase.h: New file.
13837 New module 'unicase/u32-is-uppercase'.
13838 * lib/unicase/u32-is-uppercase.c: New file.
13839 * modules/unicase/u32-is-uppercase: New file.
13841 New module 'unicase/u16-is-uppercase'.
13842 * lib/unicase/u16-is-uppercase.c: New file.
13843 * modules/unicase/u16-is-uppercase: New file.
13845 New module 'unicase/u8-is-uppercase'.
13846 * lib/unicase/u8-is-uppercase.c: New file.
13847 * modules/unicase/u8-is-uppercase: New file.
13849 New module 'unicase/u32-is-invariant'.
13850 * lib/unicase/u32-is-invariant.c: New file.
13851 * modules/unicase/u32-is-invariant: New file.
13853 New module 'unicase/u16-is-invariant'.
13854 * lib/unicase/u16-is-invariant.c: New file.
13855 * modules/unicase/u16-is-invariant: New file.
13857 New module 'unicase/u8-is-invariant'.
13858 * lib/unicase/u8-is-invariant.c: New file.
13859 * lib/unicase/invariant.h: New file.
13860 * lib/unicase/u-is-invariant.h: New file.
13861 * modules/unicase/u8-is-invariant: New file.
13863 Tests for module 'unicase/u32-casecoll'.
13864 * modules/unicase/u32-casecoll-tests: New file.
13865 * tests/unicase/test-u32-casecoll.c: New file.
13867 Tests for module 'unicase/u16-casecoll'.
13868 * modules/unicase/u16-casecoll-tests: New file.
13869 * tests/unicase/test-u16-casecoll.c: New file.
13871 Tests for module 'unicase/u8-casecoll'.
13872 * modules/unicase/u8-casecoll-tests: New file.
13873 * tests/unicase/test-u8-casecoll.c: New file.
13875 New module 'unicase/u32-casecoll'.
13876 * lib/unicase/u32-casecoll.c: New file.
13877 * modules/unicase/u32-casecoll: New file.
13879 New module 'unicase/u16-casecoll'.
13880 * lib/unicase/u16-casecoll.c: New file.
13881 * modules/unicase/u16-casecoll: New file.
13883 New module 'unicase/u8-casecoll'.
13884 * lib/unicase/u8-casecoll.c: New file.
13885 * lib/unicase/u-casecoll.h: New file.
13886 * modules/unicase/u8-casecoll: New file.
13888 New module 'unicase/u32-casexfrm'.
13889 * lib/unicase/u32-casexfrm.c: New file.
13890 * modules/unicase/u32-casexfrm: New file.
13892 New module 'unicase/u16-casexfrm'.
13893 * lib/unicase/u16-casexfrm.c: New file.
13894 * modules/unicase/u16-casexfrm: New file.
13896 New module 'unicase/u8-casexfrm'.
13897 * lib/unicase/u8-casexfrm.c: New file.
13898 * lib/unicase/u-casexfrm.h: New file.
13899 * modules/unicase/u8-casexfrm: New file.
13901 Tests for module 'unicase/u32-casecmp'.
13902 * modules/unicase/u32-casecmp-tests: New file.
13903 * tests/unicase/test-u32-casecmp.c: New file.
13905 Tests for module 'unicase/u16-casecmp'.
13906 * modules/unicase/u16-casecmp-tests: New file.
13907 * tests/unicase/test-u16-casecmp.c: New file.
13909 Tests for module 'unicase/u8-casecmp'.
13910 * modules/unicase/u8-casecmp-tests: New file.
13911 * tests/unicase/test-u8-casecmp.c: New file.
13912 * tests/unicase/test-casecmp.h: New file.
13914 New module 'unicase/u32-casecmp'.
13915 * lib/unicase/u32-casecmp.c: New file.
13916 * modules/unicase/u32-casecmp: New file.
13918 New module 'unicase/u16-casecmp'.
13919 * lib/unicase/u16-casecmp.c: New file.
13920 * modules/unicase/u16-casecmp: New file.
13922 New module 'unicase/u8-casecmp'.
13923 * lib/unicase/u8-casecmp.c: New file.
13924 * lib/unicase/u-casecmp.h: New file.
13925 * modules/unicase/u8-casecmp: New file.
13927 Tests for module 'unicase/u32-casefold'.
13928 * modules/unicase/u32-casefold-tests: New file.
13929 * tests/unicase/test-u32-casefold.c: New file.
13931 Tests for module 'unicase/u16-casefold'.
13932 * modules/unicase/u16-casefold-tests: New file.
13933 * tests/unicase/test-u16-casefold.c: New file.
13935 Tests for module 'unicase/u8-casefold'.
13936 * modules/unicase/u8-casefold-tests: New file.
13937 * tests/unicase/test-u8-casefold.c: New file.
13939 New module 'unicase/u32-casefold'.
13940 * lib/unicase/u32-casefold.c: New file.
13941 * modules/unicase/u32-casefold: New file.
13943 New module 'unicase/u16-casefold'.
13944 * lib/unicase/u16-casefold.c: New file.
13945 * modules/unicase/u16-casefold: New file.
13947 New module 'unicase/u8-casefold'.
13948 * lib/unicase/u8-casefold.c: New file.
13949 * lib/unicase/u-casefold.h: New file.
13950 * modules/unicase/u8-casefold: New file.
13952 New module 'unicase/tocasefold'.
13953 * lib/unicase/casefold.h: New file.
13954 * lib/unicase/tocasefold.c: New file.
13955 * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
13956 * modules/unicase/tocasefold: New file.
13958 Tests for module 'unicase/u32-totitle'.
13959 * modules/unicase/u32-totitle-tests: New file.
13960 * tests/unicase/test-u32-totitle.c: New file.
13962 Tests for module 'unicase/u16-totitle'.
13963 * modules/unicase/u16-totitle-tests: New file.
13964 * tests/unicase/test-u16-totitle.c: New file.
13966 Tests for module 'unicase/u8-totitle'.
13967 * modules/unicase/u8-totitle-tests: New file.
13968 * tests/unicase/test-u8-totitle.c: New file.
13970 New module 'unicase/u32-totitle'.
13971 * lib/unicase/u32-totitle.c: New file.
13972 * modules/unicase/u32-totitle: New file.
13974 New module 'unicase/u16-totitle'.
13975 * lib/unicase/u16-totitle.c: New file.
13976 * modules/unicase/u16-totitle: New file.
13978 New module 'unicase/u8-totitle'.
13979 * lib/unicase/u8-totitle.c: New file.
13980 * lib/unicase/u-totitle.h: New file.
13981 * modules/unicase/u8-totitle: New file.
13983 Tests for module 'unicase/u32-tolower'.
13984 * modules/unicase/u32-tolower-tests: New file.
13985 * tests/unicase/test-u32-tolower.c: New file.
13987 Tests for module 'unicase/u16-tolower'.
13988 * modules/unicase/u16-tolower-tests: New file.
13989 * tests/unicase/test-u16-tolower.c: New file.
13991 Tests for module 'unicase/u8-tolower'.
13992 * modules/unicase/u8-tolower-tests: New file.
13993 * tests/unicase/test-u8-tolower.c: New file.
13995 New module 'unicase/u32-tolower'.
13996 * lib/unicase/u32-tolower.c: New file.
13997 * modules/unicase/u32-tolower: New file.
13999 New module 'unicase/u16-tolower'.
14000 * lib/unicase/u16-tolower.c: New file.
14001 * modules/unicase/u16-tolower: New file.
14003 New module 'unicase/u8-tolower'.
14004 * lib/unicase/u8-tolower.c: New file.
14005 * modules/unicase/u8-tolower: New file.
14007 Tests for module 'unicase/u32-toupper'.
14008 * modules/unicase/u32-toupper-tests: New file.
14009 * tests/unicase/test-u32-toupper.c: New file.
14011 Tests for module 'unicase/u16-toupper'.
14012 * modules/unicase/u16-toupper-tests: New file.
14013 * tests/unicase/test-u16-toupper.c: New file.
14015 Tests for module 'unicase/u8-toupper'.
14016 * modules/unicase/u8-toupper-tests: New file.
14017 * tests/unicase/test-u8-toupper.c: New file.
14019 New module 'unicase/u32-toupper'.
14020 * lib/unicase/u32-toupper.c: New file.
14021 * modules/unicase/u32-toupper: New file.
14023 New module 'unicase/u16-toupper'.
14024 * lib/unicase/u16-toupper.c: New file.
14025 * modules/unicase/u16-toupper: New file.
14027 New module 'unicase/u8-toupper'.
14028 * lib/unicase/u8-toupper.c: New file.
14029 * modules/unicase/u8-toupper: New file.
14031 New module 'unicase/u32-casemap'.
14032 * lib/unicase/u32-casemap.c: New file.
14033 * modules/unicase/u32-casemap: New file.
14035 New module 'unicase/u16-casemap'.
14036 * lib/unicase/u16-casemap.c: New file.
14037 * modules/unicase/u16-casemap: New file.
14039 New module 'unicase/u8-casemap'.
14040 * lib/unicase/unicasemap.h: New file.
14041 * lib/unicase/u8-casemap.c: New file.
14042 * lib/unicase/u-casemap.h: New file.
14043 * modules/unicase/u8-casemap: New file.
14045 New module 'unicase/special-casing'.
14046 * lib/unicase/special-casing.h: New file.
14047 * lib/unicase/special-casing.c: New file.
14048 * lib/unicase/special-casing-table.gperf: New file, generated by
14050 * modules/unicase/special-casing: New file.
14052 Tests for module 'unicase/locale-language'.
14053 * modules/unicase/locale-language-tests: New file.
14054 * tests/unicase/test-locale-language.sh: New file.
14055 * tests/unicase/test-locale-language.c: New file.
14057 New module 'unicase/locale-language'.
14058 * lib/unicase/locale-language.c: New file.
14059 * lib/unicase/locale-languages.gperf: New file.
14060 * modules/unicase/locale-language: New file.
14062 Generate more tables for case conversion and case folding.
14063 * lib/gen-uni-tables.c (SCC_*): New enum items.
14064 (struct special_casing_rule): New type.
14065 (casing_rules, num_casing_rules, allocated_casing_rules): New
14067 (add_casing_rule, fill_casing_rules): New functions.
14068 (struct casefold_rule): New type.
14069 (casefolding_rules, num_casefolding_rules,
14070 allocated_casefolding_rules): New variables.
14071 (fill_casefolding_rules): New function.
14072 (unicode_casefold): New variable.
14073 (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
14074 sort_casing_rules, output_casing_rules): New functions.
14075 (main): Accept to more arguments: SpecialCasing.txt and
14076 CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
14077 redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
14078 Output mapping for casefolding.
14080 * lib/unicase.h: Include stdbool.h, uninorm.h.
14081 (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
14082 u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
14083 (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
14085 (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
14087 (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
14088 (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
14090 (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
14091 u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
14092 u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
14093 u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
14095 * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
14097 2009-03-08 Bruno Haible <bruno@clisp.org>
14099 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14100 u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
14101 * lib/uninorm/u-normcmp.h (FUNC): Likewise.
14102 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14104 2009-03-07 Bruno Haible <bruno@clisp.org>
14106 Adjust u*_normcmp, u*_normcoll API.
14107 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14108 u16_normcoll, u32_normcoll): Change failure conventions.
14109 * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
14110 errno and return -1.
14111 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14113 2009-03-07 Bruno Haible <bruno@clisp.org>
14115 Tests for module 'uninorm/u32-normcoll'.
14116 * modules/uninorm/u32-normcoll-tests: New file.
14117 * tests/uninorm/test-u32-normcoll.c: New file.
14119 Tests for module 'uninorm/u16-normcoll'.
14120 * modules/uninorm/u16-normcoll-tests: New file.
14121 * tests/uninorm/test-u16-normcoll.c: New file.
14123 Tests for module 'uninorm/u8-normcoll'.
14124 * modules/uninorm/u8-normcoll-tests: New file.
14125 * tests/uninorm/test-u8-normcoll.c: New file.
14127 2009-03-07 Bruno Haible <bruno@clisp.org>
14129 * tests/uninorm/test-u32-normcmp.h: New file, extracted from
14130 tests/uninorm/test-u32-normcmp.c.
14131 * tests/uninorm/test-u32-normcmp.c: Include it.
14132 (test_nonascii): New function, extracted from main. Add some more
14134 (main): Invoke test_ascii and test_nonascii.
14135 * modules/uninorm/u32-normcmp-tests (Files): Add
14136 tests/uninorm/test-u32-normcmp.h.
14137 (Depends-on): Remove uninorm/u32-normcmp.
14139 * tests/uninorm/test-u16-normcmp.h: New file, extracted from
14140 tests/uninorm/test-u16-normcmp.c.
14141 * tests/uninorm/test-u16-normcmp.c: Include it.
14142 (test_nonascii): New function, extracted from main. Add some more
14144 (main): Invoke test_ascii and test_nonascii.
14145 * modules/uninorm/u16-normcmp-tests (Files): Add
14146 tests/uninorm/test-u16-normcmp.h.
14147 (Depends-on): Remove uninorm/u16-normcmp.
14149 * tests/uninorm/test-u8-normcmp.h: New file, extracted from
14150 tests/uninorm/test-u8-normcmp.c.
14151 * tests/uninorm/test-u8-normcmp.c: Include it.
14152 (test_nonascii): New function, extracted from main. Add some more
14154 (main): Invoke test_ascii and test_nonascii.
14155 * modules/uninorm/u8-normcmp-tests (Files): Add
14156 tests/uninorm/test-u8-normcmp.h.
14157 (Depends-on): Remove uninorm/u8-normcmp.
14159 2009-03-07 Bruno Haible <bruno@clisp.org>
14161 New module 'uninorm/u32-normcoll'.
14162 * lib/uninorm/u32-normcoll.c: New file.
14163 * modules/uninorm/u32-normcoll: New file.
14165 New module 'uninorm/u16-normcoll'.
14166 * lib/uninorm/u16-normcoll.c: New file.
14167 * modules/uninorm/u16-normcoll: New file.
14169 New module 'uninorm/u8-normcoll'.
14170 * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
14172 * lib/uninorm/u8-normcoll.c: New file.
14173 * lib/uninorm/u-normcoll.h: New file.
14174 * modules/uninorm/u8-normcoll: New file.
14176 New module 'uninorm/u32-normxfrm'.
14177 * lib/uninorm/u32-normxfrm.c: New file.
14178 * modules/uninorm/u32-normxfrm: New file.
14180 New module 'uninorm/u16-normxfrm'.
14181 * lib/uninorm/u16-normxfrm.c: New file.
14182 * modules/uninorm/u16-normxfrm: New file.
14184 New module 'uninorm/u8-normxfrm'.
14185 * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
14187 * lib/uninorm/u8-normxfrm.c: New file.
14188 * lib/uninorm/u-normxfrm.h: New file.
14189 * modules/uninorm/u8-normxfrm: New file.
14191 2009-03-07 Bruno Haible <bruno@clisp.org>
14193 * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
14194 * modules/uninorm/u16-normcmp (Depends-on): Likewise.
14195 * modules/uninorm/u32-normcmp (Depends-on): Likewise.
14197 2009-03-07 Bruno Haible <bruno@clisp.org>
14199 New module 'memxfrm'.
14200 * lib/memxfrm.h: New file.
14201 * lib/memxfrm.c: New file.
14202 * modules/memxfrm: New file.
14204 2009-03-07 Bruno Haible <bruno@clisp.org>
14206 New module 'memcmp2'.
14207 * lib/memcmp2.h: New file.
14208 * lib/memcmp2.c: New file.
14209 * modules/memcmp2: New file.
14211 2009-03-07 Bruno Haible <bruno@clisp.org>
14213 Tests for module 'uninorm/decomposing-form'.
14214 * modules/uninorm/decomposing-form-tests: New file.
14215 * tests/uninorm/test-decomposing-form.c: New file.
14217 New module 'uninorm/decomposing-form'.
14218 * lib/uninorm.h (uninorm_decomposing_form): New declaration.
14219 * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
14220 Add 'decomposing_variant' field.
14221 * lib/uninorm/decomposing-form.c: New file.
14222 * lib/uninorm/nfc.c (uninorm_nfc): Update.
14223 * lib/uninorm/nfd.c (uninorm_nfd): Update.
14224 * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
14225 * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
14226 * modules/uninorm/decomposing-form: New file.
14227 * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
14228 * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
14230 2009-03-07 Bruno Haible <bruno@clisp.org>
14232 * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
14235 2009-03-06 Bruno Haible <bruno@clisp.org>
14237 Tests for module 'uninorm/u32-normcmp'.
14238 * tests/uninorm/test-u32-normcmp.c: New file.
14239 * modules/uninorm/u32-normcmp-tests: New file.
14241 Tests for module 'uninorm/u16-normcmp'.
14242 * tests/uninorm/test-u16-normcmp.c: New file.
14243 * modules/uninorm/u16-normcmp-tests: New file.
14245 Tests for module 'uninorm/u8-normcmp'.
14246 * tests/uninorm/test-u8-normcmp.c: New file.
14247 * modules/uninorm/u8-normcmp-tests: New file.
14249 New module 'uninorm/u32-normcmp'.
14250 * lib/uninorm/u32-normcmp.c: New file.
14251 * modules/uninorm/u32-normcmp: New file.
14253 New module 'uninorm/u16-normcmp'.
14254 * lib/uninorm/u16-normcmp.c: New file.
14255 * modules/uninorm/u16-normcmp: New file.
14257 New module 'uninorm/u8-normcmp'.
14258 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
14260 * lib/uninorm/u8-normcmp.c: New file.
14261 * lib/uninorm/u-normcmp.h: New file.
14262 * modules/uninorm/u8-normcmp: New file.
14264 2009-03-06 Bruno Haible <bruno@clisp.org>
14266 * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
14267 Reported by Eric Blake.
14269 2009-03-06 Eric Blake <ebb9@byu.net>
14270 Bruno Haible <bruno@clisp.org>
14272 * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
14273 * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
14275 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
14276 * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
14278 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
14280 2009-03-06 Eric Blake <ebb9@byu.net>
14282 * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
14283 to avoid compiler warnings.
14284 * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
14286 2009-03-05 Bruno Haible <bruno@clisp.org>
14288 * tests/test-ftell.c (main): Disable test beyond end of file on
14290 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
14292 2009-03-05 Kamil Dudka <kdudka@redhat.com>
14294 * lib/filevercmp.c: Move hidden files up in ordering.
14295 * tests/test-filevercmp.c: Add tests for hidden files.
14297 2009-03-04 Bruno Haible <bruno@clisp.org>
14299 * modules/visibility (Makefile.am): Augment AM_CFLAGS.
14300 * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
14302 Reported by Simon Josefsson.
14304 2009-03-03 Bruno Haible <bruno@clisp.org>
14306 * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
14307 Reported by Simon Josefsson.
14309 * doc/ld-version-script.texi: Update node reference.
14311 2009-03-03 Bruno Haible <bruno@clisp.org>
14313 * modules/visibility (License): Change to 'unlimited'.
14314 Suggested by Simon Josefsson.
14316 2009-03-03 Jim Meyering <meyering@redhat.com>
14318 unlinkdir: cannot_unlink_dir may modify process state
14319 * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
14320 it's neither thread-safe nor appropriate for use in a library.
14322 2009-03-03 Eric Blake <ebb9@byu.net>
14324 test-closein: silence test under Darwin
14325 * tests/test-closein.sh: Ignore stderr from cat, since we don't
14326 care if it dies from EPIPE or EBADF.
14328 2009-03-03 Bruno Haible <bruno@clisp.org>
14330 * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
14332 * doc/visibility.texi: Fix @node and @section.
14334 2009-03-03 Simon Josefsson <simon@josefsson.org>
14336 * doc/gnulib.texi: Link to sections for ld version script and
14338 * doc/visibility.texi: Add @node and @section.
14339 * modules/ld-version-script: New module.
14340 * m4/ld-version-script.m4: New file.
14341 * doc/ld-version-script.texi: New file.
14343 2009-03-02 David Lutterkort <lutter@redhat.com>
14345 * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
14346 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14348 2009-03-02 Bruno Haible <bruno@clisp.org>
14350 * doc/visibility.texi: Mention libtool's -export-symbols option.
14352 2009-03-02 Jim Meyering <meyering@redhat.com>
14354 announce-gen: new option: --no-print-checksums
14355 * build-aux/announce-gen (usage): Describe it.
14356 (print_checksums): Print a newline here, not in the [*] footnote.
14359 2009-03-01 Bruno Haible <bruno@clisp.org>
14361 Use socklen_t in the native Windows replacements prototypes.
14362 * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
14364 * lib/getsockopt.c (rpl_getsockopt): Likewise.
14365 * lib/setsockopt.c (rpl_setsockopt): Likewise.
14366 * modules/getsockopt (Depends-on): Add socklen.
14367 * modules/setsockopt (Depends-on): Add socklen.
14369 2009-03-01 Bruno Haible <bruno@clisp.org>
14371 * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
14374 2009-03-01 Eric Blake <ebb9@byu.net>
14375 Bruno Haible <bruno@clisp.org>
14377 * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
14379 * lib/wait-process.c (wait_subprocess): Omit error message about
14380 deadly signal sent to the child of termsigp != NULL.
14382 2009-03-01 Eric Blake <ebb9@byu.net>
14384 * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
14386 2009-03-01 Bruno Haible <bruno@clisp.org>
14388 Avoid a gcc warning.
14389 * tests/test-sched.c (b): Make global.
14390 Reported by Eric Blake.
14392 2009-01-19 Martin Lambers <marlam@marlam.de>
14394 Provide POSIX semantics for socket timeout options on W32.
14395 * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
14396 * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
14397 * modules/setsockopt: Depend on sys_time module for struct timeval.
14398 * modules/getsockopt: Depend on sys_time module for struct timeval.
14400 2009-03-01 Simon Josefsson <simon@josefsson.org>
14402 * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
14403 __USE_GNU, for consistency with netdb.in.h.
14404 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14406 2009-03-01 Bruno Haible <bruno@clisp.org>
14408 More support for FreeMiNT.
14409 * lib/fseeko.c (rpl_fseeko): Complete last commit.
14410 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14412 2009-03-01 Bruno Haible <bruno@clisp.org>
14414 More support for FreeMiNT.
14415 * lib/fpurge.c (fpurge): Correct last commit.
14416 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14418 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14420 Fix unportable awk script in vc-list-files.
14421 * build-aux/vc-list-files: In the replacement awk script, use
14422 substr with a second argument of 1, not zero.
14423 Report by Simon Josefsson.
14425 2009-02-28 Bruno Haible <bruno@clisp.org>
14427 More support for FreeMiNT.
14428 * lib/freading.c (freading) [__MINT__]: Use new macros that were added
14430 * lib/fwriting.c (fwriting): Likewise.
14431 Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
14433 2009-02-28 Bruno Haible <bruno@clisp.org>
14435 * tests/test-freadseek.c (main): Disable test beyond end of file on
14437 * tests/test-ftello.c (main): Likewise.
14438 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
14440 2009-02-28 Bruno Haible <bruno@clisp.org>
14442 Add tentative support for FreeMiNT.
14443 * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
14444 * lib/fpurge.c (fpurge): Likewise.
14445 * lib/freadable.c (freadable): Likewise.
14446 * lib/freading.c (freading): Likewise.
14447 * lib/freadptr.c (freadptr): Likewise.
14448 * lib/freadseek.c (freadptrinc): Likewise.
14449 * lib/fseeko.c (rpl_fseeko): Likewise.
14450 * lib/fseterr.c (fseterr): Likewise.
14451 * lib/fwritable.c (fwritable): Likewise.
14452 * lib/fwriting.c (fwriting): Likewise.
14453 * lib/freadahead.c (freadahead): Likewise, based on code by Alan
14455 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14457 2009-02-28 Bruno Haible <bruno@clisp.org>
14459 * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
14461 Reported by Jim Meyering.
14463 2009-02-28 Bruno Haible <bruno@clisp.org>
14465 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
14466 Mention the results of these tests on various platforms.
14467 * doc/posix-functions/fprintf.texi: Mention platforms in canonical
14469 * doc/posix-functions/printf.texi: Likewise.
14470 * doc/posix-functions/snprintf.texi: Likewise.
14471 * doc/posix-functions/sprintf.texi: Likewise.
14472 * doc/posix-functions/vfprintf.texi: Likewise.
14473 * doc/posix-functions/vprintf.texi: Likewise.
14474 * doc/posix-functions/vsnprintf.texi: Likewise.
14475 * doc/posix-functions/vsprintf.texi: Likewise.
14476 * doc/glibc-functions/obstack_printf.texi: Likewise.
14477 * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14479 2009-02-28 Bruno Haible <bruno@clisp.org>
14481 * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
14482 Reported by Loïc Minier <lool@dooz.org>.
14484 2009-02-27 Bruno Haible <bruno@clisp.org>
14486 * gnulib-tool (func_import): Make the sed expression used to create the
14487 sed script for updating the .gitignore file POSIX compliant.
14488 Reported by Eric Blake.
14490 2009-02-27 Bruno Haible <bruno@clisp.org>
14492 * gnulib-tool (sed): Don't alias as "sed --posix".
14493 Reported by Eric Blake.
14495 2009-02-27 Bruno Haible <bruno@clisp.org>
14497 Avoid test link errors.
14498 * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
14499 * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
14500 * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
14501 * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
14502 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14504 2009-02-27 Bruno Haible <bruno@clisp.org>
14506 Avoid spurious "(cached)" in configure output.
14507 * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
14508 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
14509 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
14510 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
14511 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
14512 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
14513 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
14514 * m4/stdarg.m4 (gl_STDARG_H): Likewise.
14515 Reported by Eric Blake.
14517 2009-02-27 Eric Blake <ebb9@byu.net>
14519 printf: fix regression in previous patch
14520 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
14522 2009-02-27 Bruno Haible <bruno@clisp.org>
14524 * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
14526 * lib/stdint.in.h: Likewise.
14527 Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
14529 2009-02-27 Eric Blake <ebb9@byu.net>
14531 doc: mention more functions added in cygwin 1.7.0
14532 * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
14534 * doc/posix-functions/open_wmemstream.texi: Likewise.
14535 * doc/posix-functions/wcsnlen.texi: Likewise.
14536 * doc/posix-functions/wcsnrtombs.texi: Likewise.
14537 * doc/posix-functions/wcstod.texi: Likewise.
14538 * doc/posix-functions/wcstof.texi: Likewise.
14539 * doc/posix-functions/wcstoimax.texi: Likewise.
14540 * doc/posix-functions/wcstok.texi: Likewise.
14541 * doc/posix-functions/wcstoumax.texi: Likewise.
14543 Detect bug in cygwin 1.5.x *printf on 1-character %ls.
14544 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
14545 * doc/posix-functions/fprintf.texi: Update.
14546 * doc/posix-functions/printf.texi: Update.
14547 * doc/posix-functions/snprintf.texi: Update.
14548 * doc/posix-functions/sprintf.texi: Update.
14549 * doc/posix-functions/vfprintf.texi: Update.
14550 * doc/posix-functions/vprintf.texi: Update.
14551 * doc/posix-functions/vsnprintf.texi: Update.
14552 * doc/posix-functions/vsprintf.texi: Update.
14553 * doc/glibc-functions/obstack_printf.texi: Update.
14554 * doc/glibc-functions/obstack_vprintf.texi: Update.
14556 2009-02-26 Eric Blake <ebb9@byu.net>
14558 avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
14559 * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
14560 compilation bug by using runtime conversion.
14561 * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14562 * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
14563 * modules/ceill-tests (Files): Use nan.h.
14564 * modules/floorl-tests (Files): Likewise.
14565 * modules/frexpl-tests (Files): Likewise.
14566 * modules/isnanl-tests (Files): Likewise.
14567 * modules/ldexpl-tests (Files): Likewise.
14568 * modules/roundl-tests (Files): Likewise.
14569 * modules/truncl-tests (Files): Likewise.
14570 * tests/test-ceill.c (main): Use a working NaN.
14571 * tests/test-floorl.c (main): Likewise.
14572 * tests/test-frexpl.c (main): Likewise.
14573 * tests/test-isnan.c (test_long_double): Likewise.
14574 * tests/test-isnanl.h (main): Likewise.
14575 * tests/test-ldexpl.h (main): Likewise.
14576 * tests/test-roundl.h (main): Likewise.
14577 * tests/test-truncl.h (main): Likewise.
14578 See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
14580 2009-02-26 Eric Blake <ebb9@byu.net>
14581 Bruno Haible <bruno@clisp.org>
14583 Work around a *printf bug with %ls on Solaris.
14584 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
14585 precision is specified, sprintf stops converting the wide string
14586 argument when the number of bytes that have been produced by this
14587 conversion equals or exceeds the precision.
14588 * doc/posix-functions/fprintf.texi: Update.
14589 * doc/posix-functions/printf.texi: Update.
14590 * doc/posix-functions/snprintf.texi: Update.
14591 * doc/posix-functions/sprintf.texi: Update.
14592 * doc/posix-functions/vfprintf.texi: Update.
14593 * doc/posix-functions/vprintf.texi: Update.
14594 * doc/posix-functions/vsnprintf.texi: Update.
14595 * doc/posix-functions/vsprintf.texi: Update.
14596 * doc/glibc-functions/obstack_printf.texi: Update.
14597 * doc/glibc-functions/obstack_vprintf.texi: Update.
14599 2009-02-26 Eric Blake <ebb9@byu.net>
14601 stdlib: favor compiler check of random.h
14602 * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check. Needed
14603 to avoid an ObjC random.h installed by Swarm.
14605 2009-02-26 Bruno Haible <bruno@clisp.org>
14607 Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
14608 * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
14609 Reported by Gary V. Vaughan <gary@gnu.org>.
14611 2009-02-26 Bruno Haible <bruno@clisp.org>
14613 Fix *printf behaviour regarding the %ls directive.
14614 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
14615 * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
14616 NEED_PRINTF_DIRECTIVE_LS.
14617 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
14618 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
14619 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14620 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
14621 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
14622 * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
14623 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
14624 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14625 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14626 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14627 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14628 * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
14629 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14630 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14631 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14632 * doc/posix-functions/fprintf.texi: Update.
14633 * doc/posix-functions/printf.texi: Update.
14634 * doc/posix-functions/snprintf.texi: Update.
14635 * doc/posix-functions/sprintf.texi: Update.
14636 * doc/posix-functions/vfprintf.texi: Update.
14637 * doc/posix-functions/vprintf.texi: Update.
14638 * doc/posix-functions/vsnprintf.texi: Update.
14639 * doc/posix-functions/vsprintf.texi: Update.
14640 * doc/glibc-functions/obstack_printf.texi: Update.
14641 * doc/glibc-functions/obstack_vprintf.texi: Update.
14642 Reported by Eric Blake.
14644 2009-02-25 Bruno Haible <bruno@clisp.org>
14646 * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
14648 Reported by Gary V. Vaughan <gary@gnu.org>.
14650 2009-02-25 Bruno Haible <bruno@clisp.org>
14652 Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
14653 * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
14654 (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
14655 * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
14656 Reported by Gary V. Vaughan <gary@gnu.org>.
14658 2009-02-25 Bruno Haible <bruno@clisp.org>
14660 Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
14661 * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
14662 INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
14663 * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
14664 Reported by Gary V. Vaughan <gary@gnu.org>.
14666 2009-02-25 Eric Blake <ebb9@byu.net>
14668 tests: skip fseek/ftell tests if ungetc is broken
14669 * m4/ungetc.m4: New file.
14670 * modules/fseek-tests: Split test, so ungetc dependency is
14671 separate from rest of test.
14672 * modules/fseeko-tests: Likewise.
14673 * modules/ftell-tests: Likewise.
14674 * modules/ftello-tests: Likewise.
14675 * tests/test-fseek.c (main): Isolate ungetc dependency.
14676 * tests/test-fseeko.c (main): Likewise.
14677 * tests/test-ftell.c (main): Likewise.
14678 * tests/test-ftello.c (main): Likewise.
14679 * tests/test-fseek2.sh: New file.
14680 * tests/test-fseeko2.sh: Likewise.
14681 * tests/test-ftell2.sh: Likewise.
14682 * tests/test-ftello2.sh: Likewise.
14684 2009-02-25 Ondřej Vašík <ovasik@redhat.com>
14686 test-getaddrinfo: fix usage of skip return code 77
14687 * tests/test-gettaddrinfo.c: Return skip code 77 only
14688 for first occurance of skip (4x77 is not 77)
14690 2009-02-25 Gary V. Vaughan <gary@gnu.org>
14692 strtod: avoid C99 decl-after-statement
14693 * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
14695 2009-02-24 Eric Blake <ebb9@byu.net>
14697 strtod: detect HP-UX 11.31 bug
14698 * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
14699 Reported by Gary V. Vaughan.
14701 2009-02-23 Bruno Haible <bruno@clisp.org>
14703 Fix invalid read past end of memory block.
14704 * lib/vasnprintf.c (DCHAR_SET): Define.
14705 (local_wcslen): Define only when needed.
14706 (local_strnlen, local_wcsnlen): New functions.
14707 (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
14708 directives that involve a conversion ourselves.
14709 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
14710 wcsnlen, mbrtowc, wcrtomb.
14711 * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
14712 * tests/test-vasprintf-posix.c (test_function): Likewise.
14713 * tests/test-snprintf-posix.h (test_function): Likewise.
14714 * tests/test-sprintf-posix.h (test_function): Likewise.
14715 Reported by Ben Pfaff <blp@cs.stanford.edu>.
14717 2009-02-22 Bruno Haible <bruno@clisp.org>
14719 Implement new clarified decomposition of Hangul syllables.
14720 * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
14721 of type LTV, return only a pairwise decomposition.
14722 * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
14724 * tests/uninorm/test-decomposition.c (main): Updated expected result.
14725 * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
14726 * tests/uninorm/test-compat-decomposition.c (main): Likewise.
14728 2009-02-22 Bruno Haible <bruno@clisp.org>
14730 * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
14731 zero-length results and shrink excess allocated memory.
14732 * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
14733 * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
14734 * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
14735 * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
14736 * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
14737 * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
14738 * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
14739 * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
14740 * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
14741 * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
14742 * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
14743 * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
14745 2009-02-21 Bruno Haible <bruno@clisp.org>
14747 * doc/gnulib.texi: Include safe-alloc.texi earlier.
14748 * doc/safe-alloc.texi: Terminate sentences with a period. Use two
14749 spaces after a period. Put a space between a macro name and its
14750 argument list. Trivial rewordings.
14751 * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
14752 * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
14753 (main): Return 0 explicitly.
14755 2009-02-21 Bruno Haible <bruno@clisp.org>
14757 Tests for module 'uninorm/filter'.
14758 * tests/uninorm/test-uninorm-filter-nfc.c: New file.
14759 * modules/uninorm/filter-tests: New file.
14761 New module 'uninorm/filter'.
14762 * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
14763 uninorm_filter_flush, uninorm_filter_free): New declarations.
14764 * lib/uninorm/uninorm-filter.c: New file.
14765 * modules/uninorm/filter: New file.
14767 2009-02-21 Bruno Haible <bruno@clisp.org>
14769 Tests for module 'uninorm/nfkc'.
14770 * tests/uninorm/test-nfkc.c: New file.
14771 * tests/uninorm/test-u8-nfkc.c: New file.
14772 * tests/uninorm/test-u16-nfkc.c: New file.
14773 * tests/uninorm/test-u32-nfkc.c: New file.
14774 * tests/uninorm/test-u32-nfkc-big.sh: New file.
14775 * tests/uninorm/test-u32-nfkc-big.c: New file.
14776 * modules/uninorm/nfkc-tests: New file.
14778 New module 'uninorm/nfkc'.
14779 * lib/uninorm/nfkc.c: New file.
14780 * modules/uninorm/nfkc: New file.
14782 Tests for module 'uninorm/nfkd'.
14783 * tests/uninorm/test-nfkd.c: New file.
14784 * tests/uninorm/test-u8-nfkd.c: New file.
14785 * tests/uninorm/test-u16-nfkd.c: New file.
14786 * tests/uninorm/test-u32-nfkd.c: New file.
14787 * tests/uninorm/test-u32-nfkd-big.sh: New file.
14788 * tests/uninorm/test-u32-nfkd-big.c: New file.
14789 * modules/uninorm/nfkd-tests: New file.
14791 New module 'uninorm/nfkd'.
14792 * lib/uninorm/nfkd.c: New file.
14793 * modules/uninorm/nfkd: New file.
14795 Tests for module 'uninorm/nfc'.
14796 * tests/uninorm/test-nfc.c: New file.
14797 * tests/uninorm/test-u8-nfc.c: New file.
14798 * tests/uninorm/test-u16-nfc.c: New file.
14799 * tests/uninorm/test-u32-nfc.c: New file.
14800 * tests/uninorm/test-u32-nfc-big.sh: New file.
14801 * tests/uninorm/test-u32-nfc-big.c: New file.
14802 * modules/uninorm/nfc-tests: New file.
14804 New module 'uninorm/nfc'.
14805 * lib/uninorm/nfc.c: New file.
14806 * modules/uninorm/nfc: New file.
14808 Tests for module 'uninorm/nfd'.
14809 * tests/uninorm/test-nfd.c: New file.
14810 * tests/uninorm/test-u8-nfd.c: New file.
14811 * tests/uninorm/test-u16-nfd.c: New file.
14812 * tests/uninorm/test-u32-nfd.c: New file.
14813 * tests/uninorm/test-u32-nfd-big.sh: New file.
14814 * tests/uninorm/test-u32-nfd-big.c: New file.
14815 * tests/uninorm/test-u32-normalize-big.h: New file.
14816 * tests/uninorm/test-u32-normalize-big.c: New file.
14817 * tests/uninorm/NormalizationTest.txt: New file, created from
14818 Unicode 5.1.0 NormalizationTest.txt.
14819 * modules/uninorm/nfd-tests: New file.
14821 New module 'uninorm/nfd'.
14822 * lib/uninorm/nfd.c: New file.
14823 * modules/uninorm/nfd: New file.
14825 New module 'uninorm/u32-normalize'.
14826 * lib/uninorm/u32-normalize.c: New file.
14827 * modules/uninorm/u32-normalize: New file.
14829 New module 'uninorm/u16-normalize'.
14830 * lib/uninorm/u16-normalize.c: New file.
14831 * modules/uninorm/u16-normalize: New file.
14833 New module 'uninorm/u8-normalize'.
14834 * lib/uninorm/u8-normalize.c: New file.
14835 * lib/uninorm/normalize-internal.h: New file.
14836 * lib/uninorm/u-normalize-internal.h: New file.
14837 * modules/uninorm/u8-normalize: New file.
14839 New module 'uninorm/decompose-internal'.
14840 * lib/uninorm/decompose-internal.c: New file.
14841 * modules/uninorm/decompose-internal: New file.
14843 Tests for module 'uninorm/composition'.
14844 * tests/uninorm/test-composition.c: New file.
14845 * modules/uninorm/composition-tests: New file.
14847 New module 'uninorm/composition'.
14848 * lib/uninorm/composition.c: New file.
14849 * lib/uninorm/composition-table.gperf: New file, generated by
14851 * modules/uninorm/composition: New file.
14853 Tests for module 'uninorm/compat-decomposition'.
14854 * tests/uninorm/test-compat-decomposition.c: New file.
14855 * modules/uninorm/compat-decomposition-tests: New file.
14857 New module 'uninorm/compat-decomposition'.
14858 * lib/uninorm/decompose-internal.h: New file.
14859 * lib/uninorm/compat-decomposition.c: New file.
14860 * modules/uninorm/compat-decomposition: New file.
14862 Tests for module 'uninorm/canonical-decomposition'.
14863 * tests/uninorm/test-canonical-decomposition.c: New file.
14864 * modules/uninorm/canonical-decomposition-tests: New file.
14866 New module 'uninorm/canonical-decomposition'.
14867 * lib/uninorm/canonical-decomposition.c: New file.
14868 * modules/uninorm/canonical-decomposition: New file.
14870 Tests for module 'uninorm/decomposition'.
14871 * tests/uninorm/test-decomposition.c: New file.
14872 * modules/uninorm/decomposition-tests: New file.
14874 New module 'uninorm/decomposition'.
14875 * lib/uninorm/decomposition.c: New file.
14876 * modules/uninorm/decomposition: New file.
14878 New module 'uninorm/decomposition-table'.
14879 * lib/uninorm/decomposition-table.h: New file.
14880 * lib/uninorm/decomposition-table.c: New file.
14881 * lib/uninorm/decomposition-table1.h: New file, generated by
14883 * lib/uninorm/decomposition-table2.h: New file, generated by
14885 * modules/uninorm/decomposition-table: New file.
14887 * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
14888 (UC_DECOMP_*): New enumeration items.
14889 (get_decomposition): New function.
14890 (struct decomp_table): New type.
14891 (output_decomposition, output_decomposition_tables): New functions.
14892 (unicode_composition_exclusions): New variable.
14893 (fill_composition_exclusions, debug_output_composition_tables): New
14895 (main): Accept one more argument. Invoke fill_composition_exclusions.
14896 Output decomposition and composition tables.
14898 New module 'uninorm/base'.
14899 * lib/uninorm.h: New file.
14900 * lib/unictype.h: Update comment.
14901 * modules/uninorm/base: New file.
14903 2009-02-21 David Lutterkort <lutter@redhat.com>
14905 Tests for module 'safe-alloc'.
14906 * tests/test-safe-alloc.c: New file.
14907 * modules/safe-alloc-tests: New file.
14909 New module 'safe-alloc'.
14910 * lib/safe-alloc.h: New file.
14911 * lib/safe-alloc.c: New file.
14912 * m4/safe-alloc.m4: New file.
14913 * modules/safe-alloc: New file.
14914 * doc/safe-alloc.texi: New file.
14915 * doc/gnulib.texi: Include it.
14916 * MODULES.html.sh (Memory management functions <stdlib.h>): Add
14919 2009-02-18 Bruno Haible <bruno@clisp.org>
14921 Fix link error on non-glibc systems.
14922 * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
14924 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14926 2009-02-18 Jim Meyering <meyering@redhat.com>
14928 fts: avoid used-uninitialized error due to recent change
14929 * lib/fts.c (fts_read): Guard uses of the new member,
14930 parent->fts_n_dirs_remaining, since it's not relevant for
14931 the parent of a directory specified on the command-line.
14933 2009-02-17 James Youngman <jay@gnu.org>
14934 Bruno Haible <bruno@clisp.org>
14936 * m4/include_next.m4: Reformulate comment.
14938 2009-02-16 Jim Meyering <meyering@redhat.com>
14940 fts: add #if guards so that the fts_lgpl module still builds
14941 * lib/fts.c: Guard just-added hash-table-using parts with
14942 #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
14943 Reported by Simon Josefsson.
14945 2009-02-15 Bruno Haible <bruno@clisp.org>
14947 * modules/array-mergesort-tests: New file.
14948 * tests/test-array-mergesort.c: New file.
14950 New module 'array-mergesort'.
14951 * modules/array-mergesort: New file.
14952 * lib/array-mergesort.h: New file.
14954 2009-02-15 Bruno Haible <bruno@clisp.org>
14956 Fix 2009-02-07 commit.
14957 * lib/gen-uni-tables.c (output_predicate, output_category,
14958 output_combclass, output_bidi_category, output_decimal_digit,
14959 output_digit, output_numeric, output_mirror, output_scripts,
14960 output_ident_category, output_simple_mapping): Fix format directives.
14961 (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
14963 2009-02-15 Albert Chin-A-Young <china@thewrittenword.com>
14965 * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
14966 fixes are available from IBM.
14968 2009-02-13 Jim Meyering <meyering@redhat.com>
14970 fts: arrange not to stat non-directories in more cases
14971 This makes GNU find (when it doesn't need to stat each file)
14972 *much* more efficient at traversing reiserfs file systems.
14973 * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
14974 (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
14975 * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
14976 (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
14977 (leaf_optimization_applies): New function.
14978 (LCO_hash, LCO_compare): New helper functions.
14979 (link_count_optimize_ok): New function.
14980 (fts_stat): Initialize new member (if dir).
14981 (fts_read): Decrement parent's fts_n_dirs_remaining count if
14982 we've just stat'ed a directory. Skip the stat call when possible.
14984 Note this AFS-related exchange:
14985 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
14986 and note find's pioctl call in find/fstype.c.
14987 But that is necessary only if you want to enable the
14988 optimization for AFS, and for now, I don't.
14990 fts: move a function definition "up" (no semantic change)
14991 * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
14992 "up" to precede upcoming use of a related function.
14994 2009-02-11 Jim Meyering <meyering@redhat.com>
14996 fts: correct internal computation of nlinks (optimization-related)
14997 * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
14998 whether the current entry is a directory, so don't test it.
15000 2009-02-10 Bruno Haible <bruno@clisp.org>
15002 Tests for module 'uniwbrk/ulc-wordbreaks'.
15003 * modules/uniwbrk/ulc-wordbreaks-tests: New file.
15004 * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
15005 * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
15007 Tests for module 'uniwbrk/u32-wordbreaks'.
15008 * modules/uniwbrk/u32-wordbreaks-tests: New file.
15009 * tests/uniwbrk/test-u32-wordbreaks.c: New file.
15011 Tests for module 'uniwbrk/u16-wordbreaks'.
15012 * modules/uniwbrk/u16-wordbreaks-tests: New file.
15013 * tests/uniwbrk/test-u16-wordbreaks.c: New file.
15015 Tests for module 'uniwbrk/u8-wordbreaks'.
15016 * modules/uniwbrk/u8-wordbreaks-tests: New file.
15017 * tests/uniwbrk/test-u8-wordbreaks.c: New file.
15019 2009-02-10 Bruno Haible <bruno@clisp.org>
15021 * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
15023 * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
15024 * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
15025 * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
15027 2009-02-10 Simon Josefsson <simon@josefsson.org>
15029 * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
15030 inline keywords. Reported by Bruno Haible <bruno@clisp.org>.
15032 2009-02-10 Bruno Haible <bruno@clisp.org>
15034 * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
15035 * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
15036 * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
15037 * lib/unilbrk/u8-possible-linebreaks.c: Update.
15038 * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
15039 * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
15041 2009-02-09 Simon Josefsson <simon@josefsson.org>
15043 * lib/sockets.h (gl_fd_to_handle): New function.
15045 * tests/test-sockets.c: Call gl_fd_to_handle.
15047 2009-02-09 Bruno Haible <bruno@clisp.org>
15049 * doc/havelib.texi: Document the conventions on bi-arch systems.
15051 2009-02-08 Bruno Haible <bruno@clisp.org>
15053 Document the AC_LIB_LINKFLAGS macro.
15054 * doc/havelib.texi: New file, mostly written on 2005-05-24.
15055 * doc/gnulib.texi: Include it.
15057 2009-02-08 Bruno Haible <bruno@clisp.org>
15059 Fix wrong order of sections, compared to TOC.
15060 * doc/gnulib.texi: Include relocatable-maint.texi after the
15061 "Regular expressions" node, not before.
15063 2009-02-08 Bruno Haible <bruno@clisp.org>
15065 Tests for module 'unicase/totitle'.
15066 * modules/unicase/totitle-tests: New file.
15068 Tests for module 'unicase/tolower'.
15069 * modules/unicase/tolower-tests: New file.
15071 Tests for module 'unicase/toupper'.
15072 * modules/unicase/toupper-tests: New file.
15073 * tests/unicase/test-mapping-part1.h: New file.
15074 * tests/unicase/test-mapping-part2.h: New file.
15076 New module 'unicase/totitle'.
15077 * modules/unicase/totitle: New file.
15078 * lib/unicase/totitle.c: New file.
15080 New module 'unicase/tolower'.
15081 * modules/unicase/tolower: New file.
15082 * lib/unicase/tolower.c: New file.
15084 New module 'unicase/toupper'.
15085 * modules/unicase/toupper: New file.
15086 * lib/unicase/toupper.c: New file.
15087 * lib/unicase/simple-mapping.h: New file.
15089 * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
15090 (mapping_table): New structure.
15091 (output_simple_mapping): New function.
15092 (main): Invoke output_simple_mapping_test and output_simple_mapping.
15093 * modules/gen-uni-tables (Description): Update.
15094 * lib/unicase/toupper.h: New file, automatically generated by
15096 * lib/unicase/tolower.h: New file, automatically generated by
15098 * lib/unicase/totitle.h: New file, automatically generated by
15100 * tests/unicase/test-uc_toupper.c: New file, automatically generated by
15102 * tests/unicase/test-uc_tolower.c: New file, automatically generated by
15104 * tests/unicase/test-uc_totitle.c: New file, automatically generated by
15107 New module 'unicase/base'.
15108 * modules/unicase/base: New file.
15109 * lib/unicase.h: New file.
15111 2009-02-08 Bruno Haible <bruno@clisp.org>
15113 New module 'uniwbrk/ulc-wordbreaks'.
15114 * modules/uniwbrk/ulc-wordbreaks: New file.
15115 * lib/uniwbrk/ulc-wordbreaks.c: New file.
15117 New module 'uniwbrk/u32-wordbreaks'.
15118 * modules/uniwbrk/u32-wordbreaks: New file.
15119 * lib/uniwbrk/u32-wordbreaks.c: New file.
15121 New module 'uniwbrk/u16-wordbreaks'.
15122 * modules/uniwbrk/u16-wordbreaks: New file.
15123 * lib/uniwbrk/u16-wordbreaks.c: New file.
15125 New module 'uniwbrk/u8-wordbreaks'.
15126 * modules/uniwbrk/u8-wordbreaks: New file.
15127 * lib/uniwbrk/u8-wordbreaks.c: New file.
15128 * lib/uniwbrk/u-wordbreaks.h: New file.
15130 New module 'uniwbrk/table'.
15131 * modules/uniwbrk/table: New file.
15132 * lib/uniwbrk/wbrktable.h: New file.
15133 * lib/uniwbrk/wbrktable.c: New file.
15135 New module 'uniwbrk/wordbreak-property'.
15136 * modules/uniwbrk/wordbreak-property: New file.
15137 * lib/uniwbrk/wordbreak-property.c: New file.
15139 * lib/gen-uni-tables.c (WBP_*): New enum items.
15140 (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
15141 (unicode_org_wbp): New variable.
15142 (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
15144 (wbp_table): New structure.
15145 (output_wbp, output_wbrk_tables): New functions.
15146 (main): Accept additional argument. Invoke fill_org_wbp,
15147 debug_output_wbrk_tables, debug_output_org_wbrk_tables,
15148 output_wbrk_tables.
15149 * modules/gen-uni-tables (Description): Update.
15150 * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
15153 New module 'uniwbrk/base'.
15154 * modules/uniwbrk/base: New file.
15155 * lib/uniwbrk.h: New file.
15157 2009-02-08 Bruno Haible <bruno@clisp.org>
15159 Update to Unicode 5.1.0.
15160 * lib/gen-uni-tables.c (is_property_alphabetic): Include
15162 (is_property_default_ignorable_code_point): Don't include characters
15163 of category Cc or Cs and not-a-characters.
15164 (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
15165 U+0D79, U+109E, U+109F, U+A60C.
15166 * lib/unictype/bidi_of.h: Regenerated.
15167 * lib/unictype/blocks.h: Regenerated.
15168 * lib/unictype/categ_C.h: Regenerated.
15169 * lib/unictype/categ_Cf.h: Regenerated.
15170 * lib/unictype/categ_Cn.h: Regenerated.
15171 * lib/unictype/categ_L.h: Regenerated.
15172 * lib/unictype/categ_Ll.h: Regenerated.
15173 * lib/unictype/categ_Lm.h: Regenerated.
15174 * lib/unictype/categ_Lo.h: Regenerated.
15175 * lib/unictype/categ_Lu.h: Regenerated.
15176 * lib/unictype/categ_M.h: Regenerated.
15177 * lib/unictype/categ_Mc.h: Regenerated.
15178 * lib/unictype/categ_Me.h: Regenerated.
15179 * lib/unictype/categ_Mn.h: Regenerated.
15180 * lib/unictype/categ_N.h: Regenerated.
15181 * lib/unictype/categ_Nd.h: Regenerated.
15182 * lib/unictype/categ_Nl.h: Regenerated.
15183 * lib/unictype/categ_No.h: Regenerated.
15184 * lib/unictype/categ_P.h: Regenerated.
15185 * lib/unictype/categ_Pd.h: Regenerated.
15186 * lib/unictype/categ_Pe.h: Regenerated.
15187 * lib/unictype/categ_Pf.h: Regenerated.
15188 * lib/unictype/categ_Pi.h: Regenerated.
15189 * lib/unictype/categ_Po.h: Regenerated.
15190 * lib/unictype/categ_Ps.h: Regenerated.
15191 * lib/unictype/categ_S.h: Regenerated.
15192 * lib/unictype/categ_Sk.h: Regenerated.
15193 * lib/unictype/categ_Sm.h: Regenerated.
15194 * lib/unictype/categ_So.h: Regenerated.
15195 * lib/unictype/categ_of.h: Regenerated.
15196 * lib/unictype/combining.h: Regenerated.
15197 * lib/unictype/ctype_alnum.h: Regenerated.
15198 * lib/unictype/ctype_alpha.h: Regenerated.
15199 * lib/unictype/ctype_graph.h: Regenerated.
15200 * lib/unictype/ctype_lower.h: Regenerated.
15201 * lib/unictype/ctype_print.h: Regenerated.
15202 * lib/unictype/ctype_punct.h: Regenerated.
15203 * lib/unictype/ctype_upper.h: Regenerated.
15204 * lib/unictype/decdigit.h: Regenerated.
15205 * lib/unictype/digit.h: Regenerated.
15206 * lib/unictype/mirror.h: Regenerated.
15207 * lib/unictype/numeric.h: Regenerated.
15208 * lib/unictype/pr_alphabetic.h: Regenerated.
15209 * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
15210 * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
15211 * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
15212 * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
15213 * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
15214 * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
15215 * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
15216 * lib/unictype/pr_combining.h: Regenerated.
15217 * lib/unictype/pr_dash.h: Regenerated.
15218 * lib/unictype/pr_decimal_digit.h: Regenerated.
15219 * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
15220 * lib/unictype/pr_deprecated.h: Regenerated.
15221 * lib/unictype/pr_diacritic.h: Regenerated.
15222 * lib/unictype/pr_extender.h: Regenerated.
15223 * lib/unictype/pr_format_control.h: Regenerated.
15224 * lib/unictype/pr_grapheme_base.h: Regenerated.
15225 * lib/unictype/pr_grapheme_extend.h: Regenerated.
15226 * lib/unictype/pr_grapheme_link.h: Regenerated.
15227 * lib/unictype/pr_id_continue.h: Regenerated.
15228 * lib/unictype/pr_id_start.h: Regenerated.
15229 * lib/unictype/pr_ideographic.h: Regenerated.
15230 * lib/unictype/pr_ignorable_control.h: Regenerated.
15231 * lib/unictype/pr_lowercase.h: Regenerated.
15232 * lib/unictype/pr_math.h: Regenerated.
15233 * lib/unictype/pr_numeric.h: Regenerated.
15234 * lib/unictype/pr_other_alphabetic.h: Regenerated.
15235 * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
15236 * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
15237 * lib/unictype/pr_other_id_continue.h: Regenerated.
15238 * lib/unictype/pr_other_lowercase.h: Regenerated.
15239 * lib/unictype/pr_other_math.h: Regenerated.
15240 * lib/unictype/pr_punctuation.h: Regenerated.
15241 * lib/unictype/pr_sentence_terminal.h: Regenerated.
15242 * lib/unictype/pr_soft_dotted.h: Regenerated.
15243 * lib/unictype/pr_terminal_punctuation.h: Regenerated.
15244 * lib/unictype/pr_unassigned_code_value.h: Regenerated.
15245 * lib/unictype/pr_unified_ideograph.h: Regenerated.
15246 * lib/unictype/pr_uppercase.h: Regenerated.
15247 * lib/unictype/pr_xid_continue.h: Regenerated.
15248 * lib/unictype/pr_xid_start.h: Regenerated.
15249 * lib/unictype/pr_zero_width.h: Regenerated.
15250 * lib/unictype/scripts.h: Regenerated.
15251 * lib/unictype/scripts_byname.gperf: Regenerated.
15252 * lib/unictype/sy_java_ident.h: Regenerated.
15253 * lib/unilbrk/lbrkprop1.h: Regenerated.
15254 * lib/unilbrk/lbrkprop2.h: Regenerated.
15255 * tests/unictype/test-categ_C.c: Regenerated.
15256 * tests/unictype/test-categ_Cf.c: Regenerated.
15257 * tests/unictype/test-categ_Cn.c: Regenerated.
15258 * tests/unictype/test-categ_L.c: Regenerated.
15259 * tests/unictype/test-categ_Ll.c: Regenerated.
15260 * tests/unictype/test-categ_Lm.c: Regenerated.
15261 * tests/unictype/test-categ_Lo.c: Regenerated.
15262 * tests/unictype/test-categ_Lu.c: Regenerated.
15263 * tests/unictype/test-categ_M.c: Regenerated.
15264 * tests/unictype/test-categ_Mc.c: Regenerated.
15265 * tests/unictype/test-categ_Me.c: Regenerated.
15266 * tests/unictype/test-categ_Mn.c: Regenerated.
15267 * tests/unictype/test-categ_N.c: Regenerated.
15268 * tests/unictype/test-categ_Nd.c: Regenerated.
15269 * tests/unictype/test-categ_Nl.c: Regenerated.
15270 * tests/unictype/test-categ_No.c: Regenerated.
15271 * tests/unictype/test-categ_P.c: Regenerated.
15272 * tests/unictype/test-categ_Pd.c: Regenerated.
15273 * tests/unictype/test-categ_Pe.c: Regenerated.
15274 * tests/unictype/test-categ_Pf.c: Regenerated.
15275 * tests/unictype/test-categ_Pi.c: Regenerated.
15276 * tests/unictype/test-categ_Po.c: Regenerated.
15277 * tests/unictype/test-categ_Ps.c: Regenerated.
15278 * tests/unictype/test-categ_S.c: Regenerated.
15279 * tests/unictype/test-categ_Sk.c: Regenerated.
15280 * tests/unictype/test-categ_Sm.c: Regenerated.
15281 * tests/unictype/test-categ_So.c: Regenerated.
15282 * tests/unictype/test-ctype_alnum.c: Regenerated.
15283 * tests/unictype/test-ctype_alpha.c: Regenerated.
15284 * tests/unictype/test-ctype_graph.c: Regenerated.
15285 * tests/unictype/test-ctype_lower.c: Regenerated.
15286 * tests/unictype/test-ctype_print.c: Regenerated.
15287 * tests/unictype/test-ctype_punct.c: Regenerated.
15288 * tests/unictype/test-ctype_upper.c: Regenerated.
15289 * tests/unictype/test-decdigit.h: Regenerated.
15290 * tests/unictype/test-digit.h: Regenerated.
15291 * tests/unictype/test-numeric.h: Regenerated.
15292 * tests/unictype/test-pr_alphabetic.c: Regenerated.
15293 * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
15294 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
15295 * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
15296 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
15297 * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
15298 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
15299 * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
15300 * tests/unictype/test-pr_combining.c: Regenerated.
15301 * tests/unictype/test-pr_dash.c: Regenerated.
15302 * tests/unictype/test-pr_decimal_digit.c: Regenerated.
15303 * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
15304 * tests/unictype/test-pr_deprecated.c: Regenerated.
15305 * tests/unictype/test-pr_diacritic.c: Regenerated.
15306 * tests/unictype/test-pr_extender.c: Regenerated.
15307 * tests/unictype/test-pr_format_control.c: Regenerated.
15308 * tests/unictype/test-pr_grapheme_base.c: Regenerated.
15309 * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
15310 * tests/unictype/test-pr_grapheme_link.c: Regenerated.
15311 * tests/unictype/test-pr_id_continue.c: Regenerated.
15312 * tests/unictype/test-pr_id_start.c: Regenerated.
15313 * tests/unictype/test-pr_ideographic.c: Regenerated.
15314 * tests/unictype/test-pr_ignorable_control.c: Regenerated.
15315 * tests/unictype/test-pr_lowercase.c: Regenerated.
15316 * tests/unictype/test-pr_math.c: Regenerated.
15317 * tests/unictype/test-pr_numeric.c: Regenerated.
15318 * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
15319 * tests/unictype/test-pr_other_default_ignorable_code_point.c:
15321 * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
15322 * tests/unictype/test-pr_other_id_continue.c: Regenerated.
15323 * tests/unictype/test-pr_other_lowercase.c: Regenerated.
15324 * tests/unictype/test-pr_other_math.c: Regenerated.
15325 * tests/unictype/test-pr_punctuation.c: Regenerated.
15326 * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
15327 * tests/unictype/test-pr_soft_dotted.c: Regenerated.
15328 * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
15329 * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
15330 * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
15331 * tests/unictype/test-pr_uppercase.c: Regenerated.
15332 * tests/unictype/test-pr_xid_continue.c: Regenerated.
15333 * tests/unictype/test-pr_xid_start.c: Regenerated.
15334 * tests/unictype/test-pr_zero_width.c: Regenerated.
15336 Update to Unicode 5.1.0.
15337 * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
15338 U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
15339 U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
15340 U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
15341 U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
15342 U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
15343 U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
15344 U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
15345 U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
15346 (nonspacing_table_ind): Update.
15347 * tests/uniwidth/test-uc_width2.sh: Update expected result.
15349 Update to Unicode 5.1.0.
15350 * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
15352 * lib/uniname/uniname.c (unicode_character_name,
15353 unicode_name_character): Add the range 0x1Fxxx to the code transform.
15354 * lib/uniname/uninames.h: Regenerated.
15355 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
15357 2009-02-07 Bruno Haible <bruno@clisp.org>
15359 Merge gen-ctype and gen-lbrk into a single program.
15360 * lib/gen-uni-tables.c: New file, incorporating
15361 lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
15362 Add directory prefixes to the names of the generated files.
15363 * lib/unictype/gen-ctype.c: Remove file.
15364 * lib/unilbrk/gen-lbrk.c: Remove file.
15365 * modules/gen-uni-tables: New file.
15366 * modules/unictype/gen-ctype: Remove file.
15367 * modules/unilbrk/gen-lbrk: Remove file.
15369 2009-02-07 Bruno Haible <bruno@clisp.org>
15371 * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
15373 New module 'unistr/u32-strcoll'.
15374 * modules/unistr/u32-strcoll: New file.
15375 * lib/unistr/u32-strcoll.c: New file.
15377 New module 'unistr/u16-strcoll'.
15378 * modules/unistr/u16-strcoll: New file.
15379 * lib/unistr/u16-strcoll.c: New file.
15381 New module 'unistr/u8-strcoll'.
15382 * modules/unistr/u8-strcoll: New file.
15383 * lib/unistr/u8-strcoll.c: New file.
15384 * lib/unistr/u-strcoll.h: New file.
15386 2009-02-07 Bruno Haible <bruno@clisp.org>
15388 * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
15389 * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
15390 * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
15391 * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
15392 * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
15393 * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
15395 2009-02-07 Bruno Haible <bruno@clisp.org>
15398 * lib/unictype/gen-ctype.c (output_predicate, output_category,
15399 output_combclass, output_bidi_category, output_decimal_digit,
15400 output_digit, output_numeric, output_mirror, output_scripts,
15401 output_ident_category): Use proper width specifier in format strings.
15403 2009-02-07 Bruno Haible <bruno@clisp.org>
15405 * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
15408 2009-02-07 Jim Meyering <meyering@redhat.com>
15410 regex: avoid compilation failure with upcoming gcc-4.4
15411 * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
15412 [workaround for PGC prior to 6.1-2]. Otherwise, we'd get this:
15413 "... error: integer overflow in preprocessor expression".
15415 2009-02-05 Ben Pfaff <blp@gnu.org>
15417 Fix link errors on Windows when close module is used.
15418 * modules/close: Add $(LIB_CLOSE) to Link section.
15419 * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
15420 $(LIB_CLOSE) on Windows.
15422 2009-02-05 Jim Meyering <meyering@redhat.com>
15424 still avoid unused-parameter warnings, but do it cleanly
15425 * lib/fsusage.c (UNUSED_PARAM): Remove definition.
15426 (get_fs_usage): Cast to void instead.
15427 * lib/mountlist.c (UNUSED_PARAM): Remove definition.
15428 (dev_from_mount_options, read_file_system_list): Cast to void.
15429 Prompted by Bruno Haible.
15431 2009-02-04 Jim Meyering <meyering@redhat.com>
15433 fsusage.c: correct copyright year
15434 * lib/fsusage.c: Reflect year in which the change is pushed into
15436 avoid misc. warnings
15437 * lib/fsusage.c (UNUSED_PARAM): Define.
15438 (get_fs_usage): Mark parameter "disk" as unused.
15439 * lib/getugroups.c (getgrent): Use "void" in prototype.
15440 * lib/mountlist.c: Mark unused parameters.
15441 (read_file_system_list): Declare a local with "const".
15442 * lib/nanosleep.c (getnow): Declare static.
15443 * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
15445 dirfd: set errno upon failure
15446 * lib/dirfd.c: Include <errno.h>.
15447 Set errno to ENOTSUP when returning -1.
15448 * modules/dirfd (Depends-on): Add errno.
15449 Suggested by John Kodis <kodis@comcast.net>.
15451 2009-02-01 Bruno Haible <bruno@clisp.org>
15453 Don't assume sizeof (long) >= sizeof (void *).
15454 * lib/memcmp.c: Include stdint.h.
15455 (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
15456 srcp2 to 'const byte *'.
15457 (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
15458 types to uintptr_t.
15459 (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
15460 * modules/memcmp (Depends-on): Add stdint.
15461 Reported by Ozkan Sezer <sezeroz@gmail.com>.
15463 2009-01-30 Eric Blake <ebb9@byu.net>
15465 fix more require-before-expand issues
15466 * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
15467 expand, AC_PROG_AWK.
15468 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
15470 2009-01-28 Eric Blake <ebb9@byu.net>
15472 version-etc: use consistent URL formatting
15473 * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
15474 Improve formatting. Use fputs for string without %.
15476 2009-01-28 Jim Meyering <meyering@redhat.com>
15478 00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
15479 * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
15480 "underquoted definition of NAME" from autoconf-2.59.
15482 2009-01-28 Bruno Haible <bruno@clisp.org>
15484 * doc/gnulib.texi: Add "Obsolete modules" to index.
15486 2009-01-28 Jim Meyering <meyering@redhat.com>
15488 useless-if-before-free: recognize more variants
15489 * build-aux/useless-if-before-free: Also recognize e.g.,
15490 if (NULL != p) free (p);
15492 2009-01-27 Mark McLoughlin <markmc@redhat.com>
15494 test-getaddrinfo: skip (don't fail) this test when there's no network
15495 * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
15496 on the presumption that it means you lack network access.
15498 2009-01-26 Jim Meyering <meyering@redhat.com>
15500 fflush: avoid warnings on modern systems
15501 * lib/fflush.c (rpl_fflush): Move declarations of locals,
15502 pos and result, into scopes where they're used.
15504 2009-01-26 Eric Blake <ebb9@byu.net>
15506 Silence warning reintroduced by recent extensions patch.
15507 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
15508 (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
15511 Backport improved autoconf semantics of AC_DEFUN_ONCE.
15512 * m4/00gnulib.m4: New file.
15513 * gnulib-tool (func_get_filelist): Always use it.
15514 * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
15515 Reported by Bruno Haible, with suggestions from Paolo Bonzini.
15517 2009-01-25 Bruno Haible <bruno@clisp.org>
15519 Make test-quotearg work on MacOS X and AIX.
15520 * tests/test-quotearg.sh: New file.
15521 * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
15522 * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
15523 * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
15524 include <libintl.h>.
15525 (fake_locale): Remove variable.
15526 (gettext, dgettext, dcgettext): Remove functions.
15527 (main): Instead of setting a fake locale, set a real locale. Call
15528 textdomain and bindtextdomain.
15529 * modules/quotearg-tests (Files): Add the new files.
15530 (Depends-on): Add gettext, setenv, unsetenv.
15531 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
15532 (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
15533 Augment TESTS_ENVIRONMENT.
15535 2009-01-25 Bruno Haible <bruno@clisp.org>
15537 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
15538 fr_FR.ISO8859-1 locale on MacOS X.
15539 * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
15540 ja_JP.eucJP locale on MacOS X.
15541 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
15542 zh_CN.GB18030 locale on MacOS X.
15544 2009-01-25 Bruno Haible <bruno@clisp.org>
15546 Avoid link errors on MacOS X 10.3.
15547 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
15548 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
15550 2009-01-25 Bruno Haible <bruno@clisp.org>
15552 * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
15553 * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
15554 * modules/pipe (Files): Remove m4/posix_spawn.m4.
15555 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
15556 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
15557 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
15558 posix_spawnattr_init, posix_spawnattr_setsigmask,
15559 posix_spawnattr_setflags, posix_spawnattr_destroy.
15561 * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
15562 * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
15563 * modules/execute (Files): Remove m4/posix_spawn.m4.
15564 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
15565 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
15566 posix_spawnattr_init, posix_spawnattr_setsigmask,
15567 posix_spawnattr_setflags, posix_spawnattr_destroy.
15569 2009-01-25 Bruno Haible <bruno@clisp.org>
15571 * lib/glthread/threadlib.c: Include <stdlib.h>.
15573 2009-01-25 Bruno Haible <bruno@clisp.org>
15575 * lib/glthread/threadlib.c (dummy): New declaration.
15577 2009-01-25 Bruno Haible <bruno@clisp.org>
15579 * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
15580 multibyte characters also for the GB18030 encoding. Don't crash when
15581 the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
15583 2009-01-25 Bruno Haible <bruno@clisp.org>
15585 Avoid redefining 'struct random_data' on OSF/1 5.1.
15586 * lib/stdlib.in.h: Include <random.h> if it exists.
15587 * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
15588 HAVE_RANDOM_H. Include <random.h> when testing whether
15589 'struct random_data' exists.
15590 * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
15592 2009-01-25 Bruno Haible <bruno@clisp.org>
15594 Don't install charset.alias on MacOS X >= 10.3.
15595 * lib/localcharset.c (DARWIN7): New macro.
15596 (get_charset_aliases): Hardcode the result for Darwin7.
15597 * modules/localcharset (install-exec-local): Don't install
15598 charset.alias on MacOS X >= 10.3, if the file does not yet exist.
15600 2009-01-25 Bruno Haible <bruno@clisp.org>
15602 Don't install charset.alias on mingw and Cygwin.
15603 * modules/localcharset (install-exec-local): Don't install
15604 charset.alias on mingw and Cygwin, if the file does not yet exist.
15605 The result for these platforms is hardcoded in localcharset.c.
15607 2009-01-25 Bruno Haible <bruno@clisp.org>
15609 Make it possible again to use AC_GNU_SOURCE together with gnulib.
15610 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
15611 before requiring AC_USE_SYSTEM_EXTENSIONS.
15613 2009-01-25 Jim Meyering <meyering@redhat.com>
15615 c-strtod: avoid warnings
15616 * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
15617 "assignment discards qualifiers from pointer target type" warnings.
15619 2009-01-24 Bruno Haible <bruno@clisp.org>
15621 Add support for non-UTF-8 locales on MacOS X.
15622 * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
15623 canonical encodings. For Darwin 7 and newer, don't map traditional
15624 encodings to UTF-8.
15625 Reported by Vincent Lefevre <vincent@vinc17.org>
15626 at <http://savannah.gnu.org/bugs/?25235>.
15628 2009-01-24 Bruno Haible <bruno@clisp.org>
15630 * doc/gnulib.texi (Obsolete modules): New section.
15631 Reported by Mike Frysinger <vapier@gentoo.org>.
15633 2009-01-24 Bruno Haible <bruno@clisp.org>
15635 * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
15638 2009-01-24 Bruno Haible <bruno@clisp.org>
15640 * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
15641 Reported by Eric Blake.
15643 2009-01-24 Bruno Haible <bruno@clisp.org>
15645 * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
15646 set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
15647 Reported by Gary V. Vaughan <gary@gnu.org>.
15649 2009-01-24 Bruno Haible <bruno@clisp.org>
15651 * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
15653 2009-01-23 Bruno Haible <bruno@clisp.org>
15655 Make c-strtod, c-strtold usable in libraries.
15656 * lib/c-strtod.c: Include string.h instead of xalloc.h.
15657 (C_STRTOD): Call strdup instead of xstrdup.
15658 * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
15659 * modules/c-strtold (Depends-on): Likewise.
15660 * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
15661 * NEWS: Mention the change.
15662 Reported by Michael Gold <mgold@ncf.ca>.
15664 2009-01-23 Jim Meyering <meyering@redhat.com>
15666 c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
15667 * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
15668 ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
15670 2009-01-23 Simon Josefsson <simon@josefsson.org>
15672 * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
15674 * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
15675 * modules/version-etc (Description): Update.
15677 2009-01-22 Bruno Haible <bruno@clisp.org>
15679 Cache the C locale object.
15680 * lib/c-strtod.c (c_locale_cache): New variable.
15681 (c_locale): New function.
15682 (C_STRTOD): Use it, and don't call freelocale.
15683 * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
15684 Suggested by Paolo Bonzini.
15686 2009-01-21 Bruno Haible <bruno@clisp.org>
15688 * lib/getloadavg.c (getloadavg): Check c_strtod result against error
15689 conditions other than overflow.
15691 2009-01-21 Bruno Haible <bruno@clisp.org>
15693 * lib/c-strtod.c: Include errno.h.
15694 (C_STRTOD): Check against NULL return from newlocale. Preserve errno
15695 value from STRTOD_L and STRTOD.
15697 2009-01-21 Bruno Haible <bruno@clisp.org>
15698 and Jim Meyering <meyering@redhat.com>
15700 nanosleep: skip configure test (fail it) for apple universal builds
15701 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
15702 universal builds, assume that nanosleep does not work.
15703 * modules/nanosleep (Depends-on): Add multiarch.
15705 mktime: skip configure test (fail it) for apple universal builds
15706 * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
15707 universal builds, assume that mktime does not work.
15708 * modules/mktime (Depends-on): Add multiarch.
15710 2009-01-21 Eric Blake <ebb9@byu.net>
15712 multiarch: avoid expand-before-require warning
15713 * modules/multiarch (configure.ac): Require, rather than expand,
15715 * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
15716 (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
15717 enforce that all clients require it. Partial reversion of
15720 error: avoid expand-before-require warning
15721 * modules/errno (configure.ac): Require, rather than expand,
15723 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
15724 (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
15725 enforce that all clients require it.
15727 gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
15728 * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
15729 obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
15730 and rely solely on gl_USE_SYSTEM_EXTENSIONS.
15732 2009-01-21 Paolo Bonzini <bonzini@gnu.org>
15735 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
15737 regex: do not depend on obsolete modules.
15738 * modules/regex: Remove memcmp and memmove.
15740 2009-01-20 Bruno Haible <bruno@clisp.org>
15742 Make the 'link' module link on Windows NT 4.
15743 * lib/link.c (_WIN32_WINNT): Don't define.
15744 (CreateHardLinkFuncType): New type.
15745 (CreateHardLinkFunc, initialized): New variables.
15746 (initialize): New function.
15747 (link): Invoke CreateHardLink indirectly through the function pointer.
15749 2009-01-20 Bruno Haible <bruno@clisp.org>
15751 Fix compilation failure on mingw.
15752 * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
15754 2009-01-20 Michael Gold <mgold@ncf.ca> (tiny change)
15756 * doc/c-strtod.texi: Mention a couple of restrictions.
15758 2009-01-20 Jim Meyering <meyering@redhat.com>
15760 gettimeofday: move more declarations out of functions
15761 * lib/gettimeofday.c: Move extern declarations of tzset and
15762 gmtime out of containing functions. Prompted by Bruno Haible.
15764 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
15766 regex: do not depend on obsolete modules.
15767 * modules/regex: Remove memcmp and memmove.
15769 2009-01-19 Bruno Haible <bruno@clisp.org>
15771 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
15772 * modules/uniconv/u16-conv-from-enc (configure.ac): Require
15773 gl_BIGENDIAN, not AC_C_BIGENDIAN.
15774 * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
15775 * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
15777 2009-01-19 Bruno Haible <bruno@clisp.org>
15779 * tests/test-link.c: Include <errno.h>.
15780 (main): Exit with code 77 when a hard link cannot be created due to
15782 * tests/test-link.sh: Skip test when a hard link cannot be created due
15783 to the file system.
15784 Suggested by Eric Blake.
15786 2009-01-19 Martin Lambers <marlam@marlam.de>
15788 * modules/link-tests: New file.
15789 * tests/test-link.sh: New file.
15790 * tests/test-link.c: New file.
15792 2009-01-19 Eric Blake <ebb9@byu.net>
15794 doc: mention another function added in cygwin 1.7.0
15795 * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
15796 Another new function in cygwin 1.7.
15798 2009-01-19 Bruno Haible <bruno@clisp.org>
15800 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
15801 * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
15802 * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
15803 gl_BIGENDIAN, not AC_C_BIGENDIAN.
15804 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
15805 * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
15806 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15807 * m4/md4.m4 (gl_MD4): Likewise.
15808 * m4/md5.m4 (gl_MD5): Likewise.
15809 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
15810 * m4/sha1.m4 (gl_SHA1): Likewise.
15811 * m4/sha256.m4 (gl_SHA256): Likewise.
15812 * m4/sha512.m4 (gl_SHA512): Likewise.
15814 2009-01-19 Bruno Haible <bruno@clisp.org>
15816 * modules/uniname/uniname-tests (Depends-on): Add progname.
15817 * tests/uniname/test-uninames.c: Include progname.h.
15818 (main): Call set_program_name.
15820 * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
15821 * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
15822 (main): Call set_program_name.
15824 * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
15825 * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
15826 (main): Call set_program_name.
15828 * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
15829 * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
15830 (main): Call set_program_name.
15832 * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
15833 * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
15834 (main): Call set_program_name.
15836 * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
15837 * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
15838 (main): Call set_program_name.
15840 * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
15841 * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
15842 (main): Call set_program_name.
15844 * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
15845 * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
15846 (main): Call set_program_name.
15848 * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
15849 * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
15850 (main): Call set_program_name.
15852 2009-01-19 Eric Blake <ebb9@byu.net>
15854 test-unistd: test previous patch
15855 * tests/test-unistd.c: Test *_FILENO macros.
15857 unistd: guarantee STDIN_FILENO here, for OS/2 EMX
15858 * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15859 Guarantee a definition.
15860 * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
15861 * modules/unistd-safer (Depends-on): Add dependency on unistd.
15862 * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
15863 * lib/dup-safer.c (STDERR_FILENO): Likewise.
15864 * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15866 * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
15867 * lib/fopen-safer.c (STDERR_FILENO): Likewise.
15868 * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15870 * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
15871 * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
15872 (STDERR_FILENO): Likewise.
15873 * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
15874 (STDERR_FILENO): Likewise.
15875 * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
15876 (STDERR_FILENO): Likewise.
15877 Reported by Elbert Pol.
15879 2009-01-19 Eric Blake <ebb9@byu.net>
15881 doc: mention more functions added in cygwin 1.7.0
15882 * doc/posix-functions/abort.texi (abort): Update wording related
15884 * doc/posix-functions/daylight.texi (daylight): Likewise.
15885 * doc/posix-functions/optarg.texi (optarg): Likewise.
15886 * doc/posix-functions/optarg.texi (opterr): Likewise.
15887 * doc/posix-functions/optarg.texi (optind): Likewise.
15888 * doc/posix-functions/optarg.texi (optopt): Likewise.
15889 * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
15890 worked in 1.5.x, and was withdrawn in 1.7.
15891 * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15892 * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
15894 * doc/posix-functions/perror.texi (perror): Likewise.
15895 * doc/posix-functions/printf.texi (printf): Likewise.
15896 * doc/posix-functions/snprintf.texi (snprintf): Likewise.
15897 * doc/posix-functions/sprintf.texi (sprintf): Likewise.
15898 * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15899 * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15900 * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15901 * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
15902 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
15904 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
15906 * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
15908 * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
15909 * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
15911 * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
15912 * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
15913 * doc/posix-functions/confstr.texi (confstr): Likewise.
15914 * doc/posix-functions/dprintf.texi (dprintf): Likewise.
15915 * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
15916 * doc/posix-functions/fgetws.texi (fgetws): Likewise.
15917 * doc/posix-functions/fputwc.texi (fputwc): Likewise.
15918 * doc/posix-functions/fputws.texi (fputws): Likewise.
15919 * doc/posix-functions/fwide.texi (fwide): Likewise.
15920 * doc/posix-functions/getwc.texi (getwc): Likewise.
15921 * doc/posix-functions/getwchar.texi (getwchar): Likewise.
15922 * doc/posix-functions/putwc.texi (putwc): Likewise.
15923 * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15924 * doc/posix-functions/sigignore.texi (sigignore): Likewise.
15925 * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
15926 * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15927 * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
15928 * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
15929 * doc/posix-functions/wcstol.texi (wcstol): Likewise.
15930 * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
15931 * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
15932 * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
15933 * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
15935 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
15937 ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
15938 * lib/ioctl.c: Include <sys/ioctl.h>.
15940 2009-01-19 Simon Josefsson <simon@josefsson.org>
15942 * modules/getdate-tests (Depends-on): Add progname.
15943 * tests/test-getdate.c: Use progname module, to avoid link errors
15944 on non-glibc systems.
15946 2009-01-18 Simon Josefsson <simon@josefsson.org>
15948 * modules/filenamecat-tests (Depends-on): Add progname.
15949 * modules/fstrcmp-tests (Depends-on): Likewise.
15951 * tests/test-filenamecat.c: Use progname module, to avoid link
15952 errors on non-glibc systems.
15953 * tests/test-fstrcmp.c: Likewise.
15955 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
15957 gettimeofday: avoid warning: nested extern declaration of 'localtime'
15958 * lib/gettimeofday.c: Move extern declaration out of function.
15960 2009-01-18 Bruno Haible <bruno@clisp.org>
15962 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
15963 * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
15964 (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
15966 2009-01-18 Bruno Haible <bruno@clisp.org>
15968 * lib/strftime.c (MEMPCPY): Remove unused macro.
15969 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
15971 2009-01-18 Martin Lambers <marlam@marlam.de>
15974 * lib/unistd.in.h (link): New declaration.
15975 * lib/link.c: New file.
15976 * m4/link.m4: New file.
15977 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
15979 * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
15980 * modules/link: New file.
15981 * doc/posix-functions/link.texi: Mention the new module.
15983 2009-01-18 Bruno Haible <bruno@clisp.org>
15985 * tests/test-avltree_list.c (main): Call set_program_name.
15986 * tests/test-avltree_oset.c (main): Likewise.
15987 * tests/test-obstack-printf.c: Include progname.h.
15988 (main): Call set_program_name.
15989 * tests/test-quotearg.c: Include progname.h.
15990 (main): Call set_program_name.
15991 * tests/test-xmemdup0.c: Include progname.h.
15992 (main): Call set_program_name.
15994 2009-01-18 Bruno Haible <bruno@clisp.org>
15996 New module 'alphasort'.
15997 * lib/dirent.in.h (alphasort): New declaration.
15998 * lib/alphasort.c: New file, from glibc with modifications.
15999 * m4/alphasort.m4: New file.
16000 * modules/alphasort: New file.
16001 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
16003 * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
16005 * doc/posix-functions/alphasort.texi: Mention the new module and the
16006 portability problems.
16008 2009-01-18 Bruno Haible <bruno@clisp.org>
16010 New module 'scandir'.
16011 * lib/dirent.in.h (scandir): New declaration.
16012 * lib/scandir.c: New file, from glibc with modifications.
16013 * m4/scandir.m4: New file.
16014 * modules/scandir: New file.
16015 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
16017 * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
16019 * doc/posix-functions/scandir.texi: Mention the new module and the
16020 portability problems.
16022 2009-01-17 Bruno Haible <bruno@clisp.org>
16024 * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
16025 Update documentation.
16026 (func_remove_suffix): Escape all dots in the suffix. Update
16028 (func_filter_filelist): Update documentation.
16029 Reported by Ralf Wildenhues.
16031 2009-01-17 Bruno Haible <bruno@clisp.org>
16033 * modules/dprintf-posix-tests: New file.
16034 * tests/test-dprintf-posix.sh: New file.
16035 * tests/test-dprintf-posix.c: New file.
16037 New modules 'dprintf', 'dprintf-posix'.
16038 * lib/stdio.in.h (dprintf): New declaration.
16039 * lib/dprintf.c: New file.
16040 * m4/dprintf.m4: New file.
16041 * m4/dprintf-posix.m4: New file.
16042 * modules/dprintf: New file.
16043 * modules/dprintf-posix: New file.
16044 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
16045 HAVE_DPRINTF, REPLACE_DPRINTF.
16046 * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
16047 HAVE_DPRINTF, REPLACE_DPRINTF.
16048 * doc/posix-functions/dprintf.texi: Mention the new modules.
16050 2009-01-17 Bruno Haible <bruno@clisp.org>
16052 * modules/vdprintf-posix-tests: New file.
16053 * tests/test-vdprintf-posix.sh: New file.
16054 * tests/test-vdprintf-posix.c: New file.
16056 New modules 'vdprintf', 'vdprintf-posix'.
16057 * lib/stdio.in.h (vdprintf): New declaration.
16058 * lib/vdprintf.c: New file.
16059 * m4/vdprintf.m4: New file.
16060 * m4/vdprintf-posix.m4: New file.
16061 * modules/vdprintf: New file.
16062 * modules/vdprintf-posix: New file.
16063 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
16064 HAVE_VDPRINTF, REPLACE_VDPRINTF.
16065 * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
16066 HAVE_VDPRINTF, REPLACE_VDPRINTF.
16067 * doc/posix-functions/vdprintf.texi: Mention the new modules.
16069 2009-01-17 Bruno Haible <bruno@clisp.org>
16071 Fix replacement of fopen on mingw.
16072 * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
16075 2009-01-17 Bruno Haible <bruno@clisp.org>
16077 Fix compilation error on HP-UX 11.00, present since 2008-09-24.
16078 * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
16080 2009-01-17 Bruno Haible <bruno@clisp.org>
16082 Avoid test-fflush2.sh failure on mingw.
16083 * tests/test-fflush2.c: Include binary-io.h.
16084 (main): Put standard input into binary mode.
16085 * modules/fflush-tests (Depends-on): Add binary-io.
16087 2009-01-17 Bruno Haible <bruno@clisp.org>
16089 * lib/wchar.in.h: In another particular situation, include only the
16090 system's <wchar.h> file.
16091 (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
16092 Reported by Albert Chin-A-Young <china@thewrittenword.com>
16093 and Thomas Guyot-Sionnest <dermoth@aei.ca>.
16095 2009-01-17 Bruno Haible <bruno@clisp.org>
16097 Support for stripping executables in --enable-relocatable.
16098 * build-aux/install-reloc: Expect one more argument, or an environment
16099 variable RELOC_STRIP_PROG. If set, strip the destination program and
16101 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
16103 * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
16104 to set RELOCATABLE_STRIP.
16105 * NEWS: Mention the new Makefile requirement.
16107 2009-01-17 Bruno Haible <bruno@clisp.org>
16109 * build-aux/install-reloc: Remove debugging information left over by
16110 C compiler on MacOS X.
16112 2009-01-17 Bruno Haible <bruno@clisp.org>
16114 Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
16115 * lib/progreloc.c (find_executable): Fix type of pointer passed to
16116 _NSGetExecutablePath.
16118 2009-01-16 Jim Meyering <meyering@redhat.com>
16120 strerror: avoid warnings about discarding "const"
16121 * lib/strerror.c (rpl_strerror): Instead of returning a const
16122 string from each and every "case", use a variable, and add a single
16123 cast after the switch.
16125 2009-01-16 Albert Chin-A-Young <china@thewrittenword.com>
16127 * lib/arpa_inet.in.h: Add extern "C" block for C++.
16129 2009-01-16 Bruno Haible <bruno@clisp.org>
16131 * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
16132 array initializer syntax that also works in C++ mode.
16133 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16135 2009-01-16 Jim Meyering <meyering@redhat.com>
16137 poll: suppress a warning
16138 * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
16139 to ignore "...unsigned expression < 0 is always false" warnings.
16141 2009-01-16 Daniel P. Berrange <berrange@redhat.com>
16143 poll: remove declarations of unused variables
16144 * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
16145 sockbuf and optlen.
16147 2009-01-15 Bruno Haible <bruno@clisp.org>
16149 Make fflush-after-ungetc POSIX compliant on BSD systems.
16150 * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
16151 (clear_ungetc_buffer): Implement also for other systems.
16152 (rpl_fflush): On glibc systems, invoke
16153 clear_ungetc_buffer_preserving_position. Otherwise, invoke
16154 clear_ungetc_buffer after fetching the stream's position, not before.
16156 2009-01-15 Bruno Haible <bruno@clisp.org>
16158 Make fflush-after-ungetc POSIX compliant on glibc systems.
16159 * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
16161 * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
16162 (rpl_fflush): On glibc systems, simply call the system's fflush
16163 function after clearing the ungetc buffer.
16164 * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
16165 Instead, lseek only to the end of file, then use the system's fseeko
16166 for the rest. On glibc systems, reset the EOF indicator bit.
16168 2009-01-15 Jim Meyering <meyering@redhat.com>
16170 openmp.m4: revert quote-adding change, for portability to older autoconf
16171 * m4/openmp.m4: Remove the quotes added on 2009-01-14.
16172 This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
16173 Simon Josefsson noticed the problem when using autoconf-2.61.
16175 2009-01-15 Bruno Haible <bruno@clisp.org>
16177 * tests/test-fflush2.sh: Invoke test-fflush2 twice.
16178 * tests/test-fflush2.c (ASSERT): Always fail.
16179 (main): Add two tests for fflush() after ungetc(), taking into account
16180 the Austin Group's clarification.
16181 Suggested by Eric Blake.
16183 2009-01-15 Albert Chin-A-Young <china@thewrittenword.com>
16185 mktime.m4: remove K&R-style function prototypes
16186 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
16187 for the Sun C++ compiler.
16189 2009-01-14 Bruno Haible <bruno@clisp.org>
16191 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
16192 while including <wchar.h>.
16193 * lib/wchar.in.h: In two particular situations on HP-UX, include only
16194 the system's <wchar.h> file.
16195 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16197 2009-01-14 Bruno Haible <bruno@clisp.org>
16199 * m4/csharp.m4: Don't mention gettext on the serial number line.
16200 * m4/csharpexec.m4: Likewise.
16201 * m4/eaccess.m4: Likewise.
16202 * m4/javaexec.m4: Likewise.
16203 * m4/sig_atomic_t.m4: Likewise.
16204 * m4/tmpdir.m4: Likewise.
16205 * m4/intldir.m4: Bump gettext version.
16206 * m4/lib-ld.m4: Likewise.
16208 2009-01-14 Bruno Haible <bruno@clisp.org>
16210 * lib/progname.c (set_program_name): Add more comments.
16211 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
16213 2009-01-14 Simon Josefsson <simon@josefsson.org>
16215 * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
16216 were sys/stat.h does not define it.
16218 2009-01-14 Jim Meyering <meyering@redhat.com>
16220 many *.m4 files: improve m4 quoting
16221 99% of this change was performed by running the following commands:
16222 git ls-files | grep '\.m4$' | xargs perl -pi \
16223 -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
16224 -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16225 -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16226 -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
16227 perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
16228 The remainder were to add Copyright dates, increment serial numbers,
16229 undo some changes in comments, exclude m4/intl.m4, and add quotes
16230 around the "1" in ",1" where the unusual spacing prohibited the
16231 above regexps from doing the job. For more details, see
16232 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
16233 * m4/acl.m4: Modified.
16234 * m4/afs.m4: Likewise.
16235 * m4/alloca.m4: Likewise.
16236 * m4/argp.m4: Likewise.
16237 * m4/argz.m4: Likewise.
16238 * m4/atexit.m4: Likewise.
16239 * m4/bison-i18n.m4: Likewise.
16240 * m4/bison.m4: Likewise.
16241 * m4/byteswap.m4: Likewise.
16242 * m4/c-stack.m4: Likewise.
16243 * m4/c-strtod.m4: Likewise.
16244 * m4/calloc.m4: Likewise.
16245 * m4/canonicalize-lgpl.m4: Likewise.
16246 * m4/chown.m4: Likewise.
16247 * m4/clock_time.m4: Likewise.
16248 * m4/codeset.m4: Likewise.
16249 * m4/copy-file.m4: Likewise.
16250 * m4/csharp.m4: Likewise.
16251 * m4/csharpcomp.m4: Likewise.
16252 * m4/csharpexec.m4: Likewise.
16253 * m4/d-ino.m4: Likewise.
16254 * m4/d-type.m4: Likewise.
16255 * m4/dirfd.m4: Likewise.
16256 * m4/double-slash-root.m4: Likewise.
16257 * m4/eaccess.m4: Likewise.
16258 * m4/eealloc.m4: Likewise.
16259 * m4/environ.m4: Likewise.
16260 * m4/errno_h.m4: Likewise.
16261 * m4/euidaccess.m4: Likewise.
16262 * m4/execute.m4: Likewise.
16263 * m4/fatal-signal.m4: Likewise.
16264 * m4/fchdir.m4: Likewise.
16265 * m4/fcntl_h.m4: Likewise.
16266 * m4/fileblocks.m4: Likewise.
16267 * m4/filenamecat.m4: Likewise.
16268 * m4/findprog.m4: Likewise.
16269 * m4/flexmember.m4: Likewise.
16270 * m4/fnmatch.m4: Likewise.
16271 * m4/fopen.m4: Likewise.
16272 * m4/fpending.m4: Likewise.
16273 * m4/fprintf-posix.m4: Likewise.
16274 * m4/free.m4: Likewise.
16275 * m4/frexp.m4: Likewise.
16276 * m4/frexpl.m4: Likewise.
16277 * m4/fsusage.m4: Likewise.
16278 * m4/ftruncate.m4: Likewise.
16279 * m4/gc-camellia.m4: Likewise.
16280 * m4/gc-random.m4: Likewise.
16281 * m4/gc.m4: Likewise.
16282 * m4/getaddrinfo.m4: Likewise.
16283 * m4/getcwd-abort-bug.m4: Likewise.
16284 * m4/getcwd-path-max.m4: Likewise.
16285 * m4/getdate.m4: Likewise.
16286 * m4/getdomainname.m4: Likewise.
16287 * m4/getgroups.m4: Likewise.
16288 * m4/gethostname.m4: Likewise.
16289 * m4/gethrxtime.m4: Likewise.
16290 * m4/getline.m4: Likewise.
16291 * m4/getloadavg.m4: Likewise.
16292 * m4/getndelim2.m4: Likewise.
16293 * m4/getpass.m4: Likewise.
16294 * m4/gettext.m4: Likewise.
16295 * m4/gettime.m4: Likewise.
16296 * m4/gettimeofday.m4: Likewise.
16297 * m4/gnulib-common.m4: Likewise.
16298 * m4/group-member.m4: Likewise.
16299 * m4/host-os.m4: Likewise.
16300 * m4/iconv.m4: Likewise.
16301 * m4/iconv_open.m4: Likewise.
16302 * m4/inet_ntop.m4: Likewise.
16303 * m4/inet_pton.m4: Likewise.
16304 * m4/inline.m4: Likewise.
16305 * m4/intldir.m4: Likewise.
16306 * m4/intlmacosx.m4: Likewise.
16307 * m4/intmax.m4: Likewise.
16308 * m4/intmax_t.m4: Likewise.
16309 * m4/inttypes.m4: Likewise.
16310 * m4/inttypes_h.m4: Likewise.
16311 * m4/inttypes-pri.m4: Likewise.
16312 * m4/isapipe.m4: Likewise.
16313 * m4/isnand.m4: Likewise.
16314 * m4/isnanf.m4: Likewise.
16315 * m4/isnanl.m4: Likewise.
16316 * m4/javacomp.m4: Likewise.
16317 * m4/javaexec.m4: Likewise.
16318 * m4/jm-winsz1.m4: Likewise.
16319 * m4/jm-winsz2.m4: Likewise.
16320 * m4/lchown.m4: Likewise.
16321 * m4/lcmessage.m4: Likewise.
16322 * m4/ldexpl.m4: Likewise.
16323 * m4/lib-ld.m4: Likewise.
16324 * m4/lib-link.m4: Likewise.
16325 * m4/libsigsegv.m4: Likewise.
16326 * m4/link-follow.m4: Likewise.
16327 * m4/localcharset.m4: Likewise.
16328 * m4/locale-fr.m4: Likewise.
16329 * m4/locale-ja.m4: Likewise.
16330 * m4/locale-tr.m4: Likewise.
16331 * m4/locale-zh.m4: Likewise.
16332 * m4/lock.m4: Likewise.
16333 * m4/longlong.m4: Likewise.
16334 * m4/ls-mntd-fs.m4: Likewise.
16335 * m4/lstat.m4: Likewise.
16336 * m4/malloc.m4: Likewise.
16337 * m4/mathl.m4: Likewise.
16338 * m4/mbrtowc.m4: Likewise.
16339 * m4/mbstate_t.m4: Likewise.
16340 * m4/mbswidth.m4: Likewise.
16341 * m4/memchr.m4: Likewise.
16342 * m4/memcmp.m4: Likewise.
16343 * m4/memcpy.m4: Likewise.
16344 * m4/memmem.m4: Likewise.
16345 * m4/memmove.m4: Likewise.
16346 * m4/mempcpy.m4: Likewise.
16347 * m4/memrchr.m4: Likewise.
16348 * m4/memset.m4: Likewise.
16349 * m4/minmax.m4: Likewise.
16350 * m4/mkdir-slash.m4: Likewise.
16351 * m4/mkdtemp.m4: Likewise.
16352 * m4/mktime.m4: Likewise.
16353 * m4/mmap-anon.m4: Likewise.
16354 * m4/mountlist.m4: Likewise.
16355 * m4/nanosleep.m4: Likewise.
16356 * m4/nls.m4: Likewise.
16357 * m4/nocrash.m4: Likewise.
16358 * m4/open.m4: Likewise.
16359 * m4/openat.m4: Likewise.
16360 * m4/openmp.m4: Likewise.
16361 * m4/pathmax.m4: Likewise.
16362 * m4/perl.m4: Likewise.
16363 * m4/physmem.m4: Likewise.
16364 * m4/pipe.m4: Likewise.
16365 * m4/po.m4: Likewise.
16366 * m4/poll.m4: Likewise.
16367 * m4/posixtm.m4: Likewise.
16368 * m4/posixver.m4: Likewise.
16369 * m4/printf-frexp.m4: Likewise.
16370 * m4/printf-frexpl.m4: Likewise.
16371 * m4/printf-posix.m4: Likewise.
16372 * m4/printf-posix-rpl.m4: Likewise.
16373 * m4/printf.m4: Likewise.
16374 * m4/progtest.m4: Likewise.
16375 * m4/putenv.m4: Likewise.
16376 * m4/readline.m4: Likewise.
16377 * m4/readlink.m4: Likewise.
16378 * m4/readutmp.m4: Likewise.
16379 * m4/realloc.m4: Likewise.
16380 * m4/regex.m4: Likewise.
16381 * m4/relocatable.m4: Likewise.
16382 * m4/relocatable-lib.m4: Likewise.
16383 * m4/rename-dest-slash.m4: Likewise.
16384 * m4/rename.m4: Likewise.
16385 * m4/rmdir-errno.m4: Likewise.
16386 * m4/rmdir.m4: Likewise.
16387 * m4/roundf.m4: Likewise.
16388 * m4/roundl.m4: Likewise.
16389 * m4/rpmatch.m4: Likewise.
16390 * m4/save-cwd.m4: Likewise.
16391 * m4/selinux-selinux-h.m4: Likewise.
16392 * m4/setenv.m4: Likewise.
16393 * m4/settime.m4: Likewise.
16394 * m4/sig2str.m4: Likewise.
16395 * m4/sig_atomic_t.m4: Likewise.
16396 * m4/signalblocking.m4: Likewise.
16397 * m4/signbit.m4: Likewise.
16398 * m4/sigpipe.m4: Likewise.
16399 * m4/sockets.m4: Likewise.
16400 * m4/sockpfaf.m4: Likewise.
16401 * m4/st_dm_mode.m4: Likewise.
16402 * m4/stat-time.m4: Likewise.
16403 * m4/stdbool.m4: Likewise.
16404 * m4/stdint.m4: Likewise.
16405 * m4/stdint_h.m4: Likewise.
16406 * m4/stpcpy.m4: Likewise.
16407 * m4/stpncpy.m4: Likewise.
16408 * m4/strcase.m4: Likewise.
16409 * m4/strchrnul.m4: Likewise.
16410 * m4/strcspn.m4: Likewise.
16411 * m4/strdup.m4: Likewise.
16412 * m4/strftime.m4: Likewise.
16413 * m4/strndup.m4: Likewise.
16414 * m4/strnlen.m4: Likewise.
16415 * m4/strpbrk.m4: Likewise.
16416 * m4/strptime.m4: Likewise.
16417 * m4/strsep.m4: Likewise.
16418 * m4/strtod.m4: Likewise.
16419 * m4/strtoimax.m4: Likewise.
16420 * m4/strtok_r.m4: Likewise.
16421 * m4/strtol.m4: Likewise.
16422 * m4/strtoll.m4: Likewise.
16423 * m4/strtoul.m4: Likewise.
16424 * m4/strtoull.m4: Likewise.
16425 * m4/strtoumax.m4: Likewise.
16426 * m4/strverscmp.m4: Likewise.
16427 * m4/threadlib.m4: Likewise.
16428 * m4/timegm.m4: Likewise.
16429 * m4/tm_gmtoff.m4: Likewise.
16430 * m4/tmpdir.m4: Likewise.
16431 * m4/tmpfile.m4: Likewise.
16432 * m4/tzset.m4: Likewise.
16433 * m4/uintmax_t.m4: Likewise.
16434 * m4/unlinkdir.m4: Likewise.
16435 * m4/unlocked-io.m4: Likewise.
16436 * m4/uptime.m4: Likewise.
16437 * m4/userspec.m4: Likewise.
16438 * m4/utimbuf.m4: Likewise.
16439 * m4/utime.m4: Likewise.
16440 * m4/utimes-null.m4: Likewise.
16441 * m4/utimes.m4: Likewise.
16442 * m4/vararrays.m4: Likewise.
16443 * m4/vasnprintf.m4: Likewise.
16444 * m4/vfprintf-posix.m4: Likewise.
16445 * m4/vprintf-posix.m4: Likewise.
16446 * m4/wait-process.m4: Likewise.
16447 * m4/wchar_t.m4: Likewise.
16448 * m4/wint_t.m4: Likewise.
16449 * m4/write-any-file.m4: Likewise.
16450 * m4/yield.m4: Likewise.
16452 2009-01-13 Bruno Haible <bruno@clisp.org>
16454 Avoid test-copy-file.sh failures when ACL support insufficient.
16455 * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
16457 * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
16458 Reported by Jim Meyering.
16460 2009-01-13 Bruno Haible <bruno@clisp.org>
16462 * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
16463 m4/inttypes_h.m4, needed by m4/intmax_t.m4.
16464 * modules/unistdio/u8-printf-parse (Files): Likewise.
16465 * modules/unistdio/u32-printf-parse (Files): Likewise.
16466 * modules/unistdio/ulc-printf-parse (Files): Likewise.
16468 2009-01-13 Simon Josefsson <simon@josefsson.org>
16470 * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
16471 and m4/inttypes_h.m4 too.
16473 2009-01-12 Eric Blake <ebb9@byu.net>
16475 tests: IRIX 6.2 cc can't compile -0.0 into .data
16476 * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
16477 rather than at compile-time.
16478 * tests/test-floorl.c (minus_zero): Likewise.
16479 * tests/test-frexpl.c (minus_zero): Likewise.
16480 * tests/test-isnan.c (minus_zerol): Likewise.
16481 * tests/test-isnanl.h (minus_zero): Likewise.
16482 * tests/test-ldexpl.c (minus_zero): Likewise.
16483 * tests/test-roundl.c (minus_zero): Likewise.
16484 * tests/test-signbit.c (minus_zerol): Likewise.
16485 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
16486 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
16487 * tests/test-truncl.c (minus_zero): Likewise.
16488 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
16489 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
16490 Reported by Tom G. Christensen and Nelson H. F. Beebe.
16492 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
16494 regex: fix glibc bug 9697
16495 * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
16498 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
16500 regex: fix glibc bug 697
16501 * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
16502 being NULL also if there are no backreferences.
16504 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
16506 regex: merge glibc changes
16507 * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
16508 * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
16509 re_string_skip_chars, re_string_reconstruct): Likewise.
16510 * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
16512 2009-01-07 Jim Meyering <meyering@redhat.com>
16514 poll: filter through cppi
16515 * lib/poll.c: Indent cpp directives to reflect nesting.
16517 2009-01-07 Daniel P. Berrange <berrange@redhat.com>
16519 poll: don't return uninitialized
16520 * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
16522 2009-01-06 Jeremy Olexa <darkside@gentoo.org> (tiny change)
16524 avoid compile failure on AIX 6.1
16525 * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
16526 Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
16528 2009-01-04 Jim Meyering <meyering@redhat.com>
16530 remove duplicate inclusion of <stdio.h>
16531 * tests/test-fprintf-posix.c: Likewise.
16532 * tests/test-printf-posix.c: Likewise.
16533 * tests/test-snprintf-posix.c: Likewise.
16534 * tests/test-sprintf-posix.c: Likewise.
16535 * tests/test-vasprintf-posix.c: Likewise.
16536 * tests/test-vfprintf-posix.c: Likewise.
16537 * tests/test-vprintf-posix.c: Likewise.
16538 * tests/test-vsnprintf-posix.c: Likewise.
16539 * tests/test-vsprintf-posix.c: Likewise.
16541 2009-01-03 Jim Meyering <meyering@redhat.com>
16543 gnulib-tool: fix sed-based filtering
16544 * gnulib-tool (func_filter_filelist): Remove extra backslash
16545 in sed_fff_filter definition.
16547 2009-01-02 Jim Meyering <meyering@redhat.com>
16549 strftime: avoid compilation failure on Solaris 2.6
16550 * modules/strftime (Depends-on): Add mbrlen and mbsinit.
16551 * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
16552 Don't #define mbrlen or mbsinit, since now they're guaranteed to
16553 be available. Reported by Tom G. Christensen. Details in
16554 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
16556 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16557 Bruno Haible <bruno@clisp.org>
16559 Speed up gnulib-tool by doing more string processing through shell
16561 * gnulib-tool (fast_func_append): New variable.
16562 (func_remove_prefix, func_remove_suffix): New functions.
16563 (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
16564 (func_filter_filelist): New function.
16565 (func_get_dependencies): Use func_remove_suffix instead of sed.
16566 (func_get_automake_snippet): Use func_filter_filelist instead of a
16567 subshell and sed invocation.
16569 2009-01-01 Bruno Haible <bruno@clisp.org>
16571 Fix a security bug.
16572 * gnulib-tool (func_import, import, update): Don't allow the characters
16573 '"', '$', '`', '\' in macro arguments that become part of commands that
16576 2009-01-01 Bruno Haible <bruno@clisp.org>
16578 * gnulib-tool (func_reset_sigpipe): Add more comments.
16580 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16582 * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
16583 func_emit_tests_Makefile_am, func_import): Abort loops early if we
16584 already know the answer.
16586 2009-01-01 Jim Meyering <meyering@redhat.com>
16588 * lib/version-etc.c (version_etc_va): Update copyright year.
16590 2008-12-30 Bruno Haible <bruno@clisp.org>
16592 * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
16593 LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
16594 Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
16596 2008-12-29 Eric Blake <ebb9@byu.net>
16598 multiarch: avoid autoconf AC_REQUIRE bug
16599 * m4/multiarch.m4 (gl_MULTIARCH): Split body...
16600 (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
16602 Reported by Bruno Haible, and analyzed in
16603 http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
16605 2008-12-29 Bruno Haible <bruno@clisp.org>
16607 * gnulib-tool (func_import): When generating sed-ignore-removed, handle
16608 files in subdirectories correctly.
16609 Reported by Ralf Wildenhues.
16611 2008-12-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16613 * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
16614 rather than 'join FILE -', for Solaris join.
16616 2008-12-29 Bruno Haible <bruno@clisp.org>
16618 * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
16620 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
16621 * m4/glibc2.m4 (gt_GLIBC2): Likewise.
16622 * m4/glibc21.m4 (gl_GLIBC21): Likewise.
16623 * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
16624 * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16625 * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
16626 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
16627 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
16628 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
16629 * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
16630 * m4/nls.m4 (AM_NLS): Likewise.
16631 * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
16632 * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
16633 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
16634 * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
16635 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
16636 * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16637 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
16638 * m4/visibility.m4 (gl_VISIBILITY): Likewise.
16639 * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
16640 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
16641 * m4/xsize.m4 (gl_XSIZE): Likewise.
16642 Suggested by Jim Meyering.
16644 2008-11-17 Bruce Korb <bkorb@gnu.org>
16646 * lib/parse-duration.h: non-iso form accepts years, months weeks, too
16647 * lib/parse-duration.c: use a switch instead of cascading if's.
16649 2008-12-29 Eric Blake <ebb9@byu.net>
16651 wchar.h: supply WEOF on Irix 5.3
16652 * lib/wchar.in.h (wint_t): Also supply WEOF.
16653 * lib/wctype.in.h (wint_t): Likewise.
16654 * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
16655 * doc/posix-headers/wctype.texi (wctype.h): Likewise.
16656 Reported by Tom G. Christensen.
16658 2008-12-26 Bruno Haible <bruno@clisp.org>
16660 * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
16663 2008-12-26 Bruno Haible <bruno@clisp.org>
16665 * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
16667 2008-12-26 Bruno Haible <bruno@clisp.org>
16669 * lib/stdint.in.h: Move the include of <wchar.h> down until after all
16670 the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
16671 not __STDC_CONSTANT_MACROS.
16672 Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
16674 2008-12-25 Bruno Haible <bruno@clisp.org>
16676 Add support for universal builds to vasnprintf.
16677 * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
16678 universal builds, guess no.
16679 * modules/vasnprintf-posix (Depends-on): Add multiarch.
16680 * modules/vasprintf-posix (Depends-on): Likewise.
16681 * modules/fprintf-posix (Depends-on): Likewise.
16682 * modules/vfprintf-posix (Depends-on): Likewise.
16683 * modules/snprintf-posix (Depends-on): Likewise.
16684 * modules/vsnprintf-posix (Depends-on): Likewise.
16685 * modules/sprintf-posix (Depends-on): Likewise.
16686 * modules/vsprintf-posix (Depends-on): Likewise.
16687 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
16688 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16689 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16690 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16691 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16692 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16693 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16695 Add support for universal builds to <inttypes.h>.
16696 * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
16697 _SCNu64_PREFIX): In Apple
16698 universal builds, define directly, using _LP64.
16699 * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
16700 INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
16701 * modules/inttypes (Depends-on): Add multiarch.
16702 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
16704 Add support for universal builds to <stdint.h>.
16705 * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
16706 universal builds, define directly, using _LP64.
16707 * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
16708 Apple universal builds, don't test for the size and suffix of ptrdiff_t
16710 * modules/stdint (Depends-on): Add multiarch.
16711 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
16713 New module 'multiarch'.
16714 * modules/multiarch: New file.
16715 * m4/multiarch.m4: New file.
16717 2008-12-25 Bruno Haible <bruno@clisp.org>
16719 * gnulib-tool (func_create_testdir): Avoid failure of mv command.
16721 2008-12-25 Bruno Haible <bruno@clisp.org>
16723 * modules/btowc (License): Relicense under LGPLv2+.
16724 * modules/mbsinit (License): Likewise.
16725 * modules/mbrtowc (License): Likewise.
16726 * modules/wcrtomb (License): Likewise.
16727 * modules/streq (License): Likewise.
16728 Reported by David Lutterkort <lutter@redhat.com>.
16730 2008-12-23 Bruno Haible <bruno@clisp.org>
16732 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
16734 2008-12-23 Bruno Haible <bruno@clisp.org>
16736 Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
16737 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
16738 GETADDRINFO_LIB, not in LIBS.
16739 * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
16740 * modules/canon-host (Link): Likewise.
16741 * NEWS: Mention the change.
16742 * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
16745 2008-12-22 Bruno Haible <bruno@clisp.org>
16747 * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
16748 * doc/posix-functions/iswalpha_l.texi: Likewise.
16749 * doc/posix-functions/iswblank_l.texi: Likewise.
16750 * doc/posix-functions/iswcntrl_l.texi: Likewise.
16751 * doc/posix-functions/iswctype_l.texi: Likewise.
16752 * doc/posix-functions/iswdigit_l.texi: Likewise.
16753 * doc/posix-functions/iswgraph_l.texi: Likewise.
16754 * doc/posix-functions/iswlower_l.texi: Likewise.
16755 * doc/posix-functions/iswprint_l.texi: Likewise.
16756 * doc/posix-functions/iswpunct_l.texi: Likewise.
16757 * doc/posix-functions/iswspace_l.texi: Likewise.
16758 * doc/posix-functions/iswupper_l.texi: Likewise.
16759 * doc/posix-functions/iswxdigit_l.texi: Likewise.
16760 * doc/posix-functions/mbsnrtowcs.texi: Likewise.
16761 * doc/posix-functions/open_wmemstream.texi: Likewise.
16762 * doc/posix-functions/swscanf.texi: Likewise.
16763 * doc/posix-functions/towctrans_l.texi: Likewise.
16764 * doc/posix-functions/towlower.texi: Likewise.
16765 * doc/posix-functions/towlower_l.texi: Likewise.
16766 * doc/posix-functions/towupper.texi: Likewise.
16767 * doc/posix-functions/towupper_l.texi: Likewise.
16768 * doc/posix-functions/vfwprintf.texi: Likewise.
16769 * doc/posix-functions/vfwscanf.texi: Likewise.
16770 * doc/posix-functions/vswscanf.texi: Likewise.
16771 * doc/posix-functions/vwprintf.texi: Likewise.
16772 * doc/posix-functions/vwscanf.texi: Likewise.
16773 * doc/posix-functions/wcpcpy.texi: Likewise.
16774 * doc/posix-functions/wcpncpy.texi: Likewise.
16775 * doc/posix-functions/wcscasecmp.texi: Likewise.
16776 * doc/posix-functions/wcscasecmp_l.texi: Likewise.
16777 * doc/posix-functions/wcscoll_l.texi: Likewise.
16778 * doc/posix-functions/wcsdup.texi: Likewise.
16779 * doc/posix-functions/wcsncasecmp.texi: Likewise.
16780 * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
16781 * doc/posix-functions/wcsnlen.texi: Likewise.
16782 * doc/posix-functions/wcsnrtombs.texi: Likewise.
16783 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
16784 * doc/posix-functions/wctrans_l.texi: Likewise.
16785 * doc/posix-functions/wctype_l.texi: Likewise.
16786 * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
16787 * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
16788 * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
16789 * doc/glibc-functions/fputws_unlocked.texi: Likewise.
16790 * doc/glibc-functions/getwc_unlocked.texi: Likewise.
16791 * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
16792 * doc/glibc-functions/putwc_unlocked.texi: Likewise.
16793 * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
16794 * doc/glibc-functions/wcschrnul.texi: Likewise.
16795 * doc/glibc-functions/wcsftime_l.texi: Likewise.
16796 * doc/glibc-functions/wcstod_l.texi: Likewise.
16797 * doc/glibc-functions/wcstof_l.texi: Likewise.
16798 * doc/glibc-functions/wcstol_l.texi: Likewise.
16799 * doc/glibc-functions/wcstold_l.texi: Likewise.
16800 * doc/glibc-functions/wcstoll_l.texi: Likewise.
16801 * doc/glibc-functions/wcstoq.texi: Likewise.
16802 * doc/glibc-functions/wcstoul_l.texi: Likewise.
16803 * doc/glibc-functions/wcstoull_l.texi: Likewise.
16804 * doc/glibc-functions/wcstouq.texi: Likewise.
16805 * doc/glibc-functions/wmempcpy.texi: Likewise.
16807 2008-12-22 Ingo Weinhold <ingo_weinhold@gmx.de> (tiny change)
16808 Eric Blake <ebb9@byu.net>
16809 Paolo Bonzini <bonzini@gnu.org>
16810 Bruno Haible <bruno@clisp.org>
16812 Make c-stack work on Haiku.
16813 * lib/c-stack.c (SA_ONSTACK): Define fallback.
16814 (c_stack_action): Use SA_ONSTACK flag.
16816 2008-12-22 Bruno Haible <bruno@clisp.org>
16818 * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
16820 2008-12-22 Bruno Haible <bruno@clisp.org>
16822 Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
16823 * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
16825 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
16827 * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
16828 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
16829 * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
16830 * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
16832 2008-12-22 Bruno Haible <bruno@clisp.org>
16834 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
16837 2008-12-22 Eric Blake <ebb9@byu.net>
16839 Avoid gcc warnings on cygwin.
16840 * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
16841 Avoid unused variable.
16842 * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
16845 2008-12-22 Bruno Haible <bruno@clisp.org>
16847 Remove HAVE_MBRTOWC conditionals.
16848 * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
16849 (mbscasecmp): Assume mbrtowc function.
16850 * lib/mbscasestr.c: Include mbuiter.h unconditionally.
16851 (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
16852 * lib/mbschr.c: Include mbuiter.h unconditionally.
16853 (mbschr): Assume mbrtowc function.
16854 * lib/mbscspn.c: Include mbuiter.h unconditionally.
16855 (mbscspn): Assume mbrtowc function.
16856 * lib/mbslen.c: Include mbuiter.h unconditionally.
16857 (mbslen): Assume mbrtowc function.
16858 * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
16859 (mbsncasecmp): Assume mbrtowc function.
16860 * lib/mbsnlen.c: Include mbiter.h unconditionally.
16861 (mbsnlen): Assume mbrtowc function.
16862 * lib/mbspbrk.c: Include mbuiter.h unconditionally.
16863 (mbspbrk): Assume mbrtowc function.
16864 * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
16865 (mbspcasecmp): Assume mbrtowc function.
16866 * lib/mbsrchr.c: Include mbuiter.h unconditionally.
16867 (mbsrchr): Assume mbrtowc function.
16868 * lib/mbssep.c: Include mbuiter.h unconditionally.
16869 (mbssep): Assume mbrtowc function.
16870 * lib/mbsspn.c: Include mbuiter.h unconditionally.
16871 (mbsspn): Assume mbrtowc function.
16872 * lib/mbsstr.c: Include mbuiter.h unconditionally.
16873 (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
16874 * lib/mbstok_r.c: Include mbuiter.h unconditionally.
16875 (mbstok_r): Assume mbrtowc function.
16876 * lib/propername.c: Include mbuiter.h unconditionally.
16877 (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
16878 * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
16879 (trim2): Assume mbrtowc function.
16880 * lib/mbswidth.c (mbsinit): Remove fallback definition.
16881 (mbsnwidth): Assume mbrtowc function.
16882 * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
16883 * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
16884 fallback definitions.
16885 * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
16887 2008-12-22 Bruno Haible <bruno@clisp.org>
16889 * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
16891 2008-12-22 Paolo Bonzini <bonzini@gnu.org>
16893 * modules/regex: Request emulations for the mb*/wc* functions we need.
16894 * m4/regex.m4: Don't look for those functions here.
16895 * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
16897 2008-12-22 Bruno Haible <bruno@clisp.org>
16899 * modules/fnmatch (Depends-on): Remove duplicated dependency.
16901 2008-12-21 Bruno Haible <bruno@clisp.org>
16903 Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
16904 * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
16905 (Include): Remove conditionalization.
16906 * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
16907 (Include): Remove conditionalization.
16908 * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
16909 (Include): Remove conditionalization.
16910 * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
16911 * m4/mbfile.m4 (gl_MBFILE): Likewise.
16912 * NEWS: Mention the change.
16913 Reported by Alan Hourihane <alanh@fairlite.co.uk>
16914 via Sergey Poznyakoff <gray@gnu.org.ua>.
16916 2008-12-21 Bruno Haible <bruno@clisp.org>
16918 * MODULES.html.sh (Extended multibyte and wide character utilities
16919 <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
16920 wcrtomb, wcsrtombs.
16921 (Support for systems lacking POSIX:2008): Add accept, bind, close,
16922 connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
16923 mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
16924 setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
16926 2008-12-21 Bruno Haible <bruno@clisp.org>
16928 * MODULES.html.sh: Change section titles to refer to POSIX:2008.
16930 2008-12-21 Bruno Haible <bruno@clisp.org>
16932 * modules/wcsnrtombs-tests: New file.
16933 * tests/test-wcsnrtombs1.sh: New file.
16934 * tests/test-wcsnrtombs2.sh: New file.
16935 * tests/test-wcsnrtombs3.sh: New file.
16936 * tests/test-wcsnrtombs4.sh: New file.
16937 * tests/test-wcsnrtombs.c: New file.
16939 New module 'wcsnrtombs'.
16940 * lib/wchar.in.h (wcsnrtombs): New declaration.
16941 * lib/wcsnrtombs.c: New file.
16942 * lib/wcsrtombs-state.c: New file.
16943 * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
16944 (internal_state): Remove variable.
16945 * m4/wcsnrtombs.m4: New file.
16946 * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
16948 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
16950 * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
16952 * modules/wcsnrtombs: New file.
16953 * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
16954 * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
16956 2008-12-21 Bruno Haible <bruno@clisp.org>
16958 * modules/wcsrtombs-tests: New file.
16959 * tests/test-wcsrtombs1.sh: New file.
16960 * tests/test-wcsrtombs2.sh: New file.
16961 * tests/test-wcsrtombs3.sh: New file.
16962 * tests/test-wcsrtombs4.sh: New file.
16963 * tests/test-wcsrtombs.c: New file.
16965 New module 'wcsrtombs'.
16966 * lib/wchar.in.h (wcsrtombs): New declaration.
16967 * lib/wcsrtombs.c: New file.
16968 * m4/wcsrtombs.m4: New file.
16969 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
16970 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
16971 * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
16972 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
16973 * modules/wcsrtombs: New file.
16974 * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
16977 2008-12-21 Bruno Haible <bruno@clisp.org>
16979 Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
16980 * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
16981 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
16982 with NULL destination argument in various locales. Set REPLACE_WCRTOMB
16984 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
16985 * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
16986 * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
16987 m4/locale-zh.m4, m4/codeset.m4.
16988 * doc/posix-functions/wcrtomb.texi: Document the bug.
16990 2008-12-21 Bruno Haible <bruno@clisp.org>
16992 Work around a btowc() bug on IRIX 6.5.
16993 * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
16994 * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
16995 REPLACE_WTOBC if not.
16996 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
16997 * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
16998 * doc/posix-functions/btowc.texi: Mention the IRIX bug.
17000 2008-12-21 Bruno Haible <bruno@clisp.org>
17002 * modules/wcrtomb-tests: New file.
17003 * tests/test-wcrtomb.sh: New file.
17004 * tests/test-wcrtomb.c: New file.
17006 New module 'wcrtomb'.
17007 * lib/wchar.in.h (wcrtomb): New declaration.
17008 * lib/wcrtomb.c: New file.
17009 * m4/wcrtomb.m4: New file.
17010 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
17012 * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
17014 * modules/wcrtomb: New file.
17015 * doc/posix-functions/wcrtomb.texi: Mention the new module.
17017 2008-12-21 Bruno Haible <bruno@clisp.org>
17019 * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
17020 * modules/mbsrtowcs (Files): Likewise.
17021 * modules/wctob (Files): Likewise.
17022 * modules/c-strcase-tests (Files): Likewise.
17023 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
17024 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
17025 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
17026 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
17027 * modules/vasnprintf-posix-tests (Files): Likewise.
17029 2008-12-21 William Pursell <bill.pursell@gmail.com>
17031 gitlog-to-changelog: pass all command-line arguments to git-log
17032 * build-aux/gitlog-to-changelog: When producing a ChangeLog,
17033 it is sometimes convenient to filter the commits in various ways.
17034 gitlog-to-changelog only allows --since to specify a start date,
17035 but git-log itself supports many other filtering mechanisms.
17036 At the moment, I want to filter by branch name. Rather than
17037 adding a --branch option to gitlog-to-changelog, it seems more
17038 flexible to simply pass all options directly to git-log and let
17039 git do the work. Notice that this effectively makes --since a
17040 redundant option for gitlog-to-changelog, but removing it would
17041 require current usage to change since calls would then require
17042 an additional '--'.
17044 2008-12-21 Bruno Haible <bruno@clisp.org>
17046 * modules/mbsnrtowcs-tests: New file.
17047 * tests/test-mbsnrtowcs1.sh: New file.
17048 * tests/test-mbsnrtowcs2.sh: New file.
17049 * tests/test-mbsnrtowcs3.sh: New file.
17050 * tests/test-mbsnrtowcs4.sh: New file.
17051 * tests/test-mbsnrtowcs.c: New file.
17053 New module 'mbsnrtowcs'.
17054 * lib/wchar.in.h (mbsnrtowcs): New declaration.
17055 * lib/mbsnrtowcs.c: New file.
17056 * lib/mbsrtowcs-state.c: New file.
17057 * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
17058 (internal_state): Remove variable.
17059 * m4/mbsnrtowcs.m4: New file.
17060 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
17062 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
17063 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17064 * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
17065 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17066 * modules/mbsnrtowcs: New file.
17067 * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
17068 * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
17069 portability problem.
17071 2008-12-21 Bruno Haible <bruno@clisp.org>
17073 Work around mbsrtowcs bug.
17074 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
17075 (gl_FUNC_MBSRTOWCS): Invoke it.
17076 * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17078 * doc/posix-functions/mbsrtowcs.texi: Document the bug.
17080 2008-12-21 Bruno Haible <bruno@clisp.org>
17082 * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
17084 2008-12-21 Bruno Haible <bruno@clisp.org>
17086 Update doc for AIX.
17087 * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
17088 16-bit wchar_t type.
17089 * doc/posix-functions/btowc.texi: Likewise.
17090 * doc/posix-functions/fgetwc.texi: Likewise.
17091 * doc/posix-functions/fgetws.texi: Likewise.
17092 * doc/posix-functions/fputwc.texi: Likewise.
17093 * doc/posix-functions/fputws.texi: Likewise.
17094 * doc/posix-functions/fwide.texi: Likewise.
17095 * doc/posix-functions/fwprintf.texi: Likewise.
17096 * doc/posix-functions/fwscanf.texi: Likewise.
17097 * doc/posix-functions/getwchar.texi: Likewise.
17098 * doc/posix-functions/getwc.texi: Likewise.
17099 * doc/posix-functions/iswalnum.texi: Likewise.
17100 * doc/posix-functions/iswalpha.texi: Likewise.
17101 * doc/posix-functions/iswblank.texi: Likewise.
17102 * doc/posix-functions/iswcntrl.texi: Likewise.
17103 * doc/posix-functions/iswctype.texi: Likewise.
17104 * doc/posix-functions/iswdigit.texi: Likewise.
17105 * doc/posix-functions/iswgraph.texi: Likewise.
17106 * doc/posix-functions/iswlower.texi: Likewise.
17107 * doc/posix-functions/iswprint.texi: Likewise.
17108 * doc/posix-functions/iswpunct.texi: Likewise.
17109 * doc/posix-functions/iswspace.texi: Likewise.
17110 * doc/posix-functions/iswupper.texi: Likewise.
17111 * doc/posix-functions/iswxdigit.texi: Likewise.
17112 * doc/posix-functions/mbrtowc.texi: Likewise.
17113 * doc/posix-functions/mbsrtowcs.texi: Likewise.
17114 * doc/posix-functions/mbstowcs.texi: Likewise.
17115 * doc/posix-functions/mbtowc.texi: Likewise.
17116 * doc/posix-functions/putwchar.texi: Likewise.
17117 * doc/posix-functions/putwc.texi: Likewise.
17118 * doc/posix-functions/swprintf.texi: Likewise.
17119 * doc/posix-functions/tolower.texi: Likewise.
17120 * doc/posix-functions/toupper.texi: Likewise.
17121 * doc/posix-functions/towctrans.texi: Likewise.
17122 * doc/posix-functions/ungetwc.texi: Likewise.
17123 * doc/posix-functions/vswprintf.texi: Likewise.
17124 * doc/posix-functions/wcrtomb.texi: Likewise.
17125 * doc/posix-functions/wcscat.texi: Likewise.
17126 * doc/posix-functions/wcschr.texi: Likewise.
17127 * doc/posix-functions/wcscmp.texi: Likewise.
17128 * doc/posix-functions/wcscoll.texi: Likewise.
17129 * doc/posix-functions/wcscpy.texi: Likewise.
17130 * doc/posix-functions/wcscspn.texi: Likewise.
17131 * doc/posix-functions/wcsftime.texi: Likewise.
17132 * doc/posix-functions/wcslen.texi: Likewise.
17133 * doc/posix-functions/wcsncat.texi: Likewise.
17134 * doc/posix-functions/wcsncmp.texi: Likewise.
17135 * doc/posix-functions/wcsncpy.texi: Likewise.
17136 * doc/posix-functions/wcspbrk.texi: Likewise.
17137 * doc/posix-functions/wcsrchr.texi: Likewise.
17138 * doc/posix-functions/wcsrtombs.texi: Likewise.
17139 * doc/posix-functions/wcsspn.texi: Likewise.
17140 * doc/posix-functions/wcsstr.texi: Likewise.
17141 * doc/posix-functions/wcstod.texi: Likewise.
17142 * doc/posix-functions/wcstof.texi: Likewise.
17143 * doc/posix-functions/wcstoimax.texi: Likewise.
17144 * doc/posix-functions/wcstok.texi: Likewise.
17145 * doc/posix-functions/wcstold.texi: Likewise.
17146 * doc/posix-functions/wcstoll.texi: Likewise.
17147 * doc/posix-functions/wcstol.texi: Likewise.
17148 * doc/posix-functions/wcstombs.texi: Likewise.
17149 * doc/posix-functions/wcstoull.texi: Likewise.
17150 * doc/posix-functions/wcstoul.texi: Likewise.
17151 * doc/posix-functions/wcstoumax.texi: Likewise.
17152 * doc/posix-functions/wcswidth.texi: Likewise.
17153 * doc/posix-functions/wcsxfrm.texi: Likewise.
17154 * doc/posix-functions/wctob.texi: Likewise.
17155 * doc/posix-functions/wctomb.texi: Likewise.
17156 * doc/posix-functions/wctrans.texi: Likewise.
17157 * doc/posix-functions/wctype.texi: Likewise.
17158 * doc/posix-functions/wcwidth.texi: Likewise.
17159 * doc/posix-functions/wmemchr.texi: Likewise.
17160 * doc/posix-functions/wmemcmp.texi: Likewise.
17161 * doc/posix-functions/wmemcpy.texi: Likewise.
17162 * doc/posix-functions/wmemmove.texi: Likewise.
17163 * doc/posix-functions/wmemset.texi: Likewise.
17164 * doc/posix-functions/wprintf.texi: Likewise.
17165 * doc/posix-functions/wscanf.texi: Likewise.
17167 2008-12-21 Bruno Haible <bruno@clisp.org>
17169 Update doc for HP-UX 11.11.
17170 * doc/posix-functions/btowc.texi: Clarify that the function is missing
17171 in HP-UX version 11.00, not in all versions of HP-UX 11.
17172 * doc/posix-functions/fwide.texi: Likewise.
17173 * doc/posix-functions/fwprintf.texi: Likewise.
17174 * doc/posix-functions/fwscanf.texi: Likewise.
17175 * doc/posix-functions/inet_ntop.texi: Likewise.
17176 * doc/posix-functions/inet_pton.texi: Likewise.
17177 * doc/posix-functions/mbrlen.texi: Likewise.
17178 * doc/posix-functions/mbrtowc.texi: Likewise.
17179 * doc/posix-functions/mbsinit.texi: Likewise.
17180 * doc/posix-functions/mbsrtowcs.texi: Likewise.
17181 * doc/posix-functions/swprintf.texi: Likewise.
17182 * doc/posix-functions/swscanf.texi: Likewise.
17183 * doc/posix-functions/towctrans.texi: Likewise.
17184 * doc/posix-functions/vfwprintf.texi: Likewise.
17185 * doc/posix-functions/vswprintf.texi: Likewise.
17186 * doc/posix-functions/vwprintf.texi: Likewise.
17187 * doc/posix-functions/wcrtomb.texi: Likewise.
17188 * doc/posix-functions/wcsrtombs.texi: Likewise.
17189 * doc/posix-functions/wcsstr.texi: Likewise.
17190 * doc/posix-functions/wctob.texi: Likewise.
17191 * doc/posix-functions/wctrans.texi: Likewise.
17192 * doc/posix-functions/wmemchr.texi: Likewise.
17193 * doc/posix-functions/wmemcmp.texi: Likewise.
17194 * doc/posix-functions/wmemcpy.texi: Likewise.
17195 * doc/posix-functions/wmemmove.texi: Likewise.
17196 * doc/posix-functions/wmemset.texi: Likewise.
17197 * doc/posix-functions/wprintf.texi: Likewise.
17198 * doc/posix-functions/wscanf.texi: Likewise.
17200 2008-12-21 Bruno Haible <bruno@clisp.org>
17202 Work around a portability problem.
17203 * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
17204 * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
17206 2008-12-20 Bruno Haible <bruno@clisp.org>
17208 * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
17209 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
17210 REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
17211 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
17212 * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
17214 Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
17215 * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
17217 (GNULIB_defined_mbstate_t): New macro.
17218 (mbsinit): Redefine if REPLACE_MBSINIT is set.
17219 (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
17220 * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
17221 reuses the system's mbrtowc function but works around the bugs.
17222 * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
17223 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
17225 (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
17226 be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
17227 MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
17228 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
17229 REPLACE_MBSINIT if mbsinit needs to be overridden.
17230 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
17231 REPLACE_MBSINIT, REPLACE_MBRTOWC.
17232 * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
17233 REPLACE_MBSINIT, REPLACE_MBRTOWC.
17234 * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17236 (Depends): Add mbsinit.
17237 * modules/mbsinit (Depends): Add mbrtowc.
17238 * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
17240 2008-12-20 Bruno Haible <bruno@clisp.org>
17242 * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
17243 so that there are no conversion errors on AIX.
17244 * tests/test-mbsrtowcs.c (main): LIkewise.
17246 2008-12-20 Bruno Haible <bruno@clisp.org>
17248 Work around wctob bug on Solaris <= 9.
17249 * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
17250 * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
17251 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
17252 * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
17253 * modules/wctob (Files): Add m4/locale-fr.m4.
17254 * doc/posix-functions/wctob.texi: Mention the Solaris bug.
17256 2008-12-20 Bruno Haible <bruno@clisp.org>
17258 * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
17260 * tests/test-select-in.sh: Likewise.
17261 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17263 2008-12-20 Bruno Haible <bruno@clisp.org>
17265 Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
17266 * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
17269 2008-12-20 Bruno Haible <bruno@clisp.org>
17271 Ensure mbstate_t is defined on HP-UX 11.11.
17272 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
17273 AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
17274 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
17275 AC_USE_SYSTEM_EXTENSIONS.
17276 * modules/fnmatch (Depends-on): Add extensions.
17277 * modules/mbrlen (Depends-on): Likewise.
17278 * modules/mbrtowc (Depends-on): Likewise.
17279 * modules/mbsinit (Depends-on): Likewise.
17280 * modules/mbsrtowcs (Depends-on): Likewise.
17281 * modules/mbswidth (Depends-on): Likewise.
17282 * modules/quotearg (Depends-on): Likewise.
17283 * modules/strftime (Depends-on): Likewise.
17285 2008-12-20 Bruno Haible <bruno@clisp.org>
17287 Ensure wctob is declared on IRIX 6.5.
17288 * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
17289 * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
17290 HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
17291 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
17293 * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
17295 * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
17297 2008-12-19 Bruno Haible <bruno@clisp.org>
17299 * modules/mbsrtowcs-tests: New file.
17300 * tests/test-mbsrtowcs1.sh: New file.
17301 * tests/test-mbsrtowcs2.sh: New file.
17302 * tests/test-mbsrtowcs3.sh: New file.
17303 * tests/test-mbsrtowcs4.sh: New file.
17304 * tests/test-mbsrtowcs.c: New file.
17306 New module 'mbsrtowcs'.
17307 * lib/wchar.in.h (mbsrtowcs): New declaration.
17308 * lib/mbsrtowcs.c: New file.
17309 * m4/mbsrtowcs.m4: New file.
17310 * modules/mbsrtowcs: New file.
17311 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
17313 * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
17315 * doc/posix-functions/mbsrtowcs.texi: Document the new module.
17317 2008-12-19 Bruno Haible <bruno@clisp.org>
17319 New module 'mbrlen'.
17320 * lib/wchar.in.h (mbrlen): New declaration.
17321 * lib/mbrlen.c: New file.
17322 * m4/mbrlen.m4: New file.
17323 * modules/mbrlen: New file.
17324 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
17326 * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
17328 * doc/posix-functions/mbrlen.texi: Document the new module.
17330 2008-12-19 Bruno Haible <bruno@clisp.org>
17332 * lib/mbrtowc.c: Include verify.h. Verify an assumption.
17333 * modules/mbrtowc (Depends-on): Add verify.
17334 Suggested by Paul Eggert.
17336 2008-12-18 Bruno Haible <bruno@clisp.org>
17338 * modules/mbsinit-tests: New file.
17339 * tests/test-mbsinit.sh: New file.
17340 * tests/test-mbsinit.c: New file.
17342 2008-12-18 Bruno Haible <bruno@clisp.org>
17344 * modules/mbrtowc-tests: New file.
17345 * tests/test-mbrtowc1.sh: New file.
17346 * tests/test-mbrtowc2.sh: New file.
17347 * tests/test-mbrtowc3.sh: New file.
17348 * tests/test-mbrtowc4.sh: New file.
17349 * tests/test-mbrtowc.c: New file.
17351 New module 'mbrtowc'.
17352 * lib/wchar.in.h (mbstate_t): Override when the system does not have
17353 mbsinit and mbrtowc.
17354 (mbrtowc): New declaration.
17355 * lib/mbrtowc.c: New file.
17356 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
17357 * modules/mbrtowc: New file.
17358 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
17360 * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
17362 * doc/posix-functions/mbrtowc.texi: Document the new module.
17364 2008-12-18 Bruno Haible <bruno@clisp.org>
17366 New module 'wctob'.
17367 * lib/wchar.in.h (wctob): New declaration.
17368 * lib/wctob.c: New file.
17369 * m4/wctob.m4: New file.
17370 * modules/wctob: New file.
17371 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
17373 * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
17374 * doc/posix-functions/wctob.texi: Document the new module.
17376 2008-12-18 Bruno Haible <bruno@clisp.org>
17378 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
17379 * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
17381 2008-12-18 Simon Josefsson <simon@josefsson.org>
17383 * lib/flock.c: Use proper #if symbol in check. Reported by "Tom
17384 G. Christensen" <tgc@jupiterrise.com>.
17386 * lib/flock.c: Need to include errno.h. Reported by "Tom
17387 G. Christensen" <tgc@jupiterrise.com>.
17389 * lib/flock.c: Need to include string.h. Reported by "Tom
17390 G. Christensen" <tgc@jupiterrise.com> and Eric Blake
17393 2008-12-18 Bruno Haible <bruno@clisp.org>
17395 * m4/locale-ja.m4: New file, from GNU gettext.
17397 2008-12-17 Bruno Haible <bruno@clisp.org>
17399 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
17400 Suggested by Eric Blake.
17402 2008-12-17 Bruno Haible <bruno@clisp.org>
17404 * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
17406 2008-12-17 Bruno Haible <bruno@clisp.org>
17408 * lib/mbsinit.c: Include verify.h. Verify an assumption.
17409 * modules/mbsinit (Depends-on): Add verify.
17410 Suggested by Paul Eggert.
17412 2008-12-17 Bruno Haible <bruno@clisp.org>
17414 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
17415 * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
17417 * m4/mbiter.m4 (gl_MBITER): LIkewise.
17418 * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
17419 * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
17420 * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
17421 * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
17422 * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
17423 * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
17424 * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
17425 * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
17426 * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
17427 * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
17428 * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
17429 * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
17430 * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
17431 * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
17432 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17433 * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
17434 * modules/trim (configure.ac): Likewise.
17436 2008-12-17 Bruno Haible <bruno@clisp.org>
17438 * modules/btowc-tests: New file.
17439 * tests/test-btowc1.sh: New file.
17440 * tests/test-btowc2.sh: New file.
17441 * tests/test-btowc.c: New file.
17443 New module 'btowc'.
17444 * lib/wchar.in.h (btowc): New declaration.
17445 * lib/btowc.c: New file.
17446 * m4/btowc.m4: New file.
17447 * modules/btowc: New file.
17448 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
17450 * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
17451 * doc/posix-functions/btowc.texi: Document the new module.
17453 2008-12-17 Bruno Haible <bruno@clisp.org>
17455 New module 'mbsinit'.
17456 * lib/wchar.in.h (mbsinit): New declaration.
17457 * lib/mbsinit.c: New file.
17458 * m4/mbsinit.m4: New file.
17459 * modules/mbsinit: New file.
17460 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
17462 * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
17464 * doc/posix-functions/mbsinit.texi: Document the new module.
17466 2008-12-16 Bruno Haible <bruno@clisp.org>
17468 * lib/unistd.in.h: Add comment.
17469 * tests/test-environ.c: Don't include <stdlib.h>.
17471 2008-12-16 Bruno Haible <bruno@clisp.org>
17473 * lib/parse-duration.h (parse_duration): Document return value
17475 * lib/parse-duration.c: Include specification header first. Add
17478 (parse_year_month_day, parse_hour_minute_second): Move side effects
17479 outside of strchr call.
17480 (parse_non_iso8601): Move side effects outside of isspace call.
17481 (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
17484 2008-12-16 Bruno Haible <bruno@clisp.org>
17486 * tests/test-parse-duration.sh: Produce no output when the test
17489 2008-12-16 Bruno Haible <bruno@clisp.org>
17491 * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
17494 2008-12-15 Bruno Haible <bruno@clisp.org>
17496 * doc/glibc-functions/fgetxattr.texi: Tweak wording.
17497 * doc/glibc-functions/flistxattr.texi: Likewise.
17498 * doc/glibc-functions/fopencookie.texi: Likewise.
17499 * doc/glibc-functions/fremovexattr.texi: Likewise.
17500 * doc/glibc-functions/fsetxattr.texi: Likewise.
17501 * doc/glibc-functions/getxattr.texi: Likewise.
17502 * doc/glibc-functions/lgetxattr.texi: Likewise.
17503 * doc/glibc-functions/listxattr.texi: Likewise.
17504 * doc/glibc-functions/llistxattr.texi: Likewise.
17505 * doc/glibc-functions/lremovexattr.texi: Likewise.
17506 * doc/glibc-functions/lsetxattr.texi: Likewise.
17507 * doc/glibc-functions/removexattr.texi: Likewise.
17508 * doc/glibc-functions/setxattr.texi: Likewise.
17509 * doc/posix-functions/open_memstream.texi: Likewise.
17511 2008-12-15 Eric Blake <ebb9@byu.net>
17513 Update doc for cygwin 1.7.
17514 * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
17516 * doc/posix-functions/fchmodat.texi: Likewise.
17517 * doc/posix-functions/fchownat.texi: Likewise.
17518 * doc/posix-functions/fdopendir.texi: Likewise.
17519 * doc/posix-functions/fmemopen.texi: Likewise.
17520 * doc/posix-functions/freeaddrinfo.texi: Likewise.
17521 * doc/posix-functions/fstatat.texi: Likewise.
17522 * doc/posix-functions/futimens.texi: Likewise.
17523 * doc/posix-functions/gai_strerror.texi: Likewise.
17524 * doc/posix-functions/getaddrinfo.texi: Likewise.
17525 * doc/posix-functions/getnameinfo.texi: Likewise.
17526 * doc/posix-functions/if_freenameindex.texi: Likewise.
17527 * doc/posix-functions/if_indextoname.texi: Likewise.
17528 * doc/posix-functions/if_nameindex.texi: Likewise.
17529 * doc/posix-functions/if_nametoindex.texi: Likewise.
17530 * doc/posix-functions/insque.texi: Likewise.
17531 * doc/posix-functions/linkat.texi: Likewise.
17532 * doc/posix-functions/llrint.texi: Likewise.
17533 * doc/posix-functions/llrintf.texi: Likewise.
17534 * doc/posix-functions/llrintl.texi: Likewise.
17535 * doc/posix-functions/lockf.texi: Likewise.
17536 * doc/posix-functions/lrintl.texi: Likewise.
17537 * doc/posix-functions/mkdirat.texi: Likewise.
17538 * doc/posix-functions/mkfifoat.texi: Likewise.
17539 * doc/posix-functions/mknodat.texi: Likewise.
17540 * doc/posix-functions/mq_close.texi: Likewise.
17541 * doc/posix-functions/mq_getattr.texi: Likewise.
17542 * doc/posix-functions/mq_notify.texi: Likewise.
17543 * doc/posix-functions/mq_open.texi: Likewise.
17544 * doc/posix-functions/mq_receive.texi: Likewise.
17545 * doc/posix-functions/mq_send.texi: Likewise.
17546 * doc/posix-functions/mq_setattr.texi: Likewise.
17547 * doc/posix-functions/mq_timedreceive.texi: Likewise.
17548 * doc/posix-functions/mq_timedsend.texi: Likewise.
17549 * doc/posix-functions/mq_unlink.texi: Likewise.
17550 * doc/posix-functions/open_memstream.texi: Likewise.
17551 * doc/posix-functions/openat.texi: Likewise.
17552 * doc/posix-functions/posix_fadvise.texi: Likewise.
17553 * doc/posix-functions/posix_fallocate.texi: Likewise.
17554 * doc/posix-functions/posix_madvise.texi: Likewise.
17555 * doc/posix-functions/posix_memalign.texi: Likewise.
17556 * doc/posix-functions/posix_openpt.texi: Likewise.
17557 * doc/posix-functions/readlinkat.texi: Likewise.
17558 * doc/posix-functions/remque.texi: Likewise.
17559 * doc/posix-functions/renameat.texi: Likewise.
17560 * doc/posix-functions/rintl.texi: Likewise.
17561 * doc/posix-functions/sem_unlink.texi: Likewise.
17562 * doc/posix-functions/shm_open.texi: Likewise.
17563 * doc/posix-functions/shm_unlink.texi: Likewise.
17564 * doc/posix-functions/signgam.texi: Likewise.
17565 * doc/posix-functions/sigset.texi: Likewise.
17566 * doc/posix-functions/stpcpy.texi: Likewise.
17567 * doc/posix-functions/stpncpy.texi: Likewise.
17568 * doc/posix-functions/strerror.texi: Likewise.
17569 * doc/posix-functions/strtod.texi: Likewise.
17570 * doc/posix-functions/symlinkat.texi: Likewise.
17571 * doc/posix-functions/unlinkat.texi: Likewise.
17572 * doc/posix-functions/utimensat.texi: Likewise.
17573 * doc/glibc-functions/bindresvport.texi: Likewise.
17574 * doc/glibc-functions/dn_expand.texi: Likewise.
17575 * doc/glibc-functions/exp10.texi: Likewise.
17576 * doc/glibc-functions/exp10f.texi: Likewise.
17577 * doc/glibc-functions/fgetxattr.texi: Likewise.
17578 * doc/glibc-functions/flistxattr.texi: Likewise.
17579 * doc/glibc-functions/fopencookie.texi: Likewise.
17580 * doc/glibc-functions/freeifaddrs.texi: Likewise.
17581 * doc/glibc-functions/fremovexattr.texi: Likewise.
17582 * doc/glibc-functions/fsetxattr.texi: Likewise.
17583 * doc/glibc-functions/getifaddrs.texi: Likewise.
17584 * doc/glibc-functions/getxattr.texi: Likewise.
17585 * doc/glibc-functions/lgetxattr.texi: Likewise.
17586 * doc/glibc-functions/listxattr.texi: Likewise.
17587 * doc/glibc-functions/llistxattr.texi: Likewise.
17588 * doc/glibc-functions/lremovexattr.texi: Likewise.
17589 * doc/glibc-functions/lsetxattr.texi: Likewise.
17590 * doc/glibc-functions/pow10.texi: Likewise.
17591 * doc/glibc-functions/pow10f.texi: Likewise.
17592 * doc/glibc-functions/rcmd_af.texi: Likewise.
17593 * doc/glibc-functions/removexattr.texi: Likewise.
17594 * doc/glibc-functions/res_init.texi: Likewise.
17595 * doc/glibc-functions/res_mkquery.texi: Likewise.
17596 * doc/glibc-functions/res_query.texi: Likewise.
17597 * doc/glibc-functions/res_querydomain.texi: Likewise.
17598 * doc/glibc-functions/res_send.texi: Likewise.
17599 * doc/glibc-functions/rresvport_af.texi: Likewise.
17600 * doc/glibc-functions/setxattr.texi: Likewise.
17601 * doc/glibc-functions/strcasestr.texi: Likewise.
17603 2008-12-15 Bruno Haible <bruno@clisp.org>
17605 Fix compilation error on OSF/1 4.0.
17606 * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
17607 <sys/time.h>, simply delegate to the system header.
17608 Reported by Daniel Richard G. <oss@teragram.com>.
17610 2008-12-15 Bruno Haible <bruno@clisp.org>
17612 * doc/posix-functions/openat.texi: Mention the 'openat' module.
17613 * doc/posix-functions/fchmodat.texi: Likewise.
17614 * doc/posix-functions/fchownat.texi: Likewise.
17615 * doc/posix-functions/fdopendir.texi: Likewise.
17616 * doc/posix-functions/fstatat.texi: Likewise.
17617 * doc/posix-functions/mkdirat.texi: Likewise.
17618 * doc/posix-functions/unlinkat.texi: Likewise.
17620 2008-12-14 Bruno Haible <bruno@clisp.org>
17622 Update doc for POSIX:2008.
17623 * doc/posix-functions/faccessat.texi: New file.
17624 * doc/posix-functions/fchmodat.texi: New file.
17625 * doc/posix-functions/fchownat.texi: New file.
17626 * doc/posix-functions/fdopendir.texi: New file.
17627 * doc/posix-functions/fstatat.texi: New file.
17628 * doc/posix-functions/futimens.texi: New file.
17629 * doc/posix-functions/linkat.texi: New file.
17630 * doc/posix-functions/mkdirat.texi: New file.
17631 * doc/posix-functions/mkfifoat.texi: New file.
17632 * doc/posix-functions/mknodat.texi: New file.
17633 * doc/posix-functions/open_wmemstream.texi: New file.
17634 * doc/posix-functions/openat.texi: New file.
17635 * doc/posix-functions/psiginfo.texi: New file.
17636 * doc/posix-functions/pthread_mutex_consistent.texi: New file.
17637 * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
17638 * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
17639 * doc/posix-functions/readlinkat.texi: New file.
17640 * doc/posix-functions/renameat.texi: New file.
17641 * doc/posix-functions/strerror_l.texi: New file.
17642 * doc/posix-functions/symlinkat.texi: New file.
17643 * doc/posix-functions/unlinkat.texi: New file.
17644 * doc/posix-functions/utimensat.texi: New file.
17645 * doc/gnulib.texi (Function Substitutes): Add these subsections.
17647 2008-12-14 Bruno Haible <bruno@clisp.org>
17649 Update doc for POSIX:2008.
17650 * doc/posix-functions/alphasort.texi: Renamed from
17651 doc/glibc-functions/alphasort.texi.
17652 * doc/posix-functions/dirfd.texi: Renamed from
17653 doc/glibc-functions/dirfd.texi.
17654 * doc/posix-functions/dprintf.texi: Renamed from
17655 doc/glibc-functions/dprintf.texi.
17656 * doc/posix-functions/duplocale.texi: Renamed from
17657 doc/glibc-functions/duplocale.texi.
17658 * doc/posix-functions/fexecve.texi: Renamed from
17659 doc/glibc-functions/fexecve.texi.
17660 * doc/posix-functions/fmemopen.texi: Renamed from
17661 doc/glibc-functions/fmemopen.texi.
17662 * doc/posix-functions/freelocale.texi: Renamed from
17663 doc/glibc-functions/freelocale.texi.
17664 * doc/posix-functions/getdate_err.texi: Renamed from
17665 doc/glibc-functions/getdate_err.texi.
17666 * doc/posix-functions/isalnum_l.texi: Renamed from
17667 doc/glibc-functions/isalnum_l.texi.
17668 * doc/posix-functions/isalpha_l.texi: Renamed from
17669 doc/glibc-functions/isalpha_l.texi.
17670 * doc/posix-functions/isblank_l.texi: Renamed from
17671 doc/glibc-functions/isblank_l.texi.
17672 * doc/posix-functions/iscntrl_l.texi: Renamed from
17673 doc/glibc-functions/iscntrl_l.texi.
17674 * doc/posix-functions/isdigit_l.texi: Renamed from
17675 doc/glibc-functions/isdigit_l.texi.
17676 * doc/posix-functions/isgraph_l.texi: Renamed from
17677 doc/glibc-functions/isgraph_l.texi.
17678 * doc/posix-functions/islower_l.texi: Renamed from
17679 doc/glibc-functions/islower_l.texi.
17680 * doc/posix-functions/isprint_l.texi: Renamed from
17681 doc/glibc-functions/isprint_l.texi.
17682 * doc/posix-functions/ispunct_l.texi: Renamed from
17683 doc/glibc-functions/ispunct_l.texi.
17684 * doc/posix-functions/isspace_l.texi: Renamed from
17685 doc/glibc-functions/isspace_l.texi.
17686 * doc/posix-functions/isupper_l.texi: Renamed from
17687 doc/glibc-functions/isupper_l.texi.
17688 * doc/posix-functions/iswalnum_l.texi: Renamed from
17689 doc/glibc-functions/iswalnum_l.texi.
17690 * doc/posix-functions/iswalpha_l.texi: Renamed from
17691 doc/glibc-functions/iswalpha_l.texi.
17692 * doc/posix-functions/iswblank_l.texi: Renamed from
17693 doc/glibc-functions/iswblank_l.texi.
17694 * doc/posix-functions/iswcntrl_l.texi: Renamed from
17695 doc/glibc-functions/iswcntrl_l.texi.
17696 * doc/posix-functions/iswctype_l.texi: Renamed from
17697 doc/glibc-functions/iswctype_l.texi.
17698 * doc/posix-functions/iswdigit_l.texi: Renamed from
17699 doc/glibc-functions/iswdigit_l.texi.
17700 * doc/posix-functions/iswgraph_l.texi: Renamed from
17701 doc/glibc-functions/iswgraph_l.texi.
17702 * doc/posix-functions/iswlower_l.texi: Renamed from
17703 doc/glibc-functions/iswlower_l.texi.
17704 * doc/posix-functions/iswprint_l.texi: Renamed from
17705 doc/glibc-functions/iswprint_l.texi.
17706 * doc/posix-functions/iswpunct_l.texi: Renamed from
17707 doc/glibc-functions/iswpunct_l.texi.
17708 * doc/posix-functions/iswspace_l.texi: Renamed from
17709 doc/glibc-functions/iswspace_l.texi.
17710 * doc/posix-functions/iswupper_l.texi: Renamed from
17711 doc/glibc-functions/iswupper_l.texi.
17712 * doc/posix-functions/iswxdigit_l.texi: Renamed from
17713 doc/glibc-functions/iswxdigit_l.texi.
17714 * doc/posix-functions/isxdigit_l.texi: Renamed from
17715 doc/glibc-functions/isxdigit_l.texi.
17716 * doc/posix-functions/mbsnrtowcs.texi: Renamed from
17717 doc/glibc-functions/mbsnrtowcs.texi.
17718 * doc/posix-functions/mkdtemp.texi: Renamed from
17719 doc/glibc-functions/mkdtemp.texi.
17720 * doc/posix-functions/newlocale.texi: Renamed from
17721 doc/glibc-functions/newlocale.texi.
17722 * doc/posix-functions/nl_langinfo_l.texi: Renamed from
17723 doc/glibc-functions/nl_langinfo_l.texi.
17724 * doc/posix-functions/open_memstream.texi: Renamed from
17725 doc/glibc-functions/open_memstream.texi.
17726 * doc/posix-functions/opterr.texi: Renamed from
17727 doc/glibc-functions/opterr.texi.
17728 * doc/posix-functions/optind.texi: Renamed from
17729 doc/glibc-functions/optind.texi.
17730 * doc/posix-functions/optopt.texi: Renamed from
17731 doc/glibc-functions/optopt.texi.
17732 * doc/posix-functions/psignal.texi: Renamed from
17733 doc/glibc-functions/psignal.texi.
17734 * doc/posix-functions/scandir.texi: Renamed from
17735 doc/glibc-functions/scandir.texi.
17736 * doc/posix-functions/sched_get_priority_min.texi: Renamed from
17737 doc/glibc-functions/sched_get_priority_min.texi.
17738 * doc/posix-functions/signgam.texi: Renamed from
17739 doc/glibc-functions/signgam.texi.
17740 * doc/posix-functions/stpcpy.texi: Renamed from
17741 doc/glibc-functions/stpcpy.texi.
17742 * doc/posix-functions/stpncpy.texi: Renamed from
17743 doc/glibc-functions/stpncpy.texi.
17744 * doc/posix-functions/strcasecmp_l.texi: Renamed from
17745 doc/glibc-functions/strcasecmp_l.texi.
17746 * doc/posix-functions/strcoll_l.texi: Renamed from
17747 doc/glibc-functions/strcoll_l.texi.
17748 * doc/posix-functions/strfmon_l.texi: Renamed from
17749 doc/glibc-functions/strfmon_l.texi.
17750 * doc/posix-functions/strftime_l.texi: Renamed from
17751 doc/glibc-functions/strftime_l.texi.
17752 * doc/posix-functions/strncasecmp_l.texi: Renamed from
17753 doc/glibc-functions/strncasecmp_l.texi.
17754 * doc/posix-functions/strndup.texi: Renamed from
17755 doc/glibc-functions/strndup.texi.
17756 * doc/posix-functions/strnlen.texi: Renamed from
17757 doc/glibc-functions/strnlen.texi.
17758 * doc/posix-functions/strsignal.texi: Renamed from
17759 doc/glibc-functions/strsignal.texi.
17760 * doc/posix-functions/strxfrm_l.texi: Renamed from
17761 doc/glibc-functions/strxfrm_l.texi.
17762 * doc/posix-functions/timer_gettime.texi: Renamed from
17763 doc/glibc-functions/timer_gettime.texi.
17764 * doc/posix-functions/tolower_l.texi: Renamed from
17765 doc/glibc-functions/tolower_l.texi.
17766 * doc/posix-functions/toupper_l.texi: Renamed from
17767 doc/glibc-functions/toupper_l.texi.
17768 * doc/posix-functions/towctrans_l.texi: Renamed from
17769 doc/glibc-functions/towctrans_l.texi.
17770 * doc/posix-functions/towlower_l.texi: Renamed from
17771 doc/glibc-functions/towlower_l.texi.
17772 * doc/posix-functions/towupper_l.texi: Renamed from
17773 doc/glibc-functions/towupper_l.texi.
17774 * doc/posix-functions/uselocale.texi: Renamed from
17775 doc/glibc-functions/uselocale.texi.
17776 * doc/posix-functions/vdprintf.texi: Renamed from
17777 doc/glibc-functions/vdprintf.texi.
17778 * doc/posix-functions/wcpcpy.texi:
17779 Renamed from doc/glibc-functions/wcpcpy.texi.
17780 * doc/posix-functions/wcpncpy.texi: Renamed from
17781 doc/glibc-functions/wcpncpy.texi.
17782 * doc/posix-functions/wcscasecmp.texi: Renamed from
17783 doc/glibc-functions/wcscasecmp.texi.
17784 * doc/posix-functions/wcscasecmp_l.texi: Renamed from
17785 doc/glibc-functions/wcscasecmp_l.texi.
17786 * doc/posix-functions/wcscoll_l.texi: Renamed from
17787 doc/glibc-functions/wcscoll_l.texi.
17788 * doc/posix-functions/wcsdup.texi: Renamed from
17789 doc/glibc-functions/wcsdup.texi.
17790 * doc/posix-functions/wcsncasecmp.texi: Renamed from
17791 doc/glibc-functions/wcsncasecmp.texi.
17792 * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
17793 doc/glibc-functions/wcsncasecmp_l.texi.
17794 * doc/posix-functions/wcsnlen.texi: Renamed from
17795 doc/glibc-functions/wcsnlen.texi.
17796 * doc/posix-functions/wcsnrtombs.texi: Renamed from
17797 doc/glibc-functions/wcsnrtombs.texi.
17798 * doc/posix-functions/wcsxfrm_l.texi: Renamed from
17799 doc/glibc-functions/wcsxfrm_l.texi.
17800 * doc/posix-functions/wctrans_l.texi: Renamed from
17801 doc/glibc-functions/wctrans_l.texi.
17802 * doc/posix-functions/wctype_l.texi: Renamed from
17803 doc/glibc-functions/wctype_l.texi.
17804 * doc/gnulib.texi (Function Substitutes): Add these subsections.
17805 (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
17806 Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
17807 Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
17809 (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
17812 2008-12-14 Bruno Haible <bruno@clisp.org>
17814 Update doc for POSIX:2008.
17815 * doc/posix-functions/*.texi: Update URL of POSIX specification.
17817 2008-12-14 Bruno Haible <bruno@clisp.org>
17819 Update doc for POSIX:2008.
17820 * doc/pastposix-functions/bcmp.texi: Renamed from
17821 doc/posix-functions/bcmp.texi.
17822 * doc/pastposix-functions/bcopy.texi: Renamed from
17823 doc/posix-functions/bcopy.texi.
17824 * doc/pastposix-functions/bsd_signal.texi: Renamed from
17825 doc/posix-functions/bsd_signal.texi.
17826 * doc/pastposix-functions/bzero.texi: Renamed from
17827 doc/posix-functions/bzero.texi.
17828 * doc/pastposix-functions/ecvt.texi: Renamed from
17829 doc/posix-functions/ecvt.texi.
17830 * doc/pastposix-functions/fcvt.texi: Renamed from
17831 doc/posix-functions/fcvt.texi.
17832 * doc/pastposix-functions/ftime.texi: Renamed from
17833 doc/posix-functions/ftime.texi.
17834 * doc/pastposix-functions/gcvt.texi: Renamed from
17835 doc/posix-functions/gcvt.texi.
17836 * doc/pastposix-functions/getcontext.texi: Renamed from
17837 doc/posix-functions/getcontext.texi.
17838 * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
17839 doc/posix-functions/gethostbyaddr.texi.
17840 * doc/pastposix-functions/gethostbyname.texi: Renamed from
17841 doc/posix-functions/gethostbyname.texi.
17842 * doc/pastposix-functions/getwd.texi: Renamed from
17843 doc/posix-functions/getwd.texi.
17844 * doc/pastposix-functions/h_errno.texi: Renamed from
17845 doc/posix-functions/h_errno.texi.
17846 * doc/pastposix-functions/index.texi: Renamed from
17847 doc/posix-functions/index.texi.
17848 * doc/pastposix-functions/makecontext.texi: Renamed from
17849 doc/posix-functions/makecontext.texi.
17850 * doc/pastposix-functions/mktemp.texi: Renamed from
17851 doc/posix-functions/mktemp.texi.
17852 * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
17853 doc/posix-functions/pthread_attr_getstackaddr.texi.
17854 * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
17855 doc/posix-functions/pthread_attr_setstackaddr.texi.
17856 * doc/pastposix-functions/rindex.texi: Renamed from
17857 doc/posix-functions/rindex.texi.
17858 * doc/pastposix-functions/scalb.texi: Renamed from
17859 doc/posix-functions/scalb.texi.
17860 * doc/pastposix-functions/setcontext.texi: Renamed from
17861 doc/posix-functions/setcontext.texi.
17862 * doc/pastposix-functions/swapcontext.texi: Renamed from
17863 doc/posix-functions/swapcontext.texi.
17864 * doc/pastposix-functions/ualarm.texi: Renamed from
17865 doc/posix-functions/ualarm.texi.
17866 * doc/pastposix-functions/usleep.texi: Renamed from
17867 doc/posix-functions/usleep.texi.
17868 * doc/pastposix-functions/vfork.texi: Renamed from
17869 doc/posix-functions/vfork.texi.
17870 * doc/pastposix-functions/wcswcs.texi: Renamed from
17871 doc/posix-functions/wcswcs.texi.
17872 * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
17873 (Function Substitutes): Update.
17875 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17877 * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
17880 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17881 Bruno Haible <bruno@clisp.org>
17883 * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
17885 2008-12-13 Bruno Haible <bruno@clisp.org>
17887 * modules/strtoull (Depends-on): Remove unistd.
17889 2008-12-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17891 * modules/strtoull (Depends-on): Add stdlib.
17893 2008-12-11 Simon Josefsson <simon@josefsson.org>
17895 * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
17897 2008-12-10 Jim Meyering <meyering@redhat.com>
17899 gl_ASSERT: don't say assertions are disabled when they're not
17900 * m4/assert.m4 (gl_ASSERT): Do not make configure report
17901 "checking whether to enable assertions... no", when they are in
17902 fact enabled. This is solely a bug in the output of configure.
17903 In spite of saying "no", NDEBUG was not defined in that case.
17904 Also, as noted by Eric Blake, leave assertions enabled upon
17905 --enable-assert=INVALID.
17907 2008-12-10 Bruno Haible <bruno@clisp.org>
17909 Change MODULES.html to refer to POSIX:2008 where possible.
17910 * MODULES.html.sh (POSIX2008_URL): New variable.
17911 (posix_headers): Remove sys/timeb, ucontext.
17912 (posix2001_headers): New variable.
17913 (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
17914 ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
17915 index, makecontext, mktemp, pthread_attr_getstackaddr,
17916 pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
17917 ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
17918 (posix2001_functions): New variable.
17919 (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
17922 2008-12-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17924 add missing include to parse-duration.c
17925 * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
17926 * modules/parse-duration (Depends-on): Add xalloc.
17928 fix sed script reading maint.mk
17929 * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
17930 (syntax-check-rules): Use it.
17932 2008-12-09 Bruno Haible <bruno@clisp.org>
17934 * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
17935 MacOS X 10.4/PowerPC.
17936 Reported by Simon Josefsson.
17938 2008-12-08 Jim Meyering <meyering@redhat.com>
17940 work around mingw's lack of some S_IF definitions
17941 * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
17942 Reported by Simon Josefsson.
17944 2008-12-08 Bruno Haible <bruno@clisp.org>
17946 * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
17947 applied to variables. Needed on MacOS X 10.4/PowerPC.
17948 Reported by Simon Josefsson.
17950 2008-12-08 William Pursell <bill.pursell@gmail.com> (tiny change)
17951 and Eric Blake <ebb9@byu.net>
17953 assert: honor --enable-assert
17954 * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
17955 order to honor --enable-assert, rather than treating it as a
17956 synonym for --disable-assert.
17958 2008-12-08 Jim Meyering <meyering@redhat.com>
17960 * lib/posixtm.c: Remove now-useless declaration of mktime.
17962 * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
17964 2008-12-07 Bruno Haible <bruno@clisp.org>
17966 * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
17967 test_once): Mark functions as static.
17968 * tests/test-tls.c (test_tls): Likewise.
17970 2008-12-07 Bruno Haible <bruno@clisp.org>
17972 * lib/striconveha.h (uniconv_register_autodetect): Renamed from
17973 iconv_register_autodetect.
17975 2008-12-07 Jim Meyering <meyering@redhat.com>
17977 posixtm.c: avoid a warning
17978 * lib/posixtm.c (posixtime): Don't initialize tm0.
17979 It's no longer needed to placate gcc4's -Wuninitialized,
17980 and the attempt to placate would elicit a new warning.
17982 unicodeio.c: mark unused parameters
17983 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
17984 (fallback_failure_callback): Likewise.
17986 2008-12-07 Bruno Haible <bruno@clisp.org>
17988 * gnulib-tool (func_create_testdir): When building the tests
17989 subdirectory, ignore the modules gnumakefile and maintainer-makefile.
17990 Reported by Simon Josefsson.
17992 2008-12-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17994 * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
17996 2008-12-06 Bruno Haible <bruno@clisp.org>
17998 * lib/c-stack.h (c_stack_action): Clarify possible side effects.
17999 Suggested by Eric Blake.
18001 2008-12-06 Bruno Haible <bruno@clisp.org>
18003 Fix a c-stack test failure on MacOS X.
18004 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
18005 AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
18006 handler for SIGBUS as well.
18007 * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
18008 install a signal handler for SIGBUS as well.
18009 Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
18011 2008-12-06 Bruno Haible <bruno@clisp.org>
18013 Advocacy documentation.
18014 * doc/gnulib-intro.texi (Benefits): New section.
18015 * doc/gnulib.texi: Update.
18017 2008-12-06 Bruno Haible <bruno@clisp.org>
18019 Document the 'manywarnings' module.
18020 * doc/manywarnings.texi: New file.
18021 * doc/gnulib.texi: Include it.
18023 2008-12-05 Eric Blake <ebb9@byu.net>
18025 tests: silence some gcc warnings
18026 * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
18027 * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
18030 2008-12-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18031 Bruno Haible <bruno@clisp.org>
18033 * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
18035 2008-11-29 Jim Meyering <meyering@redhat.com>
18037 unicodeio.c: mark unused parameters
18038 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18039 (fallback_failure_callback): Likewise.
18042 * lib/fts.c (s_ifmt_shift_bits): Remove function. Not needed after all.
18043 (set_stat_type): Return S_IF*-valued "type" directly.
18044 Prompted by James Youngman's spotting a related bug.
18045 Confirmed by further testing through find.
18047 fts: provide dirent.d_type via FTSENT.fts_statp, when possible
18048 * lib/fts.c (D_TYPE): Define.
18049 (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
18050 (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
18051 (s_ifmt_shift_bits): New function.
18052 (set_stat_type): New function.
18053 (fts_build): When not calling fts_stat, call set_stat_type
18054 to propagate dirent.d_type info to fts_read caller.
18055 * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
18056 fts_statp->st_mode type information may be valid.
18058 2008-11-28 Simon Josefsson <simon@josefsson.org>
18060 * lib/sys_time.in.h: Add extern "C" block for C++. Suggested by
18061 Brian Dessent <brian@dessent.net>. Reported by Sam Steingold
18064 2008-11-20 Bruno Haible <bruno@clisp.org>
18066 Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
18067 * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
18069 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
18070 INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
18071 * modules/math (Makefile.am): Substitute
18072 INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
18073 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18075 2008-11-18 Alexandre Duret-Lutz <adl@lrde.epita.fr>
18076 Bruno Haible <bruno@clisp.org>
18078 * lib/stdint.in.h: Define all type macros so that their expansion is
18079 a single typedef'ed token. Fixes a compilation failure in Boost which
18080 does "using ::int8_t;".
18082 2008-11-18 Simon Josefsson <simon@josefsson.org>
18084 * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
18085 gl_MANYWARN_ALL_GCC.
18086 * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
18087 gl_WARN_COMPLEMENT. Suggested by Bruno Haible <bruno@clisp.org>.
18088 * modules/manywarnings: New file.
18089 * MODULES.html.sh: Mention manywarnings module.
18091 2008-11-18 Bruno Haible <bruno@clisp.org>
18093 * doc/gnulib-tool.texi (Unit tests): New section.
18095 2008-11-18 Simon Josefsson <simon@josefsson.org>
18097 * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
18098 paths like 'lib/po/foo.po'.
18100 2008-11-17 Simon Josefsson <simon@josefsson.org>
18102 * m4/warnings.m4: Improve code. Reported by Ralf Wildenhues
18103 <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
18105 2008-11-17 Simon Josefsson <simon@josefsson.org>
18107 * m4/warnings.m4: Use CPPFLAGS to really check whether the
18110 2008-11-17 Simon Josefsson <simon@josefsson.org>
18112 * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
18114 2008-11-17 Bruce Korb <bkorb@gnu.org>
18116 * modules/parse-duration-tests: New file.
18117 * tests/test-parse-duration.sh: New file.
18118 * tests/test-parse-duration.c: New file.
18120 New module 'parse-duration'.
18121 * lib/parse-duration.h: New file.
18122 * lib/parse-duration.c: New file.
18123 * modules/parse-duration: New file.
18125 2008-11-17 Bruno Haible <bruno@clisp.org>
18127 * tests/test-select-out.sh: Comment out the first pipe test.
18128 Reported by Simon Josefsson.
18130 2008-11-17 Bruno Haible <bruno@clisp.org>
18132 * modules/getaddrinfo (Depends-on): Add servent, hostent.
18133 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
18136 2008-11-17 Bruno Haible <bruno@clisp.org>
18138 * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
18139 -lnetwork and -lnet. Needed for Haiku and BeOS.
18141 2008-11-16 Bruno Haible <bruno@clisp.org>
18143 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
18145 2008-11-16 Bruno Haible <bruno@clisp.org>
18147 Avoid test failure on Haiku.
18148 * tests/test-fsync.c: Include <errno.h>.
18149 (main): Don't require that fsync (0) fails.
18151 2008-11-15 Bruno Haible <bruno@clisp.org>
18153 New module 'hostent'.
18154 * modules/hostent: New file.
18155 * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
18157 2008-11-15 Bruno Haible <bruno@clisp.org>
18159 New module 'servent'.
18160 * modules/servent: New file.
18161 * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
18163 2008-11-15 Bruno Haible <bruno@clisp.org>
18165 Avoid generating same test program with two different rules.
18166 * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
18167 test-frexp to test-frexp-nolibm.
18168 * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
18169 test-frexpl to test-frexpl-nolibm.
18171 2008-11-15 Bruno Haible <bruno@clisp.org>
18173 * modules/frexpl-tests (Makefile.am): Link test-frexpl with
18176 2008-11-15 Bruno Haible <bruno@clisp.org>
18178 * lib/netdb.in.h: Activate the definitions also when the system's
18179 <netdb.h> has 'struct addrinfo'.
18180 * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
18181 EAI_OVERFLOW or AI_NUMERICSERV.
18182 * doc/posix-headers/netdb.texi: Document the problem.
18184 2008-11-15 Bruno Haible <bruno@clisp.org>
18186 * tests/test-sched.c: Test also the existence of the SCHED_* macros.
18188 Make the 'sched' module work on platforms where <sched.h> exists but
18189 is incomplete (such as Haiku).
18190 * lib/sched.in.h; Include the system's <sched.h> if it exists.
18191 (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
18192 * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
18193 defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
18194 HAVE_STRUCT_SCHED_PARAM.
18195 * modules/sched (Depends-on): Add include_next.
18196 (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
18197 PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
18198 * doc/posix-headers/sched.texi: Document the issue.
18200 2008-11-13 Jim Meyering <meyering@redhat.com>
18202 test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
18203 * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
18204 test would fail due to the difference in the Report bugs to ...
18205 line. The expected address is empty, "<>", while the actual
18206 would contain e.g., "<bug-tar@gnu.org>". Filter out any address.
18208 2008-11-12 Bruno Haible <bruno@clisp.org>
18210 lstat: don't compile lstat.c on systems lacking lstat
18211 * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
18212 which don't have lstat; this is handled by lib/sys_stat.in.h already.
18213 Reported by Daniel P. Berrange via Jim Meyering.
18215 2008-11-12 Jim Meyering <meyering@redhat.com>
18217 * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
18219 2008-11-12 Simon Josefsson <simon@josefsson.org>
18221 * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
18224 2008-11-12 Bruno Haible <bruno@clisp.org>
18226 * lib/unicodeio.c: Include unistr.h.
18227 (utf8_wctomb): Remove function.
18228 (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
18230 2008-11-12 Simon Josefsson <simon@josefsson.org>
18232 * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
18233 Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
18235 * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
18237 2008-11-12 Simon Josefsson <simon@josefsson.org>
18239 * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
18240 * doc/gnulib.texi: Add section for warnings.
18242 2008-11-11 Bruno Haible <bruno@clisp.org>
18244 * lib/sockets.h: Add a comment.
18246 2008-11-11 Karl Berry <karl@gnu.org>
18248 * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
18250 2008-11-11 Eric Blake <ebb9@byu.net>
18252 fdl.texi: avoid git symlinks
18253 * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
18255 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
18257 * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
18259 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
18261 * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
18262 (gl_WARN_ADD): Substitute $2 if literal.
18264 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
18266 * m4/warning.m4: Remove.
18268 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
18270 * m4/warnings.m4: Almost complete rewrite. :-)
18272 2008-11-10 Simon Josefsson <simon@josefsson.org>
18274 * modules/warnings: New module.
18275 * m4/warnings.m4: New file.
18276 * MODULES.html.sh: Mention warnings module.
18277 With review improvements from Paolo Bonzini <bonzini@gnu.org> and
18278 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18280 2008-11-10 Eric Blake <ebb9@byu.net>
18282 fdl.texi: make a symlink to the latest version
18283 * doc/standards.texi: Revert today's earlier change.
18284 * doc/fdl-1.2.texi: Rename from old fdl.texi...
18285 * doc/fdl.texi: ...and replace this with a symlink to the newer
18288 2008-11-10 Bruno Haible <bruno@clisp.org>
18290 * tests/test-select-fd.c (main): Accept the result file name as fourth
18292 * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
18293 * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
18295 2008-11-10 Bruno Haible <bruno@clisp.org>
18297 * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
18298 HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
18299 as autoconf-substituted macros.
18300 * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
18301 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
18302 gl_NETDB_H_DEFAULTS. Set these variables.
18303 * modules/netdb (Makefile.am): Substitute these variables.
18305 2008-11-10 Eric Blake <ebb9@byu.net>
18307 standards.texi: include correct file for FDL 1.3
18308 * doc/standards.texi (GNU Free Documentation License): Change
18309 include file to pull in FDL 1.3, not 1.2.
18311 fdl.texi: revert accidental change to license
18312 * doc/fdl.texi: This is FDL 1.2, not 1.3.
18314 2008-11-10 Bruno Haible <bruno@clisp.org>
18316 * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
18317 cross-compiling guesses also when the native compile gives no result.
18319 2008-11-10 Bruno Haible <bruno@clisp.org>
18321 * lib/spawni.c (__spawni): Force variable into the stack.
18323 2008-11-10 Bruno Haible <bruno@clisp.org>
18325 Add support for Haiku.
18326 * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
18327 glibc and BeOS, but also on Haiku.
18328 * lib/fpurge.c (fpurge): Likewise.
18329 * lib/freadable.c (freadable): Likewise.
18330 * lib/freadahead.c (freadahead): Likewise.
18331 * lib/freading.c (freading): Likewise.
18332 * lib/freadptr.c (freadptr): Likewise.
18333 * lib/freadseek.c (freadptrinc): Likewise.
18334 * lib/fseeko.c (rpl_fseeko): Likewise.
18335 * lib/fseterr.c (fseterr): Likewise.
18336 * lib/fwritable.c (fwritable): Likewise.
18337 * lib/fwriting.c (fwriting): Likewise.
18338 Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
18340 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
18342 * lib/config.charset: Treat Haiku like BeOS.
18344 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
18346 * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
18347 * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
18349 2008-11-08 Bruno Haible <bruno@clisp.org>
18351 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
18354 2008-11-08 Bruno Haible <bruno@clisp.org>
18356 * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
18358 2008-11-08 Bruno Haible <bruno@clisp.org>
18360 * tests/test-select-fd.c: New file.
18361 * tests/test-select-in.sh: New file.
18362 * tests/test-select-out.sh: New file.
18363 * tests/test-select-stdin.c: New file.
18364 * modules/select-tests (Files): Add the new files.
18365 (Depends-on): Add gettimeofday.
18366 (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
18367 Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
18368 check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
18370 2008-11-06 Alexander V. Lukyanov <lav@netis.ru>
18371 Bruno Haible <bruno@clisp.org>
18373 * lib/sys_stat.in.h: Enclose function definitions in extern "C".
18375 2008-10-12 Giuseppe Scrivano <gscrivano@gnu.org>
18377 * build-aux/pmccabe2html: Added support for C++ source files.
18379 2008-11-05 Ben Pfaff <blp@gnu.org>
18381 Fix lib/close.c build on Windows.
18382 * modules/close (Files): Add lib/w32sock.h.
18384 2008-11-05 Joel E. Denny <jdenny@ces.clemson.edu>
18386 Accept Bison's NEWS format.
18387 * build-aux/announce-gen (print_news_deltas): Tweak
18390 2008-11-04 Bruno Haible <bruno@clisp.org>
18392 * modules/random_r (Maintainer): Add glibc.
18394 2008-11-04 Simon Josefsson <simon@josefsson.org>
18396 * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
18397 by karl@freefriends.org (Karl Berry).
18398 * doc/alloca.texi: Likewise.
18399 * doc/c-ctype.texi: Likewise.
18400 * doc/c-strcase.texi: Likewise.
18401 * doc/c-strcaseeq.texi: Likewise.
18402 * doc/c-strcasestr.texi: Likewise.
18403 * doc/c-strstr.texi: Likewise.
18404 * doc/c-strtod.texi: Likewise.
18405 * doc/c-strtold.texi: Likewise.
18406 * doc/ctime.texi: Likewise.
18407 * doc/error.texi: Likewise.
18408 * doc/fdl.texi: Likewise.
18409 * doc/gcd.texi: Likewise.
18410 * doc/getdate.texi: Likewise.
18411 * doc/gnulib-intro.texi: Likewise.
18412 * doc/gnulib-tool.texi: Likewise.
18413 * doc/gnulib.texi: Likewise.
18414 * doc/inet_ntoa.texi: Likewise.
18415 * doc/maintain.texi: Likewise.
18416 * doc/make-stds.texi: Likewise.
18417 * doc/quote.texi: Likewise.
18418 * doc/regexprops-generic.texi: Likewise.
18419 * doc/standards.texi: Likewise.
18420 * doc/verify.texi: Likewise.
18421 * doc/visibility.texi: Likewise.
18422 * doc/gnulib.texi (GNU Free Documentation License): Include
18423 fdl-1.3.texi instead of fdl.texi.
18425 2008-11-04 Simon Josefsson <simon@josefsson.org>
18427 * doc/fdl-1.3.texi: New file, from
18428 <http://www.gnu.org/licenses/fdl-1.3.texi>.
18429 * modules/fdl-1.3: Add.
18430 * MODULES.html.sh: Add fdl-1.3.
18432 2008-11-03 Bruno Haible <bruno@clisp.org>
18434 Make determination of absolute name of header file work with AIX xlc.
18435 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
18436 AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
18438 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
18439 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
18441 2008-11-03 Simon Josefsson <simon@josefsson.org>
18443 * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
18444 -fprofile-arcs -ftest-coverage. Suggested by Ludovic Courtès
18447 2008-11-02 Bruno Haible <bruno@clisp.org>
18449 Mark 'strpbrk' obsolete.
18450 * modules/strpbrk (Status, Notice): New sections.
18451 * modules/strtok_r (Depends-on): Add strpbrk.
18453 2008-11-02 Bruno Haible <bruno@clisp.org>
18455 Mark 'strdup' obsolete.
18456 * modules/strdup (Status, Notice): New sections.
18457 * modules/findprog (Depends-on): Add strdup.
18458 * modules/getaddrinfo (Depends-on): Likewise.
18459 * modules/localename (Depends-on): Likewise.
18460 * modules/relocatable-lib (Depends-on): Likewise.
18461 * modules/relocatable-lib-lgpl (Depends-on): Likewise.
18462 * modules/relocatable-prog (Depends-on): Likewise.
18463 * modules/trim (Depends-on): Likewise.
18464 * modules/unictype/gen-ctype (Depends-on): Likewise.
18465 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
18467 2008-11-02 Bruno Haible <bruno@clisp.org>
18469 Mark 'strcspn' obsolete.
18470 * modules/strcspn (Status, Notice): New sections.
18472 2008-11-02 Bruno Haible <bruno@clisp.org>
18474 Mark 'rmdir' obsolete.
18475 * modules/rmdir (Status, Notice): New sections.
18476 * modules/clean-temp (Depends-on): Add rmdir.
18477 * modules/openat (Depends-on): Likewise.
18479 2008-11-02 Bruno Haible <bruno@clisp.org>
18481 Mark 'raise' obsolete.
18482 * modules/raise (Status, Notice): New sections.
18483 (Include): Specify <signal.h>.
18484 * modules/stdio (Depends-on): Add raise.
18485 * modules/write (Depends-on): Likewise.
18487 2008-11-02 Bruno Haible <bruno@clisp.org>
18489 Mark 'memset' obsolete.
18490 * modules/memset (Status, Notice): New sections.
18492 2008-11-02 Bruno Haible <bruno@clisp.org>
18494 Mark 'memmove' obsolete.
18495 * modules/memmove (Status, Notice): New sections.
18496 * modules/argp (Depends-on): Add memmove.
18497 * modules/argz (Depends-on): Likewise.
18498 * modules/canonicalize (Depends-on): Likewise.
18499 * modules/canonicalize-lgpl (Depends-on): Likewise.
18500 * modules/fts (Depends-on): Likewise.
18501 * modules/getcwd (Depends-on): Likewise.
18502 * modules/human (Depends-on): Likewise.
18503 * modules/regex (Depends-on): Likewise.
18504 * modules/striconveh (Depends-on): Likewise.
18505 * modules/trim (Depends-on): Likewise.
18506 * modules/unistr/u8-move (Depends-on): Likewise.
18507 * modules/unistr/u16-move (Depends-on): Likewise.
18508 * modules/unistr/u32-move (Depends-on): Likewise.
18510 2008-11-02 Bruno Haible <bruno@clisp.org>
18512 Mark 'memcpy' obsolete.
18513 * modules/memcpy (Status, Notice): New sections.
18515 2008-11-02 Bruno Haible <bruno@clisp.org>
18517 Mark 'memcmp' obsolete.
18518 * modules/memcmp (Status, Notice): New sections.
18519 * modules/argmatch (Depends-on): Add memchr.
18520 * modules/backupfile (Depends-on): Likewise.
18521 * modules/c-strcasestr (Depends-on): Likewise.
18522 * modules/crypto/des (Depends-on): Likewise.
18523 * modules/csharpcomp (Depends-on): Likewise.
18524 * modules/fnmatch (Depends-on): Likewise.
18525 * modules/git-merge-changelog (Depends-on): Likewise.
18526 * modules/isnand (Depends-on): Likewise.
18527 * modules/isnand-nolibm (Depends-on): Likewise.
18528 * modules/isnanf (Depends-on): Likewise.
18529 * modules/isnanf-nolibm (Depends-on): Likewise.
18530 * modules/isnanl (Depends-on): Likewise.
18531 * modules/isnanl-nolibm (Depends-on): Likewise.
18532 * modules/mbchar (Depends-on): Likewise.
18533 * modules/memcoll (Depends-on): Likewise.
18534 * modules/quotearg (Depends-on): Likewise.
18535 * modules/regex (Depends-on): Likewise.
18536 * modules/relocatable-prog (Depends-on): Likewise.
18537 * modules/same (Depends-on): Likewise.
18538 * modules/signbit (Depends-on): Likewise.
18539 * modules/strcasestr-simple (Depends-on): Likewise.
18540 * modules/unictype/gen-ctype (Depends-on): Likewise.
18541 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
18542 * modules/uniname/uniname (Depends-on): Likewise.
18543 * modules/unistr/u8-cmp (Depends-on): Likewise.
18545 2008-11-02 Bruno Haible <bruno@clisp.org>
18547 Mark 'memchr' obsolete.
18548 * modules/memchr (Status, Notice): New sections.
18549 * modules/argp (Depends-on): Add memchr.
18550 * modules/base64 (Depends-on): Likewise.
18551 * modules/c-strcasestr (Depends-on): Likewise.
18552 * modules/chdir-long (Depends-on): Likewise.
18553 * modules/fnmatch (Depends-on): Likewise.
18554 * modules/getsubopt (Depends-on): Likewise.
18555 * modules/git-merge-changelog (Depends-on): Likewise.
18556 * modules/glob (Depends-on): Likewise.
18557 * modules/strcasestr-simple (Depends-on): Likewise.
18558 * modules/strnlen (Depends-on): Likewise.
18560 2008-11-02 Bruno Haible <bruno@clisp.org>
18562 Mark 'atexit' obsolete.
18563 * modules/atexit (Status, Notice): New sections.
18564 * modules/chdir-long (Depends-on): Add atexit.
18565 * modules/wait-process (Depends-on): Likewise.
18567 2008-11-02 Bruno Haible <bruno@clisp.org>
18569 * gnulib-tool: New option --with-obsolete.
18570 (func_usage): Document it.
18571 (func_modules_transitive_closure): Drop obsolete dependencies if
18572 incobsolete is not true.
18573 (func_import): Read and save the incobsolete variable to the cache.
18575 2008-11-02 Bruno Haible <bruno@clisp.org>
18577 * modules/TEMPLATE-EXTENDED: New field 'Status'.
18578 * gnulib-tool: New option --extract-status.
18579 (func_usage): Document it.
18580 (sed_extract_prog): Recognize it.
18581 (func_get_status): New function.
18583 2008-10-30 Simon Josefsson <simon@josefsson.org>
18585 * modules/sockets (License): Change from LGPL to LGPLv2+.
18587 2008-10-28 Simon Josefsson <simon@josefsson.org>
18589 * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
18591 2008-10-28 Simon Josefsson <simon@josefsson.org>
18593 * MODULES.html.sh (Support for systems lacking POSIX:2001):
18594 Mention times and sys_times.
18595 * modules/sys_times, modules/sys_times-tests: New modules.
18596 * modules/times, modules/times-tests: Likewise
18597 * m4/sys_times_h.m4: New file.
18598 * lib/sys_times.in.h: Likewise
18599 * lib/times.c: Likewise.
18600 * tests/test-sys_times.c: Likewise.
18601 * tests/test-times.c: Likewise.
18602 * doc/posix-headers/sys_times.texi: Update.
18603 * doc/posix-functions/times.texi: Update.
18605 2008-10-28 Jim Meyering <meyering@redhat.com>
18607 * modules/tempname (Depends-on): Add lstat.
18609 * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
18611 2008-10-28 Simon Josefsson <simon@josefsson.org>
18613 * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
18614 * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
18615 using idiom used elsewhere in gnulib.
18617 2008-10-27 Jim Meyering <meyering@redhat.com>
18619 * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
18621 2008-10-27 Simon Josefsson <simon@josefsson.org>
18623 * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
18624 TESTS_ENVIRONMENT, for shell scripts that needs to call built
18626 * tests/test-argp-2.sh: Use $EXEEXT when needed.
18628 2008-10-27 Simon Josefsson <simon@josefsson.org>
18630 * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
18632 2008-10-27 Bruno Haible <bruno@clisp.org>
18634 * tests/test-lstat.c: Include <stdio.h>.
18636 2008-10-27 Simon Josefsson <simon@josefsson.org>
18638 * modules/lstat-tests: New module.
18639 * tests/test-lstat.c: New file.
18641 2008-10-26 Jim Meyering <meyering@redhat.com>
18643 * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
18645 2008-10-26 Simon Josefsson <simon@josefsson.org>
18646 Bruno Haible <bruno@clisp.org>
18648 Fix a clash between the type DATADIR on Windows and the macro DATADIR.
18649 * modules/configmake (Include): Add a note that the include must come
18650 after all system headers.
18651 * lib/javaversion.c: Include configmake.h after all other includes.
18653 2008-10-26 Bruno Haible <bruno@clisp.org>
18655 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
18656 HAVE_STRUCT_RANDOM_DATA to 1.
18657 (gl_STDLIB_H): Simplify.
18659 2008-10-26 Simon Josefsson <simon@josefsson.org>
18661 * m4/stdlib_h.m4: Check for struct random_data. Initialize and
18662 substitute HAVE_STRUCT_RANDOM_DATA.
18663 * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
18665 * modules/stdlib (Makefile.am): Substitute
18666 HAVE_STRUCT_RANDOM_DATA.
18668 2008-10-26 Simon Josefsson <simon@josefsson.org>
18670 * doc/gnulib.texi (@copying): Use GFDLv1.2+.
18671 * doc/gnulib-intro.texi (Copyright): Likewise.
18673 2008-10-26 Simon Josefsson <simon@josefsson.org>
18675 * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
18678 2008-10-25 Ben Pfaff <blp@cs.stanford.edu>
18679 Bruno Haible <bruno@clisp.org>
18681 * lib/unistd.in.h: Include <winsock2.h>.
18682 (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
18683 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
18684 Provide dummy declarations.
18685 (gethostname): Override.
18686 * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
18687 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
18688 gl_PREREQ_SYS_H_WINSOCK2.
18689 * modules/gethostname (Files): Add m4/sys_socket_h.m4.
18690 * doc/posix-functions/gethostname.texi: More details.
18692 2008-10-25 Bruno Haible <bruno@clisp.org>
18694 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
18695 gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
18696 * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
18698 * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
18700 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
18701 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
18702 gl_UNISTD_H_DEFAULTS.
18704 2008-10-25 Eric Blake <ebb9@byu.net>
18706 signbit: avoid spurious compiler failure
18707 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
18708 declarations inside function.
18710 2008-10-24 Simon Josefsson <simon@josefsson.org>
18711 Bruno Haible <bruno@clisp.org>
18713 * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
18714 * modules/random_r (Depends-on): Add stdint.
18716 2008-10-24 Bruno Haible <bruno@clisp.org>
18718 * modules/intprops (License): Change to LGPLv2+, with approval by Paul
18720 * modules/strerror (License): Likewise.
18722 2008-10-24 Jim Meyering <meyering@redhat.com>
18724 sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
18725 * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
18727 2008-10-24 Eric Blake <ebb9@byu.net>
18729 getgroups: fix compilation when getgroups is available
18730 * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
18731 but with <config.h> override of getgroups disabled.
18733 2008-10-24 Simon Josefsson <simon@josefsson.org>
18735 * doc/gnulib.texi (Header files): Add note about C++ problems.
18736 Explained by Bruno Haible <bruno@clisp.org>.
18738 2008-10-23 Bruno Haible <bruno@clisp.org>
18740 Define a dummy SA_NODEFER macro on Interix.
18741 * lib/signal.in.h (SA_NODEFER): Define fallback.
18742 Reported by Aleksey Cheusov <cheusov@tut.by> via
18743 Thomas Klausner <wiz@netbsd.org> and Eric Blake.
18745 2008-10-23 Bruno Haible <bruno@clisp.org>
18747 * modules/freadahead (License): Change to LGPLv2+.
18748 Suggested by Simon Josefsson.
18750 2008-10-23 Jim Meyering <meyering@redhat.com>
18752 random_r: new module
18753 * modules/random_r: New file.
18754 * m4/random_r.m4: New file.
18755 * lib/random_r.c: New file, from glibc.
18756 * modules/random_r-tests: New file.
18757 * tests/test-random_r.c: New file.
18758 * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
18760 (RAND_MAX): Define.
18761 * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
18762 * modules/stdlib: Substitute them, too.
18763 * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
18764 * doc/glibc-functions/initstate_r.texi: Mention the new module.
18765 * doc/glibc-functions/random_r.texi: Likewise.
18766 * doc/glibc-functions/setstate_r.texi: Likewise.
18767 * doc/glibc-functions/srandom_r.texi: Likewise.
18768 * config/srclist.txt: Mention it.
18770 2008-10-23 David Lutterkort <lutter@redhat.com>
18772 * modules/selinux-h: Search for LIB_SELINUX and mark it as a
18775 2008-10-23 Jim Meyering <meyering@redhat.com>
18777 selinux-h: mark parameters of stub functions as intentionally unused
18778 * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
18779 * lib/se-context.in.h: Likewise.
18781 2008-10-22 Simon Josefsson <simon@josefsson.org>
18783 * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
18785 2008-10-22 Simon Josefsson <simon@josefsson.org>
18787 * m4/getgroups.m4: Avoid invoking test with wrong parameters.
18789 2008-10-22 Eric Blake <ebb9@byu.net>
18791 glthread/thread: avoid compiler warning
18792 * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
18793 Add unreachable abort to silence compiler.
18795 2008-10-22 Eric Blake <ebb9@byu.net>
18797 netdb: also supply struct addrinfo for cygwin 1.5.x
18798 * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
18800 * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
18802 * doc/posix-headers/netdb.texi (netdb.h): Document this.
18804 2008-10-22 Bruno Haible <bruno@clisp.org>
18806 * users.txt: Update entry about pspp.
18808 2008-10-21 Bruno Haible <bruno@clisp.org>
18811 * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
18812 * lib/close.c (_gl_close_fd_maybe_socket): Make static.
18815 * lib/ioctl.c (ioctl): Don't undefine.
18816 * lib/socket.c (socket): Don't undefine.
18818 Remove unused module indicator macros.
18819 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
18820 GNULIB_$1 as a C macro.
18822 * doc/posix-functions/close.texi: Undo last change.
18823 * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
18826 2008-10-21 Bruno Haible <bruno@clisp.org>
18828 Add gethostname() declaration to <unistd.h>.
18829 * lib/unistd.in.h (gethostname): New declaration.
18830 * lib/gethostname.c: Include <unistd.h>.
18831 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
18832 gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
18833 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
18834 and HAVE_GETHOSTNAME.
18835 * modules/gethostname (Depends-on): Add unistd.
18836 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18837 (Include): Specify <unistd.h>.
18838 * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
18840 * tests/test-gethostname.c: Include <unistd.h> first.
18842 2008-10-21 Bruno Haible <bruno@clisp.org>
18844 * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
18845 * modules/select-tests (Depends-on): Likewise.
18846 Reported by Simon Josefsson.
18848 2008-10-21 Simon Josefsson <simon@josefsson.org>
18850 * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
18851 * lib/accept.c: New file, based on winsock.c.
18852 * lib/bind.c: New file, based on winsock.c.
18853 * lib/connect.c: New file, based on winsock.c.
18854 * lib/getpeername.c: New file, based on winsock.c.
18855 * lib/getsockname.c: New file, based on winsock.c.
18856 * lib/getsockopt.c: New file, based on winsock.c.
18857 * lib/ioctl.c: New file, based on winsock.c.
18858 * lib/listen.c: New file, based on winsock.c.
18859 * lib/recv.c: New file, based on winsock.c.
18860 * lib/recvfrom.c: New file, based on winsock.c.
18861 * lib/send.c: New file, based on winsock.c.
18862 * lib/sendto.c: New file, based on winsock.c.
18863 * lib/setsockopt.c: New file, based on winsock.c.
18864 * lib/shutdown.c: New file, based on winsock.c.
18865 * lib/socket.c: New file, based on winsock.c.
18866 * lib/w32sock.h: New file, based on winsock.c.
18867 * lib/winsock.c: Remove file.
18868 * modules/accept: Likewise.
18869 * modules/bind: Likewise.
18870 * modules/connect: Likewise.
18871 * modules/getpeername: Likewise.
18872 * modules/getsockname: Likewise.
18873 * modules/getsockopt: Likewise.
18874 * modules/ioctl: Likewise.
18875 * modules/listen: Likewise.
18876 * modules/recv: Likewise.
18877 * modules/recvfrom: Likewise.
18878 * modules/send: Likewise.
18879 * modules/sendto: Likewise.
18880 * modules/setsockopt: Likewise.
18881 * modules/shutdown: Likewise.
18882 * modules/socket: Use socket.c instead of winsock.c.
18883 * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
18884 * doc/posix-functions/accept.texi: Doc fix.
18885 * doc/posix-functions/bind.texi: Doc fix.
18886 * doc/posix-functions/close.texi: Doc fix.
18887 * doc/posix-functions/connect.texi: Doc fix.
18888 * doc/posix-functions/getpeername.texi: Doc fix.
18889 * doc/posix-functions/getsockname.texi: Doc fix.
18890 * doc/posix-functions/getsockopt.texi: Doc fix.
18891 * doc/posix-functions/ioctl.texi: Doc fix.
18892 * doc/posix-functions/listen.texi: Doc fix.
18893 * doc/posix-functions/recv.texi: Doc fix.
18894 * doc/posix-functions/recvfrom.texi: Doc fix.
18895 * doc/posix-functions/send.texi: Doc fix.
18896 * doc/posix-functions/sendto.texi: Doc fix.
18897 * doc/posix-functions/setsockopt.texi: Doc fix.
18898 * doc/posix-functions/shutdown.texi: Doc fix.
18899 * doc/posix-functions/socket.texi: Doc fix.
18901 2008-10-20 Bruno Haible <bruno@clisp.org>
18903 Take into account the role of SIGABRT_COMPAT on Windows 2008.
18904 * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
18905 (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
18906 as an alias for SIGABRT.
18907 * lib/sigaction.c (SIGABRT_COMPAT): New macro.
18908 (sigaction): Map it to SIGABRT.
18909 Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
18911 2008-10-20 Bruno Haible <bruno@clisp.org>
18913 * lib/fts.c: Don't include lstat.h.
18914 * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
18916 Move the lstat() declaration to <sys/stat.h>.
18917 * lib/lstat.h: Remove file.
18918 * lib/sys_stat.in.h: Add special invocation convention.
18919 (lstat): New declaration.
18920 * lib/lstat.c (orig_lstat): New function.
18921 (rpl_lstat): Use orig_lstat instead of lstat.
18922 * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
18923 AC_C_INLINE. Set REPLACE_LSTAT.
18924 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
18926 * modules/lstat (Files): Remove lib/lstat.h.
18927 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
18928 (Include): Specify <sys/stat.h> instead of lstat.h.
18929 * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
18931 * NEWS: Mention the change.
18933 2008-10-20 Bruno Haible <bruno@clisp.org>
18935 * modules/posix_spawn-tests: New file.
18936 * tests/test-posix_spawn3.c: New file.
18938 2008-10-20 Bruno Haible <bruno@clisp.org>
18940 * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
18941 * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
18942 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
18943 * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
18944 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
18946 2008-10-20 Bruno Haible <bruno@clisp.org>
18948 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
18949 of posix_spawn on AIX 5.3.
18951 2008-10-20 Bruno Haible <bruno@clisp.org>
18953 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
18955 2008-10-20 Bruno Haible <bruno@clisp.org>
18957 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
18958 of AC_LANG_PROGRAM.
18960 2008-10-20 Simon Josefsson <simon@josefsson.org>
18962 * lib/netdb.in.h: Don't define GNU specific constants until they
18963 are supported or needed. Reported by Bruno Haible
18966 2008-10-20 Simon Josefsson <simon@josefsson.org>
18968 * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
18970 2008-10-20 Simon Josefsson <simon@josefsson.org>
18972 * lib/getaddrinfo.h: Remove file.
18973 * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
18974 * m4/getaddrinfo.m4: Call gl_HEADER_NETDB. Don't check for netdb.h.
18975 * lib/netdb.in.h: Add declarations from getaddrinfo.h.
18976 * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
18977 * modules/netdb: Substitute GNULIB_GETADDRINFO.
18978 * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
18979 * tests/test-getaddrinfo.c: Likewise.
18980 * lib/gai_strerror.c: Likewise. Also drop HAVE_NETDB_H check.
18981 * NEWS: Mention change.
18983 2008-10-19 Bruno Haible <bruno@clisp.org>
18985 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
18987 2008-10-19 Bruno Haible <bruno@clisp.org>
18989 * lib/wait-process.c: Include simply <sys/wait.h>.
18990 (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
18991 WIFSTOPPED): Remove fallback definitions.
18992 * modules/wait-process (Depends-on): Add sys_wait.
18994 New module 'sys_wait'.
18995 * modules/sys_wait: New file.
18996 * lib/sys_wait.in.h: New file, partially copied from
18997 lib/wait-process.c.
18998 * m4/sys_wait_h.m4: New file.
18999 * doc/posix-headers/sys_wait.texi: Mention the new module.
19001 2008-10-19 Bruno Haible <bruno@clisp.org>
19003 * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
19005 2008-10-19 Bruno Haible <bruno@clisp.org>
19007 Assume that waitpid() fills an 'int' status, not a 'union wait'.
19008 * lib/wait-process.c (WAIT_T): Remove type.
19009 (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
19010 (wait_subprocess): Update.
19012 2008-10-19 Bruno Haible <bruno@clisp.org>
19014 New module 'atoll'.
19015 * modules/atoll: New file.
19016 * lib/stdlib.in.h (atoll): New declaration.
19017 * lib/atoll.c: New file, from glibc with modifications.
19018 * m4/atoll.m4: New file.
19019 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
19021 * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
19022 * doc/posix-functions/atoll.texi: Mention the new module.
19024 2008-10-19 Bruno Haible <bruno@clisp.org>
19026 Add strtoull() declaration to <stdlib.h>.
19027 * lib/stdlib.in.h (strtoull): New declaration.
19028 * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19030 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
19032 * modules/strtoull (Depends-on): Add stdlib.
19033 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19034 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
19037 2008-10-19 Bruno Haible <bruno@clisp.org>
19039 Add strtoll() declaration to <stdlib.h>.
19040 * lib/stdlib.in.h (strtoll): New declaration.
19041 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19043 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
19045 * modules/strtoll (Depends-on): Add stdlib.
19046 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19047 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
19049 2008-10-19 Bruno Haible <bruno@clisp.org>
19051 * modules/bcopy (Depends-on): Add strings.
19052 (Include): Specify <strings.h>.
19054 2008-10-19 Bruno Haible <bruno@clisp.org>
19056 * doc/posix-functions/atexit.texi: Update doc regarding mingw.
19058 2008-10-19 Bruno Haible <bruno@clisp.org>
19060 * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
19061 the parameter from 'errno' to 'errnum'. Fixes a compilation error on
19064 2008-10-19 Bruno Haible <bruno@clisp.org>
19066 * lib/atanl.c: Don't include isnanl.h.
19067 * lib/cosl.c: Likewise.
19068 * lib/ldexpl.c: Likewise.
19069 * lib/logl.c: Likewise.
19070 * lib/sinl.c: Likewise.
19071 * lib/sqrtl.c: Likewise.
19072 * lib/tanl.c: Likewise.
19074 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
19075 * lib/isnanf.h: Remove file.
19076 * lib/isnand.h: Remove file.
19077 * lib/isnanl.h: Remove file.
19078 * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
19079 lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
19081 * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
19082 HAVE_ISNANF, don't define it as a C macro.
19083 * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
19084 HAVE_ISNAND, don't define it as a C macro.
19085 * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
19086 HAVE_ISNANL, don't define it as a C macro.
19087 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
19089 * modules/isnanf (Files): Remove lib/isnanf.h.
19090 (Depends-on): Add math.
19091 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19092 (Include): Specify <math.h> instead of isnanf.h.
19093 * modules/isnand (Files): Remove lib/isnand.h.
19094 (Depends-on): Add math.
19095 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19096 (Include): Specify <math.h> instead of isnand.h.
19097 * modules/isnanl (Files): Remove lib/isnanl.h.
19098 (Depends-on): Add math.
19099 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19100 (Include): Specify <math.h> instead of isnanl.h.
19101 * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
19103 * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
19104 * tests/test-isnand.c: Include <math.h> instead of isnand.h.
19105 * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
19106 * NEWS: Mention the change.
19108 2008-10-18 Bruno Haible <bruno@clisp.org>
19110 Add getusershell(), setusershell(), endusershell() declarations to
19112 * lib/unistd.in.h (getusershell, setusershell, endusershell): New
19114 * lib/getusershell.c: Include unistd.h.
19115 * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
19116 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19118 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
19119 and HAVE_GETUSERSHELL.
19120 * modules/getusershell (Depends-on): Add unistd, extensions.
19121 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19122 (Include): Specify <unistd.h>.
19123 * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
19126 2008-10-18 Bruno Haible <bruno@clisp.org>
19128 Add a getloadavg() declaration to <stdlib.h>.
19129 * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
19130 getloadavg declaration.
19131 (getloadavg): New declaration.
19132 * lib/getloadavg.c: Include <stdlib.h> first.
19133 * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
19134 AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
19135 HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
19136 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
19137 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19138 * modules/getloadavg (Depends-on): Add stdlib, extensions.
19139 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19140 (Include): Specify <stdlib.h>.
19141 * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
19142 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19144 2008-10-18 Bruno Haible <bruno@clisp.org>
19146 * lib/dirchownmod.c: Don't include lchmod.h.
19148 Move the lchmod() declaration to <sys/stat.h>.
19149 * lib/lchmod.h: Remove file.
19150 * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
19151 (lchmod): New declaration, moved here from lib/lchown.h.
19152 * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
19153 AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
19154 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
19156 * modules/lchmod (Files): Remove lib/lchmod.h.
19157 (Depends-on): Add sys_stat, extensions.
19158 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19159 (Include): Specify <sys/stat.h> instead of lchmod.h.
19160 * modules/sys_stat (Depends-on): Add link-warning.
19161 (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
19162 definition of GL_LINK_WARNING.
19163 * NEWS: Mention the change.
19165 2008-10-18 Bruno Haible <bruno@clisp.org>
19167 * lib/fchdir.c: Don't include dirfd.h.
19168 * lib/fts.c: Likewise.
19169 * lib/getcwd.c: Likewise.
19170 * lib/glob.c: Likewise.
19172 Move the dirfd() declaration to <dirent.h>.
19173 * lib/dirfd.h: Remove file.
19174 * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
19175 (dirfd): New declaration.
19176 * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
19177 * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
19178 AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
19180 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
19182 * modules/dirfd (Files): Remove lib/dirfd.h.
19183 (Depends-on): Add dirent, extensions.
19184 (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
19185 (Include): Specify <dirent.h> instead of dirfd.h.
19186 * modules/dirent (Depends-on): Add link-warning.
19187 (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
19188 definition of GL_LINK_WARNING.
19189 * NEWS: Mention the change.
19191 2008-10-18 Bruno Haible <bruno@clisp.org>
19193 Move the euidaccess() declaration to <unistd.h>.
19194 * lib/euidaccess.h: Remove file.
19195 * lib/unistd.in.h (euidaccess): New declaration.
19196 * lib/euidaccess.c: Don't include euidaccess.h.
19197 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
19198 Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
19199 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
19200 and HAVE_EUIDACCESS.
19201 * modules/euidaccess (Files): Remove lib/euidaccess.h.
19202 (Depends-on): Add unistd.
19203 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19204 (Include): Specify <unistd.h> instead of euidaccess.h.
19205 * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
19207 * NEWS: Mention the change.
19209 2008-10-18 Bruno Haible <bruno@clisp.org>
19211 * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
19213 Move the getdomainname() declaration to <unistd.h>.
19214 * lib/getdomainname.h: Remove file.
19215 * lib/unistd.in.h (getdomainname): New declaration.
19216 * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
19217 * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19218 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19219 HAVE_GETDOMAINNAME.
19220 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19221 GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
19222 * modules/getdomainname (Files): Remove lib/getdomainname.h.
19223 (Depends-on): Add unistd, extensions.
19224 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19225 (Includes): Specify <unistd.h> instead of getdomainname.h.
19226 * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
19227 HAVE_GETDOMAINNAME.
19228 * NEWS: Mention the change.
19230 2008-10-18 Bruno Haible <bruno@clisp.org>
19232 * modules/dirent: New file.
19233 * m4/dirent_h.m4: New file.
19234 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
19235 Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
19236 * modules/fchdir (Files): Remove lib/dirent.in.h.
19237 (Depends-on): Add dirent.
19238 (Makefile.am): Move rules to modules/dirent.
19239 * doc/posix-headers/dirent.texi: Mention the new module.
19241 2008-10-18 Bruno Haible <bruno@clisp.org>
19243 Avoid -Wunused-parameter warnings in public gnulib header files.
19244 * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
19246 * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
19248 2008-10-18 Bruno Haible <bruno@clisp.org>
19250 * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
19251 * doc/glibc-functions/error.texi: Mention the module 'error'.
19252 * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
19253 * doc/glibc-functions/getdomainname.texi: Mention the module
19255 * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
19256 * doc/glibc-functions/getpagesize.texi: Mention the module
19258 * doc/glibc-functions/getusershell.texi: Mention the module
19260 * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
19261 * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
19262 * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
19263 * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
19264 * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
19265 * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
19266 * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
19267 * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
19268 * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
19269 * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
19270 * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
19271 * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
19272 * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
19273 * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
19275 2008-10-17 Bruno Haible <bruno@clisp.org>
19277 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
19278 HP-UX and IRIX, use -0.0L.
19279 * tests/test-ceill.c (minus_zero): Likewise.
19280 * tests/test-floorl.c (minus_zero): Likewise.
19281 * tests/test-frexpl.c (minus_zero): Likewise.
19282 * tests/test-isnan.c (minus_zerol): Likewise.
19283 * tests/test-isnanl.h (minus_zero): Likewise.
19284 * tests/test-ldexpl.c (minus_zero): Likewise.
19285 * tests/test-roundl.c (minus_zero): Likewise.
19286 * tests/test-signbit.c (minus_zerol): Likewise.
19287 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
19288 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
19289 * tests/test-truncl.c (minus_zero): Likewise.
19290 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
19291 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
19292 Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
19293 and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
19295 2008-10-17 Bruno Haible <bruno@clisp.org>
19297 Avoid gcc warnings because of #pragma GCC system_header on older gcc.
19298 * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
19299 that it gets activated only for gcc >= 3.0.
19300 * lib/dirent.in.h: Likewise.
19301 * lib/errno.in.h: Likewise.
19302 * lib/fcntl.in.h: Likewise.
19303 * lib/float.in.h: Likewise.
19304 * lib/iconv.in.h: Likewise.
19305 * lib/inttypes.in.h: Likewise.
19306 * lib/locale.in.h: Likewise.
19307 * lib/math.in.h: Likewise.
19308 * lib/netdb.in.h: Likewise.
19309 * lib/netinet_in.in.h: Likewise.
19310 * lib/search.in.h: Likewise.
19311 * lib/signal.in.h: Likewise.
19312 * lib/spawn.in.h: Likewise.
19313 * lib/stdarg.in.h: Likewise.
19314 * lib/stdint.in.h: Likewise.
19315 * lib/stdio.in.h: Likewise.
19316 * lib/stdlib.in.h: Likewise.
19317 * lib/string.in.h: Likewise.
19318 * lib/strings.in.h: Likewise.
19319 * lib/sys_file.in.h: Likewise.
19320 * lib/sys_ioctl.in.h: Likewise.
19321 * lib/sys_select.in.h: Likewise.
19322 * lib/sys_socket.in.h: Likewise.
19323 * lib/sys_stat.in.h: Likewise.
19324 * lib/sys_time.in.h: Likewise.
19325 * lib/sysexits.in.h: Likewise.
19326 * lib/time.in.h: Likewise.
19327 * lib/unistd.in.h: Likewise.
19328 * lib/wchar.in.h: Likewise.
19329 * lib/wctype.in.h: Likewise.
19330 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19332 2008-10-17 Jim Meyering <meyering@redhat.com>
19334 ignore-value: don't depend on inline module
19335 * modules/ignore-value (Depends-on): Remove 'inline'.
19336 (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
19337 Suggestion from Bruno Haible.
19339 2008-10-17 Bruno Haible <bruno@clisp.org>
19341 New implementation of condition variables for Win32.
19342 * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
19343 (gl_linked_waitqueue_t): New type.
19344 (gl_cond_t): Use it.
19345 * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
19346 (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
19347 gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
19348 (glthread_cond_init_func, glthread_cond_wait_func,
19349 glthread_cond_timedwait_func, glthread_cond_signal_func,
19350 glthread_cond_broadcast_func, glthread_cond_destroy_func):
19351 Reimplemented on the basis of gl_linked_waitqueue_t.
19352 * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
19354 (gl_rwlock_t): Update.
19355 * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
19357 2008-10-17 Simon Josefsson <simon@josefsson.org>
19359 * modules/recvfrom (Depends-on): Add dependency on getpeername.
19360 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19362 2008-10-17 Jim Meyering <meyering@redhat.com>
19364 ignore-value: new module
19365 * modules/ignore-value: New file.
19366 * lib/ignore-value.h: New file.
19367 * MODULES.html.sh (Compiler warning management): New section,
19368 just for this module. More to come.
19370 2008-10-16 Paul Eggert <eggert@cs.ucla.edu>
19372 open-safer.c: avoid 'signed and unsigned in conditional...' warning
19373 * lib/open-safer.c (open_safer): Use an "if/else" statement in place
19374 of the ternary operator. Reported by Reuben Thomas <rrt@sc3d.org>.
19376 2008-10-16 Jim Meyering <meyering@redhat.com>
19378 openat-die.c: avoid 'no previous prototype' warning
19379 * lib/openat-die.c: Include "openat.h".
19380 Reported by Reuben Thomas <rrt@sc3d.org>.
19382 2008-10-16 Simon Josefsson <simon@josefsson.org>
19384 * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
19385 * lib/netdb.in.h: Fix typo.
19386 Reported by Bruno Haible <bruno@clisp.org>
19388 * lib/netdb.in.h: Include sys/socket.h for platforms without
19389 netdb.h, to get structures like hostent on MinGW.
19390 * modules/netdb (Depends-on): Add sys_socket.
19392 2008-10-15 Simon Josefsson <simon@josefsson.org>
19394 * modules/netdb, modules/netdb-tests: New file.
19395 * m4/netdb_h.m4: New file.
19396 * lib/netdb.in.h: Add, currently just an empty file pending
19398 * tests/test-netdb.c: New file.
19399 * doc/posix-headers/netdb.texi: Mention that we replace it if
19401 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19404 2008-10-15 Simon Josefsson <simon@josefsson.org>
19406 * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
19409 2008-10-13 Bruno Haible <bruno@clisp.org>
19411 * lib/glthread/cond.c (glthread_cond_wait_func,
19412 glthread_cond_timedwait_func): Add a comment.
19414 2008-10-13 Yoann Vandoorselaere <yoann@prelude-ids.org>
19416 * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
19417 * tests/test-select.c: Likewise,
19419 2008-10-13 Bruno Haible <bruno@clisp.org>
19421 * lib/glthread/cond.c (glthread_cond_wait_func,
19422 glthread_cond_timedwait_func): Fix variable name.
19423 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19425 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
19427 fix getaddrinfo emulation for systems with struct sockaddr.sa_len
19428 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
19429 struct sockaddr.sa_len.
19430 * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
19432 2008-10-13 Simon Josefsson <simon@josefsson.org>
19434 * build-aux/pmccabe2html: Add css and css_url parameters.
19436 2008-10-12 Bruno Haible <bruno@clisp.org>
19438 * tests/test-sameacls.c (main) [AIX]: Clear type argument before
19440 Reported by Rainer Tammer <tammer@tammer.net>.
19442 2008-10-12 Bruno Haible <bruno@clisp.org>
19444 Use msvcrt aware primitives for creation/termination of Win32 threads.
19445 * lib/glthread/thread.c: Include <process.h>.
19446 (glthread_create_func): Use _beginthreadex instead of CreateThread.
19447 (wrapper_func): Update signature.
19448 (gl_thread_exit_func): Use _endthreadex instead of EndThread.
19450 2008-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
19451 Bruno Haible <bruno@clisp.org>
19453 Provide a Win32 implementation of the 'cond' module.
19454 * lib/glthread/cond.h [USE_WIN32]: New implementation.
19455 * lib/glthread/cond.c (glthread_cond_init_func,
19456 glthread_cond_wait_func, glthread_cond_timedwait_func,
19457 glthread_cond_signal_func, glthread_cond_broadcast_func,
19458 glthread_cond_destroy_func) [USE_WIN32]: New functions.
19459 * modules/cond (Dependencies): Add gettimeofday.
19461 2008-10-11 Bruno Haible <bruno@clisp.org>
19463 Make sleep work on older versions of mingw.
19464 * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
19465 only whether it exists.
19466 * doc/posix-functions/sleep.texi: Mention the problem with older
19469 2008-10-11 Bruno Haible <bruno@clisp.org>
19471 New module 'shutdown'.
19472 * modules/shutdown: New file.
19473 * lib/sys_socket.in.h (shutdown): New declaration.
19474 * lib/winsock.c (shutdown): New function.
19475 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19477 * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
19478 * doc/posix-functions/shutdown.texi: Document the new module.
19480 2008-10-11 Jim Meyering <meyering@redhat.com>
19482 * lib/fclose.c: Fix typo in comment: s/close/fclose/.
19484 2008-10-11 Bruno Haible <bruno@clisp.org>
19486 New module 'fclose'.
19487 * modules/fclose: New file.
19488 * lib/stdio.in.h (fclose): New declaration.
19489 * lib/fclose.c: New file.
19490 * m4/fclose.m4: New file.
19491 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
19493 * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
19494 * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
19496 * modules/close (Depends-on): fclose.
19497 * doc/posix-functions/fclose.texi: Mention the problem on Windows.
19499 2008-10-11 Bruno Haible <bruno@clisp.org>
19501 * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
19502 set errno and don't call _close.
19504 2008-10-10 Bruno Haible <bruno@clisp.org>
19506 * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
19507 ACL, not afterwards. Fixes test failure on Cygwin.
19509 2008-10-09 Ben Pfaff <blp@gnu.org>
19511 * build-aux/announce-gen: Fix gnulib version related part of usage
19512 message. Die with a useful error message if no tarballs are
19515 2008-10-10 Jim Meyering <meyering@redhat.com>
19517 bootstrap: use git's --depth=N option only if it's supported
19518 * build-aux/bootstrap: Work with git-1.4.4.4, which does not
19519 recognize the --depth option. Reported by Pádraig Brady.
19521 2008-10-09 Bruno Haible <bruno@clisp.org>
19523 New module 'ioctl'.
19524 * modules/ioctl: New file.
19525 * lib/sys_socket.in.h (ioctl): Remove declaration.
19526 * lib/winsock.c: Include <sys/ioctl.h>.
19527 (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
19528 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19529 gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
19530 * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
19531 * doc/posix-functions/ioctl.texi: Mention the new module.
19533 2008-10-09 Bruno Haible <bruno@clisp.org>
19535 New module 'sys_ioctl'.
19536 * lib/sys_ioctl.in.h: New file.
19537 * m4/sys_ioctl_h.m4: New file.
19538 * modules/sys_ioctl: New file.
19539 * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
19541 2008-10-09 Bruno Haible <bruno@clisp.org>
19543 * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
19544 * lib/winsock.c: Include <stdarg.h>.
19545 (rpl_ioctl): Change to second argument 'int' and then varargs.
19547 2008-10-09 Bruno Haible <bruno@clisp.org>
19549 * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
19550 when the sys_socket module is present and the system has <winsock2.h>.
19552 2008-10-09 Bruno Haible <bruno@clisp.org>
19554 * doc/posix-functions/close.texi: Mention module 'close' instead of
19555 module 'sys_socket'.
19557 2008-10-09 Bruno Haible <bruno@clisp.org>
19559 * doc/glibc-headers/sys_ioctl.texi: New file.
19560 * doc/gnulib.texi: Include it.
19562 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19563 Bruno Haible <bruno@clisp.org>
19565 Combine the two replacements of 'close'.
19566 * lib/sys_socket.in.h (close): Define to a reminder to include
19568 (_gl_close_fd_maybe_socket): New declaration.
19569 (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
19570 * lib/winsock.c (close): Remove undefinition.
19571 (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
19572 needed for the gnulib module 'close'.
19573 * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
19574 define to an error symbol or to a warning, if suitable.
19575 * lib/close.c: Include <sys/socket.h>.
19576 (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
19577 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
19578 UNISTD_H_HAVE_WINSOCK2_H.
19579 (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
19580 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19581 UNISTD_H_HAVE_WINSOCK2_H.
19582 * modules/sys_socket (Files): Add m4/unistd_h.m4.
19583 (configure.ac): Set a module indicator.
19584 (Makefile.am): Substitute GNULIB_CLOSE.
19585 * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
19586 * modules/poll-tests (Depends-on): Add close.
19587 * modules/select-tests (Depends-on): Likewise.
19589 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19590 Bruno Haible <bruno@clisp.org>
19592 New module 'close'.
19593 * modules/close: New file.
19594 * lib/unistd.in.h (close): Move declaration out of the
19595 FCHDIR_REPLACEMENT scope.
19596 (_gl_unregister_fd): New declaration.
19597 * lib/close.c: New file.
19598 * lib/fchdir.c (rpl_close): Remove function.
19599 * m4/close.m4: New file.
19600 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
19602 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
19604 * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
19606 * modules/fchdir (Depends-on): Add close.
19608 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19609 Bruno Haible <bruno@clisp.org>
19611 * lib/fcntl.in.h (open): Simplify conditionals.
19612 (_gl_register_fd): New declaration.
19613 * lib/fchdir.c (rpl_open): Remove function.
19614 * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
19616 (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
19617 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
19620 2008-10-09 Jim Meyering <meyering@redhat.com>
19622 GNUmakefile: use the more name-space-friendly "_version"
19623 * top/GNUmakefile (_dummy): Update.
19624 (_version): Rename from "version".
19626 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19627 Bruno Haible <bruno@clisp.org>
19629 * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
19631 (_gl_register_fd): New function, extracted from rpl_open.
19632 (rpl_close, rpl_closedir): Use _gl_unregister_fd.
19633 (rpl_open, rpl_opendir): Use _gl_register_fd.
19635 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19637 Fix organization of 'open' replacement.
19638 * m4/open.m4 (gl_REPLACE_OPEN): New macro.
19639 (gl_FUNC_OPEN): Use it.
19640 (gl_PREREQ_OPEN): Add a : to make the body non-empty.
19642 2008-10-08 Bruno Haible <bruno@clisp.org>
19644 * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
19646 2008-10-08 Simon Josefsson <simon@josefsson.org>
19648 * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock). The file is
19649 AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
19652 2008-10-08 Eric Blake <ebb9@byu.net>
19654 GNUmakefile: add 'make version' target
19655 * top/GNUmakefile (_curr-ver): Split version update rules...
19656 (version): ...into a target.
19658 2008-10-07 Bruno Haible <bruno@clisp.org>
19660 Use a more portable replacement expression for -0.0L.
19661 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
19662 instead of -0.0L. Fix m4 quotation.
19664 * tests/test-signbit.c: Include <float.h>.
19665 (minus_zero): New variable.
19666 (test_signbitl): Use minus_zero instead of -zero.
19667 * modules/signbit-tests (Depends-on): Add float.
19669 * tests/test-ceill.c: Include <float.h>.
19670 (zero): Remove variable.
19671 (minus_zero): New variable.
19672 (main): Use minus_zero instead of -zero.
19673 * modules/ceill-tests (Depends-on): Add float.
19675 * tests/test-floorl.c: Include <float.h>.
19676 (zero): Remove variable.
19677 (minus_zero): New variable.
19678 (main): Use minus_zero instead of -zero.
19679 * modules/floorl-tests (Depends-on): Add float.
19681 * tests/test-roundl.c: Include <float.h>.
19682 (zero): Remove variable.
19683 (minus_zero): New variable.
19684 (main): Use minus_zero instead of -zero.
19685 * modules/roundl-tests (Depends-on): Add float.
19687 * tests/test-truncl.c: Include <float.h>.
19688 (zero): Remove variable.
19689 (minus_zero): New variable.
19690 (main): Use minus_zero instead of -zero.
19691 * modules/truncl-tests (Depends-on): Add float.
19693 * tests/test-frexpl.c (zero): Remove variable.
19694 (minus_zero): New variable.
19695 (main): Use minus_zero instead of -zero.
19696 * modules/frexpl-tests (Depends-on): Add float.
19698 * tests/test-isnan.c (zerol): Remove variable.
19699 (minus_zerol): New variable.
19700 (test_long_double): Use minus_zerol instead of -zerol.
19701 * modules/isnan-tests (Depends-on): Add float.
19703 * tests/test-isnanl.h (zero): Remove variable.
19704 (minus_zero): New variable.
19705 (main): Use minus_zero instead of -zero.
19706 * modules/isnanl-nolibm-tests (Depends-on): Add float.
19707 * modules/isnanl-tests (Depends-on): Add float.
19709 * tests/test-ldexpl.c (zero): Remove variable.
19710 (minus_zero): New variable.
19711 (main): Use minus_zero instead of -zero.
19712 * modules/ldexpl-tests (Depends-on): Add float.
19714 * tests/test-snprintf-posix.h (zerol): Remove variable.
19715 (minus_zerol): New variable.
19716 (test_function): Use minus_zerol instead of -zerol.
19717 * modules/snprintf-posix-tests (Depends-on): Add float.
19718 * modules/vsnprintf-posix-tests (Depends-on): Add float.
19720 * tests/test-sprintf-posix.h (zerol): Remove variable.
19721 (minus_zerol): New variable.
19722 (test_function): Use minus_zerol instead of -zerol.
19723 * modules/sprintf-posix-tests (Depends-on): Add float.
19724 * modules/vsprintf-posix-tests (Depends-on): Add float.
19726 * tests/test-vasnprintf-posix.c (zerol): Remove variable.
19727 (minus_zerol): New variable.
19728 (test_function): Use minus_zerol instead of -zerol.
19729 * modules/vasnprintf-posix-tests (Depends-on): Add float.
19731 * tests/test-vasprintf-posix.c (zerol): Remove variable.
19732 (minus_zerol): New variable.
19733 (test_function): Use minus_zerol instead of -zerol.
19734 * modules/vasprintf-posix-tests (Depends-on): Add float.
19736 2008-10-07 Simon Josefsson <simon@josefsson.org>
19738 * MODULES.html.sh (Support for building documentation): Mention
19739 pmccabe2html. Sort entries.
19741 Add pmccabe2html module, from gnupdf.
19742 * build-aux/pmccabe.css: New file.
19743 * build-aux/pmccabe2html: New file.
19744 * m4/pmccabe2html.m4: New file.
19745 * modules/pmccabe2html: New file.
19747 2008-10-07 Richard W.M. Jones <rjones@redhat.com>
19750 * MODULES.html.sh: Add to list of modules.
19751 * lib/flock.c: flock implementation for Windows and Unix systems
19753 * doc/glibc-functions/flock.texi: Update documentation.
19754 * lib/sys_file.in.h: <sys/file.h> header file.
19755 * m4/flock.m4: M4 macros.
19756 * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
19757 * modules/flock: flock module.
19758 * modules/flock-tests: flock tests module.
19759 * modules/sys_file: sys/file.h module.
19760 * tests/test-flock.c: test suite for flock.
19762 2008-10-06 Jim Meyering <meyering@redhat.com>
19764 bootstrap: check for LT_INIT more portably still ;-)
19765 * build-aux/bootstrap: Don't rely on \>, since it's not portable.
19766 Spotted by Bruno Haible.
19768 2008-10-06 Eric Blake <ebb9@byu.net>
19770 test-signbit: avoid tripping Irix cc bug on -0.0L
19771 * tests/test-signbit.c (minus_zerol): Delete, and replace with
19772 '-zerol'. This may break on HP-UX/hppa, but at least makes the
19773 entire testsuite consistent and avoids an Irix 6.2 bug.
19775 2008-10-05 Bruno Haible <bruno@clisp.org>
19776 Jim Meyering <jim@meyering.net>
19778 Add an option for ignoring EPIPE during close_stdout.
19779 * lib/closeout.h: Include <stdbool.h>.
19780 (close_stdout_set_ignore_EPIPE): New declaration.
19781 * lib/closeout.c: Include <stdbool.h>.
19782 (ignore_EPIPE): New variable.
19783 (close_stdout_set_ignore_EPIPE): New function.
19784 (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
19785 * lib/close-stream.c (close_stream): Mention the possible EPIPE
19787 * modules/closeout (Depends-on): Add stdbool.
19789 2008-10-05 Bruno Haible <bruno@clisp.org>
19791 * modules/accept: New file.
19792 * modules/bind: New file.
19793 * modules/connect: New file.
19794 * modules/getpeername: New file.
19795 * modules/getsockname: New file.
19796 * modules/getsockopt: New file.
19797 * modules/listen: New file.
19798 * modules/recv: New file.
19799 * modules/recvfrom: New file.
19800 * modules/send: New file.
19801 * modules/sendto: New file.
19802 * modules/setsockopt: New file.
19803 * modules/socket: New file.
19804 * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
19805 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
19806 listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
19807 the particular module is requested. Add a link warning when the
19808 particular module is not requested.
19809 * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
19810 rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
19811 rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
19812 the particular module is requested.
19813 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
19814 gl_SYS_SOCKET_H_DEFAULTS): New macros.
19815 (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
19816 * modules/sys_socket (Depends-on): Add link-warning.
19817 (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
19818 GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
19819 GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
19820 GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
19822 * doc/posix-functions/accept.texi: Mention the new module 'accept'.
19823 * doc/posix-functions/bind.texi: Mention the new module 'bind'.
19824 * doc/posix-functions/connect.texi: Mention the new module 'connect'.
19825 * doc/posix-functions/getpeername.texi: Mention the new module
19827 * doc/posix-functions/getsockname.texi: Mention the new module
19829 * doc/posix-functions/getsockopt.texi: Mention the new module
19831 * doc/posix-functions/listen.texi: Mention the new module 'listen'.
19832 * doc/posix-functions/recv.texi: Mention the new module 'recv'.
19833 * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
19834 * doc/posix-functions/send.texi: Mention the new module 'send'.
19835 * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
19836 * doc/posix-functions/setsockopt.texi: Mention the new module
19838 * doc/posix-functions/socket.texi: Mention the new module 'socket'.
19839 * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
19840 listen, connect, accept.
19841 * modules/select-tests (Depends-on): Likewise.
19843 2008-10-05 Bruno Haible <bruno@clisp.org>
19845 * lib/winsock.c (strerror): Remove unused #undef.
19846 (rpl_close): Remove unused local variable.
19848 * modules/sys_socket (Depends-on); Add errno.
19850 2008-10-05 Bruno Haible <bruno@clisp.org>
19852 * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
19853 (select): Add a link warning when the 'select' module is not used.
19854 * modules/sys_select (Depends-on): Add link-warning.
19855 (Makefile.am): Substitute the definition of GL_LINK_WARNING.
19856 Suggested by Paolo Bonzini.
19858 2008-10-05 Jim Meyering <meyering@redhat.com>
19860 bootstrap: check for LT_INIT more portably
19861 * build-aux/bootstrap: Avoid using grep -E, since it's not
19862 portable enough. Suggestion from Bruno Haible.
19864 2008-10-05 Bruno Haible <bruno@clisp.org>
19866 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
19867 as being fixed by gnulib.
19869 2008-10-05 Bruno Haible <bruno@clisp.org>
19871 * modules/select-tests: New file, mostly copied from
19872 modules/sys_select-tests.
19873 * tests/test-select.c: New file, mostly copied from
19874 tests/test-sys_select.c.
19875 * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
19876 * modules/sys_select-tests (Depends-on): Remove all dependencies.
19877 (Makefile.am): Remove test_sys_select_LDADD.
19879 * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
19880 to an undefined symbol, for an error message.
19881 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
19882 (gl_SYS_SELECT_H_DEFAULTS): New macro.
19883 (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
19884 winsock-select.c here.
19885 * modules/sys_select (Files): Remove lib/winsock-select.c.
19886 (Depends-on): Remove alloca.
19887 (Makefile.am): Substitute GNULIB_SELECT.
19888 * modules/select: New file.
19889 * doc/posix-functions/select.texi: Update.
19891 2008-10-05 Bruno Haible <bruno@clisp.org>
19893 * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
19894 * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
19895 * lib/spawn_faction_addopen.c (__sysconf): Likewise.
19896 * modules/posix_spawn_file_actions_addclose (Depends-on): Add
19898 * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
19899 * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
19901 2008-10-05 Bruno Haible <bruno@clisp.org>
19903 * modules/getdtablesize-tests: New file.
19904 * tests/test-getdtablesize.c: New file.
19906 New module 'getdtablesize'.
19907 * lib/unistd.in.h (getdtablesize): New declaration.
19908 * lib/getdtablesize.c: New file.
19909 * m4/getdtablesize.m4: New file.
19910 * modules/getdtablesize: New file.
19911 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19912 GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
19913 * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
19914 HAVE_GETDTABLESIZE.
19915 * doc/glibc-functions/getdtablesize.texi: Mention the new module.
19917 2008-10-05 Bruno Haible <bruno@clisp.org>
19919 * modules/sched (Makefile.am): Fix typo.
19920 Reported by Simon Josefsson.
19922 2008-10-05 Jim Meyering <meyering@redhat.com>
19924 bootstrap: check for LT_INIT, too
19925 * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
19926 are deprecated. Suggestion from Ralf Wildenhues.
19928 2008-10-05 Bruno Haible <bruno@clisp.org>
19930 * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
19931 overriding them by ours.
19932 (POSIX_SPAWN_USEVFORK): Use the next free bit position.
19934 2008-10-05 Jim Meyering <meyering@redhat.com>
19936 bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
19937 * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
19938 obsolete AM_PROG_LIBTOOL. Spotted by Debarshi Ray <rishi@gnu.org>.
19940 2008-10-04 Bruno Haible <bruno@clisp.org>
19942 * modules/dup2 (License): Change to LGPLv2+.
19943 * modules/sleep (License): Likewise.
19944 * modules/perror (License): Likewise.
19945 * modules/fopen (License): Change to LGPLv2+, with approval by Eric
19947 * modules/signal (License): Likewise.
19948 * modules/sigprocmask (License): Likewise.
19949 * modules/raise (License): Change to LGPLv2+, with approval by Jim
19952 2008-10-04 Bruno Haible <bruno@clisp.org>
19954 * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
19955 Reported by Rainer Tammer <tammer@tammer.net>.
19957 2008-10-03 Paolo Bonzini <bonzini@gnu.org>
19958 Bruno Haible <bruno@clisp.org>
19960 * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
19961 * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
19962 * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
19964 2008-10-03 Kamil Dudka <kdudka@redhat.com>
19966 filevercmp: new module
19967 * lib/filevercmp.h: New function filevercmp comparing version strings.
19968 * lib/filevercmp.c: Implementation of filevercmp function.
19969 * modules/filevercmp: Module metadata.
19970 * tests/test-filevercmp.c: Unit test for new module.
19971 * modules/filevercmp-tests: Unit test metadata.
19972 * MODULES.html.sh: Add filevercmp module.
19974 2008-10-03 Bruno Haible <bruno@clisp.org>
19976 * lib/c-ctype.h: Add comment.
19977 Reported by Jim Meyering.
19979 2008-10-02 Bruno Haible <bruno@clisp.org>
19981 * modules/posix_spawn-internal (Depends-on): Add 'open'.
19983 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
19985 * build-aux/bootstrap: Allow renaming bootstrap, and change the
19986 name of bootstrap.conf accordingly.
19988 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
19990 * build-aux/bootstrap: Install git-merge-changelog configuration
19991 items into .gitconfig if needed.
19993 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
19995 * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
19996 git repository, and initialize/update it accordingly.
19998 2008-10-02 Richard W.M. Jones <rjones@redhat.com>
20000 * modules/fsync-tests: New file.
20001 * tests/test-fsync.c: New file.
20003 New module 'fsync'.
20004 * lib/fsync.c: New file.
20005 * m4/fsync.m4: New file.
20006 * modules/fsync: New file.
20007 * lib/unistd.in.h (fsync): New declaration.
20008 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
20009 GNULIB_FSYNC and HAVE_FSYNC.
20010 * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
20011 * MODULES.html.sh (posix_functions): Add fsync.
20012 * doc/posix-functions/fsync.texi: Mention the new module.
20014 2008-10-02 Jim Meyering <meyering@redhat.com>
20016 fts.c: sync with similar code from coreutils' remove.c
20017 * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
20018 Guard also with "#if defined __linux__", since for now at least,
20019 this code is Linux-kernel-specific.
20021 2008-10-02 Jim Meyering <meyering@redhat.com>
20024 * lib/fts.c: Remove unnecessary "defined" in cpp directive.
20025 Include <sys/vfs.h>, not <sys/statfs.h>.
20027 * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
20028 Include <sys/vfs.h>, not <sys/statfs.h>.
20030 2008-10-01 Bruno Haible <bruno@clisp.org>
20032 Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
20033 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
20034 (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
20035 * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
20036 * doc/posix-functions/posix_spawnp.texi: Likewise.
20037 * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
20038 whether posix_spawn actually works.
20039 * m4/pipe.m4 (gl_PIPE): Likewise.
20040 * modules/execute (Files): Add m4/posix_spawn.m4.
20041 * modules/pipe (Files): Add m4/posix_spawn.m4.
20042 Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
20044 2008-10-01 Jim Meyering <meyering@redhat.com>
20046 remove trailing spaces
20048 * lib/poll.c (poll): Likewise.
20049 * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
20050 * lib/winsock.c (rpl_close): Likewise.
20051 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
20052 * modules/yield: Likewise.
20053 * tests/test-poll.c (connect_to_socket, poll1): Likewise.
20054 * tests/test-sys_select.c (connect_to_socket): Likewise.
20056 fts.c: adjust a new interface to be more generally useful
20057 * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
20058 (fts_build): Adjust caller.
20060 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20062 * modules/cond-tests: New file.
20063 * tests/test-cond.c: New file.
20065 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20066 Bruno Haible <bruno@clisp.org>
20068 * modules/cond (Dependencies): Add errno, time.
20069 * lib/glthread/cond.h: Include <time.h>.
20070 (gl_cond_define, gl_cond_define_initialized): Use the same definition
20073 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20074 Bruno Haible <bruno@clisp.org>
20076 * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
20078 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20079 Bruno Haible <bruno@clisp.org>
20081 * modules/tls-tests (Depends-on): Add thread, yield.
20082 (configure.ac): Remove all checks.
20083 (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
20084 * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20085 gl_thread_self): Remove definitions. Include glthread/thread.h and
20086 glthread/yield.h instead.
20087 (test_tls): Pass an additional NULL argument to gl_thread_join.
20089 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20090 Bruno Haible <bruno@clisp.org>
20092 * modules/lock-tests (Depends-on): Add thread, yield.
20093 (configure.ac): Remove all checks.
20094 (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
20095 * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20096 gl_thread_self): Remove definitions. Include glthread/thread.h and
20097 glthread/yield.h instead.
20098 (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
20099 additional NULL argument to gl_thread_join.
20101 2008-09-30 Bruno Haible <bruno@clisp.org>
20103 Fix the Win32 implementation of the 'thread' module.
20104 * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
20106 (gl_thread_self): Invoke gl_thread_self_func.
20107 (gl_thread_self_func): New declaration.
20108 * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
20109 (do_init_self_key, init_self_key): New functions.
20110 (struct gl_thread_struct): Renamed from 'struct thread_extra'.
20111 Remove some fields.
20112 (running_threads, running_lock): Remove variables.
20113 (get_current_thread_handle): New function.
20114 (gl_thread_self_func, wrapper_func, glthread_create_func,
20115 glthread_join_func, gl_thread_exit_func): Largely rewritten and
20118 2008-09-30 Bruno Haible <bruno@clisp.org>
20120 * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
20123 2008-09-30 Jim Meyering <meyering@redhat.com>
20125 fts.m4: correct the test for statfs.f_type
20126 * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
20127 when checking for statfs.f_type.
20129 2008-09-15 Simon Josefsson <simon@josefsson.org>
20131 tests: avoid some compiler warnings
20132 * tests/test-memchr.c (main): Pass NULL indirectly.
20133 * tests/test-getdate.c (main): Remove unused variable 'ret'.
20135 2008-09-29 Ondřej Vašík <ovasik@redhat.com>
20137 getdate.y: disallow countable dayshifts like "4 yesterday ago"
20138 * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
20139 exactly specified dayshifts.
20140 (dayshift): New rule.
20141 (rel): Add dayshift.
20142 (relative_time_table) [tomorrow, yesterday, today, now]:
20143 Use tDAY_SHIFT in place of tDAY_UNIT.
20144 * tests/test-getdate.c: Add tests for now-disallowed countable
20145 dayshifts, e.g., "4 yesterday ago".
20147 2008-09-29 Bruno Haible <bruno@clisp.org>
20149 * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
20150 * tests/test-posix_spawn1.in.sh: Renamed from
20151 tests/test-posix_spawn.in.sh.
20152 * tests/test-posix_spawn2.c: New file.
20153 * tests/test-posix_spawn2.in.sh: New file.
20154 * modules/posix_spawnp-tests (Files): Update.
20155 (Makefile.am): Update. Add test-posix_spawn2 to the tests.
20157 2008-09-29 Bruno Haible <bruno@clisp.org>
20159 Propagate effects of putenv/setenv/unsetenv to child processes.
20160 * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
20161 * lib/pipe.c (create_pipe): Likewise.
20163 2008-09-29 Bruno Haible <bruno@clisp.org>
20165 Enable use of shell scripts as executables in mingw.
20166 * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
20167 run the program as a shell script.
20168 * lib/pipe.c (create_pipe): Likewise.
20169 * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
20172 2008-09-29 Eric Blake <ebb9@byu.net>
20174 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
20176 2008-08-24 Paolo Bonzini <bonzini@gnu.org>
20178 * doc/posix-functions/accept.texi: Update mingw problems.
20179 * doc/posix-functions/bind.texi: Update mingw problems.
20180 * doc/posix-functions/close.texi: Update mingw problems.
20181 * doc/posix-functions/connect.texi: Update mingw problems.
20182 * doc/posix-functions/getpeername.texi: Update mingw problems.
20183 * doc/posix-functions/getsockname.texi: Update mingw problems.
20184 * doc/posix-functions/getsockopt.texi: Update mingw problems.
20185 * doc/posix-functions/ioctl.texi: Update mingw problems.
20186 * doc/posix-functions/listen.texi: Update mingw problems.
20187 * doc/posix-functions/recv.texi: Update mingw problems.
20188 * doc/posix-functions/recvfrom.texi: Update mingw problems.
20189 * doc/posix-functions/select.texi: Update mingw problems.
20190 * doc/posix-functions/send.texi: Update mingw problems.
20191 * doc/posix-functions/sendto.texi: Update mingw problems.
20192 * doc/posix-functions/setsockopt.texi: Update mingw problems.
20193 * doc/posix-functions/socket.texi: Update mingw problems.
20195 2008-09-29 Paolo Bonzini <bonzini@gnu.org>
20196 Bruno Haible <bruno@clisp.org>
20198 * lib/sys_select.in.h: Include sys/time.h.
20199 * m4/sys_select.h.m4: Test that struct timeval is fully defined.
20200 * modules/sys_select: Depend on sys_time.
20201 * tests/test-sys_select.c: Test that sys/select.h defines struct
20204 2008-09-29 Bruno Haible <bruno@clisp.org>
20206 * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
20207 * lib/sys_select.in.h: Likewise.
20209 2008-09-29 Bruno Haible <bruno@clisp.org>
20211 * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
20213 2008-09-29 Bruno Haible <bruno@clisp.org>
20215 * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
20216 Set LIBSOCKET instead of augmenting LIBS.
20217 * modules/sockets (Link): New section.
20218 * modules/sockets-tests (test_sockets_LDADD): New variable.
20219 * modules/sys_select-tests (test_sys_select_LDADD): New variable.
20220 * modules/poll-tests (test_poll_LDADD): New variable.
20221 * NEWS: Document the change.
20223 2008-09-29 Bruno Haible <bruno@clisp.org>
20225 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
20226 * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
20227 ARPA_INET_H directly.
20228 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
20230 2008-09-28 Bruno Haible <bruno@clisp.org>
20232 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
20233 from gl_HEADER_SYS_SOCKET.
20234 (gl_HEADER_SYS_SOCKET): Invoke it.
20235 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20237 2008-09-28 Bruno Haible <bruno@clisp.org>
20239 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
20240 * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
20241 Needed on OSF/1 4.0.
20243 2008-09-28 Bruno Haible <bruno@clisp.org>
20245 Override open more carefully.
20246 * lib/open.c (orig_open): New function.
20247 (rpl_open): Use orig_open instead of open.
20248 * lib/fcntl.in.h: Add special invocation convention.
20249 * m4/open.m4 (gl_PREREQ_OPEN): New macro.
20250 (gl_FUNC_OPEN): Invoke it.
20252 Override freopen more carefully.
20253 * lib/freopen.c (orig_freopen): New function.
20254 (rpl_freopen): Use orig_freopen instead of freopen.
20255 * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
20256 (gl_FUNC_FREOPEN): Invoke it.
20258 Override fopen more carefully.
20259 * lib/fopen.c (orig_fopen): New function.
20260 (rpl_fopen): Use orig_fopen instead of fopen.
20261 * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
20262 (gl_FUNC_FOPEN): Invoke it.
20263 Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
20265 2008-09-28 Bruno Haible <bruno@clisp.org>
20267 * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
20270 2008-09-28 Bruno Haible <bruno@clisp.org>
20272 * tests/test-sigaction.c (handler, main): Disable the check whether
20273 SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
20274 glibc systems with LinuxThreads.
20276 2008-09-28 Bruno Haible <bruno@clisp.org>
20278 * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
20280 * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
20282 * lib/fcntl.in.h (open): Likewise.
20283 Reported by Rainer Tammer <tammer@tammer.net>.
20285 2008-09-28 Bruno Haible <bruno@clisp.org>
20287 * modules/posix_spawnp-tests: New file.
20288 * tests/test-posix_spawn.c: New file.
20289 * tests/test-posix_spawn.in.sh: New file.
20291 New module 'posix_spawnp'.
20292 * modules/posix_spawnp: New file.
20293 * lib/spawnp.c: New file, from GNU libc with modifications.
20294 * doc/posix-functions/posix_spawnp.texi: Mention the new module.
20296 New module 'posix_spawn'.
20297 * modules/posix_spawn: New file.
20298 * lib/spawn.c: New file, from GNU libc with modifications.
20299 * doc/posix-functions/posix_spawn.texi: Mention the new module.
20301 New module 'posix_spawnattr_destroy'.
20302 * modules/posix_spawnattr_destroy: New file.
20303 * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
20304 * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
20307 New module 'posix_spawnattr_setsigmask'.
20308 * modules/posix_spawnattr_setsigmask: New file.
20309 * lib/spawnattr_setsigmask.c: New file, from GNU libc with
20311 * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
20314 New module 'posix_spawnattr_getsigmask'.
20315 * modules/posix_spawnattr_getsigmask: New file.
20316 * lib/spawnattr_getsigmask.c: New file, from GNU libc with
20318 * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
20321 New module 'posix_spawnattr_setsigdefault'.
20322 * modules/posix_spawnattr_setsigdefault: New file.
20323 * lib/spawnattr_setdefault.c: New file, from GNU libc with
20325 * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
20328 New module 'posix_spawnattr_getsigdefault'.
20329 * modules/posix_spawnattr_getsigdefault: New file.
20330 * lib/spawnattr_getdefault.c: New file, from GNU libc with
20332 * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
20335 New module 'posix_spawnattr_setschedpolicy'.
20336 * modules/posix_spawnattr_setschedpolicy: New file.
20337 * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
20339 * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
20342 New module 'posix_spawnattr_getschedpolicy'.
20343 * modules/posix_spawnattr_getschedpolicy: New file.
20344 * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
20346 * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
20349 New module 'posix_spawnattr_setschedparam'.
20350 * modules/posix_spawnattr_setschedparam: New file.
20351 * lib/spawnattr_setschedparam.c: New file, from GNU libc with
20353 * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
20356 New module 'posix_spawnattr_getschedparam'.
20357 * modules/posix_spawnattr_getschedparam: New file.
20358 * lib/spawnattr_getschedparam.c: New file, from GNU libc with
20360 * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
20363 New module 'posix_spawnattr_setpgroup'.
20364 * modules/posix_spawnattr_setpgroup: New file.
20365 * lib/spawnattr_setpgroup.c: New file, from GNU libc with
20367 * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
20370 New module 'posix_spawnattr_getpgroup'.
20371 * modules/posix_spawnattr_getpgroup: New file.
20372 * lib/spawnattr_getpgroup.c: New file, from GNU libc with
20374 * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
20377 New module 'posix_spawnattr_setflags'.
20378 * modules/posix_spawnattr_setflags: New file.
20379 * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
20380 * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
20383 New module 'posix_spawnattr_getflags'.
20384 * modules/posix_spawnattr_getflags: New file.
20385 * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
20386 * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
20389 New module 'posix_spawnattr_init'.
20390 * modules/posix_spawnattr_init: New file.
20391 * lib/spawnattr_init.c: New file, from GNU libc with modifications.
20392 * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
20395 New module 'posix_spawn_file_actions_destroy'.
20396 * modules/posix_spawn_file_actions_destroy: New file.
20397 * lib/spawn_faction_destroy.c: New file, from GNU libc with
20399 * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
20402 New module 'posix_spawn_file_actions_addopen'.
20403 * modules/posix_spawn_file_actions_addopen: New file.
20404 * lib/spawn_faction_addopen.c: New file, from GNU libc with
20406 * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
20409 New module 'posix_spawn_file_actions_adddup2'.
20410 * modules/posix_spawn_file_actions_adddup2: New file.
20411 * lib/spawn_faction_adddup2.c: New file, from GNU libc with
20413 * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
20416 New module 'posix_spawn_file_actions_addclose'.
20417 * modules/posix_spawn_file_actions_addclose: New file.
20418 * lib/spawn_faction_addclose.c: New file, from GNU libc with
20420 * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
20423 New module 'posix_spawn_file_actions_init'.
20424 * modules/posix_spawn_file_actions_init: New file.
20425 * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
20426 * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
20429 New module 'posix_spawn-internal'.
20430 * modules/posix_spawn-internal: New file.
20431 * lib/spawn_int.h: New file, from GNU libc with modifications.
20432 * lib/spawni.c: New file, from GNU libc with modifications.
20433 * m4/posix_spawn.m4: New file.
20435 New module 'spawn'.
20436 * modules/spawn: New file.
20437 * lib/spawn.in.h: New file, from GNU libc with modifications.
20438 * m4/spawn_h.m4: New file.
20439 * doc/posix-headers/spawn.texi: Mention the new module.
20441 2008-09-28 Bruno Haible <bruno@clisp.org>
20443 * modules/sched-tests: New file.
20444 * tests/test-sched.c: New file.
20446 New module 'sched'.
20447 * modules/sched: New file.
20448 * lib/sched.in.h: New file.
20449 * m4/sched_h.m4: New file.
20450 * doc/posix-headers/sched.texi: Mention the new module.
20452 2008-09-27 Eric Blake <ebb9@byu.net>
20454 Fix previous patch, and tweak references to $0.
20455 * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
20456 (func_version, func_gnulib_dir): Don't call this program
20458 (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
20459 with using $0 in function.
20460 * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
20461 (func_fatal_error): Reuse the name the user invoked us with.
20463 2008-09-27 Bruno Haible <bruno@clisp.org>
20465 * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
20466 (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
20467 (gl_ICONV_H): Not here.
20468 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
20469 instead of assigning ICONV_H directly.
20471 * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
20472 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
20475 2008-09-27 Bruno Haible <bruno@clisp.org>
20477 * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
20478 * modules/arpa_inet (Depends-on): Add link-warning.
20479 (Makefile.am): Insert the definition of GL_LINK-WARNING.
20480 * modules/unistd (Makefile.am): Likewise.
20482 2008-09-26 Bruno Haible <bruno@clisp.org>
20484 * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
20486 (func_version): Essentially copied from gnulib-tool.
20487 (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
20488 func_readlink): Copied from gnulib-tool.
20490 2008-09-26 Bruno Haible <bruno@clisp.org>
20492 * gnulib-tool (func_version): Change directory to $gnulib_dir before
20493 invoking git-version-gen.
20495 2008-09-26 Bruno Haible <bruno@clisp.org>
20497 * posix-modules: Update to directory names changed on 2008-01-19.
20498 Remove commas in output before splitting into words. No more need to
20499 avoid 'ftruncate' since 2007-02-19.
20501 2008-09-26 Bruno Haible <bruno@clisp.org>
20503 * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
20505 2008-09-26 Bruno Haible <bruno@clisp.org>
20507 * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
20508 * modules/fwriteerror (Depends-on): Add errno.
20510 2008-09-26 Bruno Haible <bruno@clisp.org>
20512 * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
20513 * tests/test-vc-list-files-cvs.sh: Likewise.
20515 2008-09-26 Bruno Haible <bruno@clisp.org>
20517 * doc/posix-headers/sys_resource.texi: Reorder items.
20519 2008-09-26 Jim Meyering <meyering@redhat.com>
20521 fts: tweak inode comparison function
20522 * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
20523 inode numbers, as documented.
20525 fts: sort dirent entries on inode number before traversing
20526 This avoids a quadratic, seek-related performance penalty when
20527 operating on a directory containing many entries (measurable at 10k;
20528 3.5 hours at 2 million entries with a cold cache) on certain types
20529 of file systems, including ext3 and ext4, but not tmpfs.
20530 * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
20531 (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
20532 (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
20533 (fs_handles_readdir_ordered_dirents_efficiently): New function.
20534 (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
20535 (fts_build): Set the stat.st_ino member from D_INO.
20536 If it is likely to be useful, sort dirent entries on inode number.
20538 * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
20539 and the struct statfs.f_type member.
20540 * modules/fts (Depends-on): Add d-ino.
20542 2008-09-26 Bruno Haible <bruno@clisp.org>
20544 * modules/sigpipe-die (Depends-on): Add sigpipe.
20546 * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
20547 putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
20548 and GNULIB_STDIO_H_SIGPIPE are set.
20549 * lib/stdio-write.c: New file.
20550 * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
20551 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20552 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20553 REPLACE_STDIO_WRITE_FUNCS.
20554 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
20555 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20556 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20557 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
20558 * modules/stdio (Files): Add lib/stdio-write.c.
20559 (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
20560 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20561 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20562 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
20563 * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
20564 REPLACE_FPRINTF_POSIX.
20565 * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
20566 REPLACE_PRINTF_POSIX.
20567 * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
20568 REPLACE_VFPRINTF_POSIX.
20569 * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
20570 REPLACE_VPRINTF_POSIX.
20571 * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
20573 * doc/posix-functions/fputc.texi: Likewise.
20574 * doc/posix-functions/fputs.texi: Likewise.
20575 * doc/posix-functions/fwrite.texi: Likewise.
20576 * doc/posix-functions/printf.texi: Likewise.
20577 * doc/posix-functions/putc.texi: Likewise.
20578 * doc/posix-functions/putchar.texi: Likewise.
20579 * doc/posix-functions/puts.texi: Likewise.
20580 * doc/posix-functions/vfprintf.texi: Likewise.
20581 * doc/posix-functions/vprintf.texi: Likewise.
20583 * modules/safe-write (Depends-on): Add write.
20585 * modules/sigpipe-tests: New file.
20586 * tests/test-sigpipe.c: New file.
20587 * tests/test-sigpipe.sh: New file.
20589 * modules/write: New file.
20590 * lib/unistd.in.h: Include <sys/types.h>.
20591 (write): New declaration.
20592 * lib/write.c: New file.
20593 * m4/write.m4: New file.
20594 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20595 GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
20596 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
20597 GNULIB_WRITE, REPLACE_WRITE.
20598 * doc/posix-functions/write.texi: Mention the write, sigpipe modules
20599 and the SIGPIPE issue.
20601 * lib/signal.in.h (SIGPIPE): Define to a replacement value.
20602 (raise): New declaration.
20603 * lib/sigprocmask.c (SIGPIPE_handler): New variable.
20604 (ext_signal): New function.
20605 (rpl_raise): New function.
20606 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
20607 GNULIB_SIGNAL_H_SIGPIPE.
20608 * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
20609 * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
20611 * modules/sigpipe: New file.
20612 * m4/sigpipe.m4: New file.
20614 2008-09-25 Derek Price <derek@ximbiot.com>
20615 Bruno Haible <bruno@clisp.org>
20617 * gnulib-tool (func_import): Report all license incompatibilities, not
20618 just the first one.
20620 2008-09-25 Bruno Haible <bruno@clisp.org>
20622 * gnulib-tool (func_import): When computing the edits, consider not
20623 only the Makefile.ams that exist but also those that will be generated.
20625 2008-09-25 Simon Josefsson <simon@josefsson.org>
20627 * modules/sys_select-tests (Depends-on): Remove sys_select itself,
20628 fixes gnulib-tool --test warning about duplicate dependency.
20630 2008-09-25 Bruno Haible <bruno@clisp.org>
20632 * gnulib-tool: Don't ask the user to perform edits in the generated
20634 (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
20635 apply to the Makefile.am being generated.
20636 (func_emit_tests_Makefile_am): Execute edits that apply to the
20637 Makefile.am being generated.
20638 (func_import): Setup list of Makefile.am edits before emitting the
20639 Makefile.ams, not at the end.
20640 (func_create_testdir): Update.
20641 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20643 2008-09-25 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20645 * gnulib-tool (func_import): Store the --tests-base option in the
20646 comment in gnulib-cache.m4.
20648 2008-09-24 Paolo Bonzini <bonzini@gnu.org>
20650 * NEWS: Document increased portability that sys_select now provides.
20652 * lib/sys_select.in.h: Install select wrapper.
20653 * lib/sys_socket.in.h: Use more descriptive name when there is no
20655 * lib/winsock-select.c: New.
20656 * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
20657 Require gl_HEADER_SYS_SOCKET.
20658 * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
20659 * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
20660 * tests/test-sys_select.c: Add functional tests.
20662 2008-09-24 Eric Blake <ebb9@byu.net>
20664 open, fopen: close fd leak in last patch
20665 * lib/open.c (rpl_open): Close fd before returning error.
20666 * lib/fopen.c (rpl_fopen): Close fd before returning error.
20667 * doc/posix-functions/open.texi (open): Document that Irix also
20669 * doc/posix-functions/fopen.texi (fopen): Likewise.
20670 Reported by Paolo Bonzini.
20672 2008-09-24 Bruno Haible <bruno@clisp.org>
20674 Ensure that a filename ending in a slash cannot be used to access a
20676 * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
20677 to check whether it's really a directory.
20678 * lib/fopen.c: Include fcntl.h, unistd.h.
20679 (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
20681 * modules/fopen (Depends-on): Add unistd.
20682 * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
20683 * tests/test-fopen.c (main): Likewise.
20684 * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
20685 * doc/posix-functions/fopen.texi: Likewise.
20686 Reported by Eric Blake.
20688 2008-09-23 Eric Blake <ebb9@byu.net>
20690 c-stack: avoid compiler optimizations when provoking overflow
20691 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
20692 recursion harder to optimize, to ensure a stack overflow occurs.
20693 * tests/test-c-stack.c (recurse): Likewise.
20694 Borrowed from libsigsegv.
20696 c-stack: work around Irix sigaltstack bug
20697 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
20698 whether sigaltstack uses wrong end of stack_t (copied in part from
20700 * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
20701 Irix bug, without requiring an over-allocation.
20702 * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
20705 fopen: document mingw bug on directories
20706 * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
20707 not allowing a stream visiting a directory, even though reading
20708 from such a stream is not portable.
20710 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
20712 * lib/poll.c: Rewrite.
20713 * modules/poll: Depend on alloca.
20715 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
20717 * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
20718 instead define prototypes for a full set of wrappers. Ensure
20719 that Cygwin does not use the compatibility code, which is only
20721 * lib/winsock.c: New.
20722 * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
20723 * modules/sys_socket: Add lib/winsock.c.
20725 * modules/poll-tests: Add errno and perror.
20726 * tests/test-poll.c: Use ioctl, not ioctlsocket.
20728 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
20730 * tests/test-poll.c: Downgrade minimum needed Winsock version.
20732 2008-09-23 Bruno Haible <bruno@clisp.org>
20734 * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
20735 * doc/glibc-functions/*: Likewise.
20737 2008-09-23 Simon Josefsson <simon@josefsson.org>
20739 * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
20742 2008-09-22 Eric Blake <ebb9@byu.net>
20743 Bruno Haible <bruno@clisp.org>
20745 vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
20746 * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
20747 supply %A but mishandle pseudo-NaN.
20748 Reported by Simon Josefsson.
20750 2008-09-21 Bruno Haible <bruno@clisp.org>
20752 * tests/test-lock.c (main): Tweak skip message.
20753 * tests/test-tls.c (main): Likewise.
20755 2008-09-21 Bruno Haible <bruno@clisp.org>
20757 * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
20758 whether 'struct sigaction' has sa_sigaction here...
20759 (gl_PREREQ_SIG_HANDLER_H): ... not here.
20760 (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
20762 2008-09-21 Bruno Haible <bruno@clisp.org>
20764 * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
20766 (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
20767 strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
20769 (Support for obsolete systems lacking POSIX:2001): New section.
20770 (String handling <string.h>): Move strdup to the new section.
20771 Suggested by Simon Josefsson and Paolo Bonzini.
20773 2008-09-21 Bruno Haible <bruno@clisp.org>
20775 * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
20776 exponents in %e and %g results on 'long double'. Needed for mingw's
20777 improved *printf functions.
20778 * tests/test-vasprintf-posix.c (test_function): Likewise.
20779 * tests/test-snprintf-posix.h (test_function): Likewise.
20780 * tests/test-sprintf-posix.h (test_function): Likewise.
20781 Reported by Eric Blake.
20783 2008-09-21 Bruno Haible <bruno@clisp.org>
20785 * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
20786 * tests/test-sprintf-posix.h (test_function): Likewise.
20788 2008-09-21 Bruno Haible <bruno@clisp.org>
20790 * modules/getpass (Depends-on): Add strdup-posix.
20792 New module 'strdup-posix'.
20793 * modules/strdup-posix: New file.
20794 * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
20795 * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
20796 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20798 * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
20799 * doc/posix-functions/strdup.texi: Mention module strdup-posix.
20800 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20803 * modules/strdup (Depends-on): Remove malloc-posix.
20805 2008-09-20 Bruno Haible <bruno@clisp.org>
20807 * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
20810 2008-09-20 Bruno Haible <bruno@clisp.org>
20812 Ensure that wint_t gets defined on IRIX 5.3.
20813 * lib/wchar.in.h (wint_t): Define if not defined by the system.
20814 * lib/wctype.in.h (wint_t): Likewise.
20815 (__wctype_wint_t): Remove type.
20816 (isw*): Use wint_t instead of __wctype_wint_t.
20817 * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
20818 * modules/wchar (Files): Add m4/wint_t.m4.
20819 (Makefile.am): Substitute HAVE_WINT_T.
20820 * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
20821 * tests/test-wctype.c: Check that wint_t is defined.
20822 * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
20823 * doc/posix-headers/wctype.texi: Likewise.
20824 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20826 2008-09-18 Bruno Haible <bruno@clisp.org>
20828 * gnulib-tool (func_exit): Update comment.
20830 2008-09-18 Simon Josefsson <simon@josefsson.org>
20832 * modules/getaddrinfo (Depends-on): Remove strdup, this module
20833 assumes strdup exists and does not depend on strdup to return
20834 ENOMEM on out of memory conditions.
20836 2008-09-18 Bruno Haible <bruno@clisp.org>
20838 * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
20839 NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
20840 digits for the exponent.
20842 2008-09-18 Jim Meyering <meyering@redhat.com>
20843 Bruno Haible <bruno@clisp.org>
20845 * lib/vasnprintf.c (decimal_point_char): Define also if
20846 NEED_PRINTF_INFINITE_LONG_DOUBLE.
20848 2008-09-16 Bruno Haible <bruno@clisp.org>
20849 and Eric Blake <ebb9@byu.net>
20851 vasnprintf: support Irix 5.3
20852 * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
20853 that mishandle long double infinity.
20854 Reported by Tom G. Christensen.
20856 2008-09-16 Bruno Haible <bruno@clisp.org>
20858 * doc/glibc-functions/scandir.texi: Mention the function is missing on
20860 * doc/glibc-functions/alphasort.texi: Likewise.
20861 Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
20863 2008-09-16 Jim Meyering <meyering@redhat.com>
20865 posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
20866 * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
20867 a umask modification leak out of a subshell. Otherwise, the
20868 opensolaris /bin/sh would be accepted and thus cause unwarranted
20869 failures in the coreutils test suite.
20871 2008-09-16 Paolo Bonzini <bonzini@gnu.org>
20873 * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
20876 2008-09-16 Jim Meyering <meyering@redhat.com>
20878 avoid spurious test failure when library is built without ACL support
20879 * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
20880 * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
20881 * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
20882 * tests/test-copy-acl.sh: Likewise.
20884 2008-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20886 * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
20887 based on character occurrence counts.
20889 2008-09-15 Eric Blake <ebb9@byu.net>
20891 tests: avoid some compiler warnings
20892 * tests/test-memchr.c (main): Pass NULL indirectly.
20893 * tests/test-closein.c (main): Avoid unused variable.
20895 2008-09-15 Bruno Haible <bruno@clisp.org>
20897 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
20898 are missing on OpenBSD 4.0 individually.
20899 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20901 2008-09-15 Bruno Haible <bruno@clisp.org>
20903 * doc/posix-headers/errno.texi: Mention the Cygwin problem.
20904 * doc/posix-functions/strerror.texi: Mention also Cygwin.
20905 * doc/posix-functions/perror.texi: Likewise.
20906 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
20908 Reported by Eric Blake.
20910 * lib/errno.in.h: Use replacement values >= 2000.
20911 Reported by Eric Blake.
20913 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20915 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
20916 (EARLY_ABORT): Return true when the edit_count has grown too beyond the
20918 (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
20919 compareseq was aborted.
20921 2008-09-14 Bruno Haible <bruno@clisp.org>
20923 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
20925 (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
20926 (fstrcmp_bounded): Simplify result computation accordingly.
20928 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20930 * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
20931 (fstrcmp): Define in terms of fstrcmp_bounded.
20932 * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
20933 lower_bound argument.
20934 Return quickly if the result is certainly < lower_bound.
20935 * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
20937 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20939 * lib/diffseq.h (EARLY_ABORT): New macro.
20940 (compareseq): Change return type to bool. Return true when EARLY_ABORT
20943 2008-09-14 Bruno Haible <bruno@clisp.org>
20945 * modules/perror-tests: New file.
20946 * tests/test-perror.sh: New file.
20947 * tests/test-perror.c: New file.
20949 New module 'perror'.
20950 * lib/stdio.in.h (perror): New declaration.
20951 * lib/perror.c: New file.
20952 * m4/perror.m4: New file.
20953 * modules/perror: New file.
20954 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
20955 * doc/posix-functions/perror.texi: Mention the perror module.
20956 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
20958 * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
20961 2008-09-14 Bruno Haible <bruno@clisp.org>
20963 * modules/stdio (Makefile.am): Reorder to match the order in
20965 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20967 2008-09-13 Bruno Haible <bruno@clisp.org>
20969 * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
20971 2008-09-13 Bruno Haible <bruno@clisp.org>
20973 Extend strerror to cover the added errno values.
20974 * lib/strerror.c: Include errno.h and winsock2.h if it exists.
20975 (rpl_strerror): Provide error messages for the added errno values and
20976 for the WSA* values.
20977 * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
20978 (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
20980 (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
20981 * modules/strerror (Depends-on): Add errno.
20982 * doc/posix-functions/strerror.texi: Document the change.
20983 * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
20986 2008-09-13 Bruno Haible <bruno@clisp.org>
20988 * modules/EOVERFLOW: Remove file.
20989 * m4/eoverflow.m4: Remove file.
20990 * modules/EOVERFLOW-tests: Remove file.
20991 * tests/test-EOVERFLOW.c: Remove file.
20992 * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
20993 * modules/ftell (Depends-on): Likewise.
20994 * modules/getdelim (Depends-on): Likewise.
20995 * modules/getugroups (Depends-on): Likewise.
20996 * modules/poll (Depends-on): Likewise.
20997 * modules/snprintf (Depends-on): Likewise.
20998 * modules/sprintf-posix (Depends-on): Likewise.
20999 * modules/vasnprintf (Depends-on): Likewise.
21000 * modules/vasprintf (Depends-on): Likewise.
21001 * modules/vfprintf-posix (Depends-on): Likewise.
21002 * modules/vsnprintf (Depends-on): Likewise.
21003 * modules/vsprintf-posix (Depends-on): Likewise.
21004 * modules/xvasprintf (Depends-on): Likewise.
21005 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21006 * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
21007 * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
21008 * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
21009 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21010 * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
21011 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
21012 * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
21013 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21014 * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
21015 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
21016 * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
21017 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21018 * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
21019 * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
21020 * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
21021 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21022 * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
21023 * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
21024 * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
21025 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21026 * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
21027 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
21028 * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
21029 * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
21030 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21031 * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
21032 * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
21033 * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
21034 * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
21035 * MODULES.html.sh: Remove EOVERFLOW.
21036 * NEWS: Mention the change.
21038 2008-09-13 Bruno Haible <bruno@clisp.org>
21040 * modules/errno-tests: New file.
21041 * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
21043 * lib/errno.in.h: New file.
21044 * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
21045 * modules/errno: New file.
21046 * doc/posix-headers/errno.texi: Update documentation.
21047 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
21049 2008-09-13 Bruno Haible <bruno@clisp.org>
21051 * tests/test-poll.c: Use #if for native Windows, rather than testing
21054 2008-09-13 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21055 Bruno Haible <bruno@clisp.org>
21057 * lib/glob.c: Don't include <pwd.h> on native Windows.
21058 (WINDOWS32): New macro.
21059 (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
21061 2008-09-13 Bruno Haible <bruno@clisp.org>
21063 * lib/glthread/cond.h [USE_SOLARIS_THREADS]
21064 (ETIMEDOUT): Remove macro.
21065 (glthread_cond_timedwait_multithreaded): New declaration.
21066 (glthread_cond_timedwait): Use it.
21067 * lib/glthread/cond.c [USE_SOLARIS_THREADS]
21068 (glthread_cond_timedwait_multithreaded): New function.
21070 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
21072 * modules/poll-tests: Do not check for io.h.
21073 * tests/test-poll.c: Check for __MSVCRT__ instead.
21075 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
21077 * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
21078 * modules/poll-tests: Add inet_pton, stdbool, sockets.
21079 * tests/test-poll.c: Use them. Use _pipe on Windows.
21081 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
21083 * modules/poll-tests: New.
21084 * tests/test-poll.c: New.
21086 2008-09-12 Eric Blake <ebb9@byu.net>
21088 frexp: test for NetBSD failure on -0.0
21089 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
21090 not all, bugs from NetBSD 3.0 have been fixed.
21091 * doc/posix-functions/frexp.texi (frexp): Document bug.
21092 Reported by Thomas Klausner.
21094 signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
21095 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
21097 Reported by Jonathan C. Patschke <jp@centtech.com>.
21099 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21101 * lib/glthread/cond.h: Use dummy implementation also if
21104 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21106 * modules/fnmatch-posix (License): Change to LGPLv2+.
21107 * modules/fnmatch-gnu (License): Likewise.
21109 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21111 * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
21113 2008-09-11 Jim Meyering <meyering@redhat.com>
21115 * users.txt: Add gtk-vnc.
21117 2008-09-08 Simon Josefsson <simon@josefsson.org>
21119 * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
21122 * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
21123 required for 16-bit and 8-bit rotates.
21124 * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
21125 rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
21126 UINT8_MAX instead of hard-coded constants.
21127 Suggested by Paul Eggert.
21129 2008-09-07 Bruno Haible <bruno@clisp.org>
21131 * tests/test-striconveh.c (main): Check behaviour when converting from
21134 Make striconveh work better with stateful encodings.
21135 * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
21136 that iconv does not increment the inptr when returning -1/EINVAL.
21138 2008-09-07 Bruno Haible <bruno@clisp.org>
21140 * build-aux/config.rpath: Update according to libtool-2.2.6.
21141 * build-aux/config.libpath: Likewise.
21143 2008-09-06 Bruno Haible <bruno@clisp.org>
21145 * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
21146 * lib/freadptr.c (freadptr): Likewise.
21147 * lib/freadseek.c (freadptrinc): Likewise.
21148 Reported by Simon Josefsson.
21150 2008-09-06 Bruno Haible <bruno@clisp.org>
21152 * modules/freadptr (License): Change to LGPLv2+.
21153 * modules/freadseek (License): Likewise.
21154 Suggested by Eric Blake.
21156 * modules/memchr2 (License): Change to LGPLv2+.
21157 Approved by Eric Blake.
21159 2008-09-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21160 Bruno Haible <bruno@clisp.org>
21162 Make gnulib-tool work with native 'sed' on AIX.
21163 * gnulib-tool (sed_noop): New variable.
21164 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
21165 func_add_or_update, func_create_testdir): Use it to initialize sed
21167 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21169 2008-09-04 Albert Chin <bug-gnulib@mlists.thewrittenword.com>
21170 Bruno Haible <bruno@clisp.org>
21172 * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
21173 also works after #include directives.
21175 2008-09-04 Ondřej Vašík <ovasik@redhat.com>
21177 getdate.y: reject an out-of-range timezone value
21178 * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
21179 the range [-24...+24]. When specified with only one or two digits,
21180 * tests/test-getdate.c: Tests for the fix.
21181 * doc/getdate.texi: Document this change.
21183 2008-09-03 Bruno Haible <bruno@clisp.org>
21185 * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
21187 2008-09-02 Simon Josefsson <simon@josefsson.org>
21189 * lib/bitrotate.h (rotl64, rotr64): Add. Suggested by Bruce Korb
21190 <bruce.korb@gmail.com> with ideas from Ben Pfaff
21191 <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
21192 Blake <ebb9@byu.net>.
21194 * tests/test-bitrotate.c: Add more test vectors.
21196 2008-09-02 Eric Blake <ebb9@byu.net>
21198 vasnprintf-posix: handle large precision via %.*d
21199 * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
21200 when handling it ourselves.
21201 * tests/test-vasnprintf-posix.c (test_function): Add test.
21202 * tests/test-snprintf-posix.h (test_function): Likewise.
21203 * tests/test-sprintf-posix.h (test_function): Likewise.
21204 * tests/test-vasprintf-posix.c (test_function): Likewise.
21205 Reported by Alain Guibert.
21207 2008-09-01 Eric Blake <ebb9@byu.net>
21209 c-stack: make configure-time check more robust
21210 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
21211 successful sigaction call.
21212 Reported by Tom G. Christensen.
21214 2008-09-01 Bruno Haible <bruno@clisp.org>
21216 New module 'findprog-lgpl'.
21217 * modules/findprog-lgpl: New file.
21218 * lib/findprog-lgpl.c: New file.
21219 * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
21220 also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
21221 to decide whether to use strdup or xstrdup, concatenated_filename or
21222 xconcatenated_filename.
21224 2008-09-01 Bruno Haible <bruno@clisp.org>
21226 Split module 'concat-filename' into 'concat-filename' (LGPL) and
21227 'xconcat-filename' (GPL).
21228 * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
21229 (License): Change to LGPLv2+.
21230 * modules/xconcat-filename: New file.
21231 * lib/concat-filename.h (concatenated_filename): Change specification.
21232 (xconcatenated_filename): New declaration.
21233 * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
21234 (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
21236 * lib/xconcat-filename.c: New file.
21237 * NEWS: Mention the change.
21238 * lib/findprog.c: Include concat-filename.h, not filename.h.
21239 (find_in_path): Use xconcatenated_filename instead of
21240 concatenated_filename.
21241 * lib/javacomp.c: Include concat-filename.h, not filename.h.
21242 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
21243 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
21244 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
21245 is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
21246 instead of concatenated_filename.
21247 * lib/javaexec.c: Include concat-filename.h, not filename.h.
21248 (execute_java_class): Use xconcatenated_filename instead of
21249 concatenated_filename.
21250 * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
21251 * modules/javacomp (Depends-on): Likewise.
21252 * modules/javaexec (Depends-on): Likewise.
21254 2008-09-01 Bruno Haible <bruno@clisp.org>
21256 Split module 'filename' into 'filename' and 'concat-filename'.
21257 * modules/filename: Keep only lib/filename.h.
21258 (License): Change to LGPLv2+.
21259 * modules/concat-filename: New file, extracted from modules/filename.
21260 * lib/filename.h (concatenated_filename): Remove declaration.
21261 * lib/concat-filename.h: New file, extracted from lib/filename.h.
21262 * lib/concat-filename.c: Include concat-filename.h.
21263 * NEWS: Mention the change.
21265 2008-09-01 Simon Josefsson <simon@josefsson.org>
21267 * lib/bitrotate.h (rotl8, rotr8): Add.
21269 * modules/bitrotate (configure.ac): Need
21270 AC_REQUIRE([AC_C_INLINE]).
21271 (Description): Mention stdint.h. Reported by Bruno Haible
21274 * lib/bitrotate.h (rotr16, rotl16): Fix mask value. Reported by
21275 Paolo Bonzini <bonzini@gnu.org>.
21277 2008-08-31 Bruno Haible <bruno@clisp.org>
21279 Assume Solaris specific bi-arch conventions on Solaris systems.
21280 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
21281 mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
21282 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
21283 work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
21284 like acl_libdirstem.
21285 (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
21287 * NEWS: Mention the change.
21288 Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
21290 2008-08-31 Jim Meyering <meyering@redhat.com>
21292 * lib/strftime.h: Add comments describing the two added arguments.
21294 remove duplicate #include directives
21295 * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
21296 * lib/putenv.c: Remove duplicate #include <stdlib.h>.
21298 2008-08-31 Bruno Haible <bruno@clisp.org>
21300 New module 'sigpipe-die'.
21301 * modules/sigpipe-die: New file.
21302 * lib/sigpipe-die.h: New file.
21303 * lib/sigpipe-die.c: New file.
21304 * MODULES.html.sh (Signal handling): Add sigpipe-die.
21306 2008-08-31 Bruno Haible <bruno@clisp.org>
21308 Don't override previously installed signal handlers.
21309 * lib/fatal-signal.c (saved_sigactions): New variable.
21310 (uninstall_handlers): Reset the signal to the saved handler, not
21311 to SIG_DFL (except when ignored).
21312 (install_handlers): Save the previous handlers.
21314 2008-08-30 Bruno Haible <bruno@clisp.org>
21316 * gnulib-tool (func_reset_sigpipe): New function.
21317 (func_get_automake_snippet, func_modules_transitive_closure,
21318 func_import): Invoke it before a join command that reads from stdin,
21319 to avoid "echo: write error: Broken pipe" error messages on stderr.
21320 Reported by Sam Steingold <sds@gnu.org>.
21322 2008-08-30 Bruno Haible <bruno@clisp.org>
21324 * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
21325 Code copied from m4/open.m4.
21326 * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
21327 access and the filename ends in a slash. Code copied from lib/open.c.
21328 * doc/posix-functions/fopen.texi: Document bug with trailing slash.
21329 * tests/test-fopen.c (main): Check against bug with trailing slash.
21331 2008-08-29 Bruno Haible <bruno@clisp.org>
21333 Avoid some "gcc -pedantic" warnings.
21334 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
21335 * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
21336 * lib/dirent.in.h: Likewise.
21337 * lib/fcntl.in.h: Likewise.
21338 * lib/float.in.h: Likewise.
21339 * lib/iconv.in.h: Likewise.
21340 * lib/inttypes.in.h: Likewise.
21341 * lib/locale.in.h: Likewise.
21342 * lib/math.in.h: Likewise.
21343 * lib/netinet_in.in.h: Likewise.
21344 * lib/search.in.h: Likewise.
21345 * lib/signal.in.h: Likewise.
21346 * lib/stdarg.in.h: Likewise.
21347 * lib/stdint.in.h: Likewise.
21348 * lib/stdio.in.h: Likewise.
21349 * lib/stdlib.in.h: Likewise.
21350 * lib/string.in.h: Likewise.
21351 * lib/strings.in.h: Likewise.
21352 * lib/sys_select.in.h: Likewise.
21353 * lib/sys_socket.in.h: Likewise.
21354 * lib/sys_stat.in.h: Likewise.
21355 * lib/sys_time.in.h: Likewise.
21356 * lib/sysexits.in.h: Likewise.
21357 * lib/time.in.h: Likewise.
21358 * lib/unistd.in.h: Likewise.
21359 * lib/wchar.in.h: Likewise.
21360 * lib/wctype.in.h: Likewise.
21361 * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
21362 * modules/fchdir (Makefile.am): Likewise.
21363 * modules/fcntl (Makefile.am): Likewise.
21364 * modules/float (Makefile.am): Likewise.
21365 * modules/iconv_open (Makefile.am): Likewise.
21366 * modules/inttypes (Makefile.am): Likewise.
21367 * modules/locale (Makefile.am): Likewise.
21368 * modules/math (Makefile.am): Likewise.
21369 * modules/netinet_in (Makefile.am): Likewise.
21370 * modules/search (Makefile.am): Likewise.
21371 * modules/signal (Makefile.am): Likewise.
21372 * modules/stdarg (Makefile.am): Likewise.
21373 * modules/stdint (Makefile.am): Likewise.
21374 * modules/stdio (Makefile.am): Likewise.
21375 * modules/stdlib (Makefile.am): Likewise.
21376 * modules/string (Makefile.am): Likewise.
21377 * modules/strings (Makefile.am): Likewise.
21378 * modules/sys_select (Makefile.am): Likewise.
21379 * modules/sys_socket (Makefile.am): Likewise.
21380 * modules/sys_stat (Makefile.am): Likewise.
21381 * modules/sys_time (Makefile.am): Likewise.
21382 * modules/sysexits (Makefile.am): Likewise.
21383 * modules/time (Makefile.am): Likewise.
21384 * modules/unistd (Makefile.am): Likewise.
21385 * modules/wchar (Makefile.am): Likewise.
21386 * modules/wctype (Makefile.am): Likewise.
21387 Reported by Reuben Thomas <rrt@sc3d.org>.
21389 2008-08-29 Bruno Haible <bruno@clisp.org>
21391 * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
21394 2008-08-29 Simon Josefsson <simon@josefsson.org>
21396 * MODULES.html.sh (Misc): Add bitrotate.
21398 * modules/bitrotate: New file.
21400 * lib/bitrotate.h: New file.
21402 * modules/bitrotate-tests: New file.
21404 * tests/test-bitrotate.c: New file.
21406 * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
21407 on the bitrotate module.
21409 * lib/arctwo.c: Use new bitrotate module.
21411 2008-08-29 Jim Meyering <meyering@redhat.com>
21413 bootstrap: merge changes from coreutils
21414 * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
21415 of copied files. Remove a kludge, now that this is fixed.
21416 * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
21417 * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
21418 * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
21420 2008-08-29 Bruno Haible <bruno@clisp.org>
21422 * MODULES.html.sh: Remove --cvs-urls option.
21424 2008-08-28 Jose E. Marchesi <jemarch@gnu.org> (tiny change)
21426 maint.mk: adjust to file name change
21427 * top/maint.mk: s/Makefile.cfg/cfg.mk/.
21429 2008-08-28 Jim Meyering <meyering@redhat.com>
21431 * modules/getndelim2 (License): Relicense to LGPLv2+.
21432 Approved by Richard Stallman for the version of 1995, and by
21433 Paul Eggert, Bruno Haible, Eric Blake for their contributions.
21435 2008-08-27 Paolo Bonzini <bonzini@gnu.org>
21437 * lib/getdelim.c (flockfile, funlockfile): Make all of them
21438 dummy if one is not available. Do not touch them if
21439 USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
21440 (getc_maybe_unlocked): New.
21441 * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
21443 2008-08-26 Eric Blake <ebb9@byu.net>
21445 doc/INSTALL: resync from autoconf
21446 * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
21447 (INSTALL_PRELUDE): Delete; this is done more efficiently by
21449 * install.texi [!autoconf]: ...here. Resync from autoconf.
21450 * INSTALL: Regenerate.
21451 * INSTALL.ISO: New file.
21452 * INSTALL.UTF-8: Likewise.
21454 2008-08-26 Jim Meyering <meyering@redhat.com>
21456 GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
21457 * top/GNUmakefile (_is-dist-target, _is-install-target): Make
21458 these definitions conditional, so that they may be overridden, too.
21460 2008-08-26 Bruno Haible <bruno@clisp.org>
21462 Generate INSTALL file variants with prettier quotes.
21463 * doc/Makefile (INSTALL_PRELUDE): New macro.
21465 (INSTALL.ISO, INSTALL.UTF-8): New rules.
21467 2008-08-26 Bruno Haible <bruno@clisp.org>
21469 Run makeinfo in an English locale.
21470 * doc/Makefile (MAKEINFO): New variable.
21472 2008-08-26 Bruno Haible <bruno@clisp.org>
21474 * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
21475 Suggested by Eric Blake.
21477 2008-08-25 Bruno Haible <bruno@clisp.org>
21479 * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
21481 2008-08-25 Eric Blake <ebb9@byu.net>
21483 c-stack: test that stack overflow can be caught
21484 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
21485 that platform allows handling stack overflow; at least OS/2 EMX
21486 has sigaltstack, but crashes before transferring control to
21487 handler on stack overflow.
21488 * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
21489 check for HAVE_STACK_OVERFLOW_HANDLING.
21490 Reported by Elbert Pol.
21492 2008-08-25 Bruno Haible <bruno@clisp.org>
21494 * doc/posix-functions/strftime.texi: Fix description of strftime
21497 2008-08-24 Bruno Haible <bruno@clisp.org>
21499 * tests/uniwidth/test-uc_width2.c: New file.
21500 * tests/uniwidth/test-uc_width2.sh: New file.
21501 * modules/uniwidth/width-tests (Files): Add the new files.
21502 (TESTS): Add uniwidth/test-uc_width2.sh.
21503 (TESTS_ENVIRONMENT): New variable.
21504 (check_PROGRAMS): Add test-uc_width2.
21505 (test_uc_width2_SOURCES): New variable.
21507 Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
21508 * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
21510 Reported by Alexander V. Lukyanov <lav@netis.ru>.
21512 2008-08-22 Eric Blake <ebb9@byu.net>
21514 test-lock, test-tls: mention why a test is skipped
21515 * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
21517 * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
21519 count-one-bits: relax license
21520 * modules/count-one-bits (License): Relicense to LGPLv2+.
21521 Suggested by Ludovic Courtès, approved by Ben Pfaff.
21523 2008-08-22 Andreas Schwab <schwab@suse.de>
21525 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
21526 Remove spurious space in assignment.
21528 2008-08-21 Simon Josefsson <simon@josefsson.org>
21530 * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC. Reported by
21531 Paul Eggert <eggert@CS.UCLA.EDU>.
21533 2008-08-20 Paolo Bonzini <bonzini@gnu.org>
21535 * modules/gettext: Add m4/threadlib.m4.
21537 2008-08-19 Eric Blake <ebb9@byu.net>
21539 test-c-stack: fix compilation failure on FreeBSD 5.0
21540 * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
21541 headers before <sys/resource.h>.
21542 * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
21544 Reported by Nelson H. F. Beebe.
21546 strverscmp: migrate from "strverscmp.h" to <string.h>
21547 * modules/string (Makefile.am): Add new hooks.
21548 * modules/strverscmp (Files): Remove strverscmp.h.
21549 (Depends-on): Add string.
21550 (configure.ac): Add indicator.
21551 (Include): Mention new header.
21552 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
21554 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
21556 * lib/strverscmp.h: Delete.
21557 * lib/string.in.h (strverscmp): Provide declaration, when needed.
21558 * tests/test-strverscmp.c (includes): Adjust client.
21559 * lib/check-version.c (includes): Likewise.
21560 * NEWS: Document the change.
21562 strverscmp: add unit test
21563 * modules/strverscmp-tests: New file.
21564 * tests/test-strverscmp.c: Likewise.
21566 2008-08-19 Simon Josefsson <simon@josefsson.org>
21568 * lib/gc-gnulib.c: Indentation cleanup. Add some comments
21569 regarding Windows crypto stuff, from Mono.
21571 2008-08-19 Adam Strzelecki <ono@java.pl> (tiny change)
21573 * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT. Try to use Intel CSP
21574 if present, for intel RND. Return error on failures.
21576 2008-08-18 Ben Pfaff <blp@gnu.org>
21578 gitlog-to-changelog: give better diagnostic for failed pipe-open
21579 * build-aux/gitlog-to-changelog: Improve error message: suggest
21580 that the version of Git may be too old.
21582 2008-08-18 Simon Josefsson <simon@josefsson.org>
21584 * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity. Use
21585 ISO 8601 format. Suggested by Greg Troxel <gdt@ir.bbn.com>.
21587 2008-08-18 Bruno Haible <bruno@clisp.org>
21589 * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
21592 2008-08-18 Bruno Haible <bruno@clisp.org>
21594 * lib/glthread/threadlib.c: Include <pthread.h>.
21596 2008-08-18 Bruno Haible <bruno@clisp.org>
21598 * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
21599 glthread_recursive_lock_* macros.
21600 * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
21603 2008-08-18 Bruno Haible <bruno@clisp.org>
21605 * lib/glthread/thread.c: Avoid forcing a context switch right after
21608 2008-08-17 Bruno Haible <bruno@clisp.org>
21610 * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
21611 * lib/glthread/thread.h: Provide Win32 specific implementation.
21612 * modules/thread (Files): Add lib/glthread/thread.c.
21613 (Depends-on): Add lock.
21614 (Makefile.am): Add glthread/thread.c to lib_SOURCES.
21616 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21618 New module 'yield'.
21619 * modules/yield: New file.
21620 * lib/glthread/yield.h: New file.
21621 * m4/yield.m4: New file.
21622 * MODULES.html.sh (Multithreading): Add yield.
21624 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21626 New module 'thread'.
21627 * modules/thread: New file.
21628 * lib/glthread/thread.h: New file.
21629 * m4/thread.m4: New file.
21630 * MODULES.html.sh (Multithreading): Add thread.
21632 2008-08-17 Bruno Haible <bruno@clisp.org>
21634 * lib/glthread/lock.h: Include <stdlib.h> always.
21635 * lib/glthread/tls.h: Likewise.
21636 * lib/glthread/cond.h: Likewise.
21638 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21641 * modules/cond: New file.
21642 * lib/glthread/cond.h: New file.
21643 * lib/glthread/cond.c: New file.
21644 * m4/cond.m4: New file.
21645 * MODULES.html.sh (Multithreading): Add cond.
21647 2008-08-16 Eric Blake <ebb9@byu.net>
21649 c-stack: fix regression on Irix 5.3 from 2008-06-21
21650 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
21652 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
21653 (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
21654 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
21655 * modules/signal (Makefile.am): Use the value.
21656 * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
21657 && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
21658 * doc/posix-headers/signal.texi (signal.h): Document this
21660 * doc/posix-functions/sigaction.texi (sigaction): Likewise.
21661 Reported by Tom G. Christensen.
21663 2008-08-17 Bruno Haible <bruno@clisp.org>
21665 New module 'threadlib'.
21666 * modules/threadlib: New file.
21667 * lib/glthread/threadlib.c: New file, extracted from
21668 lib/glthread/lock.c.
21669 * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
21671 * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
21672 gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
21673 * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
21675 (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
21676 (gl_DISABLE_THREADS): Remove macro.
21677 * modules/lock (Files): Remove build-aux/config.rpath.
21678 (Depends-on): Remove havelib. Add threadlib.
21679 (configure.ac-early): Remove section.
21680 * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
21681 * modules/tls (Depends-on): Remove lock. Add threadlib.
21682 (Link): New section, copied from threadlib.
21683 * MODULES.html.sh (Multithreading): Add threadlib.
21685 2008-08-14 Bruno Haible <bruno@clisp.org>
21687 * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
21688 glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
21689 glthread_rwlock_unlock, glthread_rwlock_destroy,
21690 glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
21691 glthread_recursive_lock_destroy): Define as macros always.
21692 * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
21693 glthread_lock_lock.
21694 (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
21695 (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
21696 (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
21697 (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
21698 (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
21699 (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
21700 (glthread_recursive_lock_lock_func): Renamed from
21701 glthread_recursive_lock_lock.
21702 (glthread_recursive_lock_unlock_func): Renamed from
21703 glthread_recursive_lock_unlock.
21704 (glthread_recursive_lock_destroy_func): Renamed from
21705 glthread_recursive_lock_destroy.
21707 2008-08-14 Bruno Haible <bruno@clisp.org>
21709 * lib/glthread/lock.h: Renamed from lib/lock.h.
21710 * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
21711 * lib/glthread/tls.h: Renamed from lib/tls.h.
21712 * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
21713 * lib/fstrcmp.c: Update includes.
21714 * lib/strsignal.c: Update includes.
21715 * modules/lock (Files, Makefile.am): Update.
21716 (Include): Change to "glthread/lock.h".
21717 * modules/tls (Files, Makefile.am): Update.
21718 (Include): Change to "glthread/tls.h".
21719 * tests/test-lock.c: Update includes.
21720 * tests/test-tls.c: Update includes.
21721 * NEWS: Mention the renamed header files.
21723 2008-08-11 Jim Meyering <meyering@redhat.com>
21725 * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
21727 2008-08-11 Eric Blake <ebb9@byu.net>
21729 test-c-stack: avoid C99-ism
21730 * tests/test-c-stack.c (main): Fix whitespace, move declaration
21732 Reported by Alain Guibert.
21734 2008-08-10 Jim Meyering <meyering@redhat.com>
21736 ensure that return value of uinttostr et al are not ignored
21737 * lib/inttostr.h (__GNUC_PREREQ): Define.
21738 (__attribute_warn_unused_result__): Define.
21739 (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
21741 2008-08-07 Paolo Bonzini <bonzini@gnu.org>
21743 * lib/lock.c (glthread_recursive_lock_init_multithreaded)
21744 [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
21746 2008-08-07 Jim Meyering <meyering@redhat.com>
21748 * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
21750 * modules/mkstemp (License): Relicense under LGPLv2+.
21751 * modules/tempname (License): Likewise.
21753 2008-08-06 Bruno Haible <bruno@clisp.org>
21755 * lib/poll.c (poll): Further micro-optimization.
21757 2008-08-06 Jim Meyering <meyering@redhat.com>
21759 inet_pton.c: use locale-independent tolower
21760 * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
21761 (inet_pton6): Use c_tolower rather than tolower.
21762 * modules/inet_pton (Depends-on): Add c-ctype.
21764 2008-08-06 Paolo Bonzini <bonzini@gnu.org>
21766 * lib/poll.c (poll): Avoid division when timeout is 0, cache
21767 _SC_OPEN_MAX, avoid repeated access to errno. Check for nfd < 0.
21769 2008-08-06 Jim Meyering <meyering@redhat.com>
21771 * modules/inet_pton (License): Relicense under LGPLv2+.
21773 2008-08-03 Bruno Haible <bruno@clisp.org>
21775 Additional non-aborting API for lock and tls.
21776 * lib/lock.h: Include <errno.h>.
21777 (glthread_lock_init): New macro/function.
21778 (gl_lock_init): Define as wrapper around glthread_lock_init.
21779 (glthread_lock_lock): New macro/function.
21780 (gl_lock_lock): Define as wrapper around glthread_lock_lock.
21781 (glthread_lock_unlock): New macro/function.
21782 (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
21783 (glthread_lock_destroy): New macro/function.
21784 (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
21785 (glthread_rwlock_init): New macro/function.
21786 (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
21787 (glthread_rwlock_rdlock): New macro/function.
21788 (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
21789 (glthread_rwlock_wrlock): New macro/function.
21790 (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
21791 (glthread_rwlock_unlock): New macro/function.
21792 (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
21793 (glthread_rwlock_destroy): New macro/function.
21794 (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
21795 (glthread_recursive_lock_init): New macro/function.
21796 (gl_recursive_lock_init): Define as wrapper around
21797 glthread_recursive_lock_init.
21798 (glthread_recursive_lock_lock): New macro/function.
21799 (gl_recursive_lock_lock): Define as wrapper around
21800 glthread_recursive_lock_lock.
21801 (glthread_recursive_lock_unlock): New macro/function.
21802 (gl_recursive_lock_unlock): Define as wrapper around
21803 glthread_recursive_lock_unlock.
21804 (glthread_recursive_lock_destroy): New macro/function.
21805 (gl_recursive_lock_destroy): Define as wrapper around
21806 glthread_recursive_lock_destroy.
21807 (glthread_once): New macro/function.
21808 (gl_once): Define as wrapper around glthread_once.
21809 Update function declarations.
21810 * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
21811 glthread_rwlock_init. Return error code.
21812 (glthread_rwlock_rdlock_multithreaded): Renamed from
21813 glthread_rwlock_rdlock. Return error code.
21814 (glthread_rwlock_wrlock_multithreaded): Renamed from
21815 glthread_rwlock_wrlock. Return error code.
21816 (glthread_rwlock_unlock_multithreaded): Renamed from
21817 glthread_rwlock_unlock. Return error code.
21818 (glthread_rwlock_destroy_multithreaded): Renamed from
21819 glthread_rwlock_destroy. Return error code.
21820 (glthread_recursive_lock_init_multithreaded): Renamed from
21821 glthread_recursive_lock_init. Return error code.
21822 (glthread_recursive_lock_lock_multithreaded): Renamed from
21823 glthread_recursive_lock_lock. Return error code.
21824 (glthread_recursive_lock_unlock_multithreaded): Renamed from
21825 glthread_recursive_lock_unlock. Return error code.
21826 (glthread_recursive_lock_destroy_multithreaded): Renamed from
21827 glthread_recursive_lock_destroy. Return error code.
21828 (glthread_once_call): Make static.
21829 (glthread_once_multithreaded): Renamed from glthread_once.
21830 * lib/tls.h: Include <errno.h>.
21831 (glthread_tls_key_init): New macro/function.
21832 (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
21833 (glthread_tls_set): New macro/function.
21834 (gl_tls_set): Define as wrapper around glthread_tls_set.
21835 (glthread_tls_key_destroy): New macro/function.
21836 (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
21837 Update function declarations.
21838 * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
21840 Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21842 2008-08-04 Eric Blake <ebb9@byu.net>
21844 gnumakefile: use space, not TAB, outside of targets
21845 * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
21847 2008-08-02 Jim Meyering <meyering@redhat.com>
21849 getdate.y: avoid locale-dependent date parsing failure
21850 In Turkish locales, getdate would fail to recognize keywords
21851 containing a lowercase "i". The solution is not to rely on
21852 locale-sensitive case-conversion.
21853 * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
21854 (lookup_word): Use c_toupper in place of toupper.
21855 (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
21856 Reported by Vefa Bicakci <bicave@superonline.com> in
21857 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
21858 * modules/getdate (Depends-on): Add c-ctype.
21860 2008-08-02 Bruno Haible <bruno@clisp.org>
21862 * gnulib-tool (func_import): When updating or creating a .gitignore
21863 file, prepend each added line with a slash, and ignore leading slashes
21864 from the existing lines.
21865 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
21867 2008-08-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21869 Portability fix for GNU make 3.79.1.
21870 * top/GNUmakefile: Avoid 'else COND', which older GNU make
21871 versions do not understand.
21873 2008-08-01 Bruno Haible <bruno@clisp.org>
21875 Work around bug of HP-UX 10.20 cc with -0.0 literal.
21876 * tests/test-isnanf.h (zero): New variable.
21877 (main): Avoid literal -0.0f.
21878 * tests/test-isnand.h (zero): New variable.
21879 (main): Avoid literal -0.0.
21880 * tests/test-isnanl.h (zero): New variable.
21881 (main): Avoid literal -0.0L.
21882 * tests/test-isnan.c (zerof, zerod, zerol): New variables.
21883 (test_float, test_double, test_long_double): Avoid literals -0.0f,
21885 * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
21886 (test_signbitd): Avoid literal -0.0.
21887 (test_signbitl): Avoid literal -0.0L.
21888 * tests/test-ceilf1.c (zero): New variable.
21889 (main): Avoid literal -0.0f.
21890 * tests/test-ceill.c (zero): New variable.
21891 (main): Avoid literal -0.0L.
21892 * tests/test-floorf1.c (zero): New variable.
21893 (main): Avoid literal -0.0f.
21894 * tests/test-floorl.c (zero): New variable.
21895 (main): Avoid literal -0.0L.
21896 * tests/test-roundf1.c (zero): New variable.
21897 (main): Avoid literal -0.0f.
21898 * tests/test-round1.c (zero): New variable.
21899 (main): Avoid literal -0.0.
21900 * tests/test-roundl.c (zero): New variable.
21901 (main): Avoid literal -0.0L.
21902 * tests/test-truncf1.c (zero): New variable.
21903 (main): Avoid literal -0.0f.
21904 * tests/test-trunc1.c (zero): New variable.
21905 (main): Avoid literal -0.0.
21906 * tests/test-truncl.c (zero): New variable.
21907 (main): Avoid literal -0.0L.
21908 * tests/test-frexp.c (zero): New variable.
21909 (main): Avoid literal -0.0.
21910 * tests/test-frexpl.c (zero): New variable.
21911 (main): Avoid literal -0.0L.
21912 * tests/test-ldexpl.c (zero): New variable.
21913 (main): Avoid literal -0.0L.
21914 * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
21915 (zerod, zerol): New variables.
21916 (test_function): Avoid literals -0.0, -0.0L.
21917 * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
21918 (zerod, zerol): New variables.
21919 (test_function): Avoid literals -0.0, -0.0L.
21920 * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
21921 (zerod, zerol): New variables.
21922 (test_function): Avoid literals -0.0, -0.0L.
21923 * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
21924 (zerod, zerol): New variables.
21925 (test_function): Avoid literals -0.0, -0.0L.
21926 * tests/test-strtod.c (zero): New variable.
21927 (main): Avoid literal -0.0.
21928 Reported by Jonathan C. Patschke <jp@centtech.com>.
21930 2008-07-31 Jim Meyering <meyering@redhat.com>
21932 sha256.h: correct definition of SHA224_DIGEST_SIZE
21933 * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
21934 Reported by Paulie Pena IV <paulie4@gmail.com>.
21935 Define as 224 / 8, rather than as a literal.
21936 (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
21937 * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
21938 (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
21940 2008-07-31 Bruno Haible <bruno@clisp.org>
21942 * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
21943 on HP-UX 10.20 with "cc -Ae". Fix second conditional.
21944 Reported by Jonathan Patschke <jp@centtech.com>.
21946 2008-07-31 Bruno Haible <bruno@clisp.org>
21948 * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
21949 Reported by Paolo Bonzini <bonzini@gnu.org>.
21951 2008-07-30 Eric Blake <ebb9@byu.net>
21953 test-strtod: allow compilation without -lm
21954 * tests/test-strtod.c (main): Avoid link dependence on fabs.
21955 Reported by Dennis Clarke <blastwave@gmail.com>.
21957 2008-07-28 Jim Meyering <meyering@redhat.com>
21959 bootstrap: work also when there are no .po files in po/
21960 * build-aux/bootstrap (update_po_files): Complete the change
21961 that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
21963 2008-07-27 Jim Meyering <meyering@redhat.com>
21965 * users.txt: Add zile.
21967 2008-07-26 Ben Pfaff <blp@gnu.org>
21969 Add missing dependencies on new m4/exponent[fdl].m4 files.
21970 * modules/isnanf-nolibm: Add m4/exponentf.m4.
21971 * modules/isnand-nolibm: Add m4/exponentd.m4.
21972 * modules/isnanl-nolibm: Add m4/exponentl.m4.
21973 * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
21974 m4/isnan[fdl].m4, because the macros actually used moved.
21975 Reported by Jim Meyering.
21977 2008-07-14 Ben Pfaff <blp@gnu.org>
21980 * lib/isinf.c: New file.
21981 * lib/math.in.h: Define isinf macro if we have decided to replace
21983 * m4/isinf.m4: New file.
21984 * m4/math_h.m4: Initialize and substitute variables for isinf
21986 * modules/isinf: New file.
21987 * modules/isinf-tests: New file.
21988 * modules/math: Add substitutions for new module.
21989 * tests/test-isinf.c: New file.
21990 * doc/posix-functions/isinf.texi: Mention new module.
21991 * MODULES.html.sh: Mention new module.
21993 2008-07-14 Ben Pfaff <blp@gnu.org>
21995 Factor out some macros for use by additional modules.
21996 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
21998 * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
22000 * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
22002 * m4/exponentf.m4: New file.
22003 * m4/exponentd.m4: New file.
22004 * m4/exponentl.m4: New file.
22005 * modules/isnanf: Use new file m4/exponentf.m4.
22006 * modules/isnand: Use new file m4/exponentd.m4.
22007 * modules/isnanl: Use new file m4/exponentl.m4.
22009 2008-07-23 Ulrich Drepper <drepper@redhat.com>
22011 mktime.c: normalize tp->tm_isdst value to -1/0/1.
22012 * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
22013 Reported by Michael Ringe <Michael.Ringe@gmx.de> in
22014 <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
22016 * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
22017 readlink on platforms without PATH_MAX.
22019 2008-07-21 Eric Blake <ebb9@byu.net>
22021 Warn, not fail, on stale version.
22022 * top/GNUmakefile (_curr-ver): Tone down previous patch.
22024 Don't allow installation with stale devel version number.
22025 * top/GNUmakefile (_is-install-target): New macro.
22026 (_curr-ver): Forbid installation with stale version number.
22028 2008-07-20 Bruno Haible <bruno@clisp.org>
22030 * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
22032 * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
22034 2008-07-20 Bruno Haible <bruno@clisp.org>
22036 * lib/c-stack.h (c_stack_action): Add documentation.
22037 * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
22039 2008-07-20 Bruno Haible <bruno@clisp.org>
22041 * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
22042 * modules/readlink (License): Likewise.
22044 2008-07-17 Eric Blake <ebb9@byu.net>
22046 * modules/c-stack (Link): Fix typo.
22048 Make c-stack use libsigsegv, when available.
22049 * modules/c-stack (Depends-on): Add libsigsegv.
22050 * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
22052 * lib/c-stack.c (SIGSTKSZ): Define fallback.
22053 (segv_handler, overflow_handler, c_stack_action)
22054 [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
22055 implementation when libsigsegv is available, but only when using
22056 the library is necessary.
22057 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
22058 comment, explaining why XSI check fails on Linux.
22059 (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
22060 * tests/test-c-stack2.sh: Tweak skip message.
22061 * NEWS: Document new link-time requirements.
22063 2008-07-16 Eric Blake <ebb9@byu.net>
22065 c-stack: Expose false positives when not using libsigsegv.
22066 * modules/c-stack-tests (Files): Expand test.
22067 * tests/test-c-stack.c (main): Add means to conditionally trigger
22068 non-overflow SIGSEGV.
22069 * tests/test-c-stack2.sh: New file.
22071 2008-07-14 Bruno Haible <bruno@clisp.org>
22073 * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
22074 Reported by Eric Blake.
22076 2008-07-14 Sam Steingold <sds@gnu.org>
22077 Bruno Haible <bruno@clisp.org>
22079 New module libsigsegv.
22080 * modules/libsigsegv: New file.
22081 * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
22083 * MODULES.html.sh (Signal handling): New section.
22085 2008-07-14 Bruno Haible <bruno@clisp.org>
22087 * modules/unictype/ctype-* (Description): Add the word "function".
22088 Improves the resulting doc in MODULES.html.
22090 2008-07-12 Ben Pfaff <blp@gnu.org>
22092 Add longlong module.
22093 * modules/longlong: New file.
22095 2008-07-12 Bruno Haible <bruno@clisp.org>
22097 * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
22100 2008-07-10 Ben Pfaff <blp@gnu.org>
22103 * doc/posix-functions/isnan.texi: Mention new module.
22104 * lib/math.in.h: Define isnan macro if we have decided to replace
22106 * m4/isnan.m4: New file.
22107 * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
22108 macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
22110 (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
22112 * m4/math_h.m4: Initialize and substitute variables for isnan
22114 * modules/isnan: New file.
22115 * modules/isnan-tests: New file.
22116 * modules/math: Add substitutions for new module.
22117 * tests/test-isnan.c: New file.
22118 * MODULES.html.sh: Mention new module.
22120 2008-07-10 Ben Pfaff <blp@gnu.org>
22123 * lib/isnanf.m4: New file.
22124 * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
22125 (gl_HAVE_ISNANF_IN_LIBM): New macro.
22126 (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
22127 gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
22128 * modules/isnanf: New file.
22129 * modules/isnanf-tests: New file.
22130 * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
22132 * tests/test-isnanf-nolibm.c: factored most of its contents into
22133 new file tests/test-isnanf.h.
22134 * tests/test-isnanf.h: New file.
22135 * tests/test-isnanf.c: New file.
22136 * MODULES.html.sh: Mention new module.
22137 * doc/glibc-functions/isnanf.texi: Mention new module.
22139 2008-07-10 Ben Pfaff <blp@gnu.org>
22142 * lib/isnand.h: New file.
22143 * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
22144 (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
22145 gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
22146 functionality also.
22147 (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
22148 gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
22149 (gl_HAVE_ISNAND_IN_LIBM): New macro.
22150 * modules/isnand: New file.
22151 * modules/isnand-tests: New file.
22152 * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
22154 * tests/test-isnand-nolibm.c: factored most of its contents into
22155 new file tests/test-isnand.h.
22156 * tests/test-isnand.h: New file.
22157 * tests/test-isnand.c: New file.
22158 * MODULES.html.sh: Mention new module.
22160 2008-07-10 Ben Pfaff <blp@gnu.org>
22162 * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
22163 * lib/isnand.h: Rename lib/isnand-nolibm.h.
22164 * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
22165 * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
22166 * modules/isnanf-nolibm: Update references to renamed files.
22167 * modules/isnand-nolibm: Likewise.
22168 * modules/isnanf-nolibm-tests: Likewise.
22169 * modules/isnand-nolibm-tests: Likewise.
22170 * lib/frexp.c: Likewise.
22171 * lib/isfinite.c: Likewise.
22172 * lib/signbitd.c: Likewise.
22173 * lib/signbitf.c: Likewise.
22174 * lib/vasnprintf.c: Likewise.
22175 * tests/test-ceilf1.c: Likewise.
22176 * tests/test-ceilf2.c: Likewise.
22177 * tests/test-floorf1.c: Likewise.
22178 * tests/test-floorf2.c: Likewise.
22179 * tests/test-frexp.c: Likewise.
22180 * tests/test-round1.c: Likewise.
22181 * tests/test-round2.c: Likewise.
22182 * tests/test-roundf1.c: Likewise.
22183 * tests/test-strtod.c: Likewise.
22184 * tests/test-trunc1.c: Likewise.
22185 * tests/test-trunc2.c: Likewise.
22186 * tests/test-truncf1.c: Likewise.
22187 * tests/test-truncf2.c: Likewise.
22188 * NEWS: Mention the renamed header files.
22190 2008-07-11 Jim Meyering <meyering@redhat.com>
22192 vc-list-files: make the last-resort awk code more portable
22193 * build-aux/vc-list-files: Don't rely on awk's "sub" command.
22194 /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
22195 does not support it.
22197 2008-07-10 Eric Blake <ebb9@byu.net>
22199 Work with tar's bootstrap.
22200 * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
22201 where LIBSOURCES_DIR contains .#bootmp but must not be treated as
22204 2008-07-09 Jim Meyering <meyering@redhat.com>
22206 posix-shell.m4: fix typo that made this test malfunction
22207 * m4/posix-shell.m4: Remove capitalization in variable name.
22209 2008-07-08 Bruno Haible <bruno@clisp.org>
22211 * m4/onceonly.m4: Update comments.
22212 Reported by Ben Pfaff <blp@cs.stanford.edu>.
22214 2008-07-04 Jim Meyering <meyering@redhat.com>
22216 * users.txt: Add vc-dwim.
22217 (bison, coreutils): Use the gitweb URL.
22219 2008-07-03 Jim Meyering <meyering@redhat.com>
22221 * users.txt: Add libffcall. From Sam Steingold.
22223 2008-07-03 Ondřej Vašík <ovasik@redhat.com>
22225 getdate.y: do not ignore TZ with relative day, month or year offset
22226 * lib/getdate.y (get_date): Move the tz-handling block to follow the
22227 relative-date-handling, since otherwise, the latter would clobber the
22228 sole output (an updated Start value) of the tz-handling block.
22229 * tests/test-getdate.c: Tests for the fix
22231 2008-07-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22233 Recognize 'foo_LIBRARIES += libgnu.a'.
22234 * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
22235 makefile snippet has already specified an installation location,
22238 2008-07-02 Ondřej Vašík <ovasik@redhat.com>
22240 getdate.y: factor out common actions
22241 * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
22242 Use them in place of open-coded actions.
22244 2008-07-01 Simon Josefsson <simon@josefsson.org>
22246 Add self-test for getdate module.
22247 * modules/getdate-tests: New file.
22248 * tests/test-getdate.c: New file.
22250 2008-06-29 Bruno Haible <bruno@clisp.org>
22252 * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
22254 Reported by Sylvain Beucler <beuc@beuc.net>.
22256 2008-06-29 Bruno Haible <bruno@clisp.org>
22258 * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
22259 * m4/gnulib-tool.m4: Update to match current gnulib-tool.
22261 2008-06-29 Bruno Haible <bruno@clisp.org>
22263 * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
22265 Reported by Sylvain Beucler <beuc@beuc.net>.
22267 2008-06-26 Jim Meyering <meyering@redhat.com>
22269 make several modules depend on the "open" module
22270 This provides slightly increased consistency when opening-for-write
22271 the name of a non-directory spelled with a trailing slash.
22272 * modules/chdir-safer: Likewise.
22273 * modules/chown: Likewise.
22274 * modules/clean-temp: Likewise.
22275 * modules/copy-file: Likewise.
22276 * modules/fchdir: Likewise.
22277 * modules/fcntl-safer: Likewise.
22278 * modules/pipe: Likewise.
22279 * modules/utime: Likewise.
22280 Prompted by Eric Blake and Bruno Haible.
22282 2008-06-24 Andreas Schwab <schwab@suse.de>
22284 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
22285 literals can be used as initializers for global variables.
22287 2008-06-23 Eric Blake <ebb9@byu.net>
22289 Make gnulib-cache.m4 easier to diff.
22290 * gnulib-tool (func_import): Allow newlines when reading cached
22291 gl_MODULES, and generate newlines when creating gnulib-cache.m4.
22293 2008-06-23 Bruno Haible <bruno@clisp.org>
22295 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
22296 (gl_PREREQ_SIGPROCMASK): Don't invoke it.
22297 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
22298 m4/signalblocking.m4.
22299 (gl_PREREQ_SIGACTION): Don't invoke it.
22300 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
22301 gl_PREREQ_SIG_HANDLER_H.
22302 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22303 Don't check for sigaction here.
22305 2008-06-23 Bruno Haible <bruno@clisp.org>
22307 * lib/fatal-signal.c (fatal_signal_handler): Update comment.
22308 (install_handlers): Don't set the SA_RESETHAND flag.
22310 2008-06-23 Bruno Haible <bruno@clisp.org>
22312 * m4/sigaction.m4: Comment fixes.
22313 * lib/signal.in.h: Likewise.
22315 2008-06-23 Eric Blake <ebb9@byu.net>
22318 * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
22320 Avoid SA_ namespace.
22321 * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
22322 Reported by Ralf Wildenhues.
22324 Avoid test failure due to SA_RESTORER.
22325 * tests/test-sigaction.c (SA_MASK): New macro.
22326 (main): Avoid failing due to extension flags being set.
22327 Reported by Jim Meyering.
22329 Revert use of sig-handler.h in sigprocmask.c.
22330 * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
22331 it requires the existence of struct sigaction.
22332 * lib/sigprocmask.c (handler_t): Restore typedef.
22333 (rpl_signal, old_handlers): Use local type.
22335 2008-06-22 Bruno Haible <bruno@clisp.org>
22337 * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
22339 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22341 2008-06-22 Bruno Haible <bruno@clisp.org>
22343 * doc/posix-functions/siginterrupt.texi: Move note.
22345 * lib/signal.in.h (SA_RESTART): New macro.
22346 * lib/sigaction.c: Update comment.
22348 * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
22350 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
22351 (gl_PREREQ_SIGPROCMASK): Invoke it.
22352 * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
22354 * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
22356 * lib/sigprocmask.c: Update a comment.
22358 2008-06-21 Eric Blake <ebb9@byu.net>
22360 Use sigaction module rather than signal().
22361 * modules/c-stack (Depends-on): Add sigaction.
22362 * modules/fatal-signal (Depends-on): Likewise.
22363 * modules/nanosleep (Depends-on): Likewise.
22364 * modules/sigprocmask (Files): Add sig-handler.h.
22365 * modules/sigaction (Files): Likewise.
22366 * lib/sig-handler.h (get_handler): New file, suggested by Paul
22368 * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
22369 (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
22370 * lib/fatal-signal.c (uninstall_handlers, install_handlers)
22371 (init_fatal_signals): Likewise.
22372 * lib/nanosleep.c (rpl_nanosleep): Likewise.
22373 (siginterrupt): Delete fallback.
22374 * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
22376 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
22379 New module sigaction, for mingw.
22380 * modules/sigaction: New module...
22381 * modules/sigaction-tests: ...and its test.
22382 * m4/sigaction.m4: New file.
22383 * lib/sigaction.c: Likewise.
22384 * tests/test-sigaction.c: Likewise.
22385 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
22386 * modules/signal (Makefile.am): Likewise.
22387 * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
22389 * doc/posix-headers/signal.texi (signal.h): Mention provided
22391 * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
22392 that sigaction is preferable.
22393 * doc/posix-functions/sigaction.texi (sigaction): Mention new
22395 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22398 Improve robustness of sigprocmask by overriding signal.
22399 * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
22401 * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
22402 (SIGKILL, SIGSTOP): Provide fallbacks.
22403 (rpl_signal): Implement.
22404 (old_handlers, blocked_set): Mark volatile, since sigprocmask and
22405 signal can be called inside handlers.
22407 Fix nanosleep module on mingw.
22408 * modules/nanosleep (Depends-on): Add sys_select.
22409 * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
22411 Fix licensing of sigprocmask.
22412 * modules/raise (License): Relicense as LGPL.
22414 2008-06-21 Bruno Haible <bruno@clisp.org>
22416 * lib/propername.c (proper_name_utf8): Don't use the transliterated
22417 result if it contains question marks.
22418 Reported by Michael Geng <linux@michaelgeng.de>.
22420 2008-06-19 Bruno Haible <bruno@clisp.org>
22423 * doc/gnulib.texi: Include updated-stamp.texi.
22424 * doc/Makefile (GNULIB_TEXI_FILES): New variable.
22425 (updated-stamp.texi): New rule.
22426 (gnulib.info): Depend on it.
22427 * doc/.gitignore: Add updated-stamp.texi.
22428 Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
22430 2008-06-19 Bruno Haible <bruno@clisp.org>
22432 * doc/Makefile (gnulib.info): Update and simplify dependencies.
22433 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22435 2008-06-19 Eric Blake <ebb9@byu.net>
22437 Fix VPATH 'make dist' with GNU make and non-VCS tarball.
22438 * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
22439 Reported by Stepan Kasal.
22441 2008-06-18 Bruno Haible <bruno@clisp.org>
22443 * lib/fatal-signal.c (init_fatal_signals): Add comment.
22444 Reported by Eric Blake.
22446 2008-06-18 Eric Blake <ebb9@byu.net>
22448 Work around cygwin 1.5.25 strsignal bug.
22449 * tests/test-strsignal.c: Allow for const char *.
22450 * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
22452 2008-06-18 Simon Josefsson <simon@josefsson.org>
22454 * users.txt: Update URL to article and add author/date
22457 2008-06-17 Bruno Haible <bruno@clisp.org>
22459 New macro gl_DISABLE_THREADS.
22460 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
22461 if the user did not pass --enable-threads or --disable-threads option.
22462 (gl_DISABLE_THREADS): New macro.
22463 Reported by Eric Blake <ebb9@byu.net>.
22465 2008-06-17 Bruno Haible <bruno@clisp.org>
22467 * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
22468 when the macro ignores it.
22469 Based on a patch by Eric Blake <ebb9@byu.net>.
22471 2008-06-17 Bruno Haible <bruno@clisp.org>
22473 * modules/tls (License): Change to LGPLv2+.
22474 Reported by Eric Blake.
22476 2008-06-17 Eric Blake <ebb9@byu.net>
22478 Simplify c-stack prerequisites.
22479 * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
22480 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
22481 no longer requires <ucontext.h> to exist. Optimize setrlimit
22483 (gl_PREREQ_C_STACK): Remove check for unused getcontext and
22486 Move c-stack test into testsuite.
22487 * modules/c-stack-tests: New file.
22488 * lib/c-stack.c [DEBUG]: Move test program...
22489 * tests/test-c-stack.c: ...into this new file. Skip rather than
22490 fail test if sigaltstack is lacking.
22491 * tests/test-c-stack.sh: New driver file.
22493 2008-06-16 Eric Blake <ebb9@byu.net>
22495 Use raise module consistently.
22496 * modules/fatal-signal (Depends-on): Add raise.
22497 * modules/sigprocmask (Depends-on): Likewise.
22498 * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
22499 * lib/sigprocmask.c (sigprocmask): Likewise.
22500 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22501 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
22503 Fix compliance bug in sigpending.
22504 * lib/sigprocmask.c (sigpending): Return pending array via
22505 parameter, not return value.
22507 2008-06-14 Eric Blake <ebb9@byu.net>
22509 Improve obstack-printf test code.
22510 * tests/test-obstack-printf.c (test_function): Fix comment, and
22511 simplify usage of obstack_* in macros. Add a test for coverage.
22512 Reported by Bruno Haible.
22514 2008-06-14 Bruno Haible <bruno@clisp.org>
22516 * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
22517 array size as a constant, not as a const variable.
22518 * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
22519 AC_USE_SYSTEM_EXTENSIONS.
22520 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
22521 Test whether the obstack_printf function actually exists.
22522 * modules/obstack-printf (Depends-on): Add extensions.
22523 (Include): Remove obstack.h.
22524 * modules/obstack-printf-posix (Depends-on): Add extensions.
22525 (Include): Remove obstack.h.
22527 2008-06-13 Eric Blake <ebb9@byu.net>
22529 Add obstack-printf and obstack-printf-posix modules.
22530 * modules/obstack-printf: New file.
22531 * modules/obstack-printf-posix: Likewise.
22532 * MODULES.html.sh (Misc): Mention them.
22533 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
22535 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
22537 * modules/stdio (Makefile.am): Accomodate new modules.
22538 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22539 * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
22541 * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
22543 * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
22544 (gl_REPLACE_OBSTACK_PRINTF): New macros
22545 * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
22546 * tests/test-obstack-printf.c: New file.
22547 * modules/obstack-printf-tests: Likewise.
22548 * modules/obstack-printf-posix-tests: Likewise.
22550 2008-06-11 Bruno Haible <bruno@clisp.org>
22552 * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
22553 * lib/open.c: Include errno.h.
22554 (open): Fail when attempting to write to a file that has a trailing
22556 * tests/test-open.c (main): Test against trailing slash bug.
22557 * doc/posix-functions/open.texi: Mention the trailing slash bug.
22559 2008-06-10 Bruno Haible <bruno@clisp.org>
22561 * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
22562 for $? to work inside the trap command, with various /bin/sh-s.
22563 * tests/test-vc-list-files-cvs.sh: Likewise.
22565 2008-06-10 Bruno Haible <bruno@clisp.org>
22567 * lib/acl-internal.h: Don't include gettext.h here.
22568 * lib/set-mode-acl.c: Include gettext.h here.
22569 * lib/copy-acl.c: Likewise.
22571 2008-06-10 Bruno Haible <bruno@clisp.org>
22573 * lib/wait-process.h (wait_subprocess): Add termsigp argument.
22574 * lib/wait-process.c (wait_subprocess): Likewise.
22575 * lib/execute.h (execute): Add termsigp argument.
22576 * lib/execute.c (execute): Likewise.
22577 * lib/csharpcomp.c (compile_csharp_using_pnet,
22578 compile_csharp_using_mono, compile_csharp_using_sscli): Update.
22579 * lib/csharpexec.c (execute_csharp_using_pnet,
22580 execute_csharp_using_mono, execute_csharp_using_sscli): Update.
22581 * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
22582 compile_using_javac, compile_using_jikes, is_envjavac_gcj,
22583 is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
22584 is_jikes_present): Update.
22585 * lib/javaexec.c (execute_java_class): Update.
22586 * lib/javaversion.c (execute_and_read_line): Update.
22587 * NEWS: Document the changes.
22588 Reported by Eric Blake.
22590 2008-06-10 Eric Blake <ebb9@byu.net>
22592 Add missing include.
22593 * tests/test-strstr.c (includes): Add <signal.h>.
22594 * tests/test-strcasestr.c (includes): Likewise.
22595 * tests/test-memmem.c (includes): Likewise.
22597 2008-06-10 Bruno Haible <bruno@clisp.org>
22599 * lib/wait-process.c (wait_subprocess): Add an assertion.
22601 2008-06-10 Bruno Haible <bruno@clisp.org>
22603 * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
22605 2008-06-10 Bruno Haible <bruno@clisp.org>
22607 * tests/test-memmem.c (main): Reset SIGALRM to default handling before
22609 * tests/test-strcasestr.c (main): Likewise.
22610 * tests/test-strstr.c (main): Likewise.
22612 2008-06-09 Bruno Haible <bruno@clisp.org>
22614 Work around the Solaris 10 ACE ACLs ABI change.
22615 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
22616 declare if ACL_NO_TRIVIAL is present.
22617 (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
22618 NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
22619 NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
22620 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
22621 define if ACL_NO_TRIVIAL is present.
22622 (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
22623 and use the current ABI.
22624 (file_has_acl): Use same #if condition as elsewhere.
22625 * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
22626 in use, and use the current ABI.
22627 * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
22628 Reported by Jim Meyering.
22630 2008-06-09 Eric Blake <ebb9@byu.net>
22632 Work around environments that (stupidly) ignore SIGALRM.
22633 * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
22634 before using alarm().
22635 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22636 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22637 Reported by Ian Beckwith <ianb@erislabs.net>.
22639 Produce autobuild blurb earlier in log.
22640 * modules/autobuild (configure.ac-early): Move AB_INIT here.
22642 2008-06-09 Jim Meyering <meyering@redhat.com>
22643 and Ondřej Vašík <ovasik@redhat.com>
22645 utimens.c: correct kernel bug work-around
22646 Ondřej Vašík found that the invalid return value of 280 indicates
22647 failure, not success, and the kernel bug we're trying to work
22648 around affects not just the utimensat call, but also the fallback
22650 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
22652 [HAVE_FUTIMENS]: Use the same work-around, here.
22654 2008-06-09 Jim Meyering <meyering@redhat.com>
22656 add more guards around definition of ACE_-related code
22657 * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
22658 ALLOW and ACE_OWNER are also defined.
22660 2008-06-08 Bruno Haible <bruno@clisp.org>
22662 * lib/acl-internal.h: Add me as co-author.
22663 * lib/file-has-acl.c: Likewise.
22664 * lib/set-mode-acl.c: Likewise.
22665 * lib/copy-acl.c: Likewise.
22667 2008-06-08 Bruno Haible <bruno@clisp.org>
22669 Add support for AIX ACLs.
22670 * lib/acl-internal.h (acl_nontrivial): New declaration.
22671 * lib/file-has-acl.c (acl_nontrivial): New function.
22672 (file_has_acl): Add implementation using AIX 4 ACL API.
22673 * lib/set-mode-acl.c (qset_acl): Likewise.
22674 * lib/copy-acl.c (qcopy_acl): Likewise.
22676 2008-06-08 Bruno Haible <bruno@clisp.org>
22678 Add support for HP-UX ACLs.
22679 * lib/acl-internal.h (acl_nontrivial): New declaration.
22680 * lib/file-has-acl.c (acl_nontrivial): New function.
22681 (file_has_acl): Add implementation using HP-UX 11 ACL API.
22682 * lib/set-mode-acl.c (qset_acl): Likewise.
22683 * lib/copy-acl.c (qcopy_acl): Likewise.
22685 2008-06-08 Bruno Haible <bruno@clisp.org>
22687 Add support for Cygwin ACLs.
22688 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
22689 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
22690 the chmod_or_fchmod call.
22691 * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
22693 2008-06-08 Bruno Haible <bruno@clisp.org>
22695 Fix bug with setuid modes in Solaris 10+ code.
22696 * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
22697 succeeded, when the mode contains some special bits.
22699 2008-06-08 Bruno Haible <bruno@clisp.org>
22701 Add support for Solaris 7..10 ACLs.
22702 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
22704 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
22706 (file_has_acl): Add implementation using Solaris 7..10 ACL API.
22707 * lib/set-mode-acl.c (qset_acl): Likewise.
22708 * lib/copy-acl.c (qcopy_acl): Likewise.
22710 2008-06-08 Bruno Haible <bruno@clisp.org>
22712 * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
22714 * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
22715 (acl_access_nontrivial): Remove MacOS X case.
22716 (file_has_acl): Use acl_extended_nontrivial.
22717 * lib/copy-acl.c (qcopy_acl): Likewise.
22719 2008-06-08 Bruno Haible <bruno@clisp.org>
22721 * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
22723 2008-06-08 Jim Meyering <meyering@redhat.com>
22725 * modules/acl (Maintainer): Add Bruno Haible.
22727 2008-06-07 Bruno Haible <bruno@clisp.org>
22729 Improve support for Tru64 ACLs.
22730 * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
22733 2008-06-07 Bruno Haible <bruno@clisp.org>
22735 Add support for MacOS X ACLs.
22736 * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
22737 ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
22738 * lib/set-mode-acl.c (qset_acl): Likewise.
22739 * lib/copy-acl.c (qcopy_acl): Likewise.
22741 2008-06-07 Bruno Haible <bruno@clisp.org>
22743 Fix memory leak introduced on 2008-05-22.
22744 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
22747 2008-06-07 Bruno Haible <bruno@clisp.org>
22749 * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
22750 to construct an empty ACL.
22752 2008-06-07 Bruno Haible <bruno@clisp.org>
22754 * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
22756 * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
22758 2008-06-07 Bruno Haible <bruno@clisp.org>
22760 * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
22761 * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
22763 2008-06-07 Bruno Haible <bruno@clisp.org>
22765 * doc/posix-functions/_setjmp.texi: Explain the use of this function
22766 regardless of POSIX.
22767 * doc/posix-functions/_longjmp.texi: Likewise.
22768 * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
22769 SystemV platform in this case.
22771 2008-06-06 Eric Blake <ebb9@byu.net>
22773 Document abort() bugs.
22774 * doc/posix-functions/abort.texi (abort): Mention anomalies.
22776 * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
22777 * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
22779 * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
22780 siglongjmp, but only as a macro.
22781 * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
22783 * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
22785 Tweak documentation to cover cygwin argz bugs.
22786 * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
22787 argz bug fix; no code change needed since no cygwin releases
22788 occurred between the last fix and the bug being tested.
22789 * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
22790 module and recently fixed cygwin bugs.
22791 * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
22792 * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
22793 * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
22794 * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
22795 * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
22797 * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
22798 * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
22799 * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
22800 * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
22801 * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
22802 * doc/glibc-functions/argz_stringify.texi (argz_stringify):
22805 Avoid gcc warning on cygwin.
22806 * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
22807 !ACL_NO_TRIVIAL]: Avoid unused variable.
22809 2008-06-05 Eric Blake <ebb9@byu.net>
22811 Be tolerant of UNKNOWN version in gnulib-tool test dir.
22812 * top/GNUmakefile (_dummy): Warn rather than reconfigure if
22813 git-version-gen fails to come up with a version.
22814 Reported by Simon Josefsson.
22816 2008-06-05 Jim Meyering <meyering@redhat.com>
22817 Paul Eggert <eggert@cs.ucla.edu>
22819 utimens.c: work around a probable Linux kernel bug
22820 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
22821 appears to be a kernel bug that causes utimensat to return 280
22822 instead of 0, indicating success.
22824 2008-06-04 Bruno Haible <bruno@clisp.org>
22826 * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
22829 2008-06-04 Bruno Haible <bruno@clisp.org>
22831 * lib/acl-internal.h (acl_access_nontrivial): New declaration.
22832 * lib/file-has-acl.c (acl_access_nontrivial): New function.
22833 (file_has_acl): Use it. Save errno afterwards.
22834 * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
22836 2008-06-03 Bruno Haible <bruno@clisp.org>
22838 * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
22839 draft code. Simplify #ifs.
22840 * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
22841 Put Solaris code after POSIX-draft code. Fix comments regarding
22842 Solaris 10, HP-UX. Mention Cygwin.
22843 * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
22845 2008-06-03 Eric Blake <ebb9@byu.net>
22847 Provide fallback for older kernels.
22848 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
22849 Provide runtime fallback if kernel lacks support.
22850 Reported by Mike Frysinger.
22852 2008-06-02 Bruno Haible <bruno@clisp.org>
22854 * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
22857 2008-06-02 Bruno Haible <bruno@clisp.org>
22859 * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
22860 * lib/copy-acl.c (qcopy_acl): Update comment.
22862 2008-06-02 Bruno Haible <bruno@clisp.org>
22864 * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
22867 2008-06-02 Bruno Haible <bruno@clisp.org>
22869 * tests/test-file-has-acl.sh: Use different code for Cygwin.
22870 * tests/test-set-mode-acl.sh: Likewise.
22871 * tests/test-copy-acl.sh: Likewise.
22872 * tests/test-copy-file.sh: Likewise.
22874 2008-06-02 Bruno Haible <bruno@clisp.org>
22876 * tests/test-file-has-acl.sh: Remove unused code.
22878 2008-06-01 Bruno Haible <bruno@clisp.org>
22880 * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
22881 (copy_acl): Just a wrapper around qcopy_acl that emits the error
22883 * lib/set-mode-acl.c (qset_acl): Document return value precisely.
22885 2008-06-01 Bruno Haible <bruno@clisp.org>
22887 * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
22888 tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
22889 needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
22891 * modules/acl-tests (configure.ac): Remove tests now contained in
22894 2008-06-02 Jim Meyering <meyering@redhat.com>
22896 announce-gen: use a better key-server host name
22897 * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
22898 it may be more consistently reliable. Suggested by Werner Koch
22899 in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
22901 2008-06-01 Bruno Haible <bruno@clisp.org>
22903 * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
22904 Reported by Voroskoi Andras <voroskoi@gmail.com>.
22906 2008-06-01 Voroskoi Andras <voroskoi@gmail.com> (tiny change)
22908 * lib/stdio-impl.h [__DragonFly__]: Fix typo.
22910 2008-06-01 Bruno Haible <bruno@clisp.org>
22913 * tests/test-file-has-acl.sh: New file.
22914 * tests/test-file-has-acl.c: New file.
22915 * tests/test-set-mode-acl.sh: New file.
22916 * tests/test-set-mode-acl.c: New file.
22917 * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
22918 * tests/test-copy-acl.c: New file.
22919 * modules/acl-tests: New file, based on modules/copy-file-tests.
22920 * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
22921 (Depends-on): Add acl-tests.
22922 (configure.ac): Remove checks.
22923 (Makefile.am): Don't create test-sameacls program here any more.
22925 2008-06-01 Bruno Haible <bruno@clisp.org>
22927 * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
22928 * tests/test-sameacls.c: Include progname.h.
22929 (main): Invoke set_program_name. Portability fixes for MacOS X,
22932 2008-06-01 Bruno Haible <bruno@clisp.org>
22934 * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
22936 Reported by VOROSKOI Andras <voroskoi@gmail.com>.
22938 2008-06-01 Bruno Haible <bruno@clisp.org>
22940 * modules/rpmatch (Depends-on): Add strdup.
22942 2008-06-01 Bruno Haible <bruno@clisp.org>
22944 * lib/pipe.c: Include unistd-safer.h.
22945 (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
22946 * modules/pipe (Depends-on): Add unistd-safer.
22948 2008-05-30 Simon Josefsson <simon@josefsson.org>
22950 * modules/autobuild (configure.ac): Call AB_INIT.
22952 2008-05-30 Simon Josefsson <simon@josefsson.org>
22954 * tests/test-getaddrinfo.c: Don't print debug messages by default.
22955 Suggested by Bruno Haible <bruno@clisp.org>.
22957 2008-05-30 Simon Josefsson <simon@josefsson.org>
22959 * tests/test-base64.c: Cast size_t to unsigned long when invoking
22960 printf. Use %lu instead of %d. Reported by Bruno Haible
22963 2008-05-29 Eric Blake <ebb9@byu.net>
22965 Prefer new POSIX 200x interfaces over futimesat.
22966 * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
22967 * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
22969 [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
22971 2008-05-28 Bruno Haible <bruno@clisp.org>
22973 * modules/stpcpy (License): Change to LGPLv2+.
22974 Requested by David Lutterkort <dlutter@redhat.com>.
22976 2008-05-27 Bruno Haible <bruno@clisp.org>
22978 * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
22980 Reported by Jose E. Marchesi <jemarch@gnu.org>.
22982 2008-05-27 Bruno Haible <bruno@clisp.org>
22984 * modules/iconv_open (Link): New section, from module 'iconv'.
22985 * modules/striconv (Link): Likewise.
22986 * modules/striconveh (Link): Likewise.
22987 * modules/xstriconv (Link): Likewise.
22988 * modules/unicodeio (Link): Likewise.
22989 * modules/propername (Link): Likewise.
22990 Reported by Jim Meyering.
22992 2008-05-26 Jim Meyering <meyering@redhat.com>
22994 sha256: do not artificially restrict buffer length to be < 2^32
22995 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
22996 uint32_t to size_t.
22997 * lib/sha256.c (sha256_conclude_ctx): Change type of a local
23000 avoid unaligned access errors, e.g., on sparc
23001 * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
23002 direct access through a possibly-unaligned uint64* pointer.
23003 * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
23004 direct access through a possibly-unaligned uint32* pointer.
23005 Prompted by this patch from Tom "spot" Callaway:
23006 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
23008 sha512.c: fix typo in comment
23009 * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
23011 2008-05-25 Bruno Haible <bruno@clisp.org>
23013 * lib/set-mode-acl.c: Renamed from lib/acl.c.
23014 * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
23015 (Makefile.am): Update lib_SOURCES.
23017 2008-05-25 Bruno Haible <bruno@clisp.org>
23019 * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
23021 2008-05-25 Jim Meyering <meyering@redhat.com>
23023 useless-if-before-free: freed expr may have white-space differences
23024 * build-aux/useless-if-before-free: Recognize cases in which the
23025 freed expression differs from the tested one in embedded white
23026 space, e.g., if (p[i + 1]) free(p[i+1]). Correct thinko in prev:
23027 $1 was used, so we can't make any regexp shy. Improved tests now
23030 useless-if-before-free: accept white space in the expression.
23031 * build-aux/useless-if-before-free: For now, any white space
23032 in the expression must be identical in the free argument.
23034 useless-if-before-free: efficiency tweak
23035 * build-aux/useless-if-before-free: Make the expression-matching
23037 Make the *outer* regexp shy, not the expr-matching one.
23039 update code-in-comment to accept cast of free arg
23040 * build-aux/useless-if-before-free: Update regexp.
23042 2008-05-25 Bruno Haible <bruno@clisp.org>
23044 * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
23045 * modules/copy-file-tests (Files, Makefile.am): Update.
23046 * tests/test-copy-file.c (func_test_copy): Update.
23048 2008-05-24 Andreas Färber <andreas.faerber@web.de> (tiny change)
23050 * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
23052 2008-05-23 Bruno Haible <bruno@clisp.org>
23054 Improve support for ACLs on OSF/1.
23055 * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
23056 Remove fallback for unknown flavors of ACLs.
23058 2008-05-22 Bruno Haible <bruno@clisp.org>
23060 Add support for ACLs on OSF/1.
23061 * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
23063 (acl_free_text): New macro fallback.
23064 * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
23066 * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
23067 acl_free_text function. Require AC_C_INLINE.
23069 2008-05-22 Bruno Haible <bruno@clisp.org>
23071 Make copy_acl work on MacOS X 10.5.
23072 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
23073 (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
23074 * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
23075 If MODE_INSIDE_ACL, don't assume that every system has the same text
23076 representation for ACLs as FreeBSD.
23077 * lib/copy-acl.c (copy_acl): Add support for platforms with
23079 * lib/file-has-acl.c (file_has_acl): Likewise.
23080 * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
23081 FreeBSD, MacOS X, or IRIX, respectively.
23083 2008-05-22 Bruno Haible <bruno@clisp.org>
23085 * lib/acl.h: Don't include <sys/acl.h>.
23086 (GETACLCNT): Move fallback to lib/acl-internal.h.
23087 * lib/acl-internal.h: Include <sys/acl.h> here.
23088 (GETACLCNT): New macro fallback, moved here from lib/acl.h.
23090 2008-05-22 Bruno Haible <bruno@clisp.org>
23092 Split off copy_acl function to separate file.
23093 * lib/copy-acl.c: New file, extracted from lib/acl.c.
23094 * lib/acl.c (copy_acl): Moved function to separate file.
23095 * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
23096 * modules/acl (Files): Add lib/copy-acl.c.
23097 (Makefiles.am): Augment lib_SOURCES.
23099 2008-05-22 Bruno Haible <bruno@clisp.org>
23101 * modules/copy-file-tests: New file.
23102 * tests/test-copy-file.sh: New file.
23103 * tests/test-copy-file.c: New file.
23104 * tests/test-copy-file-sameacls.c: New file.
23106 2008-05-22 Eric Blake <ebb9@byu.net>
23109 * tests/test-memcmp.c (main): Pass NULL indirectly.
23111 2008-05-21 Bruno Haible <bruno@clisp.org>
23113 Add reference doc about ACLs.
23114 * doc/acl-resources.txt: New file.
23115 * doc/acl-cygwin.txt: New file.
23117 2008-05-21 Bruno Haible <bruno@clisp.org>
23119 Avoid one more warning from gcc.
23120 * lib/vasnprintf.c (IF_LINT): Update comments.
23121 (VASNPRINTF): Use it also for the 'prefix' array initializer.
23123 2008-05-21 Jim Meyering <meyering@redhat.com>
23125 avoid a warning from gcc
23126 * lib/vasnprintf.c (IF_LINT): Define.
23127 (scale10_round_decimal_long_double):
23128 Use it to avoid a "may be used uninitialized" warning.
23129 (scale10_round_decimal_double): Likewise.
23131 2008-05-21 Simon Josefsson <simon@josefsson.org>
23133 * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
23136 2008-05-20 Bruno Haible <bruno@clisp.org>
23138 * tests/test-memcmp.c (main): Test also the sign of the result. Test
23139 against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
23141 2008-05-20 Simon Josefsson <simon@josefsson.org>
23143 * modules/memcmp-tests: New file.
23144 * tests/test-memcmp.c: New file.
23146 2008-05-19 Bruno Haible <bruno@clisp.org>
23148 * modules/propername (Notice, configure.ac): Put quoted "..." into
23150 * lib/propername.h: Update comments accordingly.
23151 Reported by Eric Blake.
23153 2008-05-19 Martin Lambers <marlam@marlam.de> (tiny change)
23155 * modules/getpass-gnu (Depends-on): Add fseeko.
23157 2008-05-19 Simon Josefsson <simon@josefsson.org>
23159 * modules/base64-tests: New file.
23161 2008-05-19 Bo Borgerson <gigabo@gmail.com>
23163 * lib/base64.c (base64_decode_ctx): If a decode context structure
23164 was passed in use it to ignore newlines. If a context structure
23165 was _not_ passed in, continue to treat newlines as garbage (this
23166 is the historical behavior). Formerly base64_decode.
23167 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
23168 takes a decode context structure.
23169 * lib/base64.h (base64_decode): Macro for four-argument calls.
23170 (base64_decode_alloc): Likewise.
23171 * lib/base64.c (base64_decode_ctx): If a decode context structure
23172 was passed in use it to ignore newlines. If a context structure
23173 was _not_ passed in, continue to treat newlines as garbage (this
23174 is the historical behavior). Formerly base64_decode.
23175 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
23176 takes a decode context structure.
23177 * lib/base64.h (base64_decode): Macro for four-argument calls.
23178 (base64_decode_alloc): Likewise.
23180 2008-05-19 Jim Meyering <meyering@redhat.com>
23182 avoid a warning from gcc
23183 * lib/trim.c (IF_LINT): Define.
23184 (trim2): Use it to avoid a "may be used uninitialized" warning.
23187 * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
23189 2008-05-19 Bruno Haible <bruno@clisp.org>
23191 * doc/glibc-functions/getpass.texi: Document limits of other
23194 2008-05-19 Simon Josefsson <simon@josefsson.org>
23195 Bruno Haible <bruno@clisp.org>
23197 * doc/glibc-functions/getpass.texi: Document gnulib implementation.
23199 2008-05-18 Bruno Haible <bruno@clisp.org>
23201 * modules/propername: New file, from GNU gettext.
23202 * lib/propername.h: New file, from GNU gettext.
23203 * lib/propername.c: New file, from GNU gettext.
23204 * MODULES.html.sh (Internationalization functions): Add propername.
23206 2008-05-16 Jim Meyering <meyering@redhat.com>
23207 Bruno Haible <bruno@clisp.org>
23209 Avoid some warnings from "gcc -Wshadow".
23210 * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
23212 2008-05-15 Eric Blake <ebb9@byu.net>
23214 Extend previous patch to cygwin 1.7.0.
23215 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
23216 fast implementation in cygwin >= 1.7.0.
23217 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23218 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23220 2008-05-15 Bruno Haible <bruno@clisp.org>
23222 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
23223 implementation in glibc >= 2.9.
23224 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23225 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23227 2008-05-15 Bruno Haible <bruno@clisp.org>
23229 * MODULES.html.sh (Internationalization functions): Remove linebreak.
23230 (Unicode string functions): Add unilbrk/*.
23231 Reported by Karl Berry.
23233 2008-05-15 Eric Blake <ebb9@byu.net>
23235 Fix violation of <stdbool.h> replacement in regex.
23236 * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
23237 * lib/regexec.c (re_search_internal): Likewise.
23238 Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
23240 2008-05-15 Jim Meyering <meyering@redhat.com>
23242 avoid distracting test output when git or cvs is not found
23243 * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
23244 * tests/test-vc-list-files-git.sh: Likewise.
23246 2008-05-15 Eric Blake <ebb9@byu.net>
23248 Glibc finally accepted the memmem speedup code, bugzilla #5514.
23249 * doc/glibc-functions/memmem.texi (memmem): Mention last broken
23251 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
23252 * doc/posix-functions/strstr.texi (strstr): Likewise.
23253 * lib/str-two-way.h (MAX): Sychronize with glibc.
23255 2008-05-15 Paolo Bonzini <bonzini@gnu.org>
23257 * lib/regcomp.c (optimize_utf8): Add a note on why we test
23259 (calc_first): Initialize constraint field.
23260 (duplicate_node_closure): Use it instead of special casing ANCHORS.
23262 (duplicate_node): Merge constraint field for all node types.
23263 (calc_eclosure_iter): Look at constraint field for all node types.
23264 * lib/regex_internal.c (create_cd_newstate): Don't look at
23267 2008-05-14 Bruno Haible <bruno@clisp.org>
23269 Help GCC to do better code generation.
23270 * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
23271 * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
23272 * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
23273 (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
23274 Declare with attribute 'malloc' if supported.
23276 2008-05-14 Lasse Collin <lasse.collin@tukaani.org>
23278 use "echo STR|wc -c" rather than unportable "expr length STR"
23279 * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
23280 OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
23282 2008-05-14 Jim Meyering <meyering@redhat.com>
23284 use dd ibs=$n count=1 ... rather than less-portable head -c$n
23285 * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
23286 by Solaris 10's /bin/head or by the one from HP-UX 11.x.
23287 Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
23290 2008-05-14 Eric Blake <ebb9@byu.net>
23292 Avoid quadratic growth in gl_LIBSOURCES.
23293 * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
23294 Suggested by Bruno Haible.
23297 * modules/xmemdup0-tests: New file.
23298 * tests/test-xmemdup0.c: Likewise.
23300 2008-05-13 Eric Blake <ebb9@byu.net>
23302 Split xmemdup0 into its own module.
23303 * modules/xmemdup0: New file.
23304 * lib/xmemdup0.h: Likewise.
23305 * lib/xmemdup0.c: Likewise.
23306 * MODULES.html.sh (Memory management functions): Add xmemdup0.
23307 * lib/xalloc.h (xmemdup0): Remove.
23308 * lib/xmalloc.c (xmemdup0): Likewise.
23310 2008-05-13 Eric Blake <ebb9@byu.net>
23311 Bruno Haible <bruno@clisp.org>
23313 Reduce number of forks required during autoconf.
23314 * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
23315 and gl_LIBSOURCES_DIR.
23316 (func_emit_initmacro_end): Use them here in a single m4_syscmd...
23317 (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
23318 m4_syscmd per file.
23319 <m4_foreach_w>: Move...
23320 * m4/gnulib-common.m4 (m4_foreach_w): ...here.
23322 2008-05-13 Eric Blake <ebb9@byu.net>
23324 * gnulib-tool: Fix various comment typos.
23326 2008-05-12 Bruno Haible <bruno@clisp.org>
23328 Tailor the linebreaking algorithm.
23329 * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
23331 2008-05-12 Bruno Haible <bruno@clisp.org>
23333 Update to Unicode 5.0.0.
23334 * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
23335 LBP_JV, LBP_JT. Redistribute values.
23336 (unilbrk_table): Change size.
23337 * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
23338 Unicode TR#14 rev. 22.
23339 * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
23340 LBP_JV, LBP_JT. Redistribute values.
23341 (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
23342 (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
23344 * lib/unilbrk/lbrkprop1.h: Regenerated.
23345 * lib/unilbrk/lbrkprop2.h: Regenerated.
23346 * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
23347 Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
23348 * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
23350 * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
23352 * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
23354 * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23355 * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23356 * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
23357 * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
23358 * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
23359 * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
23361 2008-05-11 Bruno Haible <bruno@clisp.org>
23363 * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
23365 2008-05-11 Bruno Haible <bruno@clisp.org>
23367 * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
23368 * modules/unilbrk/gen-lbrk: New file.
23370 2008-05-11 Bruno Haible <bruno@clisp.org>
23372 * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
23373 * m4/sha512.m4 (gl_SHA512): Likewise.
23375 2008-05-11 Jim Meyering <meyering@redhat.com>
23377 New modules: crypto/sha256, crypto/sha512 (from coreutils)
23378 * modules/crypto/sha256: New file.
23379 * modules/crypto/sha512: Likewise.
23380 * lib/sha256.c: Likewise.
23381 * lib/sha256.h: Likewise.
23382 * lib/sha512.c: Likewise.
23383 * lib/sha512.h: Likewise.
23384 * lib/u64.h: Likewise.
23385 * m4/sha256.m4: Likewise.
23386 * m4/sha512.m4: Likewise.
23387 * MODULES.html.sh (Cryptographic computations (low-level)): List them.
23389 2008-05-10 Bruno Haible <bruno@clisp.org>
23391 * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
23392 (Input/Output <stdio.h>): Add xprintf.
23393 (Signal handling <signal.h>): Add strsignal.
23394 (Cryptographic computations (high-level)): Add crypto/gc-camellia.
23395 (Core language properties): Add func.
23396 (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
23397 (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
23399 (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
23400 (Input/output): New section.
23401 (File system functions): Add openat-die, stat-macros.
23402 (Networking functions): Add sockets.
23403 (Unicode string functions): Add unictype/*.
23404 (Support for building libraries and executables): Add gperf.
23405 (Support for building documentation): Add agpl-3.0.
23406 (Misc): Add nocrash.
23408 2008-05-10 Bruno Haible <bruno@clisp.org>
23410 * modules/unictype/gen-ctype: New file.
23412 2008-05-10 Jim Meyering <meyering@redhat.com>
23414 Make chdir-safer.c more efficient on a system with no symlinks.
23415 * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
23416 also if ELOOP is zero. Suggested by Bruno Haible.
23418 Make chdir-safer.c slightly safer.
23419 * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
23420 not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
23422 Avoid compile failure on systems without ELOOP (like mingw).
23423 * lib/chdir-safer.c (ELOOP): Define if not already defined.
23424 Reported by Bruno Haible.
23426 2008-05-10 Bruno Haible <bruno@clisp.org>
23428 * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
23429 (is_utf8_encoding): Use a case-insensitive comparison.
23430 * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
23433 2008-05-10 Bruno Haible <bruno@clisp.org>
23435 * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
23436 (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
23437 * lib/unilbrk/ulc-common.h (iconv_string_length,
23438 iconv_string_keeping_offsets): Remove declarations.
23439 * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
23440 Don't include <iconv.h>, streq.h, xsize.h.
23441 (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
23443 * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
23444 <iconv.h>, streq.h, xsize.h.
23445 (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
23447 * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
23448 * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
23449 uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
23450 * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
23452 2008-05-10 Bruno Haible <bruno@clisp.org>
23454 * modules/unilbrk/ulc-width-linebreaks-tests: New file.
23455 * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
23457 * modules/unilbrk/u32-width-linebreaks-tests: New file.
23458 * tests/unilbrk/test-u32-width-linebreaks.c: New file.
23460 * modules/unilbrk/u16-width-linebreaks-tests: New file.
23461 * tests/unilbrk/test-u16-width-linebreaks.c: New file.
23463 * modules/unilbrk/u8-width-linebreaks-tests: New file.
23464 * tests/unilbrk/test-u8-width-linebreaks.c: New file.
23466 * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
23467 * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
23469 * modules/unilbrk/u32-possible-linebreaks-tests: New file.
23470 * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
23472 * modules/unilbrk/u16-possible-linebreaks-tests: New file.
23473 * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
23475 * modules/unilbrk/u8-possible-linebreaks-tests: New file.
23476 * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
23478 2008-05-10 Bruno Haible <bruno@clisp.org>
23480 Split up 'linebreak' module.
23481 * lib/unilbrk.h: New file, based on lib/linebreak.h.
23482 * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
23483 * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
23485 * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
23486 * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
23487 * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
23489 * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
23491 * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
23493 * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
23494 * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
23495 * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
23497 * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
23499 * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
23501 * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
23503 * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
23505 * modules/unilbrk/base: New file.
23506 * modules/unilbrk/tables: New file.
23507 * modules/unilbrk/u8-possible-linebreaks: New file.
23508 * modules/unilbrk/u16-possible-linebreaks: New file.
23509 * modules/unilbrk/u32-possible-linebreaks: New file.
23510 * modules/unilbrk/ulc-common: New file.
23511 * modules/unilbrk/ulc-possible-linebreaks: New file.
23512 * modules/unilbrk/u8-width-linebreaks: New file.
23513 * modules/unilbrk/u16-width-linebreaks: New file.
23514 * modules/unilbrk/u32-width-linebreaks: New file.
23515 * modules/unilbrk/ulc-width-linebreaks: New file.
23516 * lib/linebreak.h: Remove file.
23517 * lib/linebreak.c: Remove file.
23518 * m4/linebreak.m4: Remove file.
23519 * modules/linebreak: Remove file.
23520 * NEWS: Mention the changes.
23522 2008-05-09 Eric Blake <ebb9@byu.net>
23525 * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
23527 * lib/xmalloc.c (xmemdup0): New C implementation.
23529 2008-05-08 Bruno Haible <bruno@clisp.org>
23531 * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
23533 2008-05-07 Eric Blake <ebb9@byu.net>
23535 Support cross-compilation of <wctype.h>.
23536 * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
23539 2008-05-06 Soren Hansen <soren@ubuntu.com> (tiny change)
23541 * build-aux/vc-list-files: Add support for bzr.
23543 2008-05-03 Jim Meyering <meyering@redhat.com>
23545 avoid failed assertion with tight malloc
23546 * tests/test-getndelim2.c: Correct an off-by-one assertion.
23548 2008-05-03 Simon Josefsson <simon@josefsson.org>
23550 * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
23551 are needed from arpa/inet.h.
23552 * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
23553 Reported by Bruno Haible.
23555 2008-05-02 Jim Meyering <meyering@redhat.com>
23557 avoid compilation error on FreeBSD 6
23558 * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
23560 2008-05-01 Jim Meyering <meyering@redhat.com>
23562 useless-if-before-free: correct --help's exit status description
23563 * build-aux/useless-if-before-free (usage): Like grep, exit 0
23564 for one or more matches, etc. Reported by Bruno Haible.
23566 vc-list-files: make the stand-alone gnulib test work
23567 * modules/vc-list-files-tests (configure.ac):
23568 Define and AC_SUBST abs_aux_dir.
23569 (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
23570 $(abs_top_srcdir) to each script and having each of them
23571 duplicate the work of setting PATH, set PATH here, using
23572 the new variable, abs_aux_dir instead.
23573 * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
23574 * tests/test-vc-list-files-git.sh: Likewise.
23575 Reported by Bruno Haible.
23577 2008-05-01 Bruno Haible <bruno@clisp.org>
23579 * lib/getndelim2.c (getndelim2): Fix newsize computation during
23580 reallocation. Rename 'done' to 'found_delimiter'.
23582 2008-05-01 Jim Meyering <meyering@redhat.com>
23584 vc-list-files: accommodate /bin/sh like the one from Solaris 10
23585 * build-aux/vc-list-files: Use `...`, not $(...).
23587 2008-04-30 Jim Meyering <meyering@redhat.com>
23589 add tests for vc-list-files
23590 * modules/vc-list-files-tests: New module.
23591 * tests/test-vc-list-files-cvs.sh: New file.
23592 * tests/test-vc-list-files-git.sh: New file.
23594 avoid a warning from gcc
23595 * lib/getndelim2.c (IF_LINT): Define.
23596 (getndelim2): Use it to avoid a "may be used uninitialized" warning.
23598 vc-list-files: work properly with build-aux/cvsu, too
23599 * build-aux/vc-list-files: Hoist the "./"-removing code to apply
23600 to all cvs-based clauses.
23602 vc-list-files: work properly in the CVS+awk case, too
23603 * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
23605 vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
23606 * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
23607 take more than one file argument, so . Add quotes, just in case $dir
23608 ever contains a shell meta-character. Prompted by Soren Hansen in
23609 <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
23611 2008-04-29 Eric Blake <ebb9@byu.net>
23613 Optimize getndelim2 to use block operations when possible.
23614 * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
23615 freadseek, and memchr2.
23616 * lib/getndelim2.c (getndelim2): Use them for block reads.
23618 2008-04-29 Bruno Haible <bruno@clisp.org>
23620 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
23621 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23622 * modules/inet_ntop (Depends-on): Add extensions.
23623 * modules/inet_pton (Depends-on): Likewise.
23624 Reported by Simon Josefsson.
23626 2008-04-29 Jim Meyering <meyering@redhat.com>
23628 When the is more than one match in a block, match all of them.
23629 * build-aux/useless-if-before-free: Iterate through each block
23630 until there are no more matches.
23632 Fix broken useless-if-before-free script.
23633 * build-aux/useless-if-before-free: Fix typo: missing "?" after
23634 the expression to match cast of argument to free-like function.
23636 2008-04-29 Eric Blake <ebb9@byu.net>
23639 * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
23641 2008-04-29 Jim Meyering <meyering@redhat.com>
23643 Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
23644 * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
23645 by gnulib to exist and to declare e.g., inet_ntop.
23646 Don't include "inet_ntop.h", now removed.
23648 * m4/arpa_inet_h.m4: Remove trailing blanks.
23650 2008-04-29 Eric Blake <ebb9@byu.net>
23652 Silence valgrind on safe reads beyond potential array bounds.
23653 * lib/rawmemchr.valgrind: New file.
23654 * lib/strchrnul.valgrind: Likewise.
23655 * modules/rawmemchr (Files): Distribute new file.
23656 * modules/strchrnul (Files): Likewise.
23657 Suggested by Bruno Haible.
23659 2008-04-29 Bruno Haible <bruno@clisp.org>
23661 * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
23662 (inet_ntop, inet_pton): Change portability warning's wording.
23663 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
23664 Invoke gl_CHECK_NEXT_HEADERS.
23665 (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
23666 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
23668 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23669 * modules/arpa_inet (Description): No longer only for systems that
23671 (Depends-on): Add include_next.
23672 (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
23675 2008-04-29 Jim Meyering <meyering@redhat.com>
23677 * modules/mkdir (License): Re-license as LGPLv2+.
23679 2008-04-29 Bruno Haible <bruno@clisp.org>
23681 * modules/rawmemchr (Maintainer): Set to Eric.
23682 * modules/strchrnul (Maintainer): Likewise.
23684 2008-04-29 Simon Josefsson <simon@josefsson.org>
23686 * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
23687 HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
23689 * modules/arpa_inet (arpa/inet.h): Use them.
23691 2008-04-28 Eric Blake <ebb9@byu.net>
23694 * modules/getndelim2-tests: New file.
23695 * tests/test-getndelim2.c: Likewise.
23696 * lib/getndelim2.c (getndelim2): Never return 0. Lock the
23698 * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
23700 * MODULES.html.sh: Document new module.
23702 2008-04-20 Bruno Haible <bruno@clisp.org>
23704 * lib/c-stack.c (die): Use raise.
23705 * modules/c-stack (Depends-on): Add raise.
23707 2008-04-28 Bruno Haible <bruno@clisp.org>
23709 Expect rpmatch to be declared.
23710 * lib/yesno.c (rpmatch): Remove declaration.
23713 * lib/stdlib.in.h (rpmatch): New declaration.
23714 * lib/rpmatch.c: Include <stdlib.h> first.
23715 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
23716 gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
23717 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
23719 * modules/rpmatch (Depends-on): Add stdlib, extensions.
23720 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23721 (Include): Set to <stdlib.h>.
23722 * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
23724 * NEWS: Document the change.
23726 2008-04-28 Bruno Haible <bruno@clisp.org>
23728 Change rpmatch to use nl_langinfo when appropriate.
23729 * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
23731 (localized_pattern): New function/macro.
23732 (try): Remove match, nomatch arguments. Copy the pattern into safe
23733 memory before caching it.
23734 (rpmatch): Use localized_pattern. Add translator comments.
23735 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
23736 Suggested by Eric Blake.
23737 * modules/rpmatch (Depends-on): Add stdbool.
23739 2008-04-28 Eric Blake <ebb9@byu.net>
23741 Add rawmemchr module, matching glibc.
23742 * modules/string (Makefile.am): New indicator.
23743 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
23744 * lib/string.in.h (rawmemchr): Declare when appropriate.
23745 * modules/rawmemchr: New file.
23746 * m4/rawmemchr.m4: Likewise.
23747 * lib/rawmemchr.c: Likewise.
23748 * modules/rawmemchr-tests: Likewise.
23749 * tests/test-rawmemchr.c: Likewise.
23750 * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
23752 * modules/strchrnul (Depends-on): Add rawmemchr.
23753 * lib/strchrnul.c (strchrnul): Optimize a corner case.
23755 Whitespace cleanup.
23756 * tests/test-strchrnul.c: Reindent.
23757 * lib/strchrnul.c: Likewise.
23759 Optimize and test strchrnul.
23760 * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
23761 * modules/strchrnul-tests: New file.
23762 * tests/test-strchrnul.c: Likewise.
23764 Remove intprops dependency.
23765 * modules/memchr (Depends-on): Remove intprops.
23766 * modules/memrchr (Depends-on): Likewise.
23767 * modules/memchr2 (Depends-on): Likewise.
23768 * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
23769 * lib/memrchr.c (__memrchr): Likewise.
23770 * lib/memrchr2.c (memchr2): Likewise.
23771 Reported by Simon Josefsson.
23773 2008-04-28 Simon Josefsson <simon@josefsson.org>
23775 * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
23776 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23778 2008-04-28 Simon Josefsson <simon@josefsson.org>
23780 * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
23782 * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
23784 * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
23786 * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
23788 [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
23790 * m4/inet_pton.m4: Don't check for header files.
23792 * m4/inet_ntop.m4: Don't check for header files.
23794 2008-04-28 Simon Josefsson <simon@josefsson.org>
23796 * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
23797 * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
23798 trigger for cygwin).
23799 Reported by Bruno Haible <bruno@clisp.org>.
23801 2008-04-28 Bruno Haible <bruno@clisp.org>
23803 * doc/posix-functions/strdup.texi: Mention mingw problem.
23805 2008-04-27 Bruno Haible <bruno@clisp.org>
23807 * modules/stat-time-tests (Depends-on): Add sleep.
23808 * tests/test-stat-time.c (force_unlink): New function.
23810 (test_mtime): Remove the ctime related tests.
23811 (test_ctime): New function, containing the ctime related tests.
23812 (main): Call test_ctime, except on native Windows platforms.
23814 2008-04-27 Bruno Haible <bruno@clisp.org>
23816 * lib/rpmatch.c (rpmatch): Add some comments.
23817 Reported by James Youngman <jay@gnu.org>.
23819 2008-04-27 Bruno Haible <bruno@clisp.org>
23821 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
23824 2008-04-27 Bruno Haible <bruno@clisp.org>
23826 Make test-yesno.sh work on mingw.
23827 * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
23828 * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
23829 (main): Set stdin to binary mode.
23830 * modules/yesno-tests (Depends-on): Add binary-io.
23832 2008-04-27 Bruno Haible <bruno@clisp.org>
23834 Fix 'isfinite' on x86, x86_64, ia64 platforms.
23835 * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
23836 argument that lie outside the IEEE 854 domain.
23837 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
23838 (gl_ISFINITE): Use it.
23839 * doc/posix-functions/isfinite.texi: Document the fixed bugs.
23841 2008-04-27 Bruno Haible <bruno@clisp.org>
23843 Allow local renaming in config.h.
23844 * lib/memrchr.c (memrchr): Don't undefine outside libc.
23846 2008-04-27 Bruno Haible <bruno@clisp.org>
23848 * lib/memchr.c (__memchr): Change type of 'i'.
23849 * lib/memchr2.c (memchr2): Likewise.
23851 2008-04-26 Eric Blake <ebb9@byu.net>
23852 and Bruno Haible <bruno@clisp.org>
23854 Optimize and test memrchr.
23855 * modules/memrchr (Depends-on): Add intprops.
23856 * lib/memrchr.c (__memrchr): Avoid false positives in loop.
23857 * modules/memrchr-tests: New file.
23858 * tests/test-memrchr.c: New file.
23860 2008-04-26 Bruno Haible <bruno@clisp.org>
23862 Add tentative support for DragonFly BSD.
23863 * lib/stdio-impl.h: Add macros for DragonFly BSD.
23864 * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
23866 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
23867 restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
23868 * lib/fpurge.c (fpurge): Likewise.
23869 * lib/freadable.c (freaadable): Likewise.
23870 * lib/freadahead.c (freadahead): Likewise.
23871 * lib/freading.c (freading): Likewise.
23872 * lib/freadptr.c (freadptr): Likewise.
23873 * lib/freadseek.c (freadptrinc): Likewise.
23874 * lib/fseeko.c (fseeko): Likewise.
23875 * lib/fseterr.c (fseterr): Likewise.
23876 * lib/fwritable.c (fwritable): Likewise.
23877 * lib/fwriting.c (fwriting): Likewise.
23879 2008-04-26 Bruno Haible <bruno@clisp.org>
23881 * lib/stdio-impl.h: New file.
23882 * lib/fbufmode.c: Include stdio-impl.h.
23883 (fbufmode): Use fp_, remove redundant #defines.
23884 * lib/fflush.c: Include stdio-impl.h.
23885 (clear_ungetc_buffer): Remove redundant #defines.
23886 * lib/fpurge.c: Include stdio-impl.h.
23887 (fpurge): Remove redundant #defines.
23888 * lib/freadable.c: Include stdio-impl.h.
23889 (freadable): Remove redundant #defines.
23890 * lib/freadahead.c: Include stdio-impl.h.
23891 (freadahead): Remove redundant #defines.
23892 * lib/freading.c: Include stdio-impl.h.
23893 (freading): Remove redundant #defines.
23894 * lib/freadptr.c: Include stdio-impl.h.
23895 (freadptr): Remove redundant #defines.
23896 * lib/freadseek.c: Include stdio-impl.h.
23897 (freadptrinc): Remove redundant #defines.
23898 * lib/fseeko.c: Include stdio-impl.h.
23899 (rpl_fseeko): Remove redundant #defines.
23900 * lib/fseterr.c: Include stdio-impl.h.
23901 (fseterr): Remove redundant #defines.
23902 * lib/fwritable.c: Include stdio-impl.h.
23903 (fwritable: Remove redundant #defines.
23904 * lib/fwriting.c: Include stdio-impl.h.
23905 (fwriting): Remove redundant #defines.
23906 * modules/fbufmode (Files): Add lib/stdio-impl.h.
23907 * modules/fflush (Files): Likewise.
23908 * modules/fpurge (Files): Likewise.
23909 * modules/freadable (Files): Likewise.
23910 * modules/freadahead (Files): Likewise.
23911 * modules/freading (Files): Likewise.
23912 * modules/freadptr (Files): Likewise.
23913 * modules/freadseek (Files): Likewise.
23914 * modules/fseeko (Files): Likewise.
23915 * modules/fseterr (Files): Likewise.
23916 * modules/fwritable (Files): Likewise.
23917 * modules/fwriting (Files): Likewise.
23919 2008-04-26 Bruno Haible <bruno@clisp.org>
23921 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
23922 restore_seek_optimization, update_fpos_cache): New functions, extracted
23924 (rpl_fflush): Use them.
23925 * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
23926 (gl_REPLACE_FFLUSH): Use it.
23928 2008-04-26 Bruno Haible <bruno@clisp.org>
23930 * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
23932 * tests/test-xstrtoimax.sh: Likewise.
23933 * tests/test-xstrtoumax.sh: Likewise.
23934 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23936 2008-04-26 Bruno Haible <bruno@clisp.org>
23938 * modules/memchr-tests: New file.
23939 * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
23941 2008-04-26 Eric Blake <ebb9@byu.net>
23942 Bruno Haible <bruno@clisp.org>
23944 * lib/memchr.c: Include intprops.h.
23945 (__memchr): Optimize parallel detection of matching bytes. Rename local
23946 variables. Add explanatory comments.
23948 2008-04-26 Bruno Haible <bruno@clisp.org>
23950 Fix module 'memchr', broken since 2000-10-28.
23951 * lib/memchr.c: Outside glibc, define memchr, not __memchr.
23953 2008-04-26 Bruno Haible <bruno@clisp.org>
23955 * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
23958 2008-04-25 Eric Blake <ebb9@byu.net>
23960 Use native fstatat on cygwin 1.7.0.
23961 * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
23964 2008-04-23 Eric Blake <ebb9@byu.net>
23966 Improve memchr2 performance.
23967 * lib/memchr2.c (memchr2): Further optimize parallel detection of
23969 * modules/memchr2 (Depends-on): Use intprops.h.
23971 2008-04-23 Simon Josefsson <simon@josefsson.org>
23973 * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
23974 an inline function instead of a CPP macro. Patch by Ben Pfaff
23975 <blp@cs.stanford.edu>.
23977 2008-04-23 Simon Josefsson <simon@josefsson.org>
23979 * lib/arpa_inet.in.h: New file.
23981 * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
23982 (Makefile.am): Sed in substitute header file.
23984 * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
23985 gl_ARPA_INET_MODULE_INDICATOR. Use them.
23987 * modules/inet_ntop (configure.ac): Use
23988 gl_ARPA_INET_MODULE_INDICATOR.
23990 * modules/inet_pton (configure.ac): Use
23991 gl_ARPA_INET_MODULE_INDICATOR.
23993 2008-04-22 Jim Meyering <meyering@redhat.com>
23995 * modules/verify (License): Re-license as LGPLv2+.
23997 2008-04-22 Simon Josefsson <simon@josefsson.org>
23999 * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
24000 parameter to void* as per POSIX standard (MinGW uses char*).
24002 2008-04-21 Bruno Haible <bruno@clisp.org>
24004 * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24005 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
24006 Define to replacements if REPLACE_ISWCNTRL is 1.
24007 * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
24008 If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
24009 * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
24010 * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
24012 * doc/posix-functions/iswalpha.texi: Likewise.
24013 * doc/posix-functions/iswblank.texi: Likewise.
24014 * doc/posix-functions/iswcntrl.texi: Likewise.
24015 * doc/posix-functions/iswdigit.texi: Likewise.
24016 * doc/posix-functions/iswgraph.texi: Likewise.
24017 * doc/posix-functions/iswlower.texi: Likewise.
24018 * doc/posix-functions/iswprint.texi: Likewise.
24019 * doc/posix-functions/iswpunct.texi: Likewise.
24020 * doc/posix-functions/iswspace.texi: Likewise.
24021 * doc/posix-functions/iswupper.texi: Likewise.
24022 * doc/posix-functions/iswxdigit.texi: Likewise.
24023 Reported by Alain Guibert.
24025 2008-04-21 Bruno Haible <bruno@clisp.org>
24027 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
24028 Patch by Alain Guibert.
24030 2008-04-21 Bruno Haible <bruno@clisp.org>
24032 Fix test failures on mingw.
24033 * tests/test-xstrtol.c (print_no_progname): New function.
24034 (main): Install it in error_print_progname hook.
24035 * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
24036 * tests/test-xstrtoimax.sh: Likewise.
24037 * tests/test-xstrtoumax.sh: Likewise.
24039 2008-04-21 Bruno Haible <bruno@clisp.org>
24041 Fix test failure on mingw.
24042 * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
24044 2008-04-21 Bruno Haible <bruno@clisp.org>
24046 * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
24047 Actually assign a value.
24049 2008-04-20 Bruno Haible <bruno@clisp.org>
24051 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
24053 * lib/canonicalize.c (canonicalize_file_name): Elide if the
24054 'canonicalize-lgpl' module is also used.
24055 * lib/canonicalize-lgpl.c: Undo last change.
24056 * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
24058 2008-04-20 Bruno Haible <bruno@clisp.org>
24060 * lib/mkdir.c (mkdir): Undefine after the includes, not right after
24061 config.h. Provide _mkdir based fallback for mingw.
24062 * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
24063 if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
24064 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
24065 gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
24066 rather than defining mkdir in config.h.
24067 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
24068 (gl_SYS_STAT_H_DEFAULTS): New macro.
24069 (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
24070 HAVE_IO_H any more.
24071 * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
24072 HAVE_DECL_MKDIR and HAVE_IO_H.
24074 2008-04-20 Bruno Haible <bruno@clisp.org>
24076 * lib/isapipe.c: Port to native Windows platforms.
24078 2008-04-20 Bruno Haible <bruno@clisp.org>
24080 * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
24082 2008-04-21 Eric Blake <ebb9@byu.net>
24084 Work around preprocessors that don't handle UINTMAX_MAX.
24085 * lib/memchr2.c (memchr2): Avoid embedded #if.
24086 Reported by Alain Guibert, fix suggested by Bruno Haible.
24088 2008-04-21 Simon Josefsson <simon@josefsson.org>
24090 * doc/posix-functions/strftime.texi (strftime): Explain better
24091 Windows incompatibility. Suggested by Micah Cowan
24092 <micah@cowan.name>.
24094 2008-04-20 Bruno Haible <bruno@clisp.org>
24096 * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
24099 2008-04-20 Bruno Haible <bruno@clisp.org>
24101 Fix test failure on platforms with non-GNU iconv.
24102 * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
24103 (U_TO_U8): Use it, rather than u16_to_u8.
24104 * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
24105 units at the end of the input string.
24106 * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
24108 2008-04-20 Bruno Haible <bruno@clisp.org>
24110 * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
24111 when the resulting length is 0.
24112 * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
24114 2008-04-20 Bruno Haible <bruno@clisp.org>
24116 * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
24118 * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
24120 2008-04-20 Bruno Haible <bruno@clisp.org>
24122 * tests/test-tsearch.c (main): Don't use initstate if it is missing.
24123 * modules/tsearch-tests (configure.ac): Test for initstate function.
24125 2008-04-20 Bruno Haible <bruno@clisp.org>
24127 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
24128 for nlink_t if missing.
24129 * tests/test-sys_stat.c: Check the existence of the nlink_t type.
24131 2008-04-19 Bruno Haible <bruno@clisp.org>
24133 Work around snprintf bug on Linux libc5.
24134 * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
24135 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
24137 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24138 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
24140 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
24141 * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
24142 * modules/snprintf (Files): Add m4/printf.m4.
24143 * modules/vsnprintf (Files): Likewise.
24144 * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
24145 * doc/posix-functions/vsnprintf.texi: Likewise.
24147 2008-04-19 Bruno Haible <bruno@clisp.org>
24149 * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
24150 from 0.0058 to less than 10^-7.
24152 2008-04-19 Bruno Haible <bruno@clisp.org>
24154 Fix rounding when a precision is given.
24155 * lib/vasnprintf.c (is_borderline): New function.
24156 (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
24158 * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
24160 * tests/test-vasprintf-posix.c (test_function): Likewise.
24161 * tests/test-snprintf-posix.h (test_function): Likewise.
24162 * tests/test-sprintf-posix.h (test_function): Likewise.
24163 * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
24164 * tests/test-printf-posix.h (test_function): Likewise.
24165 * tests/test-printf-posix.output: Update.
24166 Reported by John Darrington <john@darrington.wattle.id.au> via
24167 Ben Pfaff <blp@cs.stanford.edu>.
24169 2008-04-18 Simon Josefsson <simon@josefsson.org>
24171 * doc/posix-functions/strftime.texi (strftime): Clarify platform.
24172 Suggested by Bruno Haible <bruno@clisp.org>.
24174 2008-04-17 Bruno Haible <bruno@clisp.org>
24176 * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
24177 gl_recursive_lock_destroy): Provide no-op definitions for the dummy
24179 Patch by Bruce Merry <bmerry@gmail.com>.
24181 2008-04-17 Simon Josefsson <simon@josefsson.org>
24183 * doc/posix-functions/strftime.texi (strftime): Mention that %e
24184 doesn't work under Windows.
24186 2008-04-16 Bruno Haible <bruno@clisp.org>
24188 * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
24190 (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
24191 SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
24192 SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
24193 SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
24194 SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
24195 SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
24196 SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
24198 (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
24199 Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
24200 Northern Sotho, Uighur.
24202 2008-04-16 Bruno Haible <bruno@clisp.org>
24204 * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
24205 (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
24206 (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
24207 Reported by Daniel Bergström <daniel@octocode.com>.
24209 2007-12-25 KJK::Hyperion <hackbunny@reactos.com>
24210 Bruno Haible <bruno@clisp.org>
24212 * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
24214 (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
24215 New functions, mostly extracted from gl_locale_name_default.
24216 (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
24218 2008-04-16 Eric Blake <ebb9@byu.net>
24220 Adjust strtod detection to catch glibc 2.7 bug.
24221 * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
24222 Reported by John Gatewood Ham.
24224 2008-04-16 Bruno Haible <bruno@clisp.org>
24226 Add tentative support for Linux libc5.
24227 * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
24228 * lib/fpurge.c (fpurge): Likewise.
24229 * lib/freadable.c (freadable): Likewise.
24230 * lib/freadahead.c (freadahead): Likewise.
24231 * lib/freading.c (freading): Likewise.
24232 * lib/freadptr.c (freadptr): Likewise.
24233 * lib/freadseek.c (freadptrinc): Likewise.
24234 * lib/fseeko.c (rpl_fseeko): Likewise.
24235 * lib/fseterr.c (fseterr): Likewise.
24236 * lib/fwritable.c (fwritable): Likewise.
24237 * lib/fwriting.c (fwriting): Likewise.
24238 Reported by Alain Guibert <alguibert+bts@free.fr>.
24240 2008-04-15 Bruno Haible <bruno@clisp.org>
24242 * modules/mathl (configure.ac): Define module indicator.
24244 2008-04-15 Bruno Haible <bruno@clisp.org>
24246 * lib/logl.c (logl): Remove unused variables.
24248 2008-04-15 Bruno Haible <bruno@clisp.org>
24250 * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
24253 2008-04-15 Bruno Haible <bruno@clisp.org>
24255 * lib/trim.c (trim2): Fix argument of isspace() macro.
24257 2008-04-15 Paolo Bonzini <bonzini@gnu.org>
24259 * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
24261 * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
24263 2008-04-14 Bruno Haible <bruno@clisp.org>
24265 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
24266 AC_LANG_PROGRAM argument.
24267 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
24268 * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
24269 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24270 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24271 * m4/math_h.m4 (gl_MATH_H): Likewise.
24272 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
24273 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24274 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
24275 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
24276 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24277 * m4/regex.m4 (gl_REGEX): Likewise.
24278 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
24279 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
24280 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24281 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
24282 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
24283 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24284 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24285 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24287 2008-04-14 Jim Meyering <meyering@redhat.com>
24289 test-strtod: fix typos: s/abs/fabs/
24290 * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
24292 2008-04-13 Bruno Haible <bruno@clisp.org>
24294 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
24295 * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
24296 module is also used and while not building the reloc-wrapper.
24298 2008-04-13 Bruno Haible <bruno@clisp.org>
24300 * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
24302 2008-04-13 Bruno Haible <bruno@clisp.org>
24304 Fix AIX compilation failure introduced on 2008-04-02.
24305 * tests/test-frexp.c (exp): Undefine before redefining.
24306 * tests/test-frexpl.c (exp): Likewise.
24308 2008-04-13 Bruno Haible <bruno@clisp.org>
24310 Work around a HP-UX stdio bug.
24311 * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
24312 * tests/test-ftello.c (main): Likewise.
24313 * doc/posix-functions/ftell.texi: Mention HP-UX bug.
24314 * doc/posix-functions/ftello.texi: Likewise.
24316 2008-04-13 Bruno Haible <bruno@clisp.org>
24318 Make test-signbit pass on HP-UX/hppa.
24319 * tests/test-signbit.c (minus_zerol): New variable.
24320 (test_signbitl): Use it.
24322 2008-04-13 Bruno Haible <bruno@clisp.org>
24324 Make truncl work on OSF/1 4.0.
24325 * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
24326 Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
24327 * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
24328 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
24330 * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
24332 * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
24334 2008-04-13 Bruno Haible <bruno@clisp.org>
24336 * lib/unictype.h: Remove trailing comma from enumeration definitions.
24338 2008-04-13 Bruno Haible <bruno@clisp.org>
24340 * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
24341 expression, so as to avoid HP-UX 11 cc compiler bug.
24343 2008-04-13 Bruno Haible <bruno@clisp.org>
24345 * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
24347 2008-04-13 Bruno Haible <bruno@clisp.org>
24349 * lib/git-merge-changelog.c: Remove empty declaration outside of
24352 2008-04-13 Bruno Haible <bruno@clisp.org>
24354 * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
24356 2008-04-13 Bruno Haible <bruno@clisp.org>
24358 * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
24359 * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
24360 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
24361 also if it exists but lacks definitions of the SHUT_* macros.
24362 * modules/sys_socket (Description): Update.
24363 Reported by Elbert Pol <e.pol@chello.nl>.
24365 2008-04-13 Bruno Haible <bruno@clisp.org>
24367 * lib/localcharset.c (OS2): Don't redefine if already defined.
24368 Reported by Elbert Pol <e.pol@chello.nl>.
24370 2008-04-13 Bruno Haible <bruno@clisp.org>
24372 * lib/binary-io.h [__EMX__]: Include <io.h>.
24373 Reported by Elbert Pol <e.pol@chello.nl>.
24375 2008-04-12 Bruno Haible <bruno@clisp.org>
24377 * lib/fpucw.h: Enable the definitions also for x86_64.
24378 Needed for NetBSD/x86_64.
24379 Reported by Thomas Klausner <tk@giga.or.at>.
24381 2008-04-12 Bruno Haible <bruno@clisp.org>
24383 * tests/test-strtod.c: Include isnand.h.
24384 (main): Use isnand instead of isnan.
24385 Reported by Jim Meyering.
24387 2008-04-12 Bruno Haible <bruno@clisp.org>
24389 * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
24390 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
24392 2008-04-12 Jim Meyering <meyering@redhat.com>
24394 * m4/math_h.m4 (gl_MATH_H): Fix typos.
24396 2008-04-12 Bruno Haible <bruno@clisp.org>
24398 * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
24399 Reported by Elbert Pol <e.pol@chello.nl>.
24401 2008-04-12 Eric Blake <ebb9@byu.net>
24403 Work around Solaris 10 math.h bug.
24404 * m4/math_h.m4 (gl_MATH_H): Check for bug.
24405 (gl_MATH_H_DEFAULTS): Set up default.
24406 * modules/math (Makefile.am): Replace new indicators.
24407 * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
24408 * tests/test-math.c (main): Test this.
24409 * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
24410 * doc/posix-headers/math.texi (math.h): Mention bug.
24411 Reported by Nelson H. F. Beebe and Jim Meyering.
24413 2008-04-11 Bruno Haible <bruno@clisp.org>
24415 Adapt to future versions of Apple GCC.
24416 * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
24417 Reported by Peter O'Gorman <peter@pogma.com>.
24419 2008-04-11 Bruno Haible <bruno@clisp.org>
24421 * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
24423 2008-04-11 Bruno Haible <bruno@clisp.org>
24425 * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
24427 * modules/getaddrinfo-tests (Makefile.am): Define
24428 test_getaddrinfo_LDADD.
24430 2008-04-11 Bruno Haible <bruno@clisp.org>
24432 * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
24433 (init): Fix syntax error.
24434 * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
24437 2008-04-11 Bruno Haible <bruno@clisp.org>
24439 * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
24440 * modules/glob (Depends-on): Add stdbool.
24442 2008-04-11 Bruno Haible <bruno@clisp.org>
24444 * lib/trim.c: Include <string.h>.
24446 2008-04-11 Eric Blake <ebb9@byu.net>
24448 Avoid compile failure on OS/2.
24449 * lib/regex_internal.h (internal_function): Disable optimization
24450 on OS/2 (__EMX__), where it caused compiler error.
24451 Reported by Elbert Pol.
24453 2008-04-11 Bruno Haible <bruno@clisp.org>
24455 Flush the standard error stream before aborting. Needed on mingw.
24456 * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
24457 * tests/test-array_list.c (ASSERT): Likewise.
24458 * tests/test-array_oset.c (ASSERT): Likewise.
24459 * tests/test-avltree_list.c (ASSERT): Likewise.
24460 * tests/test-avltree_oset.c (ASSERT): Likewise.
24461 * tests/test-avltreehash_list.c (ASSERT): Likewise.
24462 * tests/test-binary-io.c (ASSERT): Likewise.
24463 * tests/test-byteswap.c (ASSERT): Likewise.
24464 * tests/test-c-ctype.c (ASSERT): Likewise.
24465 * tests/test-c-strcasecmp.c (ASSERT): Likewise.
24466 * tests/test-c-strcasestr.c (ASSERT): Likewise.
24467 * tests/test-c-strncasecmp.c (ASSERT): Likewise.
24468 * tests/test-c-strstr.c (ASSERT): Likewise.
24469 * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
24470 * tests/test-canonicalize.c (ASSERT): Likewise.
24471 * tests/test-carray_list.c (ASSERT): Likewise.
24472 * tests/test-ceilf1.c (ASSERT): Likewise.
24473 * tests/test-ceilf2.c (ASSERT): Likewise.
24474 * tests/test-ceill.c (ASSERT): Likewise.
24475 * tests/test-count-one-bits.c (ASSERT): Likewise.
24476 * tests/test-fbufmode.c (ASSERT): Likewise.
24477 * tests/test-fflush2.c (ASSERT): Likewise.
24478 * tests/test-floorf1.c (ASSERT): Likewise.
24479 * tests/test-floorf2.c (ASSERT): Likewise.
24480 * tests/test-floorl.c (ASSERT): Likewise.
24481 * tests/test-fopen.c (ASSERT): Likewise.
24482 * tests/test-fpending.c (ASSERT): Likewise.
24483 * tests/test-fprintf-posix.c (ASSERT): Likewise.
24484 * tests/test-fpurge.c (ASSERT): Likewise.
24485 * tests/test-freadable.c (ASSERT): Likewise.
24486 * tests/test-freadahead.c (ASSERT): Likewise.
24487 * tests/test-freading.c (ASSERT): Likewise.
24488 * tests/test-freadptr.c (ASSERT): Likewise.
24489 * tests/test-freadptr2.c (ASSERT): Likewise.
24490 * tests/test-freadseek.c (ASSERT): Likewise.
24491 * tests/test-freopen.c (ASSERT): Likewise.
24492 * tests/test-frexp.c (ASSERT): Likewise.
24493 * tests/test-frexpl.c (ASSERT): Likewise.
24494 * tests/test-fseek.c (ASSERT): Likewise.
24495 * tests/test-fseeko.c (ASSERT): Likewise.
24496 * tests/test-fstrcmp.c (ASSERT): Likewise.
24497 * tests/test-ftell.c (ASSERT): Likewise.
24498 * tests/test-ftello.c (ASSERT): Likewise.
24499 * tests/test-func.c (ASSERT): Likewise.
24500 * tests/test-fwritable.c (ASSERT): Likewise.
24501 * tests/test-fwriting.c (ASSERT): Likewise.
24502 * tests/test-getdelim.c (ASSERT): Likewise.
24503 * tests/test-getline.c (ASSERT): Likewise.
24504 * tests/test-i-ring.c (ASSERT): Likewise.
24505 * tests/test-iconv-utf.c (ASSERT): Likewise.
24506 * tests/test-iconv.c (ASSERT): Likewise.
24507 * tests/test-isfinite.c (ASSERT): Likewise.
24508 * tests/test-isnand.c (ASSERT): Likewise.
24509 * tests/test-isnanf.c (ASSERT): Likewise.
24510 * tests/test-isnanl.h (ASSERT): Likewise.
24511 * tests/test-ldexpl.c (ASSERT): Likewise.
24512 * tests/test-linked_list.c (ASSERT): Likewise.
24513 * tests/test-linkedhash_list.c (ASSERT): Likewise.
24514 * tests/test-localename.c (ASSERT): Likewise.
24515 * tests/test-lseek.c (ASSERT): Likewise.
24516 * tests/test-mbscasecmp.c (ASSERT): Likewise.
24517 * tests/test-mbscasestr1.c (ASSERT): Likewise.
24518 * tests/test-mbscasestr2.c (ASSERT): Likewise.
24519 * tests/test-mbscasestr3.c (ASSERT): Likewise.
24520 * tests/test-mbscasestr4.c (ASSERT): Likewise.
24521 * tests/test-mbschr.c (ASSERT): Likewise.
24522 * tests/test-mbscspn.c (ASSERT): Likewise.
24523 * tests/test-mbsncasecmp.c (ASSERT): Likewise.
24524 * tests/test-mbspbrk.c (ASSERT): Likewise.
24525 * tests/test-mbspcasecmp.c (ASSERT): Likewise.
24526 * tests/test-mbsrchr.c (ASSERT): Likewise.
24527 * tests/test-mbsspn.c (ASSERT): Likewise.
24528 * tests/test-mbsstr1.c (ASSERT): Likewise.
24529 * tests/test-mbsstr2.c (ASSERT): Likewise.
24530 * tests/test-mbsstr3.c (ASSERT): Likewise.
24531 * tests/test-memchr2.c (ASSERT): Likewise.
24532 * tests/test-memmem.c (ASSERT): Likewise.
24533 * tests/test-open.c (ASSERT): Likewise.
24534 * tests/test-printf-frexp.c (ASSERT): Likewise.
24535 * tests/test-printf-frexpl.c (ASSERT): Likewise.
24536 * tests/test-printf-posix.c (ASSERT): Likewise.
24537 * tests/test-quotearg.c (ASSERT): Likewise.
24538 * tests/test-rbtree_list.c (ASSERT): Likewise.
24539 * tests/test-rbtree_oset.c (ASSERT): Likewise.
24540 * tests/test-rbtreehash_list.c (ASSERT): Likewise.
24541 * tests/test-round1.c (ASSERT): Likewise.
24542 * tests/test-roundf1.c (ASSERT): Likewise.
24543 * tests/test-roundl.c (ASSERT): Likewise.
24544 * tests/test-signbit.c (ASSERT): Likewise.
24545 * tests/test-sleep.c (ASSERT): Likewise.
24546 * tests/test-snprintf-posix.c (ASSERT): Likewise.
24547 * tests/test-snprintf.c (ASSERT): Likewise.
24548 * tests/test-sprintf-posix.c (ASSERT): Likewise.
24549 * tests/test-stat-time.c (ASSERT): Likewise.
24550 * tests/test-strcasestr.c (ASSERT): Likewise.
24551 * tests/test-strerror.c (ASSERT): Likewise.
24552 * tests/test-striconv.c (ASSERT): Likewise.
24553 * tests/test-striconveh.c (ASSERT): Likewise.
24554 * tests/test-striconveha.c (ASSERT): Likewise.
24555 * tests/test-strsignal.c (ASSERT): Likewise.
24556 * tests/test-strstr.c (ASSERT): Likewise.
24557 * tests/test-strtod.c (ASSERT): Likewise.
24558 * tests/test-trunc1.c (ASSERT): Likewise.
24559 * tests/test-trunc2.c (ASSERT): Likewise.
24560 * tests/test-truncf1.c (ASSERT): Likewise.
24561 * tests/test-truncf2.c (ASSERT): Likewise.
24562 * tests/test-truncl.c (ASSERT): Likewise.
24563 * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
24564 * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
24565 * tests/test-vasnprintf.c (ASSERT): Likewise.
24566 * tests/test-vasprintf-posix.c (ASSERT): Likewise.
24567 * tests/test-vasprintf.c (ASSERT): Likewise.
24568 * tests/test-vfprintf-posix.c (ASSERT): Likewise.
24569 * tests/test-vprintf-posix.c (ASSERT): Likewise.
24570 * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
24571 * tests/test-vsnprintf.c (ASSERT): Likewise.
24572 * tests/test-vsprintf-posix.c (ASSERT): Likewise.
24573 * tests/test-wcwidth.c (ASSERT): Likewise.
24574 * tests/test-xfprintf-posix.c (ASSERT): Likewise.
24575 * tests/test-xprintf-posix.c (ASSERT): Likewise.
24576 * tests/test-xvasprintf.c (ASSERT): Likewise.
24577 * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
24578 * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
24579 * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
24580 * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
24581 * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
24582 * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
24583 * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
24584 * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
24585 * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
24586 * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
24587 * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
24588 * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
24589 * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
24590 * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
24591 * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
24592 * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
24593 * tests/unictype/test-block_list.c (ASSERT): Likewise.
24594 * tests/unictype/test-block_of.c (ASSERT): Likewise.
24595 * tests/unictype/test-block_test.c (ASSERT): Likewise.
24596 * tests/unictype/test-categ_and.c (ASSERT): Likewise.
24597 * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
24598 * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
24599 * tests/unictype/test-categ_name.c (ASSERT): Likewise.
24600 * tests/unictype/test-categ_none.c (ASSERT): Likewise.
24601 * tests/unictype/test-categ_of.c (ASSERT): Likewise.
24602 * tests/unictype/test-categ_or.c (ASSERT): Likewise.
24603 * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
24604 * tests/unictype/test-combining.c (ASSERT): Likewise.
24605 * tests/unictype/test-decdigit.c (ASSERT): Likewise.
24606 * tests/unictype/test-digit.c (ASSERT): Likewise.
24607 * tests/unictype/test-mirror.c (ASSERT): Likewise.
24608 * tests/unictype/test-numeric.c (ASSERT): Likewise.
24609 * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
24610 * tests/unictype/test-pr_test.c (ASSERT): Likewise.
24611 * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
24612 * tests/unictype/test-scripts.c (ASSERT): Likewise.
24613 * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
24614 * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
24615 * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
24616 * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
24617 * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
24618 * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
24619 * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
24620 * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
24621 * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
24622 * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
24623 * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
24624 * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
24625 * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
24626 * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
24627 * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
24628 * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
24629 * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
24630 * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
24631 * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
24632 * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
24633 * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
24634 * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
24635 * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
24636 * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
24637 * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
24638 * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
24639 * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
24640 * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
24641 * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
24642 * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
24643 * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
24644 * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
24645 * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
24646 * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
24647 * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
24648 * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
24649 * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
24650 Reported by Eric Blake.
24652 2008-04-11 Bruno Haible <bruno@clisp.org>
24654 * lib/wchar.in.h: Tweak comment.
24656 2008-04-11 Bruno Haible <bruno@clisp.org>
24658 Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
24659 * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
24661 * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
24663 2008-04-11 Bruno Haible <bruno@clisp.org>
24665 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
24667 2008-04-11 Simon Josefsson <simon@josefsson.org>
24669 * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
24670 of attempting to use non-existing /dev/*random. Based on patch
24671 from Adam Strzelecki <ono@java.pl> in
24672 <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
24674 2008-04-08 Bruno Haible <bruno@clisp.org>
24676 Add tentative support for emx+gcc.
24677 * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
24678 * lib/fpurge.c (fpurge): Likewise.
24679 * lib/freadable.c (freadable): Likewise.
24680 * lib/freadahead.c (freadahead): Likewise.
24681 * lib/freading.c (freading): Likewise.
24682 * lib/freadptr.c (freadptr): Likewise.
24683 * lib/freadseek.c (freadptrinc): Likewise.
24684 * lib/fseeko.c (rpl_fseeko): Likewise.
24685 * lib/fseterr.c (fseterr): Likewise.
24686 * lib/fwritable.c (fwritable): Likewise.
24687 * lib/fwriting.c (fwriting): Likewise.
24688 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
24690 2008-04-09 Eric Blake <ebb9@byu.net>
24692 Avoid some autoconf warnings.
24693 * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
24694 * m4/acl.m4 (gl_FUNC_ACL): Likewise.
24695 * m4/afs.m4 (gl_AFS): Likewise.
24696 * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
24697 * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
24698 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24699 * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
24700 (gl_INTEGER_TYPE_SUFFIX): Likewise.
24701 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
24702 (AC_CHECK_DECLS_ONCE): Likewise.
24704 * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
24705 gnulib-tool requires autoconf 2.59 or better.
24706 * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
24708 2008-04-08 Eric Blake <ebb9@byu.net>
24710 Use 'git describe --match' if present (added in git 1.5.5).
24711 * build-aux/git-version-gen: Limit result to tags that match 'v*'
24714 2008-04-08 Bruno Haible <bruno@clisp.org>
24716 Add tentative support for OpenServer.
24717 * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
24719 * lib/fpurge.c (fpurge): Likewise.
24720 * lib/freadable.c (freadable): Likewise.
24721 * lib/freadahead.c (freadahead): Likewise.
24722 * lib/freading.c (freading): Likewise.
24723 * lib/freadptr.c (freadptr): Likewise.
24724 * lib/freadseek.c (freadptrinc): Likewise.
24725 * lib/fseeko.c (rpl_fseeko): Likewise.
24726 * lib/fseterr.c (fseterr): Likewise.
24727 * lib/fwritable.c (fwritable): Likewise.
24728 * lib/fwriting.c (fwriting): Likewise.
24729 Reported by Roger Cornelius <rac@tenzing.org> and
24730 Brian K. White <brian@aljex.com>.
24732 2008-04-06 Jim Meyering <meyering@redhat.com>
24734 * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
24736 2008-04-06 Bruno Haible <bruno@clisp.org>
24738 Avoid possible error with non-ASCII bytes in UTF-8 locales.
24739 * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
24740 * tests/test-printf-posix.sh: Likewise.
24741 * tests/test-vfprintf-posix.sh: Likewise.
24742 * tests/test-vprintf-posix.sh: Likewise.
24743 * tests/test-xprintf-posix.sh: Likewise.
24745 2008-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24747 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
24748 hide error from 'ls', needed on OS/2.
24749 Report by Elbert Pol <elbert.pol@gmail.com>.
24751 2008-04-04 Eric Blake <ebb9@byu.net>
24753 Make test-fseeko.c failures meaningful.
24754 * tests/test-fseeko.c: Print line number on failure.
24755 * tests/test-fseek.c: Likewise.
24756 Reported by Nelson H. F. Beebe.
24758 Improve strtod bug detection check.
24759 * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
24760 required for Solaris 10.
24761 Reported by Bob Friesenhahn and Nelson H. F. Beebe.
24763 2008-04-04 Bruno Haible <bruno@clisp.org>
24765 * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
24768 2008-04-03 Eric Blake <ebb9@byu.net>
24770 Ensure sane .version contents.
24771 * top/GNUmakefile (_dummy): Also delete .version when rebuilding
24773 * build-aux/git-version-gen: Improve documentation.
24775 Make GNU make output nicer.
24776 * top/GNUmakefile [!_have-Makefile]: Add dependency on
24777 MAKECMDGOALS to enforce message for all command line targets. Set
24778 srcdir for use in maint.mk.
24780 Another maintainer tweak.
24781 * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
24782 a target that regenerates version.
24784 2008-04-03 Jim Meyering <meyering@redhat.com>
24786 vc-list-files: don't cause coreutils "make po-check" failure
24787 * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
24789 2008-04-03 Eric Blake <ebb9@byu.net>
24791 Allow VPATH usage of vc-list-files.
24792 * build-aux/vc-list-files (scriptversion): Add timestamp.
24793 (options): Add --help, --version, -C.
24794 (CVS): Support installed cvsu.
24796 2008-04-02 Bruno Haible <bruno@clisp.org>
24798 Avoid some "statement with no effect" warnings from gcc.
24799 * tests/test-wctype.c (main): Explicitly ignore unused values.
24800 Reported by Jim Meyering.
24802 2008-04-02 Jim Meyering <meyering@redhat.com>
24804 Avoid some warnings from "gcc -Wshadow".
24805 * tests/test-frexp.c (exp): Define to a different identifier.
24806 * tests/test-frexpl.c (exp): Likewise.
24808 2008-04-03 Jim Meyering <meyering@redhat.com>
24810 bootstrap: remove dangling *.[ch] symlinks from lib
24811 * build-aux/bootstrap [dangling symlink removal]: Move find's
24812 -depth option to precede all others, to avoid a warning.
24813 Remove *.[ch] files too, and from "$source_base" (usually lib/).
24815 2008-04-02 Bruno Haible <bruno@clisp.org>
24817 Avoid some warnings from "gcc -Wshadow".
24818 * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
24819 * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
24820 * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
24821 * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
24822 Reported by Jim Meyering.
24824 2008-04-01 Bruno Haible <bruno@clisp.org>
24826 Fix test to work on IRIX 6.5 with cc.
24827 * tests/test-math.c (numeric_equal): New function.
24830 2008-04-01 Bruno Haible <bruno@clisp.org>
24832 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
24834 2008-04-01 Bruno Haible <bruno@clisp.org>
24836 * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
24837 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24838 * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
24839 (Depends-on): Remove math.
24841 * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
24842 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24843 * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
24844 (Depends-on): Remove math.
24846 * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
24847 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24848 * modules/snprintf-posix-tests (Files): Add tests/nan.h.
24849 (Depends-on): Remove math.
24850 * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
24851 (Depends-on): Remove math.
24853 * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
24854 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24855 * modules/sprintf-posix-tests (Files): Add tests/nan.h.
24856 (Depends-on): Remove math.
24857 * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
24858 (Depends-on): Remove math.
24860 * tests/test-round1.c: Include nan.h.
24861 (main): Use NaNd instead of NAN.
24862 * modules/round-tests (Files): Add tests/nan.h.
24864 * tests/test-trunc1.c: Include nan.h.
24865 (main): Use NaNd instead of NAN.
24866 * modules/trunc-tests (Files): Add tests/nan.h.
24868 * tests/test-roundf1.c: Include nan.h.
24869 (main): Use NaNf instead of NAN.
24870 * modules/roundf-tests (Files): Add tests/nan.h.
24872 * tests/test-truncf1.c: Include nan.h.
24873 (main): Use NaNf instead of NAN.
24874 * modules/truncf-tests (Files): Add tests/nan.h.
24876 * tests/test-ceilf1.c: Include nan.h.
24877 (main): Use NaNf instead of NAN.
24878 * modules/ceilf-tests (Files): Add tests/nan.h.
24880 * tests/test-floorf1.c: Include nan.h.
24881 (main): Use NaNf instead of NAN.
24882 * modules/floorf-tests (Files): Add tests/nan.h.
24884 * tests/test-isnanf.c: Include nan.h instead of <math.h>.
24885 (main): Use NaNf instead of NAN.
24886 * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
24888 * tests/test-isnand.c: Include nan.h instead of <math.h>.
24889 (main): Use NaNd instead of NAN.
24890 * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
24892 * tests/test-frexp.c: Include nan.h.
24893 (main): Use NaNd instead of NAN.
24894 * modules/frexp-tests (Files): Add tests/nan.h.
24896 * lib/isnan.c: Don't include <math.h>.
24897 (FUNC): Don't use NAN macro.
24898 * modules/isnand-nolibm (Depends-on): Remove math.
24899 * modules/isnanf-nolibm (Depends-on): Remove math.
24900 * modules/isnanl (Depends-on): Remove math.
24901 * modules/isnanl-nolibm (Depends-on): Remove math.
24903 * tests/nan.h: New file.
24905 2008-04-01 Eric Blake <ebb9@byu.net>
24908 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
24909 values to be the right type.
24911 For now, cater to gnulib strtod inaccuracies.
24912 * tests/test-strtod.c (main): Allow 1-ulp error on expected
24913 fractional results. While not as nice from a QoI perspective, it
24914 is a quicker patch than correctly implementing decimal to binary
24917 2008-03-31 Eric Blake <ebb9@byu.net>
24919 Guarantee a definition of NAN.
24920 * lib/math.in.h (NAN): Define if missing.
24921 * tests/test-math.c (main): Test it.
24922 * doc/posix-headers/math.texi (math.h): Document this.
24923 * lib/isnan.c (rpl_isnand): Use it.
24924 * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
24925 * tests/test-floorf1.c (NaN): Likewise.
24926 * tests/test-frexp.c (NaN): Likewise.
24927 * tests/test-isnand.c (NaN): Likewise.
24928 * tests/test-isnanf.c (NaN): Likewise.
24929 * tests/test-round1.c (NaN): Likewise.
24930 * tests/test-roundf1.c (NaN): Likewise.
24931 * tests/test-snprintf-posix.h (NaN): Likewise.
24932 * tests/test-sprintf-posix.h (NaN): Likewise.
24933 * tests/test-trunc1.c (NaN): Likewise.
24934 * tests/test-truncf1.c (NaN): Likewise.
24935 * tests/test-vasnprintf-posix.c (NaN): Likewise.
24936 * tests/test-vasprintf-posix.c (NaN): Likewise.
24937 * modules/isnand-nolibm (Depends-on): Add math.
24938 * modules/isnanf-nolibm (Depends-on): Likewise.
24939 * modules/isnanl (Depends-on): Likewise.
24940 * modules/isnanl-nolibm (Depends-on): Likewise.
24941 * modules/snprintf-posix-tests (Depends-on): Likewise.
24942 * modules/sprintf-posix-tests (Depends-on): Likewise.
24943 * modules/vsnprintf-posix-tests (Depends-on): Likewise.
24944 * modules/vsprintf-posix-tests (Depends-on): Likewise.
24945 * modules/vasnprintf-posix-tests (Depends-on): Likewise.
24946 * modules/vasprintf-posix-tests (Depends-on): Likewise.
24948 2008-03-31 Bruno Haible <bruno@clisp.org>
24950 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
24951 * doc/posix-functions/strtod.texi: Likewise.
24953 2008-03-31 Bruno Haible <bruno@clisp.org>
24955 * tests/test-strtod.c (main): Don't use C99 syntax.
24957 2008-03-31 Bruno Haible <bruno@clisp.org>
24959 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
24960 Reported by Eric Blake.
24962 2008-03-31 Jim Meyering <meyering@redhat.com>
24964 Don't compare actual signbit return values.
24965 * tests/test-strtod.c (main): Rather, compare only their
24966 zero/non-zero nature.
24968 2008-03-31 Eric Blake <ebb9@byu.net>
24970 More strtod documentation.
24971 * doc/posix-functions/strtod.texi (strtod): Interpret more test
24972 failures as distinct bugs.
24974 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
24976 * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
24977 Problem reported by Erik Benada in
24978 <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
24980 2008-03-30 Bruno Haible <bruno@clisp.org>
24982 * tests/test-strtod.c: Add comments about which assertion fails on which
24984 * doc/posix-functions/strtod.texi: Add info about many more platforms.
24986 2008-03-30 Eric Blake <ebb9@byu.net>
24988 Test signbit behavior on zeros.
24989 * tests/test-signbit.c (test_signbitf): Add tests for zero.
24990 (test_signbitd, test_signbitl): Likewise.
24992 More strtod touchups.
24993 * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
24994 sign of negative underflow, for now. Use .5, not .1.
24995 * doc/posix-functions/strtod.texi (strtod): Mention these
24997 Reported by Jim Meyering.
24999 2008-03-30 Bruno Haible <bruno@clisp.org>
25001 * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
25002 from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
25004 2008-03-30 Bruno Haible <bruno@clisp.org>
25006 Avoid failure when attempting to return empty iconv results on some
25008 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
25009 allocation, don't report ENOMEM when the resulting string is empty.
25011 2008-03-30 Bruno Haible <bruno@clisp.org>
25013 Fix buffer overrun.
25014 * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
25015 Don't consider the width for tmp_length. Check count against tmp_length
25016 before doing the padding. Ensure enough allocation during padding.
25018 2008-03-30 Eric Blake <ebb9@byu.net>
25021 * lib/strtod.c (strtod): Avoid compiler warnings.
25022 Reported by Jim Meyering.
25024 2008-03-30 Bruno Haible <bruno@clisp.org>
25026 * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
25027 * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
25028 * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
25029 * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
25030 * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
25031 * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
25032 * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
25033 * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
25035 * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
25036 * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
25037 * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
25038 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
25039 * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
25040 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
25041 * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
25042 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
25044 * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
25045 * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
25046 * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
25047 * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
25048 * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
25049 * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
25050 * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
25051 * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
25053 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
25054 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
25056 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
25057 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
25059 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
25060 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
25062 * lib/vsprintf.c (EOVERFLOW): Remove fallback.
25063 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
25064 * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
25066 * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
25067 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
25068 * modules/vsnprintf (Depends-on): Add EOVERFLOW.
25070 * lib/vfprintf.c (EOVERFLOW): Remove fallback.
25071 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
25072 * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
25074 * lib/vasprintf.c (EOVERFLOW): Remove fallback.
25075 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
25076 * modules/vasprintf (Depends-on): Add EOVERFLOW.
25078 * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
25079 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
25080 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
25081 * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
25082 (Depends-on): Add EOVERFLOW.
25083 * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
25084 (Depends-on): Add EOVERFLOW.
25085 * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25086 (Depends-on): Add EOVERFLOW.
25087 * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25088 (Depends-on): Add EOVERFLOW.
25089 * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25090 (Depends-on): Add EOVERFLOW.
25091 * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25092 (Depends-on): Add EOVERFLOW.
25093 * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25094 (Depends-on): Add EOVERFLOW.
25095 * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25096 (Depends-on): Add EOVERFLOW.
25098 * lib/sprintf.c (EOVERFLOW): Remove fallback.
25099 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
25100 * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
25102 * lib/snprintf.c (EOVERFLOW): Remove fallback.
25103 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
25104 * modules/snprintf (Depends-on): Add EOVERFLOW.
25106 * lib/poll.c (EOVERFLOW): Remove fallback.
25107 * modules/poll (Depends-on): Add EOVERFLOW.
25109 * lib/getugroups.c (EOVERFLOW): Remove fallback.
25110 * modules/getugroups (Depends-on): Add EOVERFLOW.
25112 * lib/getdelim.c (EOVERFLOW): Remove fallback.
25113 * modules/getdelim (Depends-on): Add EOVERFLOW.
25115 * lib/ftell.c (EOVERFLOW): Remove fallback.
25116 * modules/ftell (Depends-on): Add EOVERFLOW.
25118 * lib/fprintf.c (EOVERFLOW): Remove fallback.
25119 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
25120 * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
25122 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
25124 * modules/EOVERFLOW-tests: New file.
25125 * tests/test-EOVERFLOW.c: New file.
25127 * modules/EOVERFLOW: New file.
25128 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
25130 2008-03-30 Bruno Haible <bruno@clisp.org>
25132 Fix bug introduced on 2007-06-10.
25133 * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
25134 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
25136 2008-03-30 Bruno Haible <bruno@clisp.org>
25138 Improve freadseek's efficiency after ungetc.
25139 * lib/freadseek.c: Include freadahead.h.
25140 (freadptrinc): New function, extracted from freadseek.
25141 (freadseek): Use it in a loop. Use freadahead to determine the number
25142 of loop iterations.
25143 * modules/freadseek (Depends-on): Add freadahead.
25144 (configure.ac): Require AC_C_INLINE.
25146 2008-03-30 Bruno Haible <bruno@clisp.org>
25148 * lib/freadseek.c (freadseek): Don't ignore the return value of
25151 2008-03-29 Eric Blake <ebb9@byu.net>
25153 Add hex float support.
25154 * modules/strtod (Depends-on): Add c-ctype.
25155 (Link): Mention POW_LIB.
25156 * lib/strtod.c (strtod): Recognize hex floats. Don't allow
25157 whitespace between 'e' and exponent.
25158 * tests/test-strtod.c (main): Enable hex float tests.
25159 * doc/posix-functions/strtod.texi (strtod): Document what gnulib
25162 Document various strtod bugs, with some fixes.
25163 * doc/posix-functions/strtod.texi (strtod): Document bugs with
25164 "-0x", "inf", "nan", and hex constants.
25165 * doc/posix-functions/atof.texi (atof): Likewise.
25166 * modules/stdlib (Makefile.am): Support strtod.
25167 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
25168 * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
25169 detect additional strtod bugs.
25170 * lib/stdlib.in.h (rpl_strtod): Add declarations.
25171 * lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
25172 bool where appropriate. Parse 'inf' and 'nan'.
25173 * tests/test-strtod.c: New file.
25174 * modules/strtod (Depends-on): Add stdbool, stdlib.
25175 (configure.ac): Turn on module indicator.
25176 * modules/strtod-tests: New module.
25178 2008-03-29 Eric Blake <ebb9@byu.net>
25180 Fix ftell on mingw.
25181 * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
25182 * modules/ftell-tests (Depends-on): Add binary-io.
25183 * modules/ftello-tests (Depends-on): Likewise.
25184 * tests/test-ftell.c (main): Enhance test to cover behavior after
25185 ungetc. Enforce binary mode.
25186 * tests/test-ftello.c (main): Likewise.
25188 Pass test-freadseek on cygwin.
25189 * modules/freadseek (Depends-on): Use freadptr, not freadahead.
25190 * lib/freadseek.c (freadseek): Don't increment beyond bounds of
25193 * tests/test-fflush2.c (main): Fix typo.
25195 2008-03-29 Bruno Haible <bruno@clisp.org>
25197 * tests/test-fflush2.c (main): Temporarily disable the contents of
25199 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
25200 Reported by Eric Blake.
25202 2008-03-28 Simon Josefsson <simon@josefsson.org>
25204 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
25205 (GC_SHA224_DIGEST_SIZE): Add.
25207 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
25208 (gc_hash_digest_length): Likewise.
25209 (gc_hash_buffer): Likewise.
25211 2008-03-25 Bruno Haible <bruno@clisp.org>
25213 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
25214 detail which gettext release to use.
25215 Reported by Simon Josefsson.
25217 2008-03-26 Jim Meyering <meyering@redhat.com>
25219 gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
25220 * modules/gnumakefile (clean-GNUmakefile): Also, use
25221 test ... && ... || : syntax rather than if-then ... fi.
25223 gnumakefile: Don't double-quote-expand $(VPATH) value.
25224 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
25226 2008-03-24 Eric Blake <ebb9@byu.net>
25228 Alter GNUmakefile to install into top directory.
25229 * modules/maintainer-makefile: Split, and add dependency...
25230 * modules/gnumakefile: to this new module.
25231 * build-aux/GNUmakefile: Move...
25232 * top/GNUmakefile: ...here.
25233 * build-aux/maint.mk: Move...
25234 * top/maint.mk: ...here.
25235 * MODULES.html.sh (Support for maintaining...): Document new
25238 2008-03-23 Bruno Haible <bruno@clisp.org>
25240 * gnulib-tool: New options --vc-files, --no-vc-files.
25241 (func_usage): Document them.
25242 (vc_files): New variable.
25243 (func_import): Consider vc_files.
25244 (func_create_testdir): Set vc_files to empty.
25245 Suggested by Jim Meyering and Karl Berry.
25247 2008-03-23 Bruno Haible <bruno@clisp.org>
25249 Fix regex compilation error on HP-UX 11.
25250 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
25251 * modules/regex (Files): Add m4/mbstate_t.m4.
25252 Reported by Ton Voon <ton.voon@altinity.com>.
25254 2008-03-23 Bruno Haible <bruno@clisp.org>
25256 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
25258 2008-03-23 Eric Blake <ebb9@byu.net>
25259 Bruno Haible <bruno@clisp.org>
25261 Install files from top/ in the destination directory.
25262 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
25263 augmentation also for the files from top/.
25264 (func_import, func_create_testdir): Rewrite file names:
25265 top/filename -> filename.
25267 2008-03-23 Bruno Haible <bruno@clisp.org>
25269 Tweak "gnulib --version" output.
25270 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
25272 2008-03-23 Bruno Haible <bruno@clisp.org>
25274 Tweak "gnulib --version" output.
25275 * gnulib-tool (func_version): Use date of last commit to ChangeLog,
25276 rather than contents of ChangeLog, when possible.
25278 2008-03-21 Eric Blake <ebb9@byu.net>
25280 More --version tweaks.
25281 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
25282 date of last ChangeLog entry.
25284 2008-03-21 Jim Meyering <meyering@redhat.com>
25286 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
25288 2008-03-20 Eric Blake <ebb9@byu.net>
25291 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
25293 2008-03-20 Simon Josefsson <simon@josefsson.org>
25295 * build-aux/GNUmakefile: Make git-version-gen optional. Add
25296 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
25298 2008-03-20 Eric Blake <ebb9@byu.net>
25300 Sync GNUmakefile with coreutils.
25301 * build-aux/GNUmakefile (have-Makefile): Rename...
25302 (_have-Makefile): ...to this, for namespace consideration.
25303 (GNUmakefile.cfg): Include, if present.
25304 (_autoreconf): Define a default.
25305 (_is-dist-target): New rule for rebuilds to pick up intra-release
25307 (maint-cfg.mk): Rename...
25308 (cfg.mk): ...to this.
25310 2008-03-18 Jim Meyering <meyering@redhat.com>
25312 New script and module: mktempd
25313 * MODULES.html.sh (maint+release support): Add mktempd.
25314 * build-aux/mktempd: New file.
25315 * modules/mktempd: New file.
25317 2008-03-15 Jim Meyering <meyering@redhat.com>
25320 * lib/sha1.c, lib/md5.c: 63 != ~63.
25321 Reported by Andreas Schwab.
25323 sha1.c, md5.c: Hoist a redundant expression.
25324 * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
25325 "ctx->buflen" only once, before calling *_process_block.
25326 * lib/md5.c (md5_process_bytes): Likewise.
25328 2008-03-14 Eric Blake <ebb9@byu.net>
25330 Bump copyright year in files generated by gnulib-tool.
25331 * gnulib-tool (func_emit_copyright_notice): Extract copyright from
25332 gnulib-tool, rather than hard-coding it.
25334 Fix 'gnulib-tool --version' output to work with git.
25335 * gnulib-tool (func_gnulib_dir): New function, extracted from...
25336 (startup): ...here.
25337 (func_version): Use it to invoke git-version-gen, rather than
25338 relying on CVS keyword expansion. Modernize wording.
25339 (cvsdatestamp, last_checkin_date, version): Kill unused
25342 2008-03-12 Jim Meyering <meyering@redhat.com>
25344 Recognize optional cast of the argument to free.
25345 * build-aux/useless-if-before-free: Update regexps.
25347 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
25349 2008-03-11 Bruno Haible <bruno@clisp.org>
25351 Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
25352 by a single package.
25353 * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
25354 (AC_LIB_LINKFLAGS_BODY): Use the information stored by
25355 AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
25356 Reported by Sam Steingold <sds@gnu.org>.
25358 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
25360 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
25363 2008-03-11 Bruno Haible <bruno@clisp.org>
25365 Avoid conflicts between local macro definitions.
25366 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
25367 AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
25369 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
25370 Bruno Haible <bruno@clisp.org>
25372 Make va_copy work with some version of xlc on AIX 5.1.
25373 * lib/stdarg.in.h: New file.
25374 * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
25375 On AIX, use a <stdarg.h> file substitute.
25376 * modules/stdarg (Files): Add lib/stdarg.in.h.
25377 (Depends-on): Add include_next.
25378 (Makefile.am): Build a stdarg.h substitute if requested.
25379 * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
25381 2008-03-10 Bruno Haible <bruno@clisp.org>
25383 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
25384 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25385 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
25387 2008-03-10 Bruno Haible <bruno@clisp.org>
25389 * modules/stdlib (Depends-on): Add include_next, remove
25392 2008-03-09 Bruno Haible <bruno@clisp.org>
25394 * lib/freadahead.h (freadahead): Document more precisely.
25395 * lib/freadahead.c (freadahead): When an ungetc is in effect, return
25396 the sum of both buffer sizes.
25397 * tests/test-freadahead.c (main): Also test behaviour after ungetc.
25398 * NEWS: Document the change.
25400 2008-03-09 Bruno Haible <bruno@clisp.org>
25402 Extend freadptr to return also the buffer size.
25403 * lib/freadptr.h (freadptr): Add sizep argument.
25404 * lib/freadptr.c: Include freadptr.h, not freadahead.h.
25405 (freadptr): Add sizep argument. Determine buffer size like freadahead
25407 * tests/test-freadptr.c: Don't include freadahead.h.
25408 (main): Adapt for new calling convention of freadptr.
25409 * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
25410 * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
25411 * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
25412 tests/test-freadptr2.sh.
25413 (Depends): Remove freadahead.
25414 (TESTS): Add test-freadptr2.sh.
25415 (check_PROGRAMS): Add test-freadptr2.
25417 2008-03-09 Bruno Haible <bruno@clisp.org>
25419 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
25420 Report and solution by Simon Josefsson.
25422 2008-03-06 Bruno Haible <bruno@clisp.org>
25424 Make fflush after ungetc work on BSD platforms.
25425 * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
25426 * tests/test-fflush2.c: New file.
25427 * tests/test-fflush2.sh: New file.
25428 * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
25429 tests/test-fflush2.c.
25430 (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
25431 * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
25433 2008-03-06 Eric Blake <ebb9@byu.net>
25435 Likewise for ftello.
25436 * modules/ftello (Dependencies): Add extensions.
25437 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
25439 2008-03-06 Bruno Haible <bruno@clisp.org>
25441 * modules/fseeko (Dependencies): Add extensions.
25442 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
25443 Needed on glibc systems.
25445 2008-03-06 Bruno Haible <bruno@clisp.org>
25447 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
25449 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25451 2008-03-06 Bruno Haible <bruno@clisp.org>
25453 * users.txt: Add libgnupdf.
25455 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
25457 * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
25458 (Header File Substitutes, Function Substitutes,
25459 Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
25460 (Build robot for gnulib): Fix typo.
25462 2008-03-06 Bruno Haible <bruno@clisp.org>
25464 * doc/gnulib-tool.texi (VCS Issues): Small updates.
25465 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25467 2008-03-06 Bruno Haible <bruno@clisp.org>
25469 * doc/func.texi: New file, extracted from doc/gnulib.texi.
25470 * doc/gnulib.texi: Include it.
25472 2008-03-06 Simon Josefsson <simon@josefsson.org>
25474 * modules/func (License): Change license to unlimited; there was
25475 no LGPL parts in the module anyway.
25477 2008-03-06 Simon Josefsson <simon@josefsson.org>
25479 * modules/__func__: Renamed to modules/func.
25480 * modules/__func__-tests: Renamed to modules/func-tests.
25481 * tests/test-__func__.c: Renamed to tests/test-func.c.
25482 * m4/__func__.m4: Renamed to m4/func.m4.
25483 * doc/gnulib.texi (__func__): Section renamed to func.
25484 Suggested by Eric Blake <ebb9@byu.net>.
25486 2008-03-06 Simon Josefsson <simon@josefsson.org>
25488 * doc/gnulib.texi (__func__): Use C99 terminology when talking
25489 about __func__. Make example self-contained. Suggested by Eric
25490 Blake <ebb9@byu.net>.
25492 * tests/test-__func__.c (main): Avoid extraneous () around __func.
25493 Suggested by Eric Blake <ebb9@byu.net>.
25495 2008-03-06 Simon Josefsson <simon@josefsson.org>
25497 * modules/__func__: New file.
25498 * modules/__func__-tests: New file.
25499 * tests/test-__func__.c: New file.
25500 * m4/__func__.m4: New file.
25501 * doc/gnulib.texi (__func__): Document __func__ module.
25503 2008-03-05 Simon Josefsson <simon@josefsson.org>
25505 * modules/byteswap (License): Re-license as LGPLv2+.
25507 2008-03-05 Simon Josefsson <simon@josefsson.org>
25509 * doc/Makefile: Add pdf target.
25511 2008-03-05 Simon Josefsson <simon@josefsson.org>
25513 * modules/inline (License): Use 'unlimited', since there are only
25514 *.m4 files in this module.
25516 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
25517 Bruno Haible <bruno@clisp.org>
25519 Add support for HP C 7.1 on OpenVMS 8.3.
25520 * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
25522 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
25524 Update VMS specifics.
25525 * lib/getopt.c [VMS]: Remove include of unixlib.h.
25527 2008-03-02 Jim Meyering <meyering@redhat.com>
25529 Remove the last dependency on the "free" module.
25530 * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
25531 Reported by Bob Proulx.
25533 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
25535 Remove useless "if" tests before free. Deprecate "free" module.
25536 * doc/posix-functions/free.texi: Mention that this
25537 module is no longer useful.
25538 * modules/free (Notice): Say this module is obsolete.
25539 * modules/readutmp (Depends-on): Remove free.
25540 * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
25541 * lib/putenv.c (putenv): Likewise.
25542 * lib/gc-gnulib.c (gc_cipher_close): Likewise.
25543 * lib/getaddrinfo.c (freeaddrinfo): Likewise.
25544 * tests/test-c-strcasestr.c (main): Likewise.
25545 * tests/test-c-strstr.c (main): Likewise.
25546 * tests/test-mbscasestr1.c (main): Likewise.
25547 * tests/test-mbscasestr2.c (main): Likewise.
25548 * tests/test-mbsstr1.c (main): Likewise.
25549 * tests/test-mbsstr2.c (main): Likewise.
25550 * tests/test-memmem.c (main): Likewise.
25551 * tests/test-strcasestr.c (main): Likewise.
25552 * tests/test-striconv.c (main): Likewise.
25553 * tests/test-striconveh.c (main): Likewise.
25554 * tests/test-striconveha.c (main): Likewise.
25555 * tests/test-strstr.c (main): Likewise.
25557 * build-aux/git-version-gen: Adjust a comment and the Usage string.
25559 bootstrap: sync from coreutils again
25560 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
25562 2008-03-01 Jim Meyering <meyering@redhat.com>
25564 bootstrap: sync from coreutils
25565 * build-aux/bootstrap (update_po_files): Copy a .po file into place
25566 also when the target doesn't exist.
25568 2008-03-01 Eric Blake <ebb9@byu.net>
25570 Fix bugs in last patch.
25571 * lib/memchr2.c (memchr2): Fix typo.
25572 * tests/test-memchr2.c: Test previous bug, and don't use GNU
25574 Reported by Bruce Korb.
25576 New module 'memchr2'.
25577 * modules/memchr2: New file.
25578 * modules/memchr2-tests: Likewise.
25579 * lib/memchr2.h: Likewise.
25580 * lib/memchr2.c: Likewise, based on memchr.c.
25581 * tests/test-memchr2.c: New test.
25582 * MODULES.html.sh (String handling): Add memchr2.
25584 2008-02-29 Bruno Haible <bruno@clisp.org>
25586 * modules/freadseek-tests: New file.
25587 * tests/test-freadseek.sh: New file.
25588 * tests/test-freadseek.c: New file.
25590 New module 'freadseek'.
25591 * modules/freadseek: New file.
25592 * lib/freadseek.h: New file.
25593 * lib/freadseek.c: New file.
25594 * MODULES.html.sh (File stream based Input/Output): Add freadseek.
25596 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
25598 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
25601 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
25602 program_invocation_name and program_invocation_short_name are
25605 2008-02-28 Bruno Haible <bruno@clisp.org>
25607 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
25608 * tests/test-freadptr.sh: Also test non-seekable stdin.
25610 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
25612 * build-aux/bootstrap (source_base, m4_base)
25613 (doc_base, tests_base): New variables.
25614 (gnulib_tool_options): Do not hardcode base directories, use
25615 the above variables instead.
25617 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
25619 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
25621 2008-02-28 Bruno Haible <bruno@clisp.org>
25623 * modules/freadptr-tests: New file.
25624 * tests/test-freadptr.sh: New file.
25625 * tests/test-freadptr.c: New file.
25627 New module 'freadptr'.
25628 * modules/freadptr: New file.
25629 * lib/freadptr.h: New file.
25630 * lib/freadptr.c: New file.
25631 * MODULES.html.sh (File stream based Input/Output): Add freadptr.
25633 2008-02-26 Karl Berry <karl@freefriends.org>
25636 * libltdl/argz.c (argz_add, argz_count): New functions.
25637 * libltdl/argz.in.h: Declare them.
25638 Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
25640 2008-02-22 Bruno Haible <bruno@clisp.org>
25642 * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
25643 is a pointer type. Needed for HP-UX 10.
25644 * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
25645 * doc/posix-functions/gmtime_r.texi: Likewise.
25646 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
25648 2008-02-24 Bruno Haible <bruno@clisp.org>
25650 * modules/environ-tests: New file.
25651 * tests/test-environ.c: New file.
25653 New module 'environ'.
25654 * modules/environ: New file.
25655 * lib/unistd.in.h (environ): New declaration.
25656 * m4/environ.m4: New file.
25657 (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
25659 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
25661 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
25663 * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
25664 wrong claim that 'environ' is missing on some systems.
25665 * modules/execute (Depends-on): Add environ.
25666 * lib/execute.c (environ): Remove fallback declaration.
25667 * modules/pipe (Depends-on): Add environ.
25668 * lib/pipe.c (environ): Remove fallback declaration.
25669 * modules/setenv (Depends-on): Add environ.
25670 * lib/setenv.c (environ): Remove fallback declaration.
25671 * modules/unsetenv (Depends-on): Add environ.
25672 * lib/unsetenv.c (environ): Remove fallback declaration.
25673 * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
25675 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
25676 (gl_PREREQ_UNSETENV): Likewise.
25678 2008-02-24 Bruno Haible <bruno@clisp.org>
25680 * doc/posix-functions/environ.texi: Document the MacOS X problem.
25682 2008-02-20 Bob Proulx <bob@proulx.com>
25684 Enable use of older two part flavor 'git describe'.
25685 * build-aux/git-version-gen: If using the older two part flavor of
25686 git version then recreate the third part now present in the
25687 newer three part flavor of git describe.
25689 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
25691 * lib/fts.c (fts_build): Typo correction to comment.
25693 2008-02-17 Bruno Haible <bruno@clisp.org>
25695 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
25696 generating no-op conflicts.
25698 2008-02-17 Bruno Haible <bruno@clisp.org>
25701 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
25702 result_entries, rather than an index-based loop.
25704 2008-02-17 Bruno Haible <bruno@clisp.org>
25707 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
25709 (entry_create): New function.
25710 (entry_hashcode): Use the cached hashcode if possible.
25711 (read_changelog_file, try_split_merged_entry): Use entry_create.
25713 2008-02-17 Bruno Haible <bruno@clisp.org>
25715 Speed up from O(n^2) to O(n) for long ChangeLog files.
25716 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
25717 (read_changelog_file): Change implementation of entries_reversed list
25719 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
25721 2008-02-17 Bruno Haible <bruno@clisp.org>
25723 New option --split-merged-entry.
25724 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
25725 (find_paragraph_end, try_split_merged_entry): New functions.
25726 (long_options): Add option --split-merged-entry.
25727 (usage): Document option --split-merged-entry.
25728 (main): Implement option --split-merged-entry.
25729 Reported by Eric Blake.
25731 2008-02-17 Bruno Haible <bruno@clisp.org>
25733 * lib/git-merge-changelog.c: Include c-strstr.h.
25734 (main): Support the "git pull --rebase" situation.
25735 * modules/git-merge-changelog (Depends-on): Add c-strstr.
25736 Reported by Eric Blake.
25738 2008-02-16 Eric Blake <ebb9@byu.net>
25740 Avoid doubling \ in common case of "c-maybe" quoting style.
25741 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
25742 eliding outer quotes.
25743 * lib/quotearg.h: Document this.
25744 * tests/test-quotearg.c (result_strings, inputs, results_g)
25745 (flag_results, locale_results): Test it by adding a new string to
25747 (compare_strings): Test new string.
25749 2008-02-13 Eric Blake <ebb9@byu.net>
25751 Avoid trigraph quoting in default output.
25752 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
25753 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
25754 unless explicitly requested.
25755 * tests/test-quotearg.c (flag_results, main): Add additional tests.
25757 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
25759 Don't rely on signed integer overflowing to negative value.
25760 * lib/getugroups.c (getugroups): Include <limits.h>.
25761 Instead, compare against INT_MAX, and increment only if the test passes.
25763 2008-02-13 Jim Meyering <meyering@redhat.com>
25764 and Eric Blake <ebb9@byu.net>
25766 Avoid shadowing warning and compile errors on Linux.
25767 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
25768 forwarding macros on Linux.
25769 (dcgettext): Define a stub, for Linux.
25770 (results_g, main): Avoid warnings.
25772 2008-02-12 Eric Blake <ebb9@byu.net>
25774 Silence warning in last patch.
25775 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
25777 Quotearg part 4: add tests, fix c-maybe colon quoting.
25778 * lib/quotearg.h: Improve documentation.
25779 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
25780 escapes when adding outer quotes. When quoting trigraphs, use
25781 valid C notation. When quoting NUL, omit extra characters if next
25782 character is not digit. Alter prototype.
25783 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
25785 * modules/quotearg-tests: New module.
25786 * tests/test-quotearg.c: New test.
25788 2008-02-07 Eric Blake <ebb9@byu.net>
25790 Quotearg part 3: add flag to control outer quote elision.
25791 * lib/quotearg.h (c_maybe_quoting_style): New style.
25792 (enum quoting_flags): Better documentation of flags.
25793 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
25795 (quotearg_buffer_restyled): Handle new flag to elide outer
25798 Quotearg part 2: add flag that can control NUL elision.
25799 * lib/quotearg.h (set_quoting_flags): New prototype.
25800 * lib/quotearg.c (struct quoting_options): Add flag field.
25801 (set_quoting_flags): New function.
25802 (quotearg_buffer_restyled): Add flags parameter.
25803 (quotearg_alloc_mem): Set the flag if length cannot be returned.
25804 (quotearg_n_options): Set the flag, since length cannot be
25806 (quoting_options_from_style): Default flags correctly.
25808 Quotearg part 1: more wrappers, restore quotearg_char state.
25809 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
25810 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
25811 (quotearg_colon_mem): New wrappers.
25812 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
25813 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
25815 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
25816 (quotearg_colon_mem): New functions.
25818 2008-02-11 Bruno Haible <bruno@clisp.org>
25820 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
25821 library in the current directory: it does not work with parallel make.
25822 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25824 2008-02-11 Bruno Haible <bruno@clisp.org>
25826 * .gitattributes: New file.
25828 2008-02-11 Jim Meyering <meyering@redhat.com>
25830 useless-if-before-free: Fix reversed exit values.
25831 * build-aux/useless-if-before-free: Use correct values
25832 for EXIT_MATCH and EXIT_NO_MATCH.
25834 * build-aux/useless-if-before-free: Close stdout carefully.
25836 2008-02-10 Bruno Haible <bruno@clisp.org>
25838 New module 'git-merge-changelog'.
25839 * modules/git-merge-changelog: New file.
25840 * lib/git-merge-changelog.c: New file.
25842 2008-02-10 Jim Meyering <meyering@redhat.com>
25844 useless-if-before-free: New option: --list (-l).
25846 useless-if-before-free: Don't exit immediately upon open failure.
25847 * build-aux/useless-if-before-free: Exit 2 for errors.
25848 Upon failure to open a file, don't exit immediately.
25849 Rather, just warn and continue with any remaining files.
25851 2008-02-10 Bruno Haible <bruno@clisp.org>
25853 New abstract list operation 'node_set_value'.
25854 * lib/gl_list.h (gl_list_node_set_value): New function.
25855 (struct gl_list_implementation): New field node_set_value.
25856 * lib/gl_list.c (gl_list_node_set_value): New function.
25857 * lib/gl_array_list.c (gl_array_node_set_value): New function.
25858 (gl_array_list_implementation): Update.
25859 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
25860 (gl_carray_list_implementation): Update.
25861 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
25862 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
25863 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
25864 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
25865 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
25866 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
25867 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
25869 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
25870 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
25871 (gl_sublist_list_implementation): Update.
25873 2008-02-10 Bruno Haible <bruno@clisp.org>
25875 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
25876 Needed when ELEMENT is #defined to 'some_type *'.
25878 2008-02-10 Jim Meyering <meyering@redhat.com>
25880 New script and module: useless-if-before-free
25881 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
25882 * build-aux/useless-if-before-free: New file.
25883 * modules/useless-if-before-free: New file.
25885 * build-aux/gitlog-to-changelog: Use committer date, not author date.
25887 xstrtol_error: Fix typo.
25888 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
25889 s/exit_failure/exit_status/.
25891 2008-02-09 Jim Meyering <meyering@redhat.com>
25893 New script and module: gitlog-to-changelog
25894 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
25895 * modules/gitlog-to-changelog: New file.
25896 * build-aux/gitlog-to-changelog: New file.
25898 2008-02-08 Jim Meyering <meyering@redhat.com>
25900 Avoid two "parameter unused" warnings.
25901 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
25904 Use "git COMMAND", not "git-COMMAND".
25905 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
25906 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
25907 * build-aux/git-version-gen: Use "git status", not "git-status".
25909 2008-02-07 Bruno Haible <bruno@clisp.org>
25911 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
25912 Avoids a crash on Windows Vista.
25913 Reported by Adam Strzelecki <ono@java.pl> via
25914 Simon Josefsson <simon@josefsson.org>.
25916 2008-02-06 Bruno Haible <bruno@clisp.org>
25918 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
25919 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
25920 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
25921 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
25922 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25923 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25924 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
25925 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
25926 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25927 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25928 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25929 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25930 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25931 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25932 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25933 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
25935 * tests/test-snprintf-posix.h (test_function): Likewise.
25936 * tests/test-sprintf-posix.h (test_function): Likewise.
25937 * tests/test-vasprintf-posix.c (test_function): Likewise.
25938 * doc/posix-functions/fprintf.texi: Update.
25939 * doc/posix-functions/printf.texi: Update.
25940 * doc/posix-functions/snprintf.texi: Update.
25941 * doc/posix-functions/sprintf.texi: Update.
25942 * doc/posix-functions/vfprintf.texi: Update.
25943 * doc/posix-functions/vprintf.texi: Update.
25944 * doc/posix-functions/vsnprintf.texi: Update.
25945 * doc/posix-functions/vsprintf.texi: Update.
25946 Reported by Peter Fales <psfales@alcatel-lucent.com>.
25948 2008-02-06 Bruno Haible <bruno@clisp.org>
25950 Fix bug introduced on 2008-01-26.
25951 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
25953 2008-02-06 Bruno Haible <bruno@clisp.org>
25955 Fix bug introduced on 2007-06-10.
25956 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
25957 !NEED_PRINTF_FLAG_ZERO.
25959 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
25961 getloadavg: use libperfstat on AIX5
25962 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
25964 2008-02-03 Bruno Haible <bruno@clisp.org>
25966 * lib/diffseq.h: Add comments about required #includes.
25967 Reported by Michael Biggs <gnulib@doubleplum.net>.
25969 2008-02-01 Bruno Haible <bruno@clisp.org>
25971 * users.txt: Add gnuit.
25973 2008-01-31 Bruno Haible <bruno@clisp.org>
25975 * lib/md4.c (set_uint32): Mark as inline.
25976 * lib/md5.c (set_uint32): Likewise.
25977 * lib/sha1.c (set_uint32): Likewise.
25978 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
25979 * m4/md5.m4 (gl_MD5): Likewise.
25980 * m4/sha1.m4 (gl_SHA1): Likewise.
25982 2008-01-31 Jim Meyering <meyering@redhat.com>
25984 Use "sizeof VAR", rather than a literal "4".
25985 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
25986 * lib/md4.c (md4_read_ctx): Likewise.
25987 * lib/sha1.c (sha1_read_ctx): Likewise.
25989 2008-01-31 Simon Josefsson <simon@josefsson.org>
25991 * tests/test-sha1.c: New file, based on test-md5.c.
25993 * modules/crypto/sha1-tests: New file.
25995 2008-01-31 Simon Josefsson <simon@josefsson.org>
25997 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
25999 2008-01-31 Jim Meyering <meyering@redhat.com>
26001 Prefer "sizeof v" over the equivalent "4".
26002 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
26003 * lib/md5.c (set_uint32): Likewise.
26004 * lib/sha1.c (set_uint32): Likewise.
26006 2008-01-31 Simon Josefsson <simon@josefsson.org>
26008 * lib/sha1.c (set_uint32): Mark function as static.
26010 2008-01-31 Simon Josefsson <simon@josefsson.org>
26012 md2: clarify comments to say that alignment is not required.
26013 * lib/md2.h: Remove warning about alignment in comment.
26014 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
26015 never been required.
26017 2008-01-31 Simon Josefsson <simon@josefsson.org>
26019 md4: adapt alignment constraint fix from sha1.
26020 * lib/md4.c (set_uint32): New function, from sha1.c
26021 (md4_read_ctx): Use it.
26022 (md4_finish_ctx): Doc fix.
26023 * lib/md4.h: Doc fix.
26025 2008-01-31 Simon Josefsson <simon@josefsson.org>
26027 md5: adapt alignment constraint fix from sha1.
26028 * lib/md5.c (set_uint32): New function, from sha1.c
26029 (md5_read_ctx): Use it.
26030 (md5_finish_ctx): Doc fix.
26031 * lib/md5.h: Doc fix.
26033 2008-01-30 Peter Palfrader <weasel@debian.org>
26035 sha1: remove the result buffer alignment constraint
26036 * lib/sha1.c (set_uint32): New function.
26037 (sha1_read_ctx): Rewrite to remove the result buffer alignment
26039 (sha1_finish_ctx): Remove comment warning about alignment constraint.
26040 * lib/sha1.h: Likewise.
26042 2008-01-30 Andreas Schwab <schwab@suse.de>
26043 Bruno Haible <bruno@clisp.org>
26045 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
26046 correct definition of LDBL_MIN_EXP.
26048 2008-01-30 Karl Berry <karl@gnu.org>
26050 * config/srclist-update: try to preserve x bit on updates.
26051 * config/srclistvars.sh: update for karl.
26053 2008-01-29 Jim Meyering <meyering@redhat.com>
26055 vasnprintf.c: Avoid warning about unused label
26056 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
26057 "overflow" label definition and associated code with the
26058 same cpp condition that guards the sole use of that label.
26060 2008-01-26 Bruno Haible <bruno@clisp.org>
26062 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
26063 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
26064 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
26065 * lib/isnanl-nolibm.h (isnanl): Likewise.
26066 Reported by Paul Eggert <eggert@cs.ucla.edu>.
26068 2008-01-26 Bruno Haible <bruno@clisp.org>
26070 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
26071 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
26073 2008-01-26 Bruno Haible <bruno@clisp.org>
26075 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
26076 GCC >= 4.0 built-in.
26077 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
26079 2008-01-26 Bruno Haible <bruno@clisp.org>
26081 Rename isnan, applicable to 'double' only, to isnand.
26082 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
26083 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
26084 (configure.ac): Update.
26085 (Include): Replace "isnan.h" with "isnand.h".
26086 * m4/isnand.m4: Renamed from m4/isnan.m4.
26087 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
26088 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
26089 instead of isnan.c.
26090 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
26091 instead of HAVE_ISNAN_IN_LIBC.
26092 (isnand): Renamed from isnan.
26093 * lib/isnand.c: New file.
26094 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
26095 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
26096 (Makefile.am): Update.
26097 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
26098 Include isnand.h instead of isnan.h.
26099 (main): Test isnand instead of isnan.
26100 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
26102 * modules/frexp (Depends-on): Likewise.
26103 * modules/frexp-tests (Depends-on): Likewise.
26104 * modules/frexp-nolibm (Depends-on): Likewise.
26105 * modules/frexp-nolibm-tests (Depends-on): Likewise.
26106 * modules/isfinite (Depends-on): Likewise.
26107 * modules/round-tests (Depends-on): Likewise.
26108 * modules/signbit (Depends-on): Likewise.
26109 * modules/signbit-tests (Depends-on): Likewise.
26110 * modules/snprintf-posix (Depends-on): Likewise.
26111 * modules/sprintf-posix (Depends-on): Likewise.
26112 * modules/trunc-tests (Depends-on): Likewise.
26113 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26114 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26115 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26116 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26117 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26118 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26119 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26120 * modules/vasnprintf-posix (Depends-on): Likewise.
26121 * modules/vasprintf-posix (Depends-on): Likewise.
26122 * modules/vfprintf-posix (Depends-on): Likewise.
26123 * modules/vsnprintf-posix (Depends-on): Likewise.
26124 * modules/vsprintf-posix (Depends-on): Likewise.
26125 * lib/frexp.c: Include isnand.h instead of isnan.h.
26126 (ISNAN): Set to isnand instead of isnan.
26127 * lib/isfinite.c: Include isnand.h instead of isnan.h.
26128 (gl_isfinited): Use isnand instead of isnan.
26129 * lib/signbitd.c: Include isnand.h instead of isnan.h.
26130 (gl_signbitd): Use isnand instead of isnan.
26131 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
26132 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
26133 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
26134 (main): Use isnand instead of isnan.
26135 * tests/test-round1.c: Include isnand.h.
26136 (main): Use isnand instead of isnan.
26137 * tests/test-round2.c: Include isnand.h instead of isnan.h.
26138 (ISNAN): Set to isnand instead of isnan.
26139 * tests/test-trunc1.c: Include isnand.h.
26140 (main): Use isnand instead of isnan.
26141 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
26142 (equal): Use isnand instead of isnan.
26143 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
26145 * NEWS: Mention the change.
26147 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
26148 Bruno Haible <bruno@clisp.org>
26150 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
26151 the GCC builtins for signbits are present and set
26152 REPLACE_SIGNBIT_USING_GCC if so.
26153 * lib/math.in.h (signbit): Define using GCC builtins if
26154 REPLACE_SIGNBIT_USING_GCC is set.
26155 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
26156 REPLACE_SIGNBIT_USING_GCC.
26157 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
26159 2008-01-25 Jim Meyering <meyering@redhat.com>
26161 Prefer <config.h> over "config.h". See autoconf doc for explanation.
26162 * lib/poll.c: Include <config.h>, not "config.h".
26163 * tests/test-getaddrinfo.c: Likewise.
26165 2008-01-25 Simon Josefsson <simon@josefsson.org>
26167 * modules/sockets-tests: New file.
26169 2008-01-24 Simon Josefsson <simon@josefsson.org>
26171 * modules/sockets: New module, can be used to call WSA_Startup and
26172 WSA_Cleanup when needed.
26174 * lib/sockets.h, lib/sockets.c: New files.
26176 * m4/sockets.m4: New file.
26178 * tests/test-sockets.c: New file.
26180 2008-01-19 Bruno Haible <bruno@clisp.org>
26182 * doc/posix-headers: Renamed from doc/headers.
26183 * doc/posix-functions: Renamed from doc/functions.
26184 * doc/gnulib.texi: Update.
26186 2008-01-19 Bruno Haible <bruno@clisp.org>
26188 * doc/glibc-functions/strcasestr.texi: Include contents of
26189 doc/functions/strcasestr.texi, fixing the list of platforms.
26190 * doc/functions/strcasestr.texi: Remove file.
26192 2008-01-19 Bruno Haible <bruno@clisp.org>
26194 * doc/glibc-functions/memmem.texi: Include contents of
26195 doc/functions/memmem.texi.
26196 * doc/functions/memmem.texi: Remove file.
26198 2008-01-18 Bruno Haible <bruno@clisp.org>
26200 * doc/glibc-functions/*.texi: New files.
26201 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
26202 to use the new files.
26204 2008-01-17 Bruno Haible <bruno@clisp.org>
26206 * tests/test-gethostname.c (main): Fix printf statement.
26208 2008-01-17 Simon Josefsson <simon@josefsson.org>
26210 * modules/gethostname-tests: New file.
26212 * tests/test-gethostname.c: New file.
26214 2008-01-17 Simon Josefsson <simon@josefsson.org>
26216 * lib/gethostname.c: Include string.h unconditionally, strncpy is
26217 used by the UNAME case. Reported by Bruno Haible
26220 2008-01-17 Eric Blake <ebb9@byu.net>
26222 Convert c-strcasestr to be more efficient.
26223 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
26224 (Depends-on): Add c-strcase, remove malloca, strnlen.
26225 * tests/test-c-strcasestr.c (main): Enhance test.
26226 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
26228 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
26230 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
26231 Use it in creating po/Makevars.
26233 2008-01-15 Simon Josefsson <simon@josefsson.org>
26235 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
26236 Applications that requires it should initialize libgcrypt
26239 2008-01-16 Simon Josefsson <simon@josefsson.org>
26241 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
26243 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
26245 Fix problem with getdate on mingw32 reported by Simon Josefsson
26246 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
26247 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
26248 tzname", when deciding whether to declare tzname.
26249 * lib/strftime.c (tzname): Likewise.
26251 2008-01-15 Bruno Haible <bruno@clisp.org>
26253 Work around a MacOS X 10.5 bug in frexpl().
26254 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
26255 * doc/functions/frexpl.texi: Document the bug.
26256 Reported by Elias Pipping <pipping@gentoo.org>.
26258 2008-01-14 Eric Blake <ebb9@byu.net>
26260 Touch up previous patch.
26261 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
26262 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
26264 Convert strcasestr module to use Two-Way algorithm.
26265 * modules/strcasestr-simple: New module, based on the old
26266 strcasestr, but with Two-Way rather than KMP.
26267 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
26268 * lib/string.in.h (rpl_strcasestr): Declare.
26269 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
26271 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
26272 * modules/string (Makefile.am): Support strcasestr.
26273 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
26274 * modules/strcasestr-tests (Depends-on): Check for alarm.
26275 * tests/test-strcasestr.c: Augment test.
26276 * lib/str-two-way.h: Clean up stray macro.
26277 * NEWS: Document new module.
26278 * MODULES.html.sh (string handling): Likewise.
26279 * doc/functions/strcasestr.texi: New file.
26280 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
26281 here, since it is not a POSIX function.
26283 2008-01-14 Colin Watson <cjwatson@debian.org>
26284 Bruno Haible <bruno@clisp.org>
26286 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
26287 works fine; if not, set REPLACE_STRSIGNAL.
26288 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
26289 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26291 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
26292 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
26293 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
26295 2008-01-14 Bruno Haible <bruno@clisp.org>
26297 * modules/strsignal (Include): Change to <string.h>.
26299 2008-01-14 Colin Watson <cjwatson@debian.org>
26301 * modules/argp (Notice): Add a notice recommending to change
26303 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
26305 2008-01-13 Colin Watson <cjwatson@debian.org>
26307 * modules/strsignal-tests: New file.
26308 * tests/test-strsignal.c: New file.
26310 * lib/strsignal.c: New file, from glibc with modifications.
26311 * lib/siglist.h: New file, from glibc with modifications.
26312 * lib/string.in.h (strsignal): New declaration.
26313 * m4/strsignal.m4: New file.
26314 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26315 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
26316 * modules/strsignal: New file.
26317 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
26318 HAVE_DECL_STRSIGNAL.
26320 2008-01-13 Bruno Haible <bruno@clisp.org>
26322 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
26323 locale encoding is not ASCII. Needed for OpenBSD 4.0.
26324 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
26325 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26327 2008-01-13 Bruno Haible <bruno@clisp.org>
26329 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
26330 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
26331 * lib/argp.h (__attribute__): Likewise.
26332 * lib/c-stack.c (__attribute__): Likewise.
26333 * lib/error.h (__attribute__): Likewise.
26334 * lib/fts.c (__attribute__): Likewise.
26335 * lib/openat.h (__attribute__): Likewise.
26336 * lib/stdio.in.h (__attribute__): Likewise.
26337 * lib/string.in.h (__attribute__): Likewise.
26338 * lib/utimens.c (__attribute__): Likewise.
26339 * lib/vasnprintf.h (__attribute__): Likewise.
26340 * lib/xalloc.h (__attribute__): Likewise.
26341 * lib/xprintf.h (__attribute__): Likewise.
26342 * lib/xstrtol.h (__attribute__): Likewise.
26343 * lib/xvasprintf.h (__attribute__): Likewise.
26345 2008-01-12 Bruno Haible <bruno@clisp.org>
26347 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
26348 * doc/glibc-headers/a.out.texi: New file.
26349 * doc/glibc-headers/aliases.texi: New file.
26350 * doc/glibc-headers/alloca.texi: New file.
26351 * doc/glibc-headers/ar.texi: New file.
26352 * doc/glibc-headers/argp.texi: New file.
26353 * doc/glibc-headers/argz.texi: New file.
26354 * doc/glibc-headers/byteswap.texi: New file.
26355 * doc/glibc-headers/crypt.texi: New file.
26356 * doc/glibc-headers/endian.texi: New file.
26357 * doc/glibc-headers/envz.texi: New file.
26358 * doc/glibc-headers/err.texi: New file.
26359 * doc/glibc-headers/error.texi: New file.
26360 * doc/glibc-headers/execinfo.texi: New file.
26361 * doc/glibc-headers/fpu_control.texi: New file.
26362 * doc/glibc-headers/fstab.texi: New file.
26363 * doc/glibc-headers/fts.texi: New file.
26364 * doc/glibc-headers/getopt.texi: New file.
26365 * doc/glibc-headers/ieee754.texi: New file.
26366 * doc/glibc-headers/ifaddrs.texi: New file.
26367 * doc/glibc-headers/libintl.texi: New file.
26368 * doc/glibc-headers/mcheck.texi: New file.
26369 * doc/glibc-headers/mntent.texi: New file.
26370 * doc/glibc-headers/obstack.texi: New file.
26371 * doc/glibc-headers/paths.texi: New file.
26372 * doc/glibc-headers/printf.texi: New file.
26373 * doc/glibc-headers/pty.texi: New file.
26374 * doc/glibc-headers/resolv.texi: New file.
26375 * doc/glibc-headers/shadow.texi: New file.
26376 * doc/glibc-headers/sysexits.texi: New file.
26377 * doc/glibc-headers/ttyent.texi: New file.
26379 2008-01-12 Jim Meyering <meyering@redhat.com>
26381 announce-gen: emit Gnulib's git-based version string.
26382 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
26383 New option --gnulib-version=V, where V is expected to be
26384 the output of running git describe in the gnulib directory.
26385 (get_tool_versions): Request feedback on xdelta. I suspect it's
26386 not useful, and plan to stop publishing an xdelta file with each
26389 * build-aux/announce-gen: Also check for lzma-compressed files.
26391 2008-01-11 Bruno Haible <bruno@clisp.org>
26393 * tests/test-memmem.c (main): Increase maximum allowed time.
26394 * tests/test-strstr.c (main): Likewise.
26396 2008-01-11 Bruno Haible <bruno@clisp.org>
26398 * doc/functions/memmem.texi: Add more precisions about platforms.
26399 * doc/functions/strstr.texi: Likewise.
26401 2008-01-10 Eric Blake <ebb9@byu.net>
26403 * m4/strstr.m4: Delete cruft from copy-n-paste.
26404 Reported by Bruno Haible.
26406 2008-01-10 Bruno Haible <bruno@clisp.org>
26408 Make c-strstr rely on strstr.
26409 * lib/c-strstr.c: Don't include str-kmp.h.
26410 (c_strstr): Define in terms of strstr.
26411 * modules/c-strstr (Files): Remove lib/str-kmp.h.
26412 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
26414 2008-01-10 Bruno Haible <bruno@clisp.org>
26416 * doc/gnulib.texi (String Functions in C Locale): New section.
26417 * doc/c-ctype.texi: New file.
26418 * doc/c-strcase.texi: New file.
26419 * doc/c-strcaseeq.texi: New file.
26420 * doc/c-strcasestr.texi: New file.
26421 * doc/c-strstr.texi: New file.
26422 * doc/c-strtod.texi: New file.
26423 * doc/c-strtold.texi: New file.
26425 2008-01-10 Eric Blake <ebb9@byu.net>
26427 * lib/relocatable.h: Fix a comment.
26429 2008-01-10 Eric Blake <ebb9@byu.net>
26431 Share two-way algorithm.
26432 * lib/str-two-way.h: New file, merged from...
26433 * lib/memmem.c: ...here...
26434 * lib/strstr.c: ...and here.
26435 * modules/memmem (Files): Use it.
26436 * modules/strstr (Files): Likewise.
26438 Avoid quadratic strstr implementations.
26439 * lib/strstr.c: New file.
26440 * m4/strstr.m4: Likewise.
26441 * modules/strstr: Likewise.
26442 * modules/strstr-tests: Likewise.
26443 * tests/test-strstr.c: Likewise.
26444 * lib/string.in.h (rpl_strstr): Declare.
26445 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
26446 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
26447 * modules/string (Makefile.am): Likewise.
26448 * MODULES.html.sh (string handling): Mention new module.
26449 * doc/functions/strstr.texi (strstr): Document the bug.
26451 2008-01-10 Bruno Haible <bruno@clisp.org>
26453 * lib/relocatable.h (relocate): State whether result is freshly
26455 * lib/relocatable.c (relocate): Return a freshly allocated string
26456 instead of a pointer to a privately held string.
26457 Reported by Sylvain Beucler <beuc@gnu.org>.
26459 2008-01-10 Colin Watson <cjwatson@debian.org>
26461 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
26462 s/S_ISNLK/S_ISLNK/.
26464 2008-01-09 Bruno Haible <bruno@clisp.org>
26466 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
26468 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
26469 if it's only a guess.
26470 * modules/memmem: Simplify by depending on memmem-simple.
26472 2008-01-09 Bruno Haible <bruno@clisp.org>
26474 Work around OpenBSD 4.0 tdelete() bug.
26475 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
26476 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
26477 macros and don't redefine the enum values.
26478 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
26479 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
26480 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
26482 2008-01-09 Bruno Haible <bruno@clisp.org>
26484 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
26485 (main): Don't perform the tests if setlocale did not install a UTF-8
26486 locale. Needed on OpenBSD 4.0.
26487 * modules/wcwidth-tests (Depends-on): Add localcharset.
26489 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
26491 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
26492 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
26493 * NEWS: announce this.
26494 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
26496 2008-01-09 Simon Josefsson <simon@josefsson.org>
26497 and Eric Blake <ebb9@byu.net>
26499 Add memmem-simple module.
26500 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
26501 (gl_FUNC_MEMMEM): Separate performance from presence checks.
26502 * modules/memmem-simple: New file.
26503 * modules/memmem (Description): Tweak.
26504 * MODULES.html.sh (string handling): Mention new module.
26505 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
26506 addressed by memmem-simple.
26507 * NEWS: Document the difference.
26509 2008-01-09 Eric Blake <ebb9@byu.net>
26511 Give gcc some memmem optimization hints.
26512 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
26513 (strcasestr): Declare as pure.
26514 * modules/memmem (Maintainer): Claim my implementation.
26516 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26518 Support AIX 6.1 and higher.
26519 * build-aux/config.libpath: Likewise.
26520 * build-aux/config.rpath: Likewise.
26522 2008-01-08 Jim Meyering <meyering@redhat.com>
26523 Bruno Haible <bruno@clisp.org>
26525 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
26526 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
26527 Reported by Peter Fales in
26528 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
26530 2008-01-08 Bruno Haible <bruno@clisp.org>
26532 * modules/unictype/category-of (Depends-on): Add
26533 unictype/category-none.
26534 * modules/unictype/category-and-tests (Depends-on): Add
26535 unictype/category-{L,N,Lu,Nd}.
26536 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
26537 * modules/unictype/category-or-tests (Depends-on): Add
26538 unictype/category-{L,N}.
26539 * modules/unictype/category-name-tests (Depends-on): Add
26540 unictype/category-{Z,Nl}.
26541 Reported by Simon Josefsson.
26543 2008-01-08 Bruno Haible <bruno@clisp.org>
26545 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
26547 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
26548 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
26549 Reported by Peter Miller <millerp@canb.auug.org.au>.
26551 2008-01-08 Eric Blake <ebb9@byu.net>
26553 Rewrite memmem to guarantee linear complexity without malloc.
26554 * lib/memmem.c (memmem): Use Two-Way rather than
26555 Knuth-Morris-Pratt, to allow O(1) space usage.
26556 (critical_factorization, two_way_short_needle)
26557 (two_way_long_needle): New functions.
26558 (knuth_morris_pratt): Delete.
26559 * modules/memmem (Depends-on): No longer need malloca or stdbool.
26561 * tests/test-memmem.c (main): Add tests for periodic needle and
26562 sublinear performance.
26563 * doc/functions/memmem.texi (memmem): Document other deficiencies
26564 in cygwin and older glibc.
26566 2008-01-08 Bruno Haible <bruno@clisp.org>
26568 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
26571 2008-01-08 Mike Frysinger <vapier@gentoo.org>
26573 Add a configure time option: --disable-acl.
26574 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
26575 AC_ARG_ENABLE(acl).
26577 2008-01-06 Simon Josefsson <simon@josefsson.org>
26579 * tests/test-localename.c: Don't include obsolete "setenv.h".
26581 * modules/localename-tests (Depends-on): Need unsetenv.
26583 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26585 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
26587 2008-01-06 Colin Watson <cjwatson@debian.org>
26589 * users.txt: Add man-db.
26591 2008-01-07 Bruno Haible <bruno@clisp.org>
26593 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
26594 previous section name.
26596 2008-01-07 Bruno Haible <bruno@clisp.org>
26598 * lib/progname.c (set_program_name): Don't strip off a leading
26599 "lt-" prefix outside a .libs directory.
26600 Suggested by Paul Eggert.
26602 2008-01-01 Sylvain Beucler <beuc@gnu.org>
26603 Bruno Haible <bruno@clisp.org>
26605 Improve memory cleanup in 'relocatable' module.
26606 * lib/relocatable.h (compute_curr_prefix): Change return type to
26608 * lib/relocatable.c (compute_curr_prefix): Change return type to
26609 'char *'. Free curr_installdir after use.
26610 (relocate): Free curr_prefix_better after use.
26611 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
26613 2008-01-01 Bruno Haible <bruno@clisp.org>
26615 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
26616 failure on older glibc systems.
26617 Reported by Peter Fales <psfales@alcatel-lucent.com>.
26619 2008-01-05 Eric Blake <ebb9@byu.net>
26621 Avoid quadratic system memmem.
26622 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
26623 Reported by Ralf Wildenhues.
26625 Fix memmem test for mingw.
26626 * modules/memmem-tests (configure.ac): Check for alarm.
26627 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
26629 * doc/functions/memmem.texi: New file.
26630 * doc/gnulib.texi (Function Substitutes): Add memmem.
26631 Reported by Bruno Haible.
26633 2008-01-04 Bruno Haible <bruno@clisp.org>
26635 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
26636 Require gl_HEADER_STRINGS_H_DEFAULTS, not
26637 gl_HEADER_STRING_H_DEFAULTS.
26639 2008-01-04 Eric Blake <ebb9@byu.net>
26641 Shorten duration of memmem test.
26642 * tests/test-memmem.c (main): Use alarm to declare failure if test
26643 is taking too long.
26644 Reported by Ralf Wildenhues.
26646 2007-12-21 Simon Josefsson <simon@josefsson.org>
26648 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
26649 string, needed by strerror.
26651 2008-01-03 Colin Watson <cjwatson@debian.org>
26652 Bruno Haible <bruno@clisp.org>
26654 * doc/gnulib-tool.texi (Localization): New section.
26656 2008-01-02 Bruno Haible <bruno@clisp.org>
26658 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
26659 variables to 'unsigned char *' type.
26660 Reported by Paul Eggert.
26662 2008-01-02 Jim Meyering <jim@meyering.net>
26664 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
26666 2007-12-31 Jim Meyering <jim@meyering.net>
26668 Avoid use of private FTS type name.
26669 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
26671 2007-12-30 Karl Berry <karl@gnu.org>
26673 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
26674 work around defect in Texinfo and/or the standalone Info browser.
26676 2007-12-30 Bruno Haible <bruno@clisp.org>
26678 Unify 5 copies of the KMP code.
26679 * lib/str-kmp.h: New file.
26680 * lib/c-strcasestr.c: Include str-kmp.h.
26681 (knuth_morris_pratt): Remove function.
26682 (c_strcasestr): Update.
26683 * lib/c-strstr.c: Include str-kmp.h.
26684 (knuth_morris_pratt): Remove function.
26685 (c_strcasestr): Update.
26686 * lib/mbscasestr.c: Include str-kmp.h.
26687 (knuth_morris_pratt_unibyte): Remove function.
26688 * lib/mbsstr.c: Include str-kmp.h.
26689 (knuth_morris_pratt_unibyte): Remove function.
26690 * lib/strcasestr.c: Include str-kmp.h.
26691 (knuth_morris_pratt): Remove function.
26692 (strcasestr): Update.
26693 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
26694 * modules/c-strstr (Files): Likewise.
26695 * modules/mbscasestr (Files): Likewise.
26696 * modules/mbsstr (Files): Likewise.
26697 * modules/strcasestr (Files): Likewise.
26698 Suggested by Paul Eggert.
26700 2007-12-30 Bruno Haible <bruno@clisp.org>
26702 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
26705 2007-12-30 Bruno Haible <bruno@clisp.org>
26707 * lib/xmalloca.h: Include xalloc.h.
26708 (xnmalloca): New macro.
26710 2007-12-30 Bruno Haible <bruno@clisp.org>
26712 * lib/malloca.h (nmalloca): New macro.
26713 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
26714 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
26715 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
26716 knuth_morris_pratt_multibyte): Likewise.
26717 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
26718 knuth_morris_pratt_multibyte): Likewise.
26719 * lib/memmem.c (knuth_morris_pratt): Likewise.
26720 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
26722 2007-12-25 Bruno Haible <bruno@clisp.org>
26724 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
26725 * lib/glob.c: Don't include openat.h.
26726 (link_exists2_p): Add back the code that deals with the
26727 !GLOB_ALTDIRFUNC case.
26728 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
26729 let it do the filename concatenation.
26730 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
26731 * modules/glob (Depends-on): Remove openat.
26733 2007-12-31 Bruno Haible <bruno@clisp.org>
26735 * modules/dirfd (License): Change to LGPLv2+.
26736 Approved by Jim Meyering.
26738 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
26740 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
26741 when multiplying M by sizeof (size_t).
26743 2007-12-10 Martin Lambers <marlam@marlam.de>
26745 Override getpagesize on mingw.
26746 * lib/getpagesize.c: New file.
26747 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
26748 * modules/getpagesize (Files): Add lib/getpagesize.c.
26749 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
26750 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26751 REPLACE_GETPAGESIZE.
26752 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
26754 2007-12-25 Bruno Haible <bruno@clisp.org>
26756 * modules/localcharset (Notice): New field.
26757 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
26758 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
26760 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
26761 Bruno Haible <bruno@clisp.org>
26763 Avoid using the syntax symbol() in formatted documentation.
26764 * MODULES.html.sh (func_module): When replacing symbol() with a
26765 hyperlink, remove the parentheses. Show an error if some remain.
26766 Recognize and render the '...' syntax.
26767 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
26768 Rework. Add paragraph about GCC's inlining.
26769 * doc/alloca.texi: Likewise.
26770 * doc/error.texi: Remove parentheses from symbol reference.
26771 * doc/gnulib-intro.texi: Likewise.
26772 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
26773 * modules/fnmatch (Description): Reword to say "the ... function".
26774 * modules/full-read (Description): Likewise.
26775 * modules/full-write (Description): Likewise.
26776 * modules/safe-read (Description): Likewise.
26777 * modules/safe-write (Description): Likewise.
26778 * modules/strchrnul (Description): Likewise.
26779 * modules/trim (Description): Likewise.
26780 * modules/error (Description): Remove parentheses from symbol
26782 * modules/verror (Description): Likewise.
26783 Reported by Karl Berry.
26785 2007-12-25 Bruno Haible <bruno@clisp.org>
26787 Fixup after 2007-10-16 commit.
26788 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
26790 2007-12-24 Bruno Haible <bruno@clisp.org>
26792 Make --enable-relocatable work with DESTDIR.
26793 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
26794 to compute installdir from destprog.
26795 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
26796 also set the RELOC_DESTDIR variable.
26797 Reported by Левашев Иван <octagram@bluebottle.com>.
26799 2007-12-24 Bruno Haible <bruno@clisp.org>
26801 Fix link error due to xalloc_die().
26802 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
26804 * lib/relocwrapper.c: Update comments.
26805 * build-aux/install-reloc: Remove xreadlink.c from file list.
26806 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
26808 Reported by Левашев Иван <octagram@bluebottle.com>.
26810 2007-12-24 Bruno Haible <bruno@clisp.org>
26812 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
26813 * lib/setenv.h: Remove file.
26814 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
26816 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
26817 (Depends-on): Add stdlib.
26818 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
26820 (Include): Replace setenv.h with <stdlib.h>.
26821 * modules/unsetenv: New file.
26822 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
26823 * lib/unsetenv.c: Include <stdlib.h> first.
26824 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
26825 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
26826 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
26827 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
26828 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
26829 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
26830 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
26831 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
26832 * doc/functions/unsetenv.texi: Update.
26833 * modules/xsetenv (Depends-on): Add unsetenv.
26834 * modules/getdate (Depends-on): Likewise.
26835 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
26836 * lib/xsetenv.c: Don't include setenv.h.
26837 * lib/getdate.y: Likewise.
26838 * lib/relocwrapper.c: Likewise.
26839 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
26840 (Depends-on): Add stdlib.
26841 * NEWS: Mention the changes.
26842 Reported by Левашев Иван <octagram@bluebottle.com>.
26844 2007-12-23 Bruno Haible <bruno@clisp.org>
26846 * lib/memmem.c (memmem): Use lowercase variable names. Tab
26849 2007-12-23 Bruno Haible <bruno@clisp.org>
26851 * lib/c-strcasestr.c: Add more comments.
26852 * lib/c-strstr.c: Likewise.
26853 * lib/mbscasestr.c: Likewise.
26854 * lib/mbsstr.c: Likewise.
26855 * lib/strcasestr.c: Likewise.
26856 * lib/memmem.c: Likewise.
26858 2007-12-23 Bruno Haible <bruno@clisp.org>
26860 * tests/test-memmem.c: Include <string.h> first.
26862 2007-12-22 Bruno Haible <bruno@clisp.org>
26864 * gnulib-tool (func_create_testdir): Change $auxdir while generating
26865 the contents of $testsbase.
26866 Reported by Ralf Wildenhues.
26868 2007-12-22 Bruno Haible <bruno@clisp.org>
26870 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
26871 two variables local_ldadd_before, local_ldadd_last.
26873 2007-12-20 Eric Blake <ebb9@byu.net>
26875 Work around circular library issue when cross-compiling.
26876 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
26877 that progname.o does not need to pull in rpl_memcmp.
26879 2007-12-19 Eric Blake <ebb9@byu.net>
26881 Fix memmem to avoid O(n^2) worst-case complexity.
26882 * lib/memmem.c (knuth_morris_pratt): New function.
26883 (memmem): Use it if first few naive iterations fail.
26884 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
26885 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
26886 * modules/memchr (License): Likewise.
26887 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
26889 * tests/test-memmem.c: Rewrite, borrowing ideas from
26890 test-mbsstr1.c; the old version wouldn't even compile!
26891 * modules/memmem-tests: New file.
26892 * lib/string.in.h (rpl_memmem): Add declaration.
26893 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
26894 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
26897 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
26899 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
26900 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
26901 before any system include files, and undef after them all. This
26902 should fix a problem on VMS reported by John E. Malmberg in
26903 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
26905 2007-12-17 Eric Blake <ebb9@byu.net>
26907 Revert addition of verify, for BSD/OS.
26908 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
26909 can't handle large files, for the sake of obsolete platforms.
26910 * modules/fseeko (Depends-on): Remove verify.
26911 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
26912 * doc/functions/ftello.texi (ftello): Likewise.
26913 * doc/functions/fgetpos.texi (fgetpos): Likewise.
26914 Reported by Larry Jones.
26916 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
26918 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
26919 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
26921 2007-12-17 Jim Meyering <meyering@redhat.com>
26923 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
26924 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
26925 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
26926 * modules/getcwd (Depends-on): Add openat.
26927 Reported by Petr Salinger.
26929 2007-12-17 Bruno Haible <bruno@clisp.org>
26931 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
26932 avoid a segmentation fault of the configure test on x86_64 systems.
26934 2007-12-15 Jim Meyering <meyering@redhat.com>
26936 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
26938 2007-12-13 Eric Blake <ebb9@byu.net>
26940 Another fseek test.
26941 * tests/test-fseek.c (main): Also test ungetc handling.
26942 * tests/test-fseeko.c (main): Likewise.
26943 * modules/fseeko (Depends-on): Add verify.
26944 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
26946 Reported by Larry Jones.
26948 Fix fseeko on mingw.
26949 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
26952 Beef up fseek tests.
26953 * tests/test-fseek.c (main): Also test eof handling.
26954 * tests/test-fseeko.c (main): Likewise.
26955 Reported by Larry Jones.
26957 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
26959 Fix fseeko on BSD-based platforms.
26960 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
26963 2007-12-12 Eric Blake <ebb9@byu.net>
26965 Allow circular dependency of separate libtests.a
26966 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
26969 2007-12-11 Eric Blake <ebb9@byu.net>
26971 Fix bug with -0.0L in previous patch.
26972 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
26973 * tests/test-isnan.c (main): Also test on zeroes.
26974 * tests/test-isnanf.c (main): Likewise.
26975 * tests/test-isnanl.h (main): Likewise.
26977 Detect pseudo-denormals on x86 even when cross-compiling.
26978 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
26979 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
26980 invalid bit patterns that happen to satisfy ==.
26982 Avoid link failures with separate libtests.a.
26983 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
26984 last, to satisfy circular dependencies.
26986 2007-12-11 Eric Blake <ebb9@byu.net>
26987 and Bruno Haible <bruno@clisp.org>
26989 Fix OpenBSD 4.0 <float.h> handling of long double.
26990 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
26991 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
26992 * doc/headers/float.texi (float.h): Document OpenBSD bug.
26994 2007-12-11 Jim Meyering <meyering@redhat.com>
26996 * users.txt: Add libvirt.
26998 Support versions of autoconf prior to 2.59c.
26999 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
27000 if it is not already defined.
27002 2007-12-09 Bruno Haible <bruno@clisp.org>
27004 Let 'gnulib-tool --import' collect sources needed for the tests in
27005 tests/ rather than in lib/.
27006 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
27007 argument. If true, add rules to generate libtests.a, and put libtests.a
27008 into $(LDADD). Consider source files in subdirectories and set
27010 (func_emit_initmacro_start, func_emit_initmacro_end,
27011 func_emit_initmacro_done): Pass all arguments explicitly.
27012 (func_import): Determine two module lists main_modules,
27013 testsrelated_modules. Determine use_libtests. Determine two variables
27014 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
27015 instead of just sed_transform_lib_file. Determine two variables
27016 main_files and testsrelated_files. Compute 'files' as the union of
27017 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
27018 func_add_or_update. In the generated gnulib-comp.m4, collect the
27019 object files for tests/ in different variables than those for lib/.
27020 Substitute LIBTESTS_LIBDEPS.
27021 (func_create_testdir): Combine the uses_subdirs results from
27022 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
27024 2007-12-09 Bruno Haible <bruno@clisp.org>
27026 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
27027 the build-aux directory.
27029 2007-12-09 Bruno Haible <bruno@clisp.org>
27031 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
27032 introduced on 2006-09-09.
27034 2007-12-07 Jim Meyering <meyering@redhat.com>
27036 Let these macros work also with autoconf-2.59.
27037 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
27038 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
27039 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27041 2007-12-06 Jim Meyering <meyering@redhat.com>
27043 Avoid a configure-time syntax error in gl_FUNC_ACL.
27044 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
27045 function in each branch, before testing the cache variable.
27047 2007-12-04 Eric Blake <ebb9@byu.net>
27049 Make scripts executable.
27050 * build-aux/config.guess: Add execute permissions.
27051 * build-aux/config.sub: Likewise.
27052 * build-aux/gendocs.sh: Likewise.
27054 Fix frexp on mingw.
27055 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
27057 * doc/functions/frexp.texi (frexp): Document the bug.
27059 Make cygwin fseeko check more reliable.
27060 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
27061 version numbers, rather than unrelated feature check.
27062 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
27063 * doc/functions/ftello.texi (ftello): Likewise.
27064 Reported by Bruno Haible.
27066 * m4/strerror.m4: Bump version number.
27068 2007-12-03 Bruno Haible <bruno@clisp.org>
27070 * doc/functions/mprotect.texi: Mention the mingw problem.
27072 2007-12-03 Eric Blake <ebb9@byu.net>
27074 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
27075 REPLACE_STRERROR is initialized before this macro.
27077 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
27079 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
27080 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
27081 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
27082 put -lsec in even for programs other than 'ls'. This fixes a problem
27083 for gettext reported by Bruno Haible in
27084 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
27085 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
27086 Add support for Solaris 10. This isn't efficient, but should get the
27089 2007-12-03 James Youngman <jay@gnu.org>
27091 * doc/regexprops-generic.texi: change "an close-group" to "a
27092 close-group" and "illegal" to "not allowed".
27094 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27096 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
27097 pr_byname.h. Needed for the rare case when the maintainer has done
27098 "make maintainer-clean" in the source directory and then attempts a
27099 build outside the source directory.
27100 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
27103 2007-12-02 Martin Lambers <marlam@marlam.de>
27104 Bruno Haible <bruno@clisp.org>
27106 * lib/getpagesize.h: Remove file.
27107 * lib/unistd.in.h: Include declaration of getpagesize here.
27108 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
27109 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
27111 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
27112 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27113 * modules/getpagesize (Files): Remove lib/getpagesize.h.
27114 (Depends-on): Add unistd.
27115 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27116 (Include): Use <unistd.h> instead of getpagesize.h.
27117 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
27118 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27119 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
27120 gl_GETPAGESIZE invocation, already handled by module dependency.
27121 * lib/pagealign_alloc.c: Don't include getpagesize.h.
27123 2007-12-02 Bruno Haible <bruno@clisp.org>
27125 * modules/strings-tests: New file.
27126 * tests/test-strings.c: New file.
27128 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
27129 * lib/strings.in.h: New file.
27130 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
27131 * m4/strings_h.m4: New file.
27132 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
27133 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
27134 * modules/strings: New file.
27135 * modules/string (Makefile.am): Update.
27136 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
27137 Reported by Karl Berry.
27139 2007-12-01 Eric Blake <ebb9@byu.net>
27141 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
27142 accomodate fix in cygwin 1.5.25.
27144 2007-12-01 Jim Meyering <meyering@redhat.com>
27146 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
27147 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
27148 that would inhibit utf8-optimization of a regexp containing line-
27149 or buffer-anchors, e.g., `^', `$'.
27151 2007-11-30 Bruno Haible <bruno@clisp.org>
27153 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
27154 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
27155 glthread_recursive_lock_init.
27156 * lib/lock.c (glthread_recursive_lock_init)
27157 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
27158 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27160 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
27162 New function qset_acl, like set_acl but with syscall semantics.
27163 * lib/acl.h (qset_acl): New decl.
27164 * lib/acl.c (qset_acl): New function.
27165 (set_acl): Use new function. Use more-consistent diagnostics.
27167 2007-11-28 Jim Meyering <meyering@redhat.com>
27169 * modules/physmem (License): Change from GPL to LGPLv2+.
27171 2007-11-26 Bruno Haible <bruno@clisp.org>
27173 * lib/vasnprintf.c (decode_long_double): Don't abort if the
27174 'long double' type has excess precision.
27175 Reported by Jim Meyering in
27176 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
27178 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27180 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
27181 Sync from <http://gnu.org/licenses>.
27182 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
27183 with license text from same location.
27184 * doc/maintain.texi, doc/standards.texi: Sync from
27185 <http://savannah.gnu.org/projects/gnustandards>.
27187 2007-11-22 Ondřej Vašík <ovasik@redhat.com>
27188 and Jim Meyering <meyering@redhat.com>
27190 Adjust getdate' grammar to accept a slightly more regular language.
27191 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
27192 Before, the former was rejected.
27193 * lib/getdate.y (digits_to_date_time): New function, factored
27195 (number): ...here. Just call digits_to_date_time.
27196 (hybrid): New non-terminal to handle an <unsigned number,
27197 signed relative offset> sequence consistently.
27199 2007-11-18 Jim Meyering <meyering@redhat.com>
27201 Pull my changes from coreutils:
27202 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
27203 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
27204 use of $gnulib_tool_option_extras, so that it's separated from the
27205 preceding argument.
27207 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
27208 * build-aux/bootstrap (cp_mark_as_generated): Create any required
27209 parent destination directories before copying a file into place.
27211 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
27213 bootstrap: work also with 4-argument variant of AC_INIT
27214 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
27216 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
27218 Port test-getaddrinfo to Solaris.
27219 Problem reported by Bruno Haible in
27220 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
27221 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
27222 explanation of setting 'hints'.
27223 Don't reject an implementation merely because it returns EAI_SERVICE.
27224 (EAI_SERVICE): Define to 0 if not defined.
27226 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
27228 The license of gnu-make and posix-shell is now "GPLed build tool".
27229 * modules/gnu-make (License): Likewise.
27230 * modules/posix-shell (License): Likewise.
27232 New module posix-shell, for determining a POSIX shell
27233 or perhaps something that is close enough to a POSIX shell.
27234 * m4/posix-shell.m4: New file.
27235 * modules/posix-shell: New file.
27237 * MODULES.html.sh: Mention new module.
27239 New module gnu-make, for determining whether we're using GNU Make.
27240 * m4/gnu-make.m4: New file.
27241 * modules/gnu-make: New file.
27242 * MODULES.html.sh: Mention new module.
27244 2007-11-14 Jim Meyering <meyering@redhat.com>
27246 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
27247 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
27248 use this macro to create a function _definition_.
27249 Remove useless "#undef ARGMATCH_DIE".
27251 2007-11-14 Bruno Haible <bruno@clisp.org>
27253 * lib/config.charset: Update for OpenBSD 4.1.
27254 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
27256 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
27258 Document 64-bit #if problems in stdint.texi.
27259 * doc/headers/stdint.texi (stdint.h): Mention problems with
27260 64-bit-#if, and how to work around them.
27262 Don't insist on 'long long int' support in the preprocessor. It
27263 breaks too many things. For example, PRIdMAX still uses a 'long
27264 long int' format with the latest Sun compiler, even though
27265 HAVE_LONG_LONG_INT isn't defined due to that compiler's
27266 preprocessor problem. This causes the latest coreutils to dump
27267 core on Solaris 10 sparc with the Sun C compiler.
27268 Instead, fix the 2007-10-16 problem in a different way, by evaluating
27269 the troublesome expressions at configure-time, not at #if-time.
27270 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
27272 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
27273 compile-time C checks, done at 'configure'-time.
27274 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
27275 * modules/inttypes (Makefile): Substitute the new symbols that
27276 gl_INTTYPES_H now generates.
27277 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
27279 2007-11-12 Bruno Haible <bruno@clisp.org>
27281 Tests for Unicode character classification functions.
27283 * modules/unictype/bidicategory-byname-tests: New file.
27284 * modules/unictype/bidicategory-name-tests: New file.
27285 * modules/unictype/bidicategory-of-tests: New file.
27286 * modules/unictype/bidicategory-test-tests: New file.
27287 * modules/unictype/block-list-tests: New file.
27288 * modules/unictype/block-of-tests: New file.
27289 * modules/unictype/block-test-tests: New file.
27290 * modules/unictype/category-C-tests: New file.
27291 * modules/unictype/category-Cc-tests: New file.
27292 * modules/unictype/category-Cf-tests: New file.
27293 * modules/unictype/category-Cn-tests: New file.
27294 * modules/unictype/category-Co-tests: New file.
27295 * modules/unictype/category-Cs-tests: New file.
27296 * modules/unictype/category-L-tests: New file.
27297 * modules/unictype/category-Ll-tests: New file.
27298 * modules/unictype/category-Lm-tests: New file.
27299 * modules/unictype/category-Lo-tests: New file.
27300 * modules/unictype/category-Lt-tests: New file.
27301 * modules/unictype/category-Lu-tests: New file.
27302 * modules/unictype/category-M-tests: New file.
27303 * modules/unictype/category-Mc-tests: New file.
27304 * modules/unictype/category-Me-tests: New file.
27305 * modules/unictype/category-Mn-tests: New file.
27306 * modules/unictype/category-N-tests: New file.
27307 * modules/unictype/category-Nd-tests: New file.
27308 * modules/unictype/category-Nl-tests: New file.
27309 * modules/unictype/category-No-tests: New file.
27310 * modules/unictype/category-P-tests: New file.
27311 * modules/unictype/category-Pc-tests: New file.
27312 * modules/unictype/category-Pd-tests: New file.
27313 * modules/unictype/category-Pe-tests: New file.
27314 * modules/unictype/category-Pf-tests: New file.
27315 * modules/unictype/category-Pi-tests: New file.
27316 * modules/unictype/category-Po-tests: New file.
27317 * modules/unictype/category-Ps-tests: New file.
27318 * modules/unictype/category-S-tests: New file.
27319 * modules/unictype/category-Sc-tests: New file.
27320 * modules/unictype/category-Sk-tests: New file.
27321 * modules/unictype/category-Sm-tests: New file.
27322 * modules/unictype/category-So-tests: New file.
27323 * modules/unictype/category-Z-tests: New file.
27324 * modules/unictype/category-Zl-tests: New file.
27325 * modules/unictype/category-Zp-tests: New file.
27326 * modules/unictype/category-Zs-tests: New file.
27327 * modules/unictype/category-and-not-tests: New file.
27328 * modules/unictype/category-and-tests: New file.
27329 * modules/unictype/category-byname-tests: New file.
27330 * modules/unictype/category-name-tests: New file.
27331 * modules/unictype/category-none-tests: New file.
27332 * modules/unictype/category-of-tests: New file.
27333 * modules/unictype/category-or-tests: New file.
27334 * modules/unictype/category-test-withtable-tests: New file.
27335 * modules/unictype/combining-class-tests: New file.
27336 * modules/unictype/ctype-alnum-tests: New file.
27337 * modules/unictype/ctype-alpha-tests: New file.
27338 * modules/unictype/ctype-blank-tests: New file.
27339 * modules/unictype/ctype-cntrl-tests: New file.
27340 * modules/unictype/ctype-digit-tests: New file.
27341 * modules/unictype/ctype-graph-tests: New file.
27342 * modules/unictype/ctype-lower-tests: New file.
27343 * modules/unictype/ctype-print-tests: New file.
27344 * modules/unictype/ctype-punct-tests: New file.
27345 * modules/unictype/ctype-space-tests: New file.
27346 * modules/unictype/ctype-upper-tests: New file.
27347 * modules/unictype/ctype-xdigit-tests: New file.
27348 * modules/unictype/decimal-digit-tests: New file.
27349 * modules/unictype/digit-tests: New file.
27350 * modules/unictype/mirror-tests: New file.
27351 * modules/unictype/numeric-tests: New file.
27352 * modules/unictype/property-alphabetic-tests: New file.
27353 * modules/unictype/property-ascii-hex-digit-tests: New file.
27354 * modules/unictype/property-bidi-arabic-digit-tests: New file.
27355 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
27356 * modules/unictype/property-bidi-block-separator-tests: New file.
27357 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
27358 * modules/unictype/property-bidi-common-separator-tests: New file.
27359 * modules/unictype/property-bidi-control-tests: New file.
27360 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
27361 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
27362 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
27363 * modules/unictype/property-bidi-european-digit-tests: New file.
27364 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
27365 * modules/unictype/property-bidi-left-to-right-tests: New file.
27366 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
27367 * modules/unictype/property-bidi-other-neutral-tests: New file.
27368 * modules/unictype/property-bidi-pdf-tests: New file.
27369 * modules/unictype/property-bidi-segment-separator-tests: New file.
27370 * modules/unictype/property-bidi-whitespace-tests: New file.
27371 * modules/unictype/property-byname-tests: New file.
27372 * modules/unictype/property-combining-tests: New file.
27373 * modules/unictype/property-composite-tests: New file.
27374 * modules/unictype/property-currency-symbol-tests: New file.
27375 * modules/unictype/property-dash-tests: New file.
27376 * modules/unictype/property-decimal-digit-tests: New file.
27377 * modules/unictype/property-default-ignorable-code-point-tests: New file.
27378 * modules/unictype/property-deprecated-tests: New file.
27379 * modules/unictype/property-diacritic-tests: New file.
27380 * modules/unictype/property-extender-tests: New file.
27381 * modules/unictype/property-format-control-tests: New file.
27382 * modules/unictype/property-grapheme-base-tests: New file.
27383 * modules/unictype/property-grapheme-extend-tests: New file.
27384 * modules/unictype/property-grapheme-link-tests: New file.
27385 * modules/unictype/property-hex-digit-tests: New file.
27386 * modules/unictype/property-hyphen-tests: New file.
27387 * modules/unictype/property-id-continue-tests: New file.
27388 * modules/unictype/property-id-start-tests: New file.
27389 * modules/unictype/property-ideographic-tests: New file.
27390 * modules/unictype/property-ids-binary-operator-tests: New file.
27391 * modules/unictype/property-ids-trinary-operator-tests: New file.
27392 * modules/unictype/property-ignorable-control-tests: New file.
27393 * modules/unictype/property-iso-control-tests: New file.
27394 * modules/unictype/property-join-control-tests: New file.
27395 * modules/unictype/property-left-of-pair-tests: New file.
27396 * modules/unictype/property-line-separator-tests: New file.
27397 * modules/unictype/property-logical-order-exception-tests: New file.
27398 * modules/unictype/property-lowercase-tests: New file.
27399 * modules/unictype/property-math-tests: New file.
27400 * modules/unictype/property-non-break-tests: New file.
27401 * modules/unictype/property-not-a-character-tests: New file.
27402 * modules/unictype/property-numeric-tests: New file.
27403 * modules/unictype/property-other-alphabetic-tests: New file.
27404 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
27405 * modules/unictype/property-other-grapheme-extend-tests: New file.
27406 * modules/unictype/property-other-id-continue-tests: New file.
27407 * modules/unictype/property-other-id-start-tests: New file.
27408 * modules/unictype/property-other-lowercase-tests: New file.
27409 * modules/unictype/property-other-math-tests: New file.
27410 * modules/unictype/property-other-uppercase-tests: New file.
27411 * modules/unictype/property-paired-punctuation-tests: New file.
27412 * modules/unictype/property-paragraph-separator-tests: New file.
27413 * modules/unictype/property-pattern-syntax-tests: New file.
27414 * modules/unictype/property-pattern-white-space-tests: New file.
27415 * modules/unictype/property-private-use-tests: New file.
27416 * modules/unictype/property-punctuation-tests: New file.
27417 * modules/unictype/property-quotation-mark-tests: New file.
27418 * modules/unictype/property-radical-tests: New file.
27419 * modules/unictype/property-sentence-terminal-tests: New file.
27420 * modules/unictype/property-soft-dotted-tests: New file.
27421 * modules/unictype/property-space-tests: New file.
27422 * modules/unictype/property-terminal-punctuation-tests: New file.
27423 * modules/unictype/property-test-tests: New file.
27424 * modules/unictype/property-titlecase-tests: New file.
27425 * modules/unictype/property-unassigned-code-value-tests: New file.
27426 * modules/unictype/property-unified-ideograph-tests: New file.
27427 * modules/unictype/property-uppercase-tests: New file.
27428 * modules/unictype/property-variation-selector-tests: New file.
27429 * modules/unictype/property-white-space-tests: New file.
27430 * modules/unictype/property-xid-continue-tests: New file.
27431 * modules/unictype/property-xid-start-tests: New file.
27432 * modules/unictype/property-zero-width-tests: New file.
27433 * modules/unictype/scripts-tests: New file.
27434 * modules/unictype/syntax-c-ident-tests: New file.
27435 * modules/unictype/syntax-c-whitespace-tests: New file.
27436 * modules/unictype/syntax-java-ident-tests: New file.
27437 * modules/unictype/syntax-java-whitespace-tests: New file.
27438 * tests/unictype/test-bidi_byname.c: New file.
27439 * tests/unictype/test-bidi_name.c: New file.
27440 * tests/unictype/test-bidi_of.c: New file.
27441 * tests/unictype/test-bidi_test.c: New file.
27442 * tests/unictype/test-block_list.c: New file.
27443 * tests/unictype/test-block_of.c: New file.
27444 * tests/unictype/test-block_test.c: New file.
27445 * tests/unictype/test-categ_and.c: New file.
27446 * tests/unictype/test-categ_and_not.c: New file.
27447 * tests/unictype/test-categ_byname.c: New file.
27448 * tests/unictype/test-categ_name.c: New file.
27449 * tests/unictype/test-categ_none.c: New file.
27450 * tests/unictype/test-categ_of.c: New file.
27451 * tests/unictype/test-categ_or.c: New file.
27452 * tests/unictype/test-categ_test_withtable.c: New file.
27453 * tests/unictype/test-combining.c: New file.
27454 * tests/unictype/test-decdigit.c: New file.
27455 * tests/unictype/test-digit.c: New file.
27456 * tests/unictype/test-mirror.c: New file.
27457 * tests/unictype/test-numeric.c: New file.
27458 * tests/unictype/test-pr_byname.c: New file.
27459 * tests/unictype/test-pr_test.c: New file.
27460 * tests/unictype/test-predicate-part1.h: New file.
27461 * tests/unictype/test-predicate-part2.h: New file.
27462 * tests/unictype/test-scripts.c: New file.
27463 * tests/unictype/test-sy_c_ident.c: New file.
27464 * tests/unictype/test-sy_java_ident.c: New file.
27466 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
27468 * tests/unictype/test-categ_Cc.c: Likewise.
27469 * tests/unictype/test-categ_Cf.c: Likewise.
27470 * tests/unictype/test-categ_Cn.c: Likewise.
27471 * tests/unictype/test-categ_Co.c: Likewise.
27472 * tests/unictype/test-categ_Cs.c: Likewise.
27473 * tests/unictype/test-categ_L.c: Likewise.
27474 * tests/unictype/test-categ_Ll.c: Likewise.
27475 * tests/unictype/test-categ_Lm.c: Likewise.
27476 * tests/unictype/test-categ_Lo.c: Likewise.
27477 * tests/unictype/test-categ_Lt.c: Likewise.
27478 * tests/unictype/test-categ_Lu.c: Likewise.
27479 * tests/unictype/test-categ_M.c: Likewise.
27480 * tests/unictype/test-categ_Mc.c: Likewise.
27481 * tests/unictype/test-categ_Me.c: Likewise.
27482 * tests/unictype/test-categ_Mn.c: Likewise.
27483 * tests/unictype/test-categ_N.c: Likewise.
27484 * tests/unictype/test-categ_Nd.c: Likewise.
27485 * tests/unictype/test-categ_Nl.c: Likewise.
27486 * tests/unictype/test-categ_No.c: Likewise.
27487 * tests/unictype/test-categ_P.c: Likewise.
27488 * tests/unictype/test-categ_Pc.c: Likewise.
27489 * tests/unictype/test-categ_Pd.c: Likewise.
27490 * tests/unictype/test-categ_Pe.c: Likewise.
27491 * tests/unictype/test-categ_Pf.c: Likewise.
27492 * tests/unictype/test-categ_Pi.c: Likewise.
27493 * tests/unictype/test-categ_Po.c: Likewise.
27494 * tests/unictype/test-categ_Ps.c: Likewise.
27495 * tests/unictype/test-categ_S.c: Likewise.
27496 * tests/unictype/test-categ_Sc.c: Likewise.
27497 * tests/unictype/test-categ_Sk.c: Likewise.
27498 * tests/unictype/test-categ_Sm.c: Likewise.
27499 * tests/unictype/test-categ_So.c: Likewise.
27500 * tests/unictype/test-categ_Z.c: Likewise.
27501 * tests/unictype/test-categ_Zl.c: Likewise.
27502 * tests/unictype/test-categ_Zp.c: Likewise.
27503 * tests/unictype/test-categ_Zs.c: Likewise.
27504 * tests/unictype/test-ctype_alnum.c: Likewise.
27505 * tests/unictype/test-ctype_alpha.c: Likewise.
27506 * tests/unictype/test-ctype_blank.c: Likewise.
27507 * tests/unictype/test-ctype_cntrl.c: Likewise.
27508 * tests/unictype/test-ctype_digit.c: Likewise.
27509 * tests/unictype/test-ctype_graph.c: Likewise.
27510 * tests/unictype/test-ctype_lower.c: Likewise.
27511 * tests/unictype/test-ctype_print.c: Likewise.
27512 * tests/unictype/test-ctype_punct.c: Likewise.
27513 * tests/unictype/test-ctype_space.c: Likewise.
27514 * tests/unictype/test-ctype_upper.c: Likewise.
27515 * tests/unictype/test-ctype_xdigit.c: Likewise.
27516 * tests/unictype/test-decdigit.h: Likewise.
27517 * tests/unictype/test-digit.h: Likewise.
27518 * tests/unictype/test-numeric.h: Likewise.
27519 * tests/unictype/test-pr_alphabetic.c: Likewise.
27520 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
27521 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
27522 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
27523 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
27524 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
27525 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
27526 * tests/unictype/test-pr_bidi_control.c: Likewise.
27527 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
27528 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
27529 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
27530 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
27531 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
27532 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
27533 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
27534 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
27535 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
27536 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
27537 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
27538 * tests/unictype/test-pr_combining.c: Likewise.
27539 * tests/unictype/test-pr_composite.c: Likewise.
27540 * tests/unictype/test-pr_currency_symbol.c: Likewise.
27541 * tests/unictype/test-pr_dash.c: Likewise.
27542 * tests/unictype/test-pr_decimal_digit.c: Likewise.
27543 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
27544 * tests/unictype/test-pr_deprecated.c: Likewise.
27545 * tests/unictype/test-pr_diacritic.c: Likewise.
27546 * tests/unictype/test-pr_extender.c: Likewise.
27547 * tests/unictype/test-pr_format_control.c: Likewise.
27548 * tests/unictype/test-pr_grapheme_base.c: Likewise.
27549 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
27550 * tests/unictype/test-pr_grapheme_link.c: Likewise.
27551 * tests/unictype/test-pr_hex_digit.c: Likewise.
27552 * tests/unictype/test-pr_hyphen.c: Likewise.
27553 * tests/unictype/test-pr_id_continue.c: Likewise.
27554 * tests/unictype/test-pr_id_start.c: Likewise.
27555 * tests/unictype/test-pr_ideographic.c: Likewise.
27556 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
27557 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
27558 * tests/unictype/test-pr_ignorable_control.c: Likewise.
27559 * tests/unictype/test-pr_iso_control.c: Likewise.
27560 * tests/unictype/test-pr_join_control.c: Likewise.
27561 * tests/unictype/test-pr_left_of_pair.c: Likewise.
27562 * tests/unictype/test-pr_line_separator.c: Likewise.
27563 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
27564 * tests/unictype/test-pr_lowercase.c: Likewise.
27565 * tests/unictype/test-pr_math.c: Likewise.
27566 * tests/unictype/test-pr_non_break.c: Likewise.
27567 * tests/unictype/test-pr_not_a_character.c: Likewise.
27568 * tests/unictype/test-pr_numeric.c: Likewise.
27569 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
27570 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
27571 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
27572 * tests/unictype/test-pr_other_id_continue.c: Likewise.
27573 * tests/unictype/test-pr_other_id_start.c: Likewise.
27574 * tests/unictype/test-pr_other_lowercase.c: Likewise.
27575 * tests/unictype/test-pr_other_math.c: Likewise.
27576 * tests/unictype/test-pr_other_uppercase.c: Likewise.
27577 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
27578 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
27579 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
27580 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
27581 * tests/unictype/test-pr_private_use.c: Likewise.
27582 * tests/unictype/test-pr_punctuation.c: Likewise.
27583 * tests/unictype/test-pr_quotation_mark.c: Likewise.
27584 * tests/unictype/test-pr_radical.c: Likewise.
27585 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
27586 * tests/unictype/test-pr_soft_dotted.c: Likewise.
27587 * tests/unictype/test-pr_space.c: Likewise.
27588 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
27589 * tests/unictype/test-pr_titlecase.c: Likewise.
27590 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
27591 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
27592 * tests/unictype/test-pr_uppercase.c: Likewise.
27593 * tests/unictype/test-pr_variation_selector.c: Likewise.
27594 * tests/unictype/test-pr_white_space.c: Likewise.
27595 * tests/unictype/test-pr_xid_continue.c: Likewise.
27596 * tests/unictype/test-pr_xid_start.c: Likewise.
27597 * tests/unictype/test-pr_zero_width.c: Likewise.
27598 * tests/unictype/test-sy_c_whitespace.c: Likewise.
27599 * tests/unictype/test-sy_java_whitespace.c: Likewise.
27601 2007-11-12 Bruno Haible <bruno@clisp.org>
27603 Unicode character classification functions.
27604 * lib/unictype.h: New file.
27605 * modules/unictype/base: New file.
27606 * modules/unictype/category-L: New file.
27607 * modules/unictype/category-Lu: New file.
27608 * modules/unictype/category-Ll: New file.
27609 * modules/unictype/category-Lt: New file.
27610 * modules/unictype/category-Lm: New file.
27611 * modules/unictype/category-Lo: New file.
27612 * modules/unictype/category-M: New file.
27613 * modules/unictype/category-Mn: New file.
27614 * modules/unictype/category-Mc: New file.
27615 * modules/unictype/category-Me: New file.
27616 * modules/unictype/category-N: New file.
27617 * modules/unictype/category-Nd: New file.
27618 * modules/unictype/category-Nl: New file.
27619 * modules/unictype/category-No: New file.
27620 * modules/unictype/category-P: New file.
27621 * modules/unictype/category-Pc: New file.
27622 * modules/unictype/category-Pd: New file.
27623 * modules/unictype/category-Ps: New file.
27624 * modules/unictype/category-Pe: New file.
27625 * modules/unictype/category-Pi: New file.
27626 * modules/unictype/category-Pf: New file.
27627 * modules/unictype/category-Po: New file.
27628 * modules/unictype/category-S: New file.
27629 * modules/unictype/category-Sm: New file.
27630 * modules/unictype/category-Sc: New file.
27631 * modules/unictype/category-Sk: New file.
27632 * modules/unictype/category-So: New file.
27633 * modules/unictype/category-Z: New file.
27634 * modules/unictype/category-Zs: New file.
27635 * modules/unictype/category-Zl: New file.
27636 * modules/unictype/category-Zp: New file.
27637 * modules/unictype/category-C: New file.
27638 * modules/unictype/category-Cc: New file.
27639 * modules/unictype/category-Cf: New file.
27640 * modules/unictype/category-Cs: New file.
27641 * modules/unictype/category-Co: New file.
27642 * modules/unictype/category-Cn: New file.
27643 * modules/unictype/category-or: New file.
27644 * modules/unictype/category-of: New file.
27645 * modules/unictype/category-test: New file.
27646 * modules/unictype/category-test-withtable: New file.
27647 * modules/unictype/category-byname: New file.
27648 * modules/unictype/category-none: New file.
27649 * modules/unictype/category-and: New file.
27650 * modules/unictype/category-and-not: New file.
27651 * modules/unictype/category-name: New file.
27652 * modules/unictype/combining-class: New file.
27653 * modules/unictype/category-all: New file.
27654 * modules/unictype/bidicategory-all: New file.
27655 * modules/unictype/bidicategory-byname: New file.
27656 * modules/unictype/bidicategory-name: New file.
27657 * modules/unictype/bidicategory-of: New file.
27658 * modules/unictype/bidicategory-test: New file.
27659 * modules/unictype/decimal-digit: New file.
27660 * modules/unictype/digit: New file.
27661 * modules/unictype/numeric: New file.
27662 * modules/unictype/mirror: New file.
27663 * modules/unictype/property-white-space: New file.
27664 * modules/unictype/property-alphabetic: New file.
27665 * modules/unictype/property-other-alphabetic: New file.
27666 * modules/unictype/property-not-a-character: New file.
27667 * modules/unictype/property-default-ignorable-code-point: New file.
27668 * modules/unictype/property-other-default-ignorable-code-point: New
27670 * modules/unictype/property-deprecated: New file.
27671 * modules/unictype/property-logical-order-exception: New file.
27672 * modules/unictype/property-variation-selector: New file.
27673 * modules/unictype/property-private-use: New file.
27674 * modules/unictype/property-unassigned-code-value: New file.
27675 * modules/unictype/property-uppercase: New file.
27676 * modules/unictype/property-other-uppercase: New file.
27677 * modules/unictype/property-lowercase: New file.
27678 * modules/unictype/property-other-lowercase: New file.
27679 * modules/unictype/property-titlecase: New file.
27680 * modules/unictype/property-soft-dotted: New file.
27681 * modules/unictype/property-id-start: New file.
27682 * modules/unictype/property-other-id-start: New file.
27683 * modules/unictype/property-id-continue: New file.
27684 * modules/unictype/property-other-id-continue: New file.
27685 * modules/unictype/property-xid-start: New file.
27686 * modules/unictype/property-xid-continue: New file.
27687 * modules/unictype/property-pattern-white-space: New file.
27688 * modules/unictype/property-pattern-syntax: New file.
27689 * modules/unictype/property-join-control: New file.
27690 * modules/unictype/property-grapheme-base: New file.
27691 * modules/unictype/property-grapheme-extend: New file.
27692 * modules/unictype/property-other-grapheme-extend: New file.
27693 * modules/unictype/property-grapheme-link: New file.
27694 * modules/unictype/property-bidi-control: New file.
27695 * modules/unictype/property-bidi-left-to-right: New file.
27696 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
27697 * modules/unictype/property-bidi-arabic-right-to-left: New file.
27698 * modules/unictype/property-bidi-european-digit: New file.
27699 * modules/unictype/property-bidi-eur-num-separator: New file.
27700 * modules/unictype/property-bidi-eur-num-terminator: New file.
27701 * modules/unictype/property-bidi-arabic-digit: New file.
27702 * modules/unictype/property-bidi-common-separator: New file.
27703 * modules/unictype/property-bidi-block-separator: New file.
27704 * modules/unictype/property-bidi-segment-separator: New file.
27705 * modules/unictype/property-bidi-whitespace: New file.
27706 * modules/unictype/property-bidi-non-spacing-mark: New file.
27707 * modules/unictype/property-bidi-boundary-neutral: New file.
27708 * modules/unictype/property-bidi-pdf: New file.
27709 * modules/unictype/property-bidi-embedding-or-override: New file.
27710 * modules/unictype/property-bidi-other-neutral: New file.
27711 * modules/unictype/property-hex-digit: New file.
27712 * modules/unictype/property-ascii-hex-digit: New file.
27713 * modules/unictype/property-ideographic: New file.
27714 * modules/unictype/property-unified-ideograph: New file.
27715 * modules/unictype/property-radical: New file.
27716 * modules/unictype/property-ids-binary-operator: New file.
27717 * modules/unictype/property-ids-trinary-operator: New file.
27718 * modules/unictype/property-zero-width: New file.
27719 * modules/unictype/property-space: New file.
27720 * modules/unictype/property-non-break: New file.
27721 * modules/unictype/property-iso-control: New file.
27722 * modules/unictype/property-format-control: New file.
27723 * modules/unictype/property-dash: New file.
27724 * modules/unictype/property-hyphen: New file.
27725 * modules/unictype/property-punctuation: New file.
27726 * modules/unictype/property-line-separator: New file.
27727 * modules/unictype/property-paragraph-separator: New file.
27728 * modules/unictype/property-quotation-mark: New file.
27729 * modules/unictype/property-sentence-terminal: New file.
27730 * modules/unictype/property-terminal-punctuation: New file.
27731 * modules/unictype/property-currency-symbol: New file.
27732 * modules/unictype/property-math: New file.
27733 * modules/unictype/property-other-math: New file.
27734 * modules/unictype/property-paired-punctuation: New file.
27735 * modules/unictype/property-left-of-pair: New file.
27736 * modules/unictype/property-combining: New file.
27737 * modules/unictype/property-composite: New file.
27738 * modules/unictype/property-decimal-digit: New file.
27739 * modules/unictype/property-numeric: New file.
27740 * modules/unictype/property-diacritic: New file.
27741 * modules/unictype/property-extender: New file.
27742 * modules/unictype/property-ignorable-control: New file.
27743 * modules/unictype/property-test: New file.
27744 * modules/unictype/property-byname: New file.
27745 * modules/unictype/property-all: New file.
27746 * modules/unictype/scripts: New file.
27747 * modules/unictype/scripts-all: New file.
27748 * modules/unictype/block-of: New file.
27749 * modules/unictype/block-test: New file.
27750 * modules/unictype/block-list: New file.
27751 * modules/unictype/block-all: New file.
27752 * modules/unictype/syntax-c-whitespace: New file.
27753 * modules/unictype/syntax-java-whitespace: New file.
27754 * modules/unictype/syntax-c-ident: New file.
27755 * modules/unictype/syntax-java-ident: New file.
27756 * modules/unictype/ctype-alnum: New file.
27757 * modules/unictype/ctype-alpha: New file.
27758 * modules/unictype/ctype-cntrl: New file.
27759 * modules/unictype/ctype-digit: New file.
27760 * modules/unictype/ctype-graph: New file.
27761 * modules/unictype/ctype-lower: New file.
27762 * modules/unictype/ctype-print: New file.
27763 * modules/unictype/ctype-punct: New file.
27764 * modules/unictype/ctype-space: New file.
27765 * modules/unictype/ctype-upper: New file.
27766 * modules/unictype/ctype-xdigit: New file.
27767 * modules/unictype/ctype-blank: New file.
27768 * lib/unictype/bidi_byname.c: New file.
27769 * lib/unictype/bidi_name.c: New file.
27770 * lib/unictype/bidi_of.c: New file.
27771 * lib/unictype/bidi_test.c: New file.
27772 * lib/unictype/bitmap.h: New file.
27773 * lib/unictype/block_test.c: New file.
27774 * lib/unictype/blocks.c: New file.
27775 * lib/unictype/categ_C.c: New file.
27776 * lib/unictype/categ_Cc.c: New file.
27777 * lib/unictype/categ_Cf.c: New file.
27778 * lib/unictype/categ_Cn.c: New file.
27779 * lib/unictype/categ_Co.c: New file.
27780 * lib/unictype/categ_Cs.c: New file.
27781 * lib/unictype/categ_L.c: New file.
27782 * lib/unictype/categ_Ll.c: New file.
27783 * lib/unictype/categ_Lm.c: New file.
27784 * lib/unictype/categ_Lo.c: New file.
27785 * lib/unictype/categ_Lt.c: New file.
27786 * lib/unictype/categ_Lu.c: New file.
27787 * lib/unictype/categ_M.c: New file.
27788 * lib/unictype/categ_Mc.c: New file.
27789 * lib/unictype/categ_Me.c: New file.
27790 * lib/unictype/categ_Mn.c: New file.
27791 * lib/unictype/categ_N.c: New file.
27792 * lib/unictype/categ_Nd.c: New file.
27793 * lib/unictype/categ_Nl.c: New file.
27794 * lib/unictype/categ_No.c: New file.
27795 * lib/unictype/categ_P.c: New file.
27796 * lib/unictype/categ_Pc.c: New file.
27797 * lib/unictype/categ_Pd.c: New file.
27798 * lib/unictype/categ_Pe.c: New file.
27799 * lib/unictype/categ_Pf.c: New file.
27800 * lib/unictype/categ_Pi.c: New file.
27801 * lib/unictype/categ_Po.c: New file.
27802 * lib/unictype/categ_Ps.c: New file.
27803 * lib/unictype/categ_S.c: New file.
27804 * lib/unictype/categ_Sc.c: New file.
27805 * lib/unictype/categ_Sk.c: New file.
27806 * lib/unictype/categ_Sm.c: New file.
27807 * lib/unictype/categ_So.c: New file.
27808 * lib/unictype/categ_Z.c: New file.
27809 * lib/unictype/categ_Zl.c: New file.
27810 * lib/unictype/categ_Zp.c: New file.
27811 * lib/unictype/categ_Zs.c: New file.
27812 * lib/unictype/categ_and.c: New file.
27813 * lib/unictype/categ_and_not.c: New file.
27814 * lib/unictype/categ_byname.c: New file.
27815 * lib/unictype/categ_name.c: New file.
27816 * lib/unictype/categ_none.c: New file.
27817 * lib/unictype/categ_of.c: New file.
27818 * lib/unictype/categ_or.c: New file.
27819 * lib/unictype/categ_test.c: New file.
27820 * lib/unictype/combining.c: New file.
27821 * lib/unictype/ctype_alnum.c: New file.
27822 * lib/unictype/ctype_alpha.c: New file.
27823 * lib/unictype/ctype_blank.c: New file.
27824 * lib/unictype/ctype_cntrl.c: New file.
27825 * lib/unictype/ctype_digit.c: New file.
27826 * lib/unictype/ctype_graph.c: New file.
27827 * lib/unictype/ctype_lower.c: New file.
27828 * lib/unictype/ctype_print.c: New file.
27829 * lib/unictype/ctype_punct.c: New file.
27830 * lib/unictype/ctype_space.c: New file.
27831 * lib/unictype/ctype_upper.c: New file.
27832 * lib/unictype/ctype_xdigit.c: New file.
27833 * lib/unictype/decdigit.c: New file.
27834 * lib/unictype/digit.c: New file.
27835 * lib/unictype/identsyntaxmap.h: New file.
27836 * lib/unictype/mirror.c: New file.
27837 * lib/unictype/numeric.c: New file.
27838 * lib/unictype/pr_alphabetic.c: New file.
27839 * lib/unictype/pr_ascii_hex_digit.c: New file.
27840 * lib/unictype/pr_bidi_arabic_digit.c: New file.
27841 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
27842 * lib/unictype/pr_bidi_block_separator.c: New file.
27843 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
27844 * lib/unictype/pr_bidi_common_separator.c: New file.
27845 * lib/unictype/pr_bidi_control.c: New file.
27846 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
27847 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
27848 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
27849 * lib/unictype/pr_bidi_european_digit.c: New file.
27850 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
27851 * lib/unictype/pr_bidi_left_to_right.c: New file.
27852 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
27853 * lib/unictype/pr_bidi_other_neutral.c: New file.
27854 * lib/unictype/pr_bidi_pdf.c: New file.
27855 * lib/unictype/pr_bidi_segment_separator.c: New file.
27856 * lib/unictype/pr_bidi_whitespace.c: New file.
27857 * lib/unictype/pr_byname.c: New file.
27858 * lib/unictype/pr_byname.gperf: New file.
27859 * lib/unictype/pr_combining.c: New file.
27860 * lib/unictype/pr_composite.c: New file.
27861 * lib/unictype/pr_currency_symbol.c: New file.
27862 * lib/unictype/pr_dash.c: New file.
27863 * lib/unictype/pr_decimal_digit.c: New file.
27864 * lib/unictype/pr_default_ignorable_code_point.c: New file.
27865 * lib/unictype/pr_deprecated.c: New file.
27866 * lib/unictype/pr_diacritic.c: New file.
27867 * lib/unictype/pr_extender.c: New file.
27868 * lib/unictype/pr_format_control.c: New file.
27869 * lib/unictype/pr_grapheme_base.c: New file.
27870 * lib/unictype/pr_grapheme_extend.c: New file.
27871 * lib/unictype/pr_grapheme_link.c: New file.
27872 * lib/unictype/pr_hex_digit.c: New file.
27873 * lib/unictype/pr_hyphen.c: New file.
27874 * lib/unictype/pr_id_continue.c: New file.
27875 * lib/unictype/pr_id_start.c: New file.
27876 * lib/unictype/pr_ideographic.c: New file.
27877 * lib/unictype/pr_ids_binary_operator.c: New file.
27878 * lib/unictype/pr_ids_trinary_operator.c: New file.
27879 * lib/unictype/pr_ignorable_control.c: New file.
27880 * lib/unictype/pr_iso_control.c: New file.
27881 * lib/unictype/pr_join_control.c: New file.
27882 * lib/unictype/pr_left_of_pair.c: New file.
27883 * lib/unictype/pr_line_separator.c: New file.
27884 * lib/unictype/pr_logical_order_exception.c: New file.
27885 * lib/unictype/pr_lowercase.c: New file.
27886 * lib/unictype/pr_math.c: New file.
27887 * lib/unictype/pr_non_break.c: New file.
27888 * lib/unictype/pr_not_a_character.c: New file.
27889 * lib/unictype/pr_numeric.c: New file.
27890 * lib/unictype/pr_other_alphabetic.c: New file.
27891 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
27892 * lib/unictype/pr_other_grapheme_extend.c: New file.
27893 * lib/unictype/pr_other_id_continue.c: New file.
27894 * lib/unictype/pr_other_id_start.c: New file.
27895 * lib/unictype/pr_other_lowercase.c: New file.
27896 * lib/unictype/pr_other_math.c: New file.
27897 * lib/unictype/pr_other_uppercase.c: New file.
27898 * lib/unictype/pr_paired_punctuation.c: New file.
27899 * lib/unictype/pr_paragraph_separator.c: New file.
27900 * lib/unictype/pr_pattern_syntax.c: New file.
27901 * lib/unictype/pr_pattern_white_space.c: New file.
27902 * lib/unictype/pr_private_use.c: New file.
27903 * lib/unictype/pr_punctuation.c: New file.
27904 * lib/unictype/pr_quotation_mark.c: New file.
27905 * lib/unictype/pr_radical.c: New file.
27906 * lib/unictype/pr_sentence_terminal.c: New file.
27907 * lib/unictype/pr_soft_dotted.c: New file.
27908 * lib/unictype/pr_space.c: New file.
27909 * lib/unictype/pr_terminal_punctuation.c: New file.
27910 * lib/unictype/pr_test.c: New file.
27911 * lib/unictype/pr_titlecase.c: New file.
27912 * lib/unictype/pr_unassigned_code_value.c: New file.
27913 * lib/unictype/pr_unified_ideograph.c: New file.
27914 * lib/unictype/pr_uppercase.c: New file.
27915 * lib/unictype/pr_variation_selector.c: New file.
27916 * lib/unictype/pr_white_space.c: New file.
27917 * lib/unictype/pr_xid_continue.c: New file.
27918 * lib/unictype/pr_xid_start.c: New file.
27919 * lib/unictype/pr_zero_width.c: New file.
27920 * lib/unictype/scripts.c: New file.
27921 * lib/unictype/sy_c_ident.c: New file.
27922 * lib/unictype/sy_c_whitespace.c: New file.
27923 * lib/unictype/sy_java_ident.c: New file.
27924 * lib/unictype/sy_java_whitespace.c: New file.
27926 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
27928 * lib/unictype/blocks.h: Likewise.
27929 * lib/unictype/categ_C.h: Likewise.
27930 * lib/unictype/categ_Cc.h: Likewise.
27931 * lib/unictype/categ_Cf.h: Likewise.
27932 * lib/unictype/categ_Cn.h: Likewise.
27933 * lib/unictype/categ_Co.h: Likewise.
27934 * lib/unictype/categ_Cs.h: Likewise.
27935 * lib/unictype/categ_L.h: Likewise.
27936 * lib/unictype/categ_Ll.h: Likewise.
27937 * lib/unictype/categ_Lm.h: Likewise.
27938 * lib/unictype/categ_Lo.h: Likewise.
27939 * lib/unictype/categ_Lt.h: Likewise.
27940 * lib/unictype/categ_Lu.h: Likewise.
27941 * lib/unictype/categ_M.h: Likewise.
27942 * lib/unictype/categ_Mc.h: Likewise.
27943 * lib/unictype/categ_Me.h: Likewise.
27944 * lib/unictype/categ_Mn.h: Likewise.
27945 * lib/unictype/categ_N.h: Likewise.
27946 * lib/unictype/categ_Nd.h: Likewise.
27947 * lib/unictype/categ_Nl.h: Likewise.
27948 * lib/unictype/categ_No.h: Likewise.
27949 * lib/unictype/categ_P.h: Likewise.
27950 * lib/unictype/categ_Pc.h: Likewise.
27951 * lib/unictype/categ_Pd.h: Likewise.
27952 * lib/unictype/categ_Pe.h: Likewise.
27953 * lib/unictype/categ_Pf.h: Likewise.
27954 * lib/unictype/categ_Pi.h: Likewise.
27955 * lib/unictype/categ_Po.h: Likewise.
27956 * lib/unictype/categ_Ps.h: Likewise.
27957 * lib/unictype/categ_S.h: Likewise.
27958 * lib/unictype/categ_Sc.h: Likewise.
27959 * lib/unictype/categ_Sk.h: Likewise.
27960 * lib/unictype/categ_Sm.h: Likewise.
27961 * lib/unictype/categ_So.h: Likewise.
27962 * lib/unictype/categ_Z.h: Likewise.
27963 * lib/unictype/categ_Zl.h: Likewise.
27964 * lib/unictype/categ_Zp.h: Likewise.
27965 * lib/unictype/categ_Zs.h: Likewise.
27966 * lib/unictype/categ_of.h: Likewise.
27967 * lib/unictype/combining.h: Likewise.
27968 * lib/unictype/ctype_alnum.h: Likewise.
27969 * lib/unictype/ctype_alpha.h: Likewise.
27970 * lib/unictype/ctype_blank.h: Likewise.
27971 * lib/unictype/ctype_cntrl.h: Likewise.
27972 * lib/unictype/ctype_digit.h: Likewise.
27973 * lib/unictype/ctype_graph.h: Likewise.
27974 * lib/unictype/ctype_lower.h: Likewise.
27975 * lib/unictype/ctype_print.h: Likewise.
27976 * lib/unictype/ctype_punct.h: Likewise.
27977 * lib/unictype/ctype_space.h: Likewise.
27978 * lib/unictype/ctype_upper.h: Likewise.
27979 * lib/unictype/ctype_xdigit.h: Likewise.
27980 * lib/unictype/decdigit.h: Likewise.
27981 * lib/unictype/digit.h: Likewise.
27982 * lib/unictype/mirror.h: Likewise.
27983 * lib/unictype/numeric.h: Likewise.
27984 * lib/unictype/pr_alphabetic.h: Likewise.
27985 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
27986 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
27987 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
27988 * lib/unictype/pr_bidi_block_separator.h: Likewise.
27989 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
27990 * lib/unictype/pr_bidi_common_separator.h: Likewise.
27991 * lib/unictype/pr_bidi_control.h: Likewise.
27992 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
27993 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
27994 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
27995 * lib/unictype/pr_bidi_european_digit.h: Likewise.
27996 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
27997 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
27998 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
27999 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
28000 * lib/unictype/pr_bidi_pdf.h: Likewise.
28001 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
28002 * lib/unictype/pr_bidi_whitespace.h: Likewise.
28003 * lib/unictype/pr_combining.h: Likewise.
28004 * lib/unictype/pr_composite.h: Likewise.
28005 * lib/unictype/pr_currency_symbol.h: Likewise.
28006 * lib/unictype/pr_dash.h: Likewise.
28007 * lib/unictype/pr_decimal_digit.h: Likewise.
28008 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
28009 * lib/unictype/pr_deprecated.h: Likewise.
28010 * lib/unictype/pr_diacritic.h: Likewise.
28011 * lib/unictype/pr_extender.h: Likewise.
28012 * lib/unictype/pr_format_control.h: Likewise.
28013 * lib/unictype/pr_grapheme_base.h: Likewise.
28014 * lib/unictype/pr_grapheme_extend.h: Likewise.
28015 * lib/unictype/pr_grapheme_link.h: Likewise.
28016 * lib/unictype/pr_hex_digit.h: Likewise.
28017 * lib/unictype/pr_hyphen.h: Likewise.
28018 * lib/unictype/pr_id_continue.h: Likewise.
28019 * lib/unictype/pr_id_start.h: Likewise.
28020 * lib/unictype/pr_ideographic.h: Likewise.
28021 * lib/unictype/pr_ids_binary_operator.h: Likewise.
28022 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
28023 * lib/unictype/pr_ignorable_control.h: Likewise.
28024 * lib/unictype/pr_iso_control.h: Likewise.
28025 * lib/unictype/pr_join_control.h: Likewise.
28026 * lib/unictype/pr_left_of_pair.h: Likewise.
28027 * lib/unictype/pr_line_separator.h: Likewise.
28028 * lib/unictype/pr_logical_order_exception.h: Likewise.
28029 * lib/unictype/pr_lowercase.h: Likewise.
28030 * lib/unictype/pr_math.h: Likewise.
28031 * lib/unictype/pr_non_break.h: Likewise.
28032 * lib/unictype/pr_not_a_character.h: Likewise.
28033 * lib/unictype/pr_numeric.h: Likewise.
28034 * lib/unictype/pr_other_alphabetic.h: Likewise.
28035 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
28036 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
28037 * lib/unictype/pr_other_id_continue.h: Likewise.
28038 * lib/unictype/pr_other_id_start.h: Likewise.
28039 * lib/unictype/pr_other_lowercase.h: Likewise.
28040 * lib/unictype/pr_other_math.h: Likewise.
28041 * lib/unictype/pr_other_uppercase.h: Likewise.
28042 * lib/unictype/pr_paired_punctuation.h: Likewise.
28043 * lib/unictype/pr_paragraph_separator.h: Likewise.
28044 * lib/unictype/pr_pattern_syntax.h: Likewise.
28045 * lib/unictype/pr_pattern_white_space.h: Likewise.
28046 * lib/unictype/pr_private_use.h: Likewise.
28047 * lib/unictype/pr_punctuation.h: Likewise.
28048 * lib/unictype/pr_quotation_mark.h: Likewise.
28049 * lib/unictype/pr_radical.h: Likewise.
28050 * lib/unictype/pr_sentence_terminal.h: Likewise.
28051 * lib/unictype/pr_soft_dotted.h: Likewise.
28052 * lib/unictype/pr_space.h: Likewise.
28053 * lib/unictype/pr_terminal_punctuation.h: Likewise.
28054 * lib/unictype/pr_titlecase.h: Likewise.
28055 * lib/unictype/pr_unassigned_code_value.h: Likewise.
28056 * lib/unictype/pr_unified_ideograph.h: Likewise.
28057 * lib/unictype/pr_uppercase.h: Likewise.
28058 * lib/unictype/pr_variation_selector.h: Likewise.
28059 * lib/unictype/pr_white_space.h: Likewise.
28060 * lib/unictype/pr_xid_continue.h: Likewise.
28061 * lib/unictype/pr_xid_start.h: Likewise.
28062 * lib/unictype/pr_zero_width.h: Likewise.
28063 * lib/unictype/scripts.h: Likewise.
28064 * lib/unictype/scripts_byname.gperf: Likewise.
28065 * lib/unictype/sy_c_ident.h: Likewise.
28066 * lib/unictype/sy_c_whitespace.h: Likewise.
28067 * lib/unictype/sy_java_ident.h: Likewise.
28068 * lib/unictype/sy_java_whitespace.h: Likewise.
28070 * lib/unictype/Makefile: New file.
28071 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
28073 * lib/unictype/3level.h: New file, copied from glibc.
28074 * lib/unictype/3levelbit.h: New file.
28076 2007-11-11 Bruno Haible <bruno@clisp.org>
28078 * modules/gperf: New file.
28079 * modules/iconv_open (Depends-on): Add it.
28080 (Makefile.am): Remove the GPERF definition.
28082 2007-11-11 Bruno Haible <bruno@clisp.org>
28084 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
28085 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
28087 2007-11-11 Bruno Haible <bruno@clisp.org>
28089 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
28090 (usage): Remove function.
28092 2007-11-11 Bruno Haible <bruno@clisp.org>
28094 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
28095 gl_FUNC_CEILF_LIBS.
28096 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
28098 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
28099 gl_FUNC_CEILL_LIBS.
28100 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
28101 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
28102 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
28104 2007-11-11 Bruno Haible <bruno@clisp.org>
28106 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
28107 roundf were declared but do not exist on functions.
28108 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
28109 roundl were declared but do not exist on functions.
28110 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
28111 HAVE_FLOORL_AND_CEILL, respectively.
28112 Needed for Sun C on Solaris 10.
28114 2007-11-11 Bruno Haible <bruno@clisp.org>
28116 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
28117 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
28118 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
28119 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
28120 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
28121 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
28122 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
28124 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
28125 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
28126 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
28127 of HAVE_DECL_ROUND*.
28128 * modules/math (Makefile.am): Update.
28130 2007-11-10 Bruno Haible <bruno@clisp.org>
28132 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
28133 ptrdiff_t as m4/intl.m4.
28135 2007-11-10 Jim Meyering <meyering@redhat.com>
28137 Avoid link failure for the argmatch test.
28138 * tests/test-argmatch.c (usage): Define function to avoid a link
28139 failure: argmatch_die requires a usage function.
28141 2007-11-09 Bruno Haible <bruno@clisp.org>
28143 * doc/functions/snprintf.texi: Mention BeOS deficiency.
28144 * doc/functions/vsnprintf.texi: Likewise.
28145 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
28146 with a size argument < 2.
28148 2007-11-09 Bruno Haible <bruno@clisp.org>
28150 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
28151 buffer. Fixes an inefficiency introduced on 2007-11-03.
28153 2007-11-09 Bruno Haible <bruno@clisp.org>
28155 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
28156 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
28158 2007-11-08 Jim Meyering <meyering@redhat.com>
28160 Change cache variable name prefix "jm_" to "gl_" everywhere.
28161 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
28162 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
28163 * m4/uptime.m4: s/gl_/jm_/
28165 2007-11-07 Bruno Haible <bruno@clisp.org>
28167 Update to GNU gettext 0.17.
28168 * m4/intl.m4: Update to GNU gettext 0.17.
28169 * m4/po.m4: Likewise.
28170 * modules/gettext (Files): Remove m4/ulonglong.m4.
28171 (configure.ac): Require gettext infrastructure from version 0.17.
28173 2007-11-06 Bruno Haible <bruno@clisp.org>
28175 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
28176 symbolic values are not defined in a public header.
28177 * lib/freadable.c (freadable) [QNX]: Likewise.
28178 * lib/freadahead.c (freadahead) [QNX]: Likewise.
28179 * lib/freading.c (freading) [QNX]: Likewise.
28180 * lib/fseterr.c (fseterr) [QNX]: Likewise.
28181 * lib/fwritable.c (fwritable) [QNX]: Likewise.
28182 * lib/fwriting.c (fwriting) [QNX]: Likewise.
28183 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
28184 Reported by Alain Magloire.
28186 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
28188 2007-11-05 Bruno Haible <bruno@clisp.org>
28190 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
28191 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
28192 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
28193 Reported by Eric Blake.
28195 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28196 Bruno Haible <bruno@clisp.org>
28198 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
28199 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
28200 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
28201 (malloc): Undefine also before including <stdlib.h>.
28202 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
28203 Needed on OSF/1 4.0.
28205 2007-11-05 Jim Meyering <meyering@redhat.com>
28207 git-version-gen: sync from coreutils.
28208 * build-aux/git-version-gen: Add comments.
28209 Change the first '-' to '.' in the snapshot version string,
28210 e.g., 6.9-377-08144 -> 6.9.377-08144
28211 Remove first parameter.
28212 Don't declare a version "-dirty" merely because a time
28215 2007-11-04 Bruno Haible <bruno@clisp.org>
28217 * lib/lock.h: Protect all macro definitions containing an 'if'
28218 statement through a "do { ... } while (0)".
28219 * lib/tls.h: Likewise.
28221 2007-11-04 Bruno Haible <bruno@clisp.org>
28223 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
28225 2007-11-04 Bruno Haible <bruno@clisp.org>
28227 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
28228 * modules/fprintf-posix (Depends-on): Add nocrash.
28229 * modules/snprintf-posix (Depends-on): Likewise.
28230 * modules/sprintf-posix (Depends-on): Likewise.
28231 * modules/vasnprintf-posix (Depends-on): Likewise.
28232 * modules/vasprintf-posix (Depends-on): Likewise.
28233 * modules/vfprintf-posix (Depends-on): Likewise.
28234 * modules/vsnprintf-posix (Depends-on): Likewise.
28235 * modules/vsprintf-posix (Depends-on): Likewise.
28236 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28237 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28238 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28239 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28240 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28241 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28242 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28244 2007-11-04 Bruno Haible <bruno@clisp.org>
28246 * modules/nocrash: New file.
28247 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
28248 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
28250 2007-11-04 Bruno Haible <bruno@clisp.org>
28252 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
28253 precision handling.
28254 * tests/test-vasprintf-posix.c (test_function): Likewise.
28255 * tests/test-snprintf-posix.h (test_function): Likewise.
28256 * tests/test-sprintf-posix.h (test_function): Likewise.
28258 Fix *printf behaviour for large precisions on mingw and BeOS.
28259 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
28260 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
28261 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
28262 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28263 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28264 gl_PRINTF_PRECISION and test its result. Invoke
28265 gl_PREREQ_VASNPRINTF_PRECISION.
28266 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28267 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28268 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28269 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28270 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28271 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28272 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28273 * doc/functions/fprintf.texi: Update.
28274 * doc/functions/printf.texi: Update.
28275 * doc/functions/snprintf.texi: Update.
28276 * doc/functions/sprintf.texi: Update.
28277 * doc/functions/vfprintf.texi: Update.
28278 * doc/functions/vprintf.texi: Update.
28279 * doc/functions/vsnprintf.texi: Update.
28280 * doc/functions/vsprintf.texi: Update.
28282 2007-11-04 Bruno Haible <bruno@clisp.org>
28284 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
28286 2007-11-04 Bruno Haible <bruno@clisp.org>
28288 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
28289 Reported by Sylvain Beucler <beuc@gnu.org>.
28291 2007-11-03 Bruno Haible <bruno@clisp.org>
28293 * tests/test-fprintf-posix2.sh: New file.
28294 * tests/test-fprintf-posix2.c: New file.
28295 * modules/fprintf-posix-tests (Files): Add them.
28296 (TESTS): Add test-fprintf-posix2.sh.
28297 (configure.ac): Check for getrlimit and setrlimit.
28298 (check_PROGRAMS): Add test-fprintf-posix2.
28300 * tests/test-printf-posix2.sh: New file.
28301 * tests/test-printf-posix2.c: New file.
28302 * modules/printf-posix-tests (Files): Add them.
28303 (TESTS): Add test-printf-posix2.sh.
28304 (configure.ac): Check for getrlimit and setrlimit.
28305 (check_PROGRAMS): Add test-printf-posix2.
28307 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
28308 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
28309 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
28310 (decode_double): New function, copied from decode_long_double.
28311 (scale10_round_decimal_decoded): New function, extracted from
28312 scale10_round_decimal_long_double.
28313 (scale10_round_decimal_long_double): Use it.
28314 (scale10_round_decimal_double): New function.
28315 (floorlog10): New function.
28316 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
28317 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
28318 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28319 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28320 gl_PRINTF_ENOMEM and test its result. Invoke
28321 gl_PREREQ_VASNPRINTF_ENOMEM.
28322 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28323 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28324 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28325 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28326 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28327 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28328 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28329 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
28330 * modules/snprintf-posix (Depends-on): Likewise.
28331 * modules/sprintf-posix (Depends-on): Likewise.
28332 * modules/vasnprintf-posix (Depends-on): Likewise.
28333 * modules/vasprintf-posix (Depends-on): Likewise.
28334 * modules/vfprintf-posix (Depends-on): Likewise.
28335 * modules/vsnprintf-posix (Depends-on): Likewise.
28336 * modules/vsprintf-posix (Depends-on): Likewise.
28337 * doc/functions/fprintf.texi: Update.
28338 * doc/functions/printf.texi: Update.
28339 * doc/functions/snprintf.texi: Update.
28340 * doc/functions/sprintf.texi: Update.
28341 * doc/functions/vfprintf.texi: Update.
28342 * doc/functions/vprintf.texi: Update.
28343 * doc/functions/vsnprintf.texi: Update.
28344 * doc/functions/vsprintf.texi: Update.
28346 2007-11-03 Bruno Haible <bruno@clisp.org>
28348 * modules/frexp-nolibm-tests: New file.
28350 * modules/frexp-nolibm: New file.
28351 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
28353 2007-11-03 Bruno Haible <bruno@clisp.org>
28355 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
28356 value is C99 compliant.
28357 Needed for OSF/1 5.1.
28359 2007-11-03 Bruno Haible <bruno@clisp.org>
28361 Fix out-of-memory handling of vasnprintf.
28362 * lib/printf-parse.c: Include <errno.h>.
28363 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
28364 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
28367 2007-11-02 Eric Blake <ebb9@byu.net>
28369 Fix tests on cygwin.
28370 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
28372 2007-11-01 Bruno Haible <bruno@clisp.org>
28374 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
28376 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
28377 needed for POSIX compatibility.
28379 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
28381 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
28382 for compatibility with GNU.
28384 2007-11-01 Bruno Haible <bruno@clisp.org>
28386 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
28387 (putenv): Renamed from rpl_putenv. Change argument type from
28388 'const char *' to 'char *'.
28389 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
28390 of defining putenv in config.h, just set REPLACE_PUTENV.
28391 * modules/putenv (Depends-on): Add stdlib.
28392 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28393 (Include): Use <stdlib.h>.
28394 * lib/stdlib.in.h (putenv): New declaration.
28395 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
28397 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
28399 Needed for MacOS X 10.5.0.
28400 Reported by Peter O'Gorman <peter@pogma.com>.
28402 2007-11-01 Jim Meyering <meyering@redhat.com>
28404 Treat an empty date string exactly like "0".
28405 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
28406 if the remaining date string (to be parsed) is empty, use "0".
28407 Reported by Mischa Molhoek and discussed in this thread:
28408 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
28410 2007-10-31 Bruno Haible <bruno@clisp.org>
28412 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
28413 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
28414 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
28415 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
28416 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
28417 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
28419 2007-10-31 Bruno Haible <bruno@clisp.org>
28421 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
28422 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
28423 (AC_TYPE_LONG_LONG_INT): Use it.
28424 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
28426 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
28428 * modules/stdint (Files): Remove m4/ulonglong.m4.
28429 * modules/strtoull (Files): Use m4/longlong.m4 instead of
28431 * modules/strtoumax (Files): Likewise.
28433 2007-10-30 Bruno Haible <bruno@clisp.org>
28435 * modules/xvasprintf-posix: New file.
28436 Suggested by Eric Blake.
28438 2007-10-30 Bruno Haible <bruno@clisp.org>
28440 * modules/xprintf-posix-tests: New file.
28441 * tests/test-xprintf-posix.sh: New file.
28442 * tests/test-xprintf-posix.c: New file.
28443 * tests/test-xfprintf-posix.c: New file.
28445 * modules/xprintf-posix: New file.
28447 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28449 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
28450 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
28451 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
28453 2007-10-29 Bruno Haible <bruno@clisp.org>
28455 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
28456 contain the special marker '_cv_'.
28457 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
28458 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
28459 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
28460 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
28461 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
28462 Reported by Ralf Wildenhues.
28464 2007-10-29 Bruno Haible <bruno@clisp.org>
28466 * gnulib-tool (func_import): When --lgpl is not specified, set
28467 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
28469 Reported by Simon Josefsson.
28471 2007-10-28 Bruno Haible <bruno@clisp.org>
28473 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
28474 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
28475 HAVE_DECL_ISFINITE.
28476 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
28477 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
28478 HAVE_DECL_ISFINITE.
28480 2007-10-28 Bruno Haible <bruno@clisp.org>
28482 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
28483 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
28485 2007-10-28 Bruno Haible <bruno@clisp.org>
28487 Fix link errors with Sun C 5.0 on Solaris 10.
28488 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
28489 function is declared but not present in the compiler's libm.
28490 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
28491 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
28492 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
28493 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
28494 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
28495 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
28496 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
28497 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
28498 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
28499 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
28500 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
28503 2007-10-28 Bruno Haible <bruno@clisp.org>
28505 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
28506 gl_FUNC_FLOORL. Cache the result.
28507 (gl_FUNC_FLOORL): Use it.
28508 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
28509 gl_FUNC_CEILL. Cache the result.
28510 (gl_FUNC_CEILL): Use it.
28512 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
28513 gl_FUNC_FLOOR. Cache the result.
28514 (gl_FUNC_FLOOR): Use it.
28515 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
28516 gl_FUNC_CEIL. Cache the result.
28517 (gl_FUNC_CEIL): Use it.
28519 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
28520 gl_FUNC_FLOORF. Cache the result.
28521 (gl_FUNC_FLOORF): Use it.
28522 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
28523 gl_FUNC_CEILF. Cache the result.
28524 (gl_FUNC_CEILF): Use it.
28526 2007-10-28 Bruno Haible <bruno@clisp.org>
28528 * gnulib-tool: Allow specifying the LGPL version number through
28529 --lgpl=2 or --lgpl=3.
28530 (func_usage): Document --lgpl with argument.
28531 Handle --lgpl=... arguments.
28532 (func_import): Recognize also gl_LGPL calls with an argument. When
28533 --lgpl=2 is used and the module's license is just LGPL, report an
28534 error. Set sed_transform_lib_file according to the lgpl variable. In
28535 the generated files, use --lgpl or gl_LGPL invocations with argument,
28537 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
28539 * doc/gnulib-tool.texi (Modified imports): Update explanation of
28542 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28543 Bruno Haible <bruno@clisp.org>
28545 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
28546 (u16_uctomb_aux): Likewise.
28547 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
28549 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
28551 2007-10-28 Bruno Haible <bruno@clisp.org>
28553 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
28554 Invoke AM_GETTEXT_OPTION if it exists.
28555 * modules/vasprintf: Likewise.
28556 * modules/verror: Likewise.
28557 * modules/xprintf: Likewise.
28558 * modules/xvasprintf: Likewise.
28560 2007-10-27 Ben Pfaff <blp@gnu.org>
28562 * lib/math.in.h: Define isfinite macro and prototypes for
28563 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
28565 * m4/math_h.m4: New substitutions for isfinite module.
28566 * lib/isfinite.c: New file.
28567 * m4/isfinite.m4: New file.
28568 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
28569 * modules/isfinite: New file.
28570 * modules/isfinite-tests: New file.
28571 * tests/tests-isfinite.c: New file.
28572 * doc/functions/isfinite.texi: Mention isfinite module.
28573 * MODULES.html.sh: Mention new module.
28575 2007-10-27 Ben Pfaff <blp@gnu.org>
28577 Ralf Wildenhues reported that Tru64 4.0D declares the round
28578 functions but does not have definitions.
28579 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
28580 cannot be found in any library, set the output variable to
28581 "missing" instead of "".
28582 * m4/round.m4: Also use our substitute if we cannot find round in
28583 any library, even if it is declared.
28584 * m4/roundf.m4: Likewise for roundf.
28585 * m4/roundl.m4: Likewise for roundl.
28586 * lib/math.in.h: Undefine roundf, round, roundl before defining
28587 their replacements, to allow for hypothetical systems where these
28588 may be defined as macros but not available in libraries.
28590 2007-10-27 Bruno Haible <bruno@clisp.org>
28592 * doc/gnulib.texi: Invoke @firstparagraphindent.
28593 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
28595 (Source changes): New section.
28597 2007-10-26 Bruno Haible <bruno@clisp.org>
28599 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
28600 borrowed from autoconf.
28602 2007-10-26 Bruno Haible <bruno@clisp.org>
28604 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
28605 strerror returned the empty string. Needed on HP-UX 11.00.
28607 2007-10-24 Micah Cowan <micah@cowan.name>
28609 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
28610 * build-aux/bootstrap: Remove support for now-unnecessary option,
28611 --cvs-user, and envvars CVS_USER, CVS_RSH.
28613 2007-10-24 Jim Meyering <meyering@redhat.com>
28615 Avoid diagnostics from sha1sum when there is no cached checksum.
28616 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
28617 if the po.s1 file hasn't been created yet.
28619 * build-aux/bootstrap: Sync from coreutils:
28620 2007-10-24 Jim Meyering <meyering@redhat.com>
28621 Get gnulib from the git repository, not from an obsolete cvs one.
28622 * build-aux/bootstrap: Suggestion from Micah Cowan.
28623 2007-10-04 Jim Meyering <jim@meyering.net>
28624 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
28625 (update_po_files): Work also when there are no .po files in po/.
28627 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
28629 * README: Append ".git" to git and cg examples.
28630 Problem reported by Benoit Sigoure.
28632 2007-10-23 Micah Cowan <micah@cowan.name>
28634 * users.txt: Add wget.
28636 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28638 Fix linking of some unistdio tests on FreeBSD.
28639 * modules/unistdio/u16-vsnprintf-tests
28640 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
28641 * modules/unistdio/u16-vsprintf-tests
28642 (test_u16_vsnprintf1_LDADD): Likewise.
28643 * modules/unistdio/u32-vsnprintf-tests
28644 (test_u32_vsnprintf1_LDADD): Likewise.
28645 * modules/unistdio/u32-vsprintf-tests
28646 (test_u32_vsprintf1_LDADD): Likewise.
28647 * modules/unistdio/u8-vsnprintf-tests
28648 (test_u8_vsnprintf1_LDADD): Likewise.
28649 * modules/unistdio/u8-vsprintf-tests
28650 (test_u8_vsprintf1_LDADD): Likewise.
28651 * modules/unistdio/ulc-vsnprintf-tests
28652 (test_ulc_vsnprintf1_LDADD): Likewise.
28653 * modules/unistdio/ulc-vsprintf-tests
28654 (test_ulc_vsprintf1_LDADD): Likewise.
28656 Fix linking of some uniconv tests on FreeBSD.
28657 * modules/uniconv/u16-conv-from-enc-tests
28658 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
28659 * modules/uniconv/u16-conv-to-enc-tests
28660 (test_u16_conv_to_enc_LDADD): Likewise.
28661 * modules/uniconv/u16-strconv-from-enc-tests
28662 (test_u16_strconv_from_enc_LDADD): Likewise.
28663 * modules/uniconv/u16-strconv-to-enc-tests
28664 (test_u16_strconv_to_enc_LDADD): Likewise.
28665 * modules/uniconv/u32-conv-from-enc-tests
28666 (test_u32_conv_from_enc_LDADD): Likewise.
28667 * modules/uniconv/u32-conv-to-enc-tests
28668 (test_u32_conv_to_enc_LDADD): Likewise.
28669 * modules/uniconv/u32-strconv-from-enc-tests
28670 (test_u32_strconv_from_enc_LDADD): Likewise.
28671 * modules/uniconv/u32-strconv-to-enc-tests
28672 (test_u32_strconv_to_enc_LDADD): Likewise.
28673 * modules/uniconv/u8-conv-from-enc-tests
28674 (test_u8_conv_from_enc_LDADD): Likewise.
28675 * modules/uniconv/u8-conv-to-enc-tests
28676 (test_u8_conv_to_enc_LDADD): Likewise.
28677 * modules/uniconv/u8-strconv-from-enc-tests
28678 (test_u8_strconv_from_enc_LDADD): Likewise.
28679 * modules/uniconv/u8-strconv-to-enc-tests
28680 (test_u8_strconv_to_enc_LDADD): Likewise.
28682 2007-10-22 Bruno Haible <bruno@clisp.org>
28684 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
28687 2007-10-22 Eric Blake <ebb9@byu.net>
28689 Tweak x*printf documentation.
28690 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
28691 variable name and comments.
28692 Suggested by Bruno Haible.
28694 2007-10-22 Bruno Haible <bruno@clisp.org>
28696 * lib/acl.c (copy_acl): Fix file name in comment.
28698 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
28700 Fix Tru64 problem with stdbool.h.
28701 * lib/stdbool.in.h (false, true):
28702 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
28703 Don't declare as an enum in this situation; it runs afoul of Tru64.
28704 Problem reported by Steven M. Schweda in
28705 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
28707 2007-10-22 Eric Blake <ebb9@byu.net>
28709 Also wrap vf?printf.
28710 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
28711 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
28712 (xvprintf, xvfprintf): New functions.
28714 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28716 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
28717 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
28719 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
28720 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
28722 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
28724 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
28727 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28730 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
28731 Undef `sys' after including sys/table.h, for Tru64 4.0D.
28733 * tests/test-i-ring.c: Work for C89.
28735 2007-10-22 Bruno Haible <bruno@clisp.org>
28737 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
28738 -1u, in preprocessor expression, so that we don't test for the bug
28739 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
28740 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
28742 2007-10-22 Eric Blake <ebb9@byu.net>
28744 * tests/test-yesno.sh: Silence stderr during test.
28746 2007-10-22 Simon Josefsson <simon@josefsson.org>
28748 * modules/crypto/gc-camellia: New file.
28750 * m4/gc-camellia.m4: New file.
28752 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
28754 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
28756 2007-10-22 Simon Josefsson <simon@josefsson.org>
28758 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
28759 --help to stdout. Reported by sms@antinode.org (Steven
28762 2007-10-22 Simon Josefsson <simon@josefsson.org>
28764 * users.txt: Fix link to libksba.
28766 2007-10-21 Ben Pfaff <blp@gnu.org>
28768 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
28769 round.c roundf implementation that depends on floorf and ceilf to
28770 be tested unconditionally.
28772 2007-10-21 Ben Pfaff <blp@gnu.org>
28774 * m4/check-libm-func.m4: Removed.
28775 * m4/check-math-lib.m4: New file.
28776 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
28777 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
28778 definition and lack of AC_LIBOBJ([roundf]).
28779 * m4/roundl.m4: Ditto, and similarly for roundl.
28780 * modules/round: Reference new m4 file.
28781 * modules/roundf: Ditto.
28782 * modules/roundl: Ditto.
28783 * tests/test-round2.c (main): Use ROUND instead of round.
28784 Bug report from Bruno Haible.
28786 2007-10-21 Bruno Haible <bruno@clisp.org>
28788 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
28791 2007-10-21 Bruno Haible <bruno@clisp.org>
28793 * tests/test-wcwidth.c (main): Allow negative result for some control
28796 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
28797 Needed on OSF/1 5.1.
28799 2007-10-21 Bruno Haible <bruno@clisp.org>
28801 * tests/test-floorf1.c: Include isnanf.h.
28802 (main): Use isnanf() instead of isnan().
28803 * tests/test-ceilf1.c: Include isnanf.h.
28804 (main): Use isnanf() instead of isnan().
28805 * tests/test-truncf1.c: Include isnanf.h.
28806 (main): Use isnanf() instead of isnan().
28807 * tests/test-roundf1.c: Include isnanf.h.
28808 (main): Use isnanf() instead of isnan().
28810 2007-10-21 Eric Blake <ebb9@byu.net>
28812 * users.txt: Update URL for m4.
28814 2007-10-21 Bruno Haible <bruno@clisp.org>
28816 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
28818 2007-10-21 Bruno Haible <bruno@clisp.org>
28820 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
28821 Git's management files if the CVS files are not present.
28823 2007-10-20 Bruno Haible <bruno@clisp.org>
28825 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
28828 2007-10-20 Ben Pfaff <blp@gnu.org>
28830 * lib/math.in.h: Declare round, roundf, roundl if we are providing
28832 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
28833 * lib/round.c: New file.
28834 * lib/roundf.c: New file.
28835 * lib/roundl.c: New file.
28836 * m4/round.m4: New file.
28837 * m4/roundf.m4: New file.
28838 * m4/roundl.m4: New file.
28839 * m4/check-libm-func-m4: New file.
28840 * modules/math: Replace round, roundf, roundl related @VARS@ in
28842 * modules/round: New file.
28843 * modules/round-tests: New file.
28844 * modules/roundf: New file.
28845 * modules/roundf-tests: New file.
28846 * modules/roundl: New file.
28847 * modules/roundl-tests: New file.
28848 * tests/test-round1.c: New file.
28849 * tests/test-round2.c: New file.
28850 * tests/test-roundf1.c: New file.
28851 * tests/test-roundf2.c: New file.
28852 * tests/test-roundl.c: New file.
28853 * doc/functions/round.texi: Mention round module.
28854 * doc/functions/roundf.texi: Mention roundf module.
28855 * doc/functions/roundl.texi: Mention roundl module.
28856 * MODULES.html.sh: Mention new modules.
28857 Thanks to Bruno Haible for suggestions.
28859 2007-10-20 Jim Meyering <meyering@redhat.com>
28861 * lib/xprintf.c: Include <config.h> unconditionally.
28863 Change xprintf's license to GPL.
28864 * modules/xprintf (License): s/LGPL/GPL/, since this module
28865 depends on modules (exit and exitfail) which are GPL.
28866 Suggestion from Bruno Haible.
28869 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
28870 Use a clearer diagnostic.
28871 Patch from Bruno Haible.
28873 2007-10-20 Bruno Haible <bruno@clisp.org>
28875 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
28876 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
28877 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28879 2007-10-20 Bruno Haible <bruno@clisp.org>
28881 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
28882 precision in the comparison result > x - 1 or similar.
28883 * tests/test-ceilf2.c (correct_result_p): Likewise.
28884 * tests/test-truncf2.c (correct_result_p): Likewise.
28885 * tests/test-trunc2.c (correct_result_p): Likewise.
28886 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28888 2007-10-20 Bruno Haible <bruno@clisp.org>
28890 * modules/ceil: New file.
28891 * m4/ceil.m4: New file.
28892 * doc/functions/ceil.texi: Mention the 'ceil' module.
28894 2007-10-20 Bruno Haible <bruno@clisp.org>
28896 * modules/floor: New file.
28897 * m4/floor.m4: New file.
28898 * doc/functions/floor.texi: Mention the 'floor' module.
28900 2007-10-20 Bruno Haible <bruno@clisp.org>
28902 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
28904 * modules/floorf-tests (Depends-on): Likewise.
28905 * modules/truncf-tests (Depends-on): Likewise.
28906 * modules/trunc-tests (Depends-on): Likewise.
28907 Reported by Ben Pfaff.
28909 2007-10-19 Jim Meyering <meyering@redhat.com>
28911 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
28912 Don't bother testing specific errno values. Just test ferror.
28914 New module: xprintf
28915 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
28917 2007-10-19 Bruno Haible <bruno@clisp.org>
28919 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
28921 * modules/javaexec (Makefile.am): Likewise.
28922 * modules/relocatable-prog (Makefile.am): Likewise.
28923 Suggested by Jim Meyering.
28925 2007-10-18 Bruno Haible <bruno@clisp.org>
28927 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
28928 Reported by Jim Meyering.
28930 2007-10-18 Eric Blake <ebb9@byu.net>
28932 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
28934 2007-10-18 Bruno Haible <bruno@clisp.org>
28936 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
28937 the format string into writable memory. Needed in Fortify conditions.
28939 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
28940 Bruno Haible <bruno@clisp.org>
28942 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
28943 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
28944 * modules/trim (Depends-on): Add mbchar.
28945 (configure.ac): Add gl_FUNC_MBRTOWC.
28946 (Makefile.am): Augment lib_SOURCES.
28948 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
28950 Modify glob.c to use fstatat and dirfd, to simplify it.
28951 Suggested by Eric Blake.
28952 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
28953 Don't include <stdbool.h>; not used.
28954 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
28955 (link_exists_p): Simplify implementation, since we can now assume
28957 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
28959 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28961 * gnulib-tool (func_get_dependencies): Fix sed script to
28964 2007-10-17 Bruno Haible <bruno@clisp.org>
28966 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
28967 allow locale names without encoding suffix.
28968 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
28969 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28971 2007-10-16 Bruno Haible <bruno@clisp.org>
28973 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
28974 * lib/getgroups.c (getgroups): Likewise.
28975 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
28977 2007-10-16 Bruno Haible <bruno@clisp.org>
28979 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
28980 * modules/malloc-posix (License): Likewise.
28981 * modules/realloc-posix (License): Likewise.
28982 * modules/calloc-posix (License): Likewise.
28983 * modules/intprops (License): Change from GPL to LGPL, with
28984 Paul Eggert's approval.
28986 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
28988 Merge glibc changes into lib/glob.c.
28990 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
28991 2007-10-15 04:59:03 UTC. Here are the changes:
28993 2007-10-14 Ulrich Drepper <drepper@redhat.com>
28995 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
28997 * lib/glob.c: Add some branch prediction throughout.
28999 2007-10-07 Ulrich Drepper <drepper@redhat.com>
29002 * lib/glob.c (glob): Recognize patterns starting \/.
29004 2007-02-14 Jakub Jelinek <jakub@redhat.com>
29007 * lib/glob.c (attribute_hidden): Define if not defined.
29008 (glob): Unescape dirname, filename or username when needed and not
29009 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
29010 is NULL. Handle unescaped [ in pattern without closing ].
29011 Don't pass GLOB_CHECK down to recursive glob for directories.
29012 (__glob_pattern_type): New function.
29013 (__glob_pattern_p): Implement using __glob_pattern_type.
29014 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
29015 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
29016 Remove unreachable code.
29018 2006-09-30 Ulrich Drepper <drepper@redhat.com>
29020 * lib/glob.c (glob_in_dir): Add some comments and asserts to
29021 explain why there are no leaks.
29023 2006-09-25 Jakub Jelinek <jakub@redhat.com>
29026 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
29027 time, rather allocate increasingly bigger arrays of pointers, if
29028 possible with alloca, if too large with malloc.
29030 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
29032 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
29033 Problem reported by H.Merijn Brand in
29034 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
29035 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
29036 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
29038 2007-10-15 Bruno Haible <bruno@clisp.org>
29040 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
29041 with explicit rpl_ prefix.
29042 * lib/fopen.c (fopen): Likewise.
29043 * lib/freopen.c (freopen): Likewise.
29044 * lib/iconv.c (iconv): Likewise.
29045 * lib/iconv_close.c (iconv_close): Likewise.
29047 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29049 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
29051 2007-10-15 Bruno Haible <bruno@clisp.org>
29053 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
29054 <stddef.h> instead of <stdlib.h> since we only need NULL.
29055 Reported by Ben Pfaff <blp@cs.stanford.edu>.
29057 2007-10-15 Bruno Haible <bruno@clisp.org>
29059 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
29060 Replace paragraph talking about LIBOBJS.
29061 Reported by Colin Watson <cjwatson@debian.org>.
29063 2007-10-15 Bruno Haible <bruno@clisp.org>
29065 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
29066 <stdlib.h> before using NULL.
29068 2007-10-15 Simon Josefsson <simon@josefsson.org>
29070 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
29071 Reported by Albert Chin <china@thewrittenword.com>.
29073 2007-10-14 Bruno Haible <bruno@clisp.org>
29075 * modules/iconv_open-utf-tests: New file.
29076 * tests/test-iconv-utf.c: New file.
29078 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
29079 * modules/iconv_open-utf: New file.
29080 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
29081 (iconv, iconv_close): New declarations.
29082 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
29084 (iconv_open): Add special handling of conversion between UTF-8 and
29085 UTF-{16,32}{BE,LE}.
29086 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
29087 * lib/iconv_close.c: New file.
29088 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
29089 gl_FUNC_ICONV_OPEN.
29090 (gl_FUNC_ICONV_OPEN): Use it.
29091 (gl_FUNC_ICONV_OPEN_UTF): New macro.
29092 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
29093 and REPLACE_ICONV_UTF.
29094 * modules/iconv_open (Depends-on): Add c-strcase.
29095 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
29097 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
29099 2007-10-13 Albert Chin <china@thewrittenword.com>
29100 Bruno Haible <bruno@clisp.org>
29102 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
29103 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
29105 2007-10-13 Bruno Haible <bruno@clisp.org>
29107 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
29108 defined, use the ISO C99 inline semantics.
29109 * lib/argp.h (ARGP_EI): Likewise.
29111 2007-10-13 Bruno Haible <bruno@clisp.org>
29113 Handle 'inline' change in gcc 4.3.0.
29114 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
29115 argp_fmtstream_write, argp_fmtstream_set_lmargin,
29116 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
29117 argp_fmtstream_point): Disable 'extern' declaration if the function
29118 definition is going to be provided inline.
29119 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
29120 semantics, not the ISO C99 inline semantics.
29121 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
29122 'extern' declaration if the function definition is going to be provided
29124 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
29125 the GNU C inline semantics, not the ISO C99 inline semantics. With
29126 GCC 4.2, avoid a warning.
29128 2007-10-13 Bruno Haible <bruno@clisp.org>
29130 * lib/freading.h (freading): Enable the use of __freading for
29132 * lib/freading.c (freading): Likewise.
29134 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
29136 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
29137 "warning: C99 inline functions are not supported; using GNU89".
29139 2007-10-12 Bruno Haible <bruno@clisp.org>
29141 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
29143 * tests/test-ceilf2.c: New file.
29144 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
29146 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
29147 * modules/ceilf-tests: Update.
29149 2007-10-12 Bruno Haible <bruno@clisp.org>
29151 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
29153 * tests/test-floorf2.c: New file.
29154 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
29156 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
29157 * modules/floorf-tests: Update.
29159 2007-10-12 Bruno Haible <bruno@clisp.org>
29161 * tests/test-trunc2.c: New file.
29162 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
29164 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
29165 * modules/trunc-tests: Update.
29167 2007-10-12 Bruno Haible <bruno@clisp.org>
29169 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
29171 * tests/test-truncf2.c: New file.
29172 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
29174 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
29175 * modules/truncf-tests: Update.
29177 2007-10-11 Eric Blake <ebb9@byu.net>
29179 Don't claim strerror is broken on Interix.
29180 * doc/functions/strerror.texi (strerror): Known broken systems are
29181 now Solaris 8, and not Interix.
29182 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
29183 Interix on cross-compile.
29184 Reported by Martin Koeppe in
29185 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
29187 2007-10-11 Bruno Haible <bruno@clisp.org>
29189 * modules/i-ring-tests: New file.
29190 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
29193 2007-10-11 Bruno Haible <bruno@clisp.org>
29195 * modules/filenamecat-tests: New file.
29196 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
29197 * lib/filenamecat.c: Remove test code.
29199 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
29201 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
29203 * lib/strerror.c: Include <string.h> always, to test interface,
29204 and to remove the need for the dummy.
29205 Include intprops.h to compute width instead of doing it ourselves
29206 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
29207 (strerror): Define it to return NULL if there's no system strerror.
29208 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
29209 Omit !HAVE_STRERROR code. We don't need to worry about supporting
29210 ancient pre-strerror Unix systems well any more. Saying "unknown
29211 system error" is enough.
29212 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
29213 simpler strerror.c implementation.
29214 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
29215 Simplify the tests to reflect the simpler strerror implementation.
29216 * modules/strerror (Depends-on): Add intprops.
29218 2007-10-09 Eric Blake <ebb9@byu.net>
29220 Silence test-fpending.
29221 * modules/fpending-tests (Files): Add wrapper script.
29222 * tests/test-fpending.sh: New file.
29224 2007-10-09 Bruno Haible <bruno@clisp.org>
29226 * MODULES.html.sh (func_module): Don't create a hyperlink for
29227 function names like 'printf_frexp'.
29228 (Misc): Add crc, memxor.
29229 (Characteristics of floating types): New section.
29230 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
29231 isnanf-nolibm, signbit, trunc, truncf, truncl.
29232 (Enhancements for ISO C 99 functions): New subsection Input/output.
29233 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
29234 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
29235 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
29236 (Compatibility checks for POSIX:2001 functions): Add clock-time.
29237 (Enhancements for POSIX:2001 functions): Add chdir-long.
29238 (File system functions): Add areadlink, chdir-safer, read-file.
29239 Remove cycle-check.
29240 (File system as inode set): New section.
29241 (Date and time): Add gethrxtime.
29242 (Multithreading): Add openmp.
29243 (Internationalization functions): Add localename.
29244 (Unicode string functions): Add unistr/u*-mbsnlen.
29245 (Support for maintaining and releasing projects): Add git-version-gen.
29246 (Lone files): Remove directories.
29248 2007-10-08 Ben Pfaff <blp@gnu.org>
29250 * lib/xmalloca.h: Fix typo in comment.
29252 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
29254 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
29255 when avoiding problems with integer overflow. Use a portable test
29258 2007-10-08 Simon Josefsson <simon@josefsson.org>
29260 * modules/dummy (License): Change to LGPLv2+.
29261 * modules/float (License): Likewise
29262 * modules/realloc (License): Likewise
29263 * modules/stdlib (License): Likewise
29265 2007-10-07 Bruno Haible <bruno@clisp.org>
29267 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
29268 * floor.c (TWO_MANT_DIG): Likewise.
29269 * ceil.c (TWO_MANT_DIG): Likewise.
29270 Reported by Ben Pfaff.
29272 2007-10-07 Bruno Haible <bruno@clisp.org>
29274 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
29275 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
29276 * lib/frexp.c (FUNC): Likewise.
29277 * lib/printf-frexp.h (printf_frexp): Likewise.
29278 * lib/printf-frexpl.h (printf_frexpl): Likewise.
29279 * lib/printf-frexp.c (FUNC): Likewise.
29280 Suggested by Jim Meyering.
29282 2007-10-07 Jim Meyering <meyering@redhat.com>
29284 Make xnanosleep's integer overflow test more robust.
29285 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
29286 so that gcc-4.3.0 doesn't optimize away this test for overflow.
29288 2007-10-07 Bruno Haible <bruno@clisp.org>
29290 * NEWS: Mention the license change.
29292 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
29293 abbreviations in the modules files.
29295 Change copyright notice from GPLv2+ to GPLv3+.
29296 * README: Change copyright notice.
29297 * MODULES.html.sh: Likewise.
29298 * build-aux/bootstrap.conf: Likewise.
29299 * build-aux/config.libpath: Likewise.
29300 * build-aux/csharpcomp.sh.in: Likewise.
29301 * build-aux/csharpexec.sh.in: Likewise.
29302 * build-aux/install-reloc: Likewise.
29303 * build-aux/javacomp.sh.in: Likewise.
29304 * build-aux/javaexec.sh.in: Likewise.
29305 * build-aux/ldd.sh.in: Likewise.
29306 * build-aux/reloc-ldflags: Likewise.
29307 * build-aux/relocatable.sh.in: Likewise.
29308 * build-aux/x-to-1.in: Likewise.
29309 * check-module: Likewise.
29310 * config/srclistvars.sh: Likewise.
29311 * gnulib-tool: Likewise.
29312 * lib/acl-internal.h: Likewise.
29313 * lib/acl.c: Likewise.
29314 * lib/acl.h: Likewise.
29315 * lib/acl_entries.c: Likewise.
29316 * lib/areadlink-with-size.c: Likewise.
29317 * lib/areadlink.c: Likewise.
29318 * lib/areadlink.h: Likewise.
29319 * lib/argmatch.c: Likewise.
29320 * lib/argmatch.h: Likewise.
29321 * lib/argp-ba.c: Likewise.
29322 * lib/argp-eexst.c: Likewise.
29323 * lib/argp-fmtstream.c: Likewise.
29324 * lib/argp-fmtstream.h: Likewise.
29325 * lib/argp-fs-xinl.c: Likewise.
29326 * lib/argp-help.c: Likewise.
29327 * lib/argp-namefrob.h: Likewise.
29328 * lib/argp-parse.c: Likewise.
29329 * lib/argp-pin.c: Likewise.
29330 * lib/argp-pv.c: Likewise.
29331 * lib/argp-pvh.c: Likewise.
29332 * lib/argp-xinl.c: Likewise.
29333 * lib/argp.h: Likewise.
29334 * lib/at-func.c: Likewise.
29335 * lib/atanl.c: Likewise.
29336 * lib/backupfile.c: Likewise.
29337 * lib/backupfile.h: Likewise.
29338 * lib/basename.c: Likewise.
29339 * lib/binary-io.h: Likewise.
29340 * lib/byteswap.in.h: Likewise.
29341 * lib/c-stack.c: Likewise.
29342 * lib/c-stack.h: Likewise.
29343 * lib/c-strcasestr.c: Likewise.
29344 * lib/c-strcasestr.h: Likewise.
29345 * lib/c-strstr.c: Likewise.
29346 * lib/c-strstr.h: Likewise.
29347 * lib/c-strtod.c: Likewise.
29348 * lib/calloc.c: Likewise.
29349 * lib/canon-host.c: Likewise.
29350 * lib/canon-host.h: Likewise.
29351 * lib/canonicalize-lgpl.c: Likewise.
29352 * lib/canonicalize.c: Likewise.
29353 * lib/canonicalize.h: Likewise.
29354 * lib/ceil.c: Likewise.
29355 * lib/ceilf.c: Likewise.
29356 * lib/ceill.c: Likewise.
29357 * lib/chdir-long.c: Likewise.
29358 * lib/chdir-long.h: Likewise.
29359 * lib/chdir-safer.c: Likewise.
29360 * lib/chdir-safer.h: Likewise.
29361 * lib/chown.c: Likewise.
29362 * lib/classpath.c: Likewise.
29363 * lib/classpath.h: Likewise.
29364 * lib/clean-temp.c: Likewise.
29365 * lib/clean-temp.h: Likewise.
29366 * lib/cloexec.c: Likewise.
29367 * lib/close-stream.c: Likewise.
29368 * lib/closein.c: Likewise.
29369 * lib/closein.h: Likewise.
29370 * lib/closeout.c: Likewise.
29371 * lib/closeout.h: Likewise.
29372 * lib/concat-filename.c: Likewise.
29373 * lib/copy-file.c: Likewise.
29374 * lib/copy-file.h: Likewise.
29375 * lib/count-one-bits.h: Likewise.
29376 * lib/crc.c: Likewise.
29377 * lib/crc.h: Likewise.
29378 * lib/creat-safer.c: Likewise.
29379 * lib/csharpcomp.c: Likewise.
29380 * lib/csharpcomp.h: Likewise.
29381 * lib/csharpexec.c: Likewise.
29382 * lib/csharpexec.h: Likewise.
29383 * lib/cycle-check.c: Likewise.
29384 * lib/cycle-check.h: Likewise.
29385 * lib/diacrit.c: Likewise.
29386 * lib/diacrit.h: Likewise.
29387 * lib/diffseq.h: Likewise.
29388 * lib/dirchownmod.c: Likewise.
29389 * lib/dirent.in.h: Likewise.
29390 * lib/dirfd.c: Likewise.
29391 * lib/dirfd.h: Likewise.
29392 * lib/dirname.c: Likewise.
29393 * lib/dirname.h: Likewise.
29394 * lib/dummy.c: Likewise.
29395 * lib/dup-safer.c: Likewise.
29396 * lib/dup2.c: Likewise.
29397 * lib/eealloc.h: Likewise.
29398 * lib/error.c: Likewise.
29399 * lib/error.h: Likewise.
29400 * lib/euidaccess.c: Likewise.
29401 * lib/exclude.c: Likewise.
29402 * lib/exclude.h: Likewise.
29403 * lib/execute.c: Likewise.
29404 * lib/execute.h: Likewise.
29405 * lib/exitfail.c: Likewise.
29406 * lib/exitfail.h: Likewise.
29407 * lib/expl.c: Likewise.
29408 * lib/fatal-signal.c: Likewise.
29409 * lib/fatal-signal.h: Likewise.
29410 * lib/fbufmode.c: Likewise.
29411 * lib/fbufmode.h: Likewise.
29412 * lib/fchdir.c: Likewise.
29413 * lib/fchmodat.c: Likewise.
29414 * lib/fchownat.c: Likewise.
29415 * lib/fcntl--.h: Likewise.
29416 * lib/fcntl-safer.h: Likewise.
29417 * lib/fcntl.in.h: Likewise.
29418 * lib/fd-safer.c: Likewise.
29419 * lib/fflush.c: Likewise.
29420 * lib/file-has-acl.c: Likewise.
29421 * lib/file-set.c: Likewise.
29422 * lib/file-type.c: Likewise.
29423 * lib/file-type.h: Likewise.
29424 * lib/fileblocks.c: Likewise.
29425 * lib/filemode.c: Likewise.
29426 * lib/filemode.h: Likewise.
29427 * lib/filename.h: Likewise.
29428 * lib/filenamecat.c: Likewise.
29429 * lib/filenamecat.h: Likewise.
29430 * lib/findprog.c: Likewise.
29431 * lib/findprog.h: Likewise.
29432 * lib/float.in.h: Likewise.
29433 * lib/floor.c: Likewise.
29434 * lib/floorf.c: Likewise.
29435 * lib/floorl.c: Likewise.
29436 * lib/fopen-safer.c: Likewise.
29437 * lib/fopen.c: Likewise.
29438 * lib/fpending.c: Likewise.
29439 * lib/fpending.h: Likewise.
29440 * lib/fprintf.c: Likewise.
29441 * lib/fprintftime.h: Likewise.
29442 * lib/fpucw.h: Likewise.
29443 * lib/fpurge.c: Likewise.
29444 * lib/fpurge.h: Likewise.
29445 * lib/freadable.c: Likewise.
29446 * lib/freadable.h: Likewise.
29447 * lib/freadahead.c: Likewise.
29448 * lib/freadahead.h: Likewise.
29449 * lib/freading.c: Likewise.
29450 * lib/freading.h: Likewise.
29451 * lib/free.c: Likewise.
29452 * lib/freopen.c: Likewise.
29453 * lib/frexp.c: Likewise.
29454 * lib/frexpl.c: Likewise.
29455 * lib/fseek.c: Likewise.
29456 * lib/fseterr.c: Likewise.
29457 * lib/fseterr.h: Likewise.
29458 * lib/fstatat.c: Likewise.
29459 * lib/fstrcmp.c: Likewise.
29460 * lib/fstrcmp.h: Likewise.
29461 * lib/fsusage.c: Likewise.
29462 * lib/fsusage.h: Likewise.
29463 * lib/ftell.c: Likewise.
29464 * lib/ftello.c: Likewise.
29465 * lib/fts-cycle.c: Likewise.
29466 * lib/fts.c: Likewise.
29467 * lib/fts_.h: Likewise.
29468 * lib/full-read.c: Likewise.
29469 * lib/full-read.h: Likewise.
29470 * lib/full-write.c: Likewise.
29471 * lib/full-write.h: Likewise.
29472 * lib/fwritable.c: Likewise.
29473 * lib/fwritable.h: Likewise.
29474 * lib/fwriteerror.c: Likewise.
29475 * lib/fwriteerror.h: Likewise.
29476 * lib/fwriting.c: Likewise.
29477 * lib/fwriting.h: Likewise.
29478 * lib/gcd.c: Likewise.
29479 * lib/gcd.h: Likewise.
29480 * lib/getcwd.c: Likewise.
29481 * lib/getdate.h: Likewise.
29482 * lib/getdate.y: Likewise.
29483 * lib/getdomainname.c: Likewise.
29484 * lib/getdomainname.h: Likewise.
29485 * lib/getgroups.c: Likewise.
29486 * lib/gethostname.c: Likewise.
29487 * lib/gethrxtime.c: Likewise.
29488 * lib/gethrxtime.h: Likewise.
29489 * lib/getloadavg.c: Likewise.
29490 * lib/getndelim2.c: Likewise.
29491 * lib/getndelim2.h: Likewise.
29492 * lib/getnline.c: Likewise.
29493 * lib/getnline.h: Likewise.
29494 * lib/getopt.c: Likewise.
29495 * lib/getopt.in.h: Likewise.
29496 * lib/getopt1.c: Likewise.
29497 * lib/getopt_int.h: Likewise.
29498 * lib/getpagesize.h: Likewise.
29499 * lib/getsubopt.c: Likewise.
29500 * lib/gettime.c: Likewise.
29501 * lib/getugroups.c: Likewise.
29502 * lib/getugroups.h: Likewise.
29503 * lib/getusershell.c: Likewise.
29504 * lib/gl_anyavltree_list1.h: Likewise.
29505 * lib/gl_anyavltree_list2.h: Likewise.
29506 * lib/gl_anyhash_list1.h: Likewise.
29507 * lib/gl_anyhash_list2.h: Likewise.
29508 * lib/gl_anylinked_list1.h: Likewise.
29509 * lib/gl_anylinked_list2.h: Likewise.
29510 * lib/gl_anyrbtree_list1.h: Likewise.
29511 * lib/gl_anyrbtree_list2.h: Likewise.
29512 * lib/gl_anytree_list1.h: Likewise.
29513 * lib/gl_anytree_list2.h: Likewise.
29514 * lib/gl_anytree_oset.h: Likewise.
29515 * lib/gl_anytreehash_list1.h: Likewise.
29516 * lib/gl_anytreehash_list2.h: Likewise.
29517 * lib/gl_array_list.c: Likewise.
29518 * lib/gl_array_list.h: Likewise.
29519 * lib/gl_array_oset.c: Likewise.
29520 * lib/gl_array_oset.h: Likewise.
29521 * lib/gl_avltree_list.c: Likewise.
29522 * lib/gl_avltree_list.h: Likewise.
29523 * lib/gl_avltree_oset.c: Likewise.
29524 * lib/gl_avltree_oset.h: Likewise.
29525 * lib/gl_avltreehash_list.c: Likewise.
29526 * lib/gl_avltreehash_list.h: Likewise.
29527 * lib/gl_carray_list.c: Likewise.
29528 * lib/gl_carray_list.h: Likewise.
29529 * lib/gl_linked_list.c: Likewise.
29530 * lib/gl_linked_list.h: Likewise.
29531 * lib/gl_linkedhash_list.c: Likewise.
29532 * lib/gl_linkedhash_list.h: Likewise.
29533 * lib/gl_list.c: Likewise.
29534 * lib/gl_list.h: Likewise.
29535 * lib/gl_oset.c: Likewise.
29536 * lib/gl_oset.h: Likewise.
29537 * lib/gl_rbtree_list.c: Likewise.
29538 * lib/gl_rbtree_list.h: Likewise.
29539 * lib/gl_rbtree_oset.c: Likewise.
29540 * lib/gl_rbtree_oset.h: Likewise.
29541 * lib/gl_rbtreehash_list.c: Likewise.
29542 * lib/gl_rbtreehash_list.h: Likewise.
29543 * lib/gl_sublist.c: Likewise.
29544 * lib/gl_sublist.h: Likewise.
29545 * lib/group-member.c: Likewise.
29546 * lib/group-member.h: Likewise.
29547 * lib/hard-locale.c: Likewise.
29548 * lib/hard-locale.h: Likewise.
29549 * lib/hash-pjw.c: Likewise.
29550 * lib/hash-pjw.h: Likewise.
29551 * lib/hash-triple.c: Likewise.
29552 * lib/hash.c: Likewise.
29553 * lib/hash.h: Likewise.
29554 * lib/human.c: Likewise.
29555 * lib/human.h: Likewise.
29556 * lib/i-ring.c: Likewise.
29557 * lib/i-ring.h: Likewise.
29558 * lib/idcache.c: Likewise.
29559 * lib/imaxabs.c: Likewise.
29560 * lib/imaxdiv.c: Likewise.
29561 * lib/inet_pton.c: Likewise.
29562 * lib/inet_pton.h: Likewise.
29563 * lib/intprops.h: Likewise.
29564 * lib/inttostr.c: Likewise.
29565 * lib/inttostr.h: Likewise.
29566 * lib/inttypes.in.h: Likewise.
29567 * lib/isapipe.c: Likewise.
29568 * lib/isdir.c: Likewise.
29569 * lib/isnan.c: Likewise.
29570 * lib/isnan.h: Likewise.
29571 * lib/isnanf.c: Likewise.
29572 * lib/isnanf.h: Likewise.
29573 * lib/isnanl-nolibm.h: Likewise.
29574 * lib/isnanl.c: Likewise.
29575 * lib/isnanl.h: Likewise.
29576 * lib/javacomp.c: Likewise.
29577 * lib/javacomp.h: Likewise.
29578 * lib/javaexec.c: Likewise.
29579 * lib/javaexec.h: Likewise.
29580 * lib/javaversion.c: Likewise.
29581 * lib/javaversion.h: Likewise.
29582 * lib/javaversion.java: Likewise.
29583 * lib/lbrkprop.h: Likewise.
29584 * lib/lchmod.h: Likewise.
29585 * lib/lchown.c: Likewise.
29586 * lib/ldexpl.c: Likewise.
29587 * lib/linebreak.c: Likewise.
29588 * lib/linebreak.h: Likewise.
29589 * lib/linebuffer.c: Likewise.
29590 * lib/linebuffer.h: Likewise.
29591 * lib/locale.in.h: Likewise.
29592 * lib/logl.c: Likewise.
29593 * lib/long-options.c: Likewise.
29594 * lib/long-options.h: Likewise.
29595 * lib/lstat.c: Likewise.
29596 * lib/lstat.h: Likewise.
29597 * lib/math.in.h: Likewise.
29598 * lib/mbchar.c: Likewise.
29599 * lib/mbchar.h: Likewise.
29600 * lib/mbfile.h: Likewise.
29601 * lib/mbiter.h: Likewise.
29602 * lib/mbscasecmp.c: Likewise.
29603 * lib/mbscasestr.c: Likewise.
29604 * lib/mbschr.c: Likewise.
29605 * lib/mbscspn.c: Likewise.
29606 * lib/mbslen.c: Likewise.
29607 * lib/mbsncasecmp.c: Likewise.
29608 * lib/mbsnlen.c: Likewise.
29609 * lib/mbspbrk.c: Likewise.
29610 * lib/mbspcasecmp.c: Likewise.
29611 * lib/mbsrchr.c: Likewise.
29612 * lib/mbssep.c: Likewise.
29613 * lib/mbsspn.c: Likewise.
29614 * lib/mbsstr.c: Likewise.
29615 * lib/mbstok_r.c: Likewise.
29616 * lib/mbswidth.c: Likewise.
29617 * lib/mbswidth.h: Likewise.
29618 * lib/mbuiter.h: Likewise.
29619 * lib/memcasecmp.c: Likewise.
29620 * lib/memcasecmp.h: Likewise.
29621 * lib/memchr.c: Likewise.
29622 * lib/memcmp.c: Likewise.
29623 * lib/memcoll.c: Likewise.
29624 * lib/memcoll.h: Likewise.
29625 * lib/memcpy.c: Likewise.
29626 * lib/memrchr.c: Likewise.
29627 * lib/mkancesdirs.c: Likewise.
29628 * lib/mkdir-p.c: Likewise.
29629 * lib/mkdir-p.h: Likewise.
29630 * lib/mkdir.c: Likewise.
29631 * lib/mkdirat.c: Likewise.
29632 * lib/mkdtemp.c: Likewise.
29633 * lib/mkstemp-safer.c: Likewise.
29634 * lib/mkstemp.c: Likewise.
29635 * lib/modechange.c: Likewise.
29636 * lib/modechange.h: Likewise.
29637 * lib/mountlist.c: Likewise.
29638 * lib/mountlist.h: Likewise.
29639 * lib/mpsort.c: Likewise.
29640 * lib/nanosleep.c: Likewise.
29641 * lib/obstack.c: Likewise.
29642 * lib/obstack.h: Likewise.
29643 * lib/open-safer.c: Likewise.
29644 * lib/open.c: Likewise.
29645 * lib/openat-die.c: Likewise.
29646 * lib/openat-priv.h: Likewise.
29647 * lib/openat-proc.c: Likewise.
29648 * lib/openat.c: Likewise.
29649 * lib/openat.h: Likewise.
29650 * lib/pagealign_alloc.c: Likewise.
29651 * lib/pagealign_alloc.h: Likewise.
29652 * lib/physmem.c: Likewise.
29653 * lib/physmem.h: Likewise.
29654 * lib/pipe-safer.c: Likewise.
29655 * lib/pipe.c: Likewise.
29656 * lib/pipe.h: Likewise.
29657 * lib/posixtm.c: Likewise.
29658 * lib/posixtm.h: Likewise.
29659 * lib/posixver.c: Likewise.
29660 * lib/printf-frexp.c: Likewise.
29661 * lib/printf-frexp.h: Likewise.
29662 * lib/printf-frexpl.c: Likewise.
29663 * lib/printf-frexpl.h: Likewise.
29664 * lib/printf.c: Likewise.
29665 * lib/progname.c: Likewise.
29666 * lib/progname.h: Likewise.
29667 * lib/progreloc.c: Likewise.
29668 * lib/putenv.c: Likewise.
29669 * lib/quote.c: Likewise.
29670 * lib/quote.h: Likewise.
29671 * lib/quotearg.c: Likewise.
29672 * lib/quotearg.h: Likewise.
29673 * lib/raise.c: Likewise.
29674 * lib/readline.c: Likewise.
29675 * lib/readline.h: Likewise.
29676 * lib/readlink.c: Likewise.
29677 * lib/readtokens.c: Likewise.
29678 * lib/readtokens.h: Likewise.
29679 * lib/readtokens0.c: Likewise.
29680 * lib/readtokens0.h: Likewise.
29681 * lib/readutmp.c: Likewise.
29682 * lib/readutmp.h: Likewise.
29683 * lib/realloc.c: Likewise.
29684 * lib/relocwrapper.c: Likewise.
29685 * lib/rename-dest-slash.c: Likewise.
29686 * lib/rename.c: Likewise.
29687 * lib/rmdir.c: Likewise.
29688 * lib/rpmatch.c: Likewise.
29689 * lib/safe-read.c: Likewise.
29690 * lib/safe-read.h: Likewise.
29691 * lib/safe-write.c: Likewise.
29692 * lib/safe-write.h: Likewise.
29693 * lib/same-inode.h: Likewise.
29694 * lib/same.c: Likewise.
29695 * lib/same.h: Likewise.
29696 * lib/save-cwd.c: Likewise.
29697 * lib/save-cwd.h: Likewise.
29698 * lib/savedir.c: Likewise.
29699 * lib/savedir.h: Likewise.
29700 * lib/savewd.c: Likewise.
29701 * lib/savewd.h: Likewise.
29702 * lib/search.in.h: Likewise.
29703 * lib/setenv.c: Likewise.
29704 * lib/setenv.h: Likewise.
29705 * lib/settime.c: Likewise.
29706 * lib/sh-quote.c: Likewise.
29707 * lib/sh-quote.h: Likewise.
29708 * lib/sig2str.c: Likewise.
29709 * lib/sig2str.h: Likewise.
29710 * lib/signal.in.h: Likewise.
29711 * lib/signbitd.c: Likewise.
29712 * lib/signbitf.c: Likewise.
29713 * lib/signbitl.c: Likewise.
29714 * lib/sigprocmask.c: Likewise.
29715 * lib/sincosl.c: Likewise.
29716 * lib/sleep.c: Likewise.
29717 * lib/sprintf.c: Likewise.
29718 * lib/sqrtl.c: Likewise.
29719 * lib/stat-time.h: Likewise.
29720 * lib/stdio--.h: Likewise.
29721 * lib/stdio-safer.h: Likewise.
29722 * lib/stdlib--.h: Likewise.
29723 * lib/stdlib-safer.h: Likewise.
29724 * lib/stdlib.in.h: Likewise.
29725 * lib/stpcpy.c: Likewise.
29726 * lib/stpncpy.c: Likewise.
29727 * lib/strchrnul.c: Likewise.
29728 * lib/strcspn.c: Likewise.
29729 * lib/strerror.c: Likewise.
29730 * lib/strftime.c: Likewise.
29731 * lib/strftime.h: Likewise.
29732 * lib/striconveh.c: Likewise.
29733 * lib/striconveh.h: Likewise.
29734 * lib/striconveha.c: Likewise.
29735 * lib/striconveha.h: Likewise.
29736 * lib/stripslash.c: Likewise.
29737 * lib/strnlen1.c: Likewise.
29738 * lib/strnlen1.h: Likewise.
29739 * lib/strtod.c: Likewise.
29740 * lib/strtoimax.c: Likewise.
29741 * lib/strtok_r.c: Likewise.
29742 * lib/strtol.c: Likewise.
29743 * lib/strtoll.c: Likewise.
29744 * lib/strtoul.c: Likewise.
29745 * lib/strtoull.c: Likewise.
29746 * lib/sysexits.in.h: Likewise.
29747 * lib/tempname.c: Likewise.
29748 * lib/tempname.h: Likewise.
29749 * lib/timespec.h: Likewise.
29750 * lib/tls.c: Likewise.
29751 * lib/tls.h: Likewise.
29752 * lib/tmpdir.c: Likewise.
29753 * lib/tmpdir.h: Likewise.
29754 * lib/tmpfile-safer.c: Likewise.
29755 * lib/tmpfile.c: Likewise.
29756 * lib/trigl.c: Likewise.
29757 * lib/trigl.h: Likewise.
29758 * lib/trim.c: Likewise.
29759 * lib/trim.h: Likewise.
29760 * lib/trunc.c: Likewise.
29761 * lib/truncf.c: Likewise.
29762 * lib/truncl.c: Likewise.
29763 * lib/tsearch.c: Likewise.
29764 * lib/unicodeio.c: Likewise.
29765 * lib/unicodeio.h: Likewise.
29766 * lib/unistd--.h: Likewise.
29767 * lib/unistd-safer.h: Likewise.
29768 * lib/unistdio/ulc-fprintf.c: Likewise.
29769 * lib/unistdio/ulc-vfprintf.c: Likewise.
29770 * lib/unlinkdir.c: Likewise.
29771 * lib/unlinkdir.h: Likewise.
29772 * lib/unlocked-io.h: Likewise.
29773 * lib/unsetenv.c: Likewise.
29774 * lib/userspec.c: Likewise.
29775 * lib/utime.c: Likewise.
29776 * lib/utimecmp.c: Likewise.
29777 * lib/utimecmp.h: Likewise.
29778 * lib/utimens.c: Likewise.
29779 * lib/verify.h: Likewise.
29780 * lib/verror.c: Likewise.
29781 * lib/verror.h: Likewise.
29782 * lib/version-etc-fsf.c: Likewise.
29783 * lib/version-etc.c: Likewise.
29784 * lib/version-etc.h: Likewise.
29785 * lib/vfprintf.c: Likewise.
29786 * lib/vprintf.c: Likewise.
29787 * lib/vsprintf.c: Likewise.
29788 * lib/w32spawn.h: Likewise.
29789 * lib/wait-process.c: Likewise.
29790 * lib/wait-process.h: Likewise.
29791 * lib/wcwidth.c: Likewise.
29792 * lib/write-any-file.c: Likewise.
29793 * lib/xalloc-die.c: Likewise.
29794 * lib/xalloc.h: Likewise.
29795 * lib/xasprintf.c: Likewise.
29796 * lib/xgetcwd.c: Likewise.
29797 * lib/xgetcwd.h: Likewise.
29798 * lib/xgetdomainname.c: Likewise.
29799 * lib/xgetdomainname.h: Likewise.
29800 * lib/xgethostname.c: Likewise.
29801 * lib/xmalloc.c: Likewise.
29802 * lib/xmalloca.c: Likewise.
29803 * lib/xmalloca.h: Likewise.
29804 * lib/xmemcoll.c: Likewise.
29805 * lib/xnanosleep.c: Likewise.
29806 * lib/xreadlink.c: Likewise.
29807 * lib/xreadlink.h: Likewise.
29808 * lib/xsetenv.c: Likewise.
29809 * lib/xsetenv.h: Likewise.
29810 * lib/xstriconv.c: Likewise.
29811 * lib/xstriconv.h: Likewise.
29812 * lib/xstrndup.c: Likewise.
29813 * lib/xstrndup.h: Likewise.
29814 * lib/xstrtod.c: Likewise.
29815 * lib/xstrtod.h: Likewise.
29816 * lib/xstrtol-error.c: Likewise.
29817 * lib/xstrtol.c: Likewise.
29818 * lib/xstrtol.h: Likewise.
29819 * lib/xtime.h: Likewise.
29820 * lib/xvasprintf.c: Likewise.
29821 * lib/xvasprintf.h: Likewise.
29822 * lib/yesno.c: Likewise.
29823 * lib/yesno.h: Likewise.
29824 * posix-modules: Likewise.
29825 * tests/test-alloca-opt.c: Likewise.
29826 * tests/test-arcfour.c: Likewise.
29827 * tests/test-arctwo.c: Likewise.
29828 * tests/test-argmatch.c: Likewise.
29829 * tests/test-argp-2.sh: Likewise.
29830 * tests/test-argp.c: Likewise.
29831 * tests/test-arpa_inet.c: Likewise.
29832 * tests/test-array_list.c: Likewise.
29833 * tests/test-array_oset.c: Likewise.
29834 * tests/test-atexit.c: Likewise.
29835 * tests/test-avltree_list.c: Likewise.
29836 * tests/test-avltree_oset.c: Likewise.
29837 * tests/test-avltreehash_list.c: Likewise.
29838 * tests/test-base64.c: Likewise.
29839 * tests/test-binary-io.c: Likewise.
29840 * tests/test-byteswap.c: Likewise.
29841 * tests/test-c-ctype.c: Likewise.
29842 * tests/test-c-strcasecmp.c: Likewise.
29843 * tests/test-c-strcasestr.c: Likewise.
29844 * tests/test-c-strncasecmp.c: Likewise.
29845 * tests/test-c-strstr.c: Likewise.
29846 * tests/test-canonicalize-lgpl.c: Likewise.
29847 * tests/test-canonicalize.c: Likewise.
29848 * tests/test-carray_list.c: Likewise.
29849 * tests/test-ceilf.c: Likewise.
29850 * tests/test-ceill.c: Likewise.
29851 * tests/test-count-one-bits.c: Likewise.
29852 * tests/test-crc.c: Likewise.
29853 * tests/test-dirname.c: Likewise.
29854 * tests/test-fbufmode.c: Likewise.
29855 * tests/test-fcntl.c: Likewise.
29856 * tests/test-fflush.c: Likewise.
29857 * tests/test-floorf.c: Likewise.
29858 * tests/test-floorl.c: Likewise.
29859 * tests/test-fopen.c: Likewise.
29860 * tests/test-fprintf-posix.c: Likewise.
29861 * tests/test-fprintf-posix.h: Likewise.
29862 * tests/test-fpurge.c: Likewise.
29863 * tests/test-freadable.c: Likewise.
29864 * tests/test-freadahead.c: Likewise.
29865 * tests/test-freading.c: Likewise.
29866 * tests/test-freopen.c: Likewise.
29867 * tests/test-frexp.c: Likewise.
29868 * tests/test-frexpl.c: Likewise.
29869 * tests/test-fseek.c: Likewise.
29870 * tests/test-fseeko.c: Likewise.
29871 * tests/test-fseterr.c: Likewise.
29872 * tests/test-fstrcmp.c: Likewise.
29873 * tests/test-ftell.c: Likewise.
29874 * tests/test-ftello.c: Likewise.
29875 * tests/test-fwritable.c: Likewise.
29876 * tests/test-fwriting.c: Likewise.
29877 * tests/test-getaddrinfo.c: Likewise.
29878 * tests/test-getpass.c: Likewise.
29879 * tests/test-gettimeofday.c: Likewise.
29880 * tests/test-hmac-md5.c: Likewise.
29881 * tests/test-hmac-sha1.c: Likewise.
29882 * tests/test-iconv.c: Likewise.
29883 * tests/test-iconvme.c: Likewise.
29884 * tests/test-inttypes.c: Likewise.
29885 * tests/test-isnan.c: Likewise.
29886 * tests/test-isnanf.c: Likewise.
29887 * tests/test-isnanl-nolibm.c: Likewise.
29888 * tests/test-isnanl.c: Likewise.
29889 * tests/test-isnanl.h: Likewise.
29890 * tests/test-ldexpl.c: Likewise.
29891 * tests/test-linked_list.c: Likewise.
29892 * tests/test-linkedhash_list.c: Likewise.
29893 * tests/test-locale.c: Likewise.
29894 * tests/test-localename.c: Likewise.
29895 * tests/test-lock.c: Likewise.
29896 * tests/test-lseek.c: Likewise.
29897 * tests/test-malloca.c: Likewise.
29898 * tests/test-math.c: Likewise.
29899 * tests/test-mbscasecmp.c: Likewise.
29900 * tests/test-mbscasestr1.c: Likewise.
29901 * tests/test-mbscasestr2.c: Likewise.
29902 * tests/test-mbscasestr3.c: Likewise.
29903 * tests/test-mbscasestr4.c: Likewise.
29904 * tests/test-mbschr.c: Likewise.
29905 * tests/test-mbscspn.c: Likewise.
29906 * tests/test-mbsncasecmp.c: Likewise.
29907 * tests/test-mbspbrk.c: Likewise.
29908 * tests/test-mbspcasecmp.c: Likewise.
29909 * tests/test-mbsrchr.c: Likewise.
29910 * tests/test-mbsspn.c: Likewise.
29911 * tests/test-mbsstr1.c: Likewise.
29912 * tests/test-mbsstr2.c: Likewise.
29913 * tests/test-mbsstr3.c: Likewise.
29914 * tests/test-md5.c: Likewise.
29915 * tests/test-memmem.c: Likewise.
29916 * tests/test-netinet_in.c: Likewise.
29917 * tests/test-open.c: Likewise.
29918 * tests/test-printf-frexp.c: Likewise.
29919 * tests/test-printf-frexpl.c: Likewise.
29920 * tests/test-printf-posix.c: Likewise.
29921 * tests/test-printf-posix.h: Likewise.
29922 * tests/test-rbtree_list.c: Likewise.
29923 * tests/test-rbtree_oset.c: Likewise.
29924 * tests/test-rbtreehash_list.c: Likewise.
29925 * tests/test-read-file.c: Likewise.
29926 * tests/test-rijndael.c: Likewise.
29927 * tests/test-search.c: Likewise.
29928 * tests/test-signbit.c: Likewise.
29929 * tests/test-sleep.c: Likewise.
29930 * tests/test-snprintf-posix.c: Likewise.
29931 * tests/test-snprintf-posix.h: Likewise.
29932 * tests/test-snprintf.c: Likewise.
29933 * tests/test-sprintf-posix.c: Likewise.
29934 * tests/test-sprintf-posix.h: Likewise.
29935 * tests/test-stat-time.c: Likewise.
29936 * tests/test-stdbool.c: Likewise.
29937 * tests/test-stdint.c: Likewise.
29938 * tests/test-stdio.c: Likewise.
29939 * tests/test-stdlib.c: Likewise.
29940 * tests/test-stpncpy.c: Likewise.
29941 * tests/test-strcasestr.c: Likewise.
29942 * tests/test-striconv.c: Likewise.
29943 * tests/test-striconveh.c: Likewise.
29944 * tests/test-striconveha.c: Likewise.
29945 * tests/test-string.c: Likewise.
29946 * tests/test-sys_select.c: Likewise.
29947 * tests/test-sys_socket.c: Likewise.
29948 * tests/test-sys_stat.c: Likewise.
29949 * tests/test-sys_time.c: Likewise.
29950 * tests/test-sysexits.c: Likewise.
29951 * tests/test-time.c: Likewise.
29952 * tests/test-tls.c: Likewise.
29953 * tests/test-trunc.c: Likewise.
29954 * tests/test-truncf.c: Likewise.
29955 * tests/test-truncl.c: Likewise.
29956 * tests/test-unistd.c: Likewise.
29957 * tests/test-vasnprintf-posix.c: Likewise.
29958 * tests/test-vasnprintf-posix2.c: Likewise.
29959 * tests/test-vasnprintf.c: Likewise.
29960 * tests/test-vasprintf-posix.c: Likewise.
29961 * tests/test-vasprintf.c: Likewise.
29962 * tests/test-verify.c: Likewise.
29963 * tests/test-vfprintf-posix.c: Likewise.
29964 * tests/test-vprintf-posix.c: Likewise.
29965 * tests/test-vsnprintf-posix.c: Likewise.
29966 * tests/test-vsnprintf.c: Likewise.
29967 * tests/test-vsprintf-posix.c: Likewise.
29968 * tests/test-wchar.c: Likewise.
29969 * tests/test-wctype.c: Likewise.
29970 * tests/test-wcwidth.c: Likewise.
29971 * tests/test-xstrtol.c: Likewise.
29972 * tests/test-xvasprintf.c: Likewise.
29973 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
29974 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
29975 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
29976 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
29977 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
29978 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
29979 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
29980 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
29981 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
29982 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
29983 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
29984 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
29985 * tests/uniname/test-uninames.c: Likewise.
29986 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
29987 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
29988 * tests/unistdio/test-u16-printf1.h: Likewise.
29989 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
29990 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
29991 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
29992 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
29993 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
29994 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
29995 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
29996 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
29997 * tests/unistdio/test-u32-printf1.h: Likewise.
29998 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
29999 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30000 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30001 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30002 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30003 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30004 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30005 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
30006 * tests/unistdio/test-u8-printf1.h: Likewise.
30007 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30008 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30009 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30010 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30011 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30012 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30013 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30014 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
30015 * tests/unistdio/test-ulc-printf1.h: Likewise.
30016 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30017 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30018 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30019 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30020 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30021 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30022 * tests/uniwidth/test-u16-strwidth.c: Likewise.
30023 * tests/uniwidth/test-u16-width.c: Likewise.
30024 * tests/uniwidth/test-u32-strwidth.c: Likewise.
30025 * tests/uniwidth/test-u32-width.c: Likewise.
30026 * tests/uniwidth/test-u8-strwidth.c: Likewise.
30027 * tests/uniwidth/test-u8-width.c: Likewise.
30028 * tests/uniwidth/test-uc_width.c: Likewise.
30029 * config/srclist-update: Likewise.
30030 (fixlicense): Update to GPLv3+.
30032 Change copyright notice from LGPLv2.1+ to LGPLv3+.
30033 * tests/test-tsearch.c: Change copyright notice.
30035 Change copyright notice from LGPLv2.0+ to LGPLv3+.
30036 * lib/c-strcaseeq.h: Change copyright notice.
30037 * lib/streq.h: Likewise.
30038 * lib/uniconv.h: Likewise.
30039 * lib/uniconv/u-conv-from-enc.h: Likewise.
30040 * lib/uniconv/u-conv-to-enc.h: Likewise.
30041 * lib/uniconv/u-strconv-from-enc.h: Likewise.
30042 * lib/uniconv/u-strconv-to-enc.h: Likewise.
30043 * lib/uniconv/u16-conv-from-enc.c: Likewise.
30044 * lib/uniconv/u16-conv-to-enc.c: Likewise.
30045 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
30046 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
30047 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
30048 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
30049 * lib/uniconv/u32-conv-from-enc.c: Likewise.
30050 * lib/uniconv/u32-conv-to-enc.c: Likewise.
30051 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
30052 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
30053 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
30054 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
30055 * lib/uniconv/u8-conv-from-enc.c: Likewise.
30056 * lib/uniconv/u8-conv-to-enc.c: Likewise.
30057 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
30058 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
30059 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
30060 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
30061 * lib/uniname.h: Likewise.
30062 * lib/uniname/uniname.c: Likewise.
30063 * lib/unistdio.h: Likewise.
30064 * lib/unistdio/u-asnprintf.h: Likewise.
30065 * lib/unistdio/u-asprintf.h: Likewise.
30066 * lib/unistdio/u-printf-args.c: Likewise.
30067 * lib/unistdio/u-printf-args.h: Likewise.
30068 * lib/unistdio/u-printf-parse.h: Likewise.
30069 * lib/unistdio/u-snprintf.h: Likewise.
30070 * lib/unistdio/u-sprintf.h: Likewise.
30071 * lib/unistdio/u-vasprintf.h: Likewise.
30072 * lib/unistdio/u-vsnprintf.h: Likewise.
30073 * lib/unistdio/u-vsprintf.h: Likewise.
30074 * lib/unistdio/u16-asnprintf.c: Likewise.
30075 * lib/unistdio/u16-asprintf.c: Likewise.
30076 * lib/unistdio/u16-printf-parse.c: Likewise.
30077 * lib/unistdio/u16-snprintf.c: Likewise.
30078 * lib/unistdio/u16-sprintf.c: Likewise.
30079 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
30080 * lib/unistdio/u16-u16-asprintf.c: Likewise.
30081 * lib/unistdio/u16-u16-snprintf.c: Likewise.
30082 * lib/unistdio/u16-u16-sprintf.c: Likewise.
30083 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
30084 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
30085 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
30086 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
30087 * lib/unistdio/u16-vasnprintf.c: Likewise.
30088 * lib/unistdio/u16-vasprintf.c: Likewise.
30089 * lib/unistdio/u16-vsnprintf.c: Likewise.
30090 * lib/unistdio/u16-vsprintf.c: Likewise.
30091 * lib/unistdio/u32-asnprintf.c: Likewise.
30092 * lib/unistdio/u32-asprintf.c: Likewise.
30093 * lib/unistdio/u32-printf-parse.c: Likewise.
30094 * lib/unistdio/u32-snprintf.c: Likewise.
30095 * lib/unistdio/u32-sprintf.c: Likewise.
30096 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
30097 * lib/unistdio/u32-u32-asprintf.c: Likewise.
30098 * lib/unistdio/u32-u32-snprintf.c: Likewise.
30099 * lib/unistdio/u32-u32-sprintf.c: Likewise.
30100 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
30101 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
30102 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
30103 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
30104 * lib/unistdio/u32-vasnprintf.c: Likewise.
30105 * lib/unistdio/u32-vasprintf.c: Likewise.
30106 * lib/unistdio/u32-vsnprintf.c: Likewise.
30107 * lib/unistdio/u32-vsprintf.c: Likewise.
30108 * lib/unistdio/u8-asnprintf.c: Likewise.
30109 * lib/unistdio/u8-asprintf.c: Likewise.
30110 * lib/unistdio/u8-printf-parse.c: Likewise.
30111 * lib/unistdio/u8-snprintf.c: Likewise.
30112 * lib/unistdio/u8-sprintf.c: Likewise.
30113 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
30114 * lib/unistdio/u8-u8-asprintf.c: Likewise.
30115 * lib/unistdio/u8-u8-snprintf.c: Likewise.
30116 * lib/unistdio/u8-u8-sprintf.c: Likewise.
30117 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
30118 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
30119 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
30120 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
30121 * lib/unistdio/u8-vasnprintf.c: Likewise.
30122 * lib/unistdio/u8-vasprintf.c: Likewise.
30123 * lib/unistdio/u8-vsnprintf.c: Likewise.
30124 * lib/unistdio/u8-vsprintf.c: Likewise.
30125 * lib/unistdio/ulc-asnprintf.c: Likewise.
30126 * lib/unistdio/ulc-asprintf.c: Likewise.
30127 * lib/unistdio/ulc-printf-parse.c: Likewise.
30128 * lib/unistdio/ulc-snprintf.c: Likewise.
30129 * lib/unistdio/ulc-sprintf.c: Likewise.
30130 * lib/unistdio/ulc-vasnprintf.c: Likewise.
30131 * lib/unistdio/ulc-vasprintf.c: Likewise.
30132 * lib/unistdio/ulc-vsnprintf.c: Likewise.
30133 * lib/unistdio/ulc-vsprintf.c: Likewise.
30134 * lib/unistr.h: Likewise.
30135 * lib/unistr/u-cpy-alloc.h: Likewise.
30136 * lib/unistr/u-cpy.h: Likewise.
30137 * lib/unistr/u-endswith.h: Likewise.
30138 * lib/unistr/u-move.h: Likewise.
30139 * lib/unistr/u-set.h: Likewise.
30140 * lib/unistr/u-startswith.h: Likewise.
30141 * lib/unistr/u-stpcpy.h: Likewise.
30142 * lib/unistr/u-stpncpy.h: Likewise.
30143 * lib/unistr/u-strcat.h: Likewise.
30144 * lib/unistr/u-strcpy.h: Likewise.
30145 * lib/unistr/u-strcspn.h: Likewise.
30146 * lib/unistr/u-strdup.h: Likewise.
30147 * lib/unistr/u-strlen.h: Likewise.
30148 * lib/unistr/u-strncat.h: Likewise.
30149 * lib/unistr/u-strncpy.h: Likewise.
30150 * lib/unistr/u-strnlen.h: Likewise.
30151 * lib/unistr/u-strpbrk.h: Likewise.
30152 * lib/unistr/u-strspn.h: Likewise.
30153 * lib/unistr/u-strstr.h: Likewise.
30154 * lib/unistr/u-strtok.h: Likewise.
30155 * lib/unistr/u16-check.c: Likewise.
30156 * lib/unistr/u16-chr.c: Likewise.
30157 * lib/unistr/u16-cmp.c: Likewise.
30158 * lib/unistr/u16-cpy-alloc.c: Likewise.
30159 * lib/unistr/u16-cpy.c: Likewise.
30160 * lib/unistr/u16-endswith.c: Likewise.
30161 * lib/unistr/u16-mblen.c: Likewise.
30162 * lib/unistr/u16-mbsnlen.c: Likewise.
30163 * lib/unistr/u16-mbtouc-aux.c: Likewise.
30164 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
30165 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
30166 * lib/unistr/u16-mbtouc.c: Likewise.
30167 * lib/unistr/u16-mbtoucr.c: Likewise.
30168 * lib/unistr/u16-move.c: Likewise.
30169 * lib/unistr/u16-next.c: Likewise.
30170 * lib/unistr/u16-prev.c: Likewise.
30171 * lib/unistr/u16-set.c: Likewise.
30172 * lib/unistr/u16-startswith.c: Likewise.
30173 * lib/unistr/u16-stpcpy.c: Likewise.
30174 * lib/unistr/u16-stpncpy.c: Likewise.
30175 * lib/unistr/u16-strcat.c: Likewise.
30176 * lib/unistr/u16-strchr.c: Likewise.
30177 * lib/unistr/u16-strcmp.c: Likewise.
30178 * lib/unistr/u16-strcpy.c: Likewise.
30179 * lib/unistr/u16-strcspn.c: Likewise.
30180 * lib/unistr/u16-strdup.c: Likewise.
30181 * lib/unistr/u16-strlen.c: Likewise.
30182 * lib/unistr/u16-strmblen.c: Likewise.
30183 * lib/unistr/u16-strmbtouc.c: Likewise.
30184 * lib/unistr/u16-strncat.c: Likewise.
30185 * lib/unistr/u16-strncmp.c: Likewise.
30186 * lib/unistr/u16-strncpy.c: Likewise.
30187 * lib/unistr/u16-strnlen.c: Likewise.
30188 * lib/unistr/u16-strpbrk.c: Likewise.
30189 * lib/unistr/u16-strrchr.c: Likewise.
30190 * lib/unistr/u16-strspn.c: Likewise.
30191 * lib/unistr/u16-strstr.c: Likewise.
30192 * lib/unistr/u16-strtok.c: Likewise.
30193 * lib/unistr/u16-to-u32.c: Likewise.
30194 * lib/unistr/u16-to-u8.c: Likewise.
30195 * lib/unistr/u16-uctomb-aux.c: Likewise.
30196 * lib/unistr/u16-uctomb.c: Likewise.
30197 * lib/unistr/u32-check.c: Likewise.
30198 * lib/unistr/u32-chr.c: Likewise.
30199 * lib/unistr/u32-cmp.c: Likewise.
30200 * lib/unistr/u32-cpy-alloc.c: Likewise.
30201 * lib/unistr/u32-cpy.c: Likewise.
30202 * lib/unistr/u32-endswith.c: Likewise.
30203 * lib/unistr/u32-mblen.c: Likewise.
30204 * lib/unistr/u32-mbsnlen.c: Likewise.
30205 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
30206 * lib/unistr/u32-mbtouc.c: Likewise.
30207 * lib/unistr/u32-mbtoucr.c: Likewise.
30208 * lib/unistr/u32-move.c: Likewise.
30209 * lib/unistr/u32-next.c: Likewise.
30210 * lib/unistr/u32-prev.c: Likewise.
30211 * lib/unistr/u32-set.c: Likewise.
30212 * lib/unistr/u32-startswith.c: Likewise.
30213 * lib/unistr/u32-stpcpy.c: Likewise.
30214 * lib/unistr/u32-stpncpy.c: Likewise.
30215 * lib/unistr/u32-strcat.c: Likewise.
30216 * lib/unistr/u32-strchr.c: Likewise.
30217 * lib/unistr/u32-strcmp.c: Likewise.
30218 * lib/unistr/u32-strcpy.c: Likewise.
30219 * lib/unistr/u32-strcspn.c: Likewise.
30220 * lib/unistr/u32-strdup.c: Likewise.
30221 * lib/unistr/u32-strlen.c: Likewise.
30222 * lib/unistr/u32-strmblen.c: Likewise.
30223 * lib/unistr/u32-strmbtouc.c: Likewise.
30224 * lib/unistr/u32-strncat.c: Likewise.
30225 * lib/unistr/u32-strncmp.c: Likewise.
30226 * lib/unistr/u32-strncpy.c: Likewise.
30227 * lib/unistr/u32-strnlen.c: Likewise.
30228 * lib/unistr/u32-strpbrk.c: Likewise.
30229 * lib/unistr/u32-strrchr.c: Likewise.
30230 * lib/unistr/u32-strspn.c: Likewise.
30231 * lib/unistr/u32-strstr.c: Likewise.
30232 * lib/unistr/u32-strtok.c: Likewise.
30233 * lib/unistr/u32-to-u16.c: Likewise.
30234 * lib/unistr/u32-to-u8.c: Likewise.
30235 * lib/unistr/u32-uctomb.c: Likewise.
30236 * lib/unistr/u8-check.c: Likewise.
30237 * lib/unistr/u8-chr.c: Likewise.
30238 * lib/unistr/u8-cmp.c: Likewise.
30239 * lib/unistr/u8-cpy-alloc.c: Likewise.
30240 * lib/unistr/u8-cpy.c: Likewise.
30241 * lib/unistr/u8-endswith.c: Likewise.
30242 * lib/unistr/u8-mblen.c: Likewise.
30243 * lib/unistr/u8-mbsnlen.c: Likewise.
30244 * lib/unistr/u8-mbtouc-aux.c: Likewise.
30245 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
30246 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
30247 * lib/unistr/u8-mbtouc.c: Likewise.
30248 * lib/unistr/u8-mbtoucr.c: Likewise.
30249 * lib/unistr/u8-move.c: Likewise.
30250 * lib/unistr/u8-next.c: Likewise.
30251 * lib/unistr/u8-prev.c: Likewise.
30252 * lib/unistr/u8-set.c: Likewise.
30253 * lib/unistr/u8-startswith.c: Likewise.
30254 * lib/unistr/u8-stpcpy.c: Likewise.
30255 * lib/unistr/u8-stpncpy.c: Likewise.
30256 * lib/unistr/u8-strcat.c: Likewise.
30257 * lib/unistr/u8-strchr.c: Likewise.
30258 * lib/unistr/u8-strcmp.c: Likewise.
30259 * lib/unistr/u8-strcpy.c: Likewise.
30260 * lib/unistr/u8-strcspn.c: Likewise.
30261 * lib/unistr/u8-strdup.c: Likewise.
30262 * lib/unistr/u8-strlen.c: Likewise.
30263 * lib/unistr/u8-strmblen.c: Likewise.
30264 * lib/unistr/u8-strmbtouc.c: Likewise.
30265 * lib/unistr/u8-strncat.c: Likewise.
30266 * lib/unistr/u8-strncmp.c: Likewise.
30267 * lib/unistr/u8-strncpy.c: Likewise.
30268 * lib/unistr/u8-strnlen.c: Likewise.
30269 * lib/unistr/u8-strpbrk.c: Likewise.
30270 * lib/unistr/u8-strrchr.c: Likewise.
30271 * lib/unistr/u8-strspn.c: Likewise.
30272 * lib/unistr/u8-strstr.c: Likewise.
30273 * lib/unistr/u8-strtok.c: Likewise.
30274 * lib/unistr/u8-to-u16.c: Likewise.
30275 * lib/unistr/u8-to-u32.c: Likewise.
30276 * lib/unistr/u8-uctomb-aux.c: Likewise.
30277 * lib/unistr/u8-uctomb.c: Likewise.
30278 * lib/unitypes.h: Likewise.
30279 * lib/uniwidth.h: Likewise.
30280 * lib/uniwidth/cjk.h: Likewise.
30281 * lib/uniwidth/u16-strwidth.c: Likewise.
30282 * lib/uniwidth/u16-width.c: Likewise.
30283 * lib/uniwidth/u32-strwidth.c: Likewise.
30284 * lib/uniwidth/u32-width.c: Likewise.
30285 * lib/uniwidth/u8-strwidth.c: Likewise.
30286 * lib/uniwidth/u8-width.c: Likewise.
30287 * lib/uniwidth/width.c: Likewise.
30289 2007-10-07 Bruno Haible <bruno@clisp.org>
30291 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
30292 The file is still under LGPL (see modules/inttypes).
30294 2007-10-06 Bruno Haible <bruno@clisp.org>
30296 * modules/trunc (Dependencies): Add 'extensions'.
30297 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
30298 Reported by Ben Pfaff <blp@gnu.org>.
30300 2007-10-06 Bruno Haible <bruno@clisp.org>
30302 * modules/freopen-tests: New file.
30303 * tests/test-freopen.c: New file.
30305 * modules/fopen-tests: New file.
30306 * tests/test-fopen.c: New file.
30308 * modules/fopen: New file.
30309 * lib/fopen.c: New file.
30310 * m4/fopen.m4: New file.
30311 * modules/freopen: New file.
30312 * lib/freopen.c: New file.
30313 * m4/freopen.m4: New file.
30314 * lib/stdio.in.h (fopen, freopen): New declarations.
30315 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
30316 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
30317 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
30318 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
30319 * doc/functions/fopen.texi: Mention the 'fopen' module.
30320 * doc/functions/freopen.texi: Mention the 'freopen' module.
30322 2007-10-06 Bruno Haible <bruno@clisp.org>
30324 * modules/open-tests: New file.
30325 * tests/test-open.c: New file.
30327 * modules/open: New file.
30328 * lib/open.c: New file.
30329 * m4/open.m4: New file.
30330 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
30332 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
30333 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
30335 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
30336 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
30338 * doc/functions/open.texi: Mention the 'open' module.
30340 2007-10-04 Bruno Haible <bruno@clisp.org>
30342 * modules/ceill-tests: New file.
30343 * tests/test-ceill.c: New file.
30345 * modules/ceill: New file.
30346 * lib/ceill.c: Replace entire file.
30347 * m4/ceill.m4: New file.
30348 * lib/math.in.h (ceill): Replace declaration.
30349 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
30350 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
30351 * doc/functions/ceill.texi: Mention the 'ceill' module.
30352 * modules/mathl (Files): Remove lib/ceill.c.
30353 (Depends-on): Add ceill.
30355 2007-10-04 Bruno Haible <bruno@clisp.org>
30357 * modules/ceilf-tests: New file.
30358 * tests/test-ceilf.c: New file.
30360 * modules/ceilf: New file.
30361 * lib/ceil.c: New file.
30362 * lib/ceilf.c: New file.
30363 * m4/ceilf.m4: New file.
30364 * lib/math.in.h (ceilf): New declaration.
30365 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
30367 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
30369 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
30371 2007-10-04 Bruno Haible <bruno@clisp.org>
30373 * modules/floorl-tests: New file.
30374 * tests/test-floorl.c: New file.
30376 * modules/floorl: New file.
30377 * lib/floorl.c: Replace entire file.
30378 * m4/floorl.m4: New file.
30379 * lib/math.in.h (floorl): Replace declaration.
30380 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
30381 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
30382 * doc/functions/floorl.texi: Mention the 'floorl' module.
30383 * modules/mathl (Files): Remove lib/floorl.c.
30384 (Depends-on): Add floorl.
30386 2007-10-04 Bruno Haible <bruno@clisp.org>
30388 * modules/floorf-tests: New file.
30389 * tests/test-floorf.c: New file.
30391 * modules/floorf: New file.
30392 * lib/floor.c: New file.
30393 * lib/floorf.c: New file.
30394 * m4/floorf.m4: New file.
30395 * lib/math.in.h (floorf): New declaration.
30396 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
30398 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
30400 * doc/functions/floorf.texi: Mention the 'floorf' module.
30402 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
30403 Bruno Haible <bruno@clisp.org>
30405 Advertise for the Git server instead of the CVS server.
30406 * doc/gnulib-intro.texi (Steady Development): Mention the Git
30407 repository instead of the CVS one.
30408 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
30409 about all VCS systems generically.
30410 * doc/gnulib.texi (Introduction): Capitalize `Git'.
30412 2007-10-04 Bruno Haible <bruno@clisp.org>
30414 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
30416 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
30418 2007-10-04 Bruno Haible <bruno@clisp.org>
30420 * modules/truncl-tests: New file.
30421 * tests/test-truncl.c: New file.
30423 * modules/truncl: New file.
30424 * lib/truncl.c: New file.
30425 * m4/truncl.m4: New file.
30426 * lib/math.in.h (truncl): New declaration.
30427 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
30429 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
30431 * doc/functions/truncl.texi: Mention the 'truncl' module.
30433 2007-10-04 Bruno Haible <bruno@clisp.org>
30435 * modules/truncf-tests: New file.
30436 * tests/test-truncf.c: New file.
30438 * modules/truncf: New file.
30439 * lib/trunc.c: Make paramerizable through USE_* macros.
30440 * lib/truncf.c: New file.
30441 * m4/truncf.m4: New file.
30442 * lib/math.in.h (truncf): New declaration.
30443 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
30445 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
30447 * doc/functions/truncf.texi: Mention the 'truncf' module.
30449 2007-10-03 Bruno Haible <bruno@clisp.org>
30451 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
30452 augmentation also for tests modules.
30453 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
30454 * modules/atexit-tests (Makefile.am): Likewise.
30455 * modules/binary-io-tests (Makefile.am): Likewise.
30456 * modules/c-strcase-tests (Makefile.am): Likewise.
30457 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
30458 * modules/canonicalize-tests (Makefile.am): Likewise.
30459 * modules/closein-tests (Makefile.am): Likewise.
30460 * modules/fprintf-posix-tests (Makefile.am): Likewise.
30461 * modules/freadahead-tests (Makefile.am): Likewise.
30462 * modules/fseek-tests (Makefile.am): Likewise.
30463 * modules/fseeko-tests (Makefile.am): Likewise.
30464 * modules/ftell-tests (Makefile.am): Likewise.
30465 * modules/ftello-tests (Makefile.am): Likewise.
30466 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
30467 * modules/isnanl-tests (Makefile.am): Likewise.
30468 * modules/lseek-tests (Makefile.am): Likewise.
30469 * modules/mbscasecmp-tests (Makefile.am): Likewise.
30470 * modules/mbscasestr-tests (Makefile.am): Likewise.
30471 * modules/mbschr-tests (Makefile.am): Likewise.
30472 * modules/mbscspn-tests (Makefile.am): Likewise.
30473 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
30474 * modules/mbspbrk-tests (Makefile.am): Likewise.
30475 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
30476 * modules/mbsrchr-tests (Makefile.am): Likewise.
30477 * modules/mbsspn-tests (Makefile.am): Likewise.
30478 * modules/mbsstr-tests (Makefile.am): Likewise.
30479 * modules/printf-posix-tests (Makefile.am): Likewise.
30480 * modules/snprintf-posix-tests (Makefile.am): Likewise.
30481 * modules/sprintf-posix-tests (Makefile.am): Likewise.
30482 * modules/tsearch-tests (Makefile.am): Likewise.
30483 * modules/uniname/uniname-tests (Makefile.am): Likewise.
30484 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
30485 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
30486 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
30487 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
30488 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
30489 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
30490 * modules/vprintf-posix-tests (Makefile.am): Likewise.
30491 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
30492 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
30493 * modules/xstrtoimax-tests (Makefile.am): Likewise.
30494 * modules/xstrtol-tests (Makefile.am): Likewise.
30495 * modules/xstrtoumax-tests (Makefile.am): Likewise.
30496 * modules/yesno-tests (Makefile.am): Likewise.
30498 2007-10-03 Bruno Haible <bruno@clisp.org>
30500 * modules/trunc-tests: New file.
30501 * tests/test-trunc.c: New file.
30503 * modules/trunc: New file.
30504 * lib/trunc.c: New file.
30505 * m4/trunc.m4: New file.
30506 * lib/math.in.h (trunc): New declaration.
30507 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
30509 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
30511 * doc/functions/trunc.texi: Mention the 'trunc' module.
30513 2007-10-03 Bruno Haible <bruno@clisp.org>
30515 * tests/test-fpending.c: New file, mostly copied
30516 from coreutils/lib/t-fpending.c.
30517 * modules/fpending-tests: New file.
30519 2007-10-03 Bruno Haible <bruno@clisp.org>
30521 Port the stdio extensions to QNX (untested).
30522 * lib/fseterr.c (fseterr): Add support for QNX.
30523 * lib/fbufmode.c (fbufmode): Likewise.
30524 * lib/freadable.c (freadable): Likewise.
30525 * lib/fwritable.c (fwritable): Likewise.
30526 * lib/freading.c (freading): Likewise.
30527 * lib/fwriting.c (fwriting): Likewise.
30528 * lib/freadahead.c (freadahed): Likewise.
30529 * lib/fpurge.c (fpurge): Likewise.
30530 * lib/fseeko.c (rpl_fseeko): Likewise.
30532 2007-10-03 Bruno Haible <bruno@clisp.org>
30533 Jim Meyering <jim@meyering.net>
30534 Eric Blake <ebb9@byu.net>
30536 * doc/relocatable.texi: Use @command instead of @program.
30538 2007-10-02 Jim Meyering <jim@meyering.net>
30540 Perform one more "_.h" -> ".in.h" substitution.
30541 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
30542 instead of unistd_.h here, too.
30544 2007-10-01 Bruno Haible <bruno@clisp.org>
30546 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
30547 Needed for the alloca-opt module.
30549 2007-09-30 Bruno Haible <bruno@clisp.org>
30551 * lib/alloca.in.h: Renamed from lib/alloca_.h.
30552 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
30554 * lib/argz.in.h: Renamed from lib/argz_.h.
30555 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
30556 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
30557 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
30559 * lib/dirent.in.h: Renamed from lib/dirent_.h.
30560 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
30562 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
30563 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
30565 * lib/float.in.h: Renamed from lib/float_.h.
30566 * modules/float (Files, Makefile.am): Use float.in.h instead of
30568 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
30569 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
30571 * lib/getopt.in.h: Renamed from lib/getopt_.h.
30572 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
30574 * lib/glob.in.h: Renamed from lib/glob_.h.
30575 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
30576 * lib/iconv.in.h: Renamed from lib/iconv_.h.
30577 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
30579 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
30580 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
30582 * lib/locale.in.h: Renamed from lib/locale_.h.
30583 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
30585 * lib/math.in.h: Renamed from lib/math_.h.
30586 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
30587 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
30588 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
30589 of netinet_in_.h. Add dependency.
30590 * lib/poll.in.h: Renamed from lib/poll_.h.
30591 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
30592 * lib/search.in.h: Renamed from lib/search_.h.
30593 * modules/search (Files, Makefile.am): Use search.in.h instead of
30595 * lib/signal.in.h: Renamed from lib/signal_.h.
30596 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
30598 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
30599 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
30601 * lib/stdint.in.h: Renamed from lib/stdint_.h.
30602 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
30604 * lib/stdio.in.h: Renamed from lib/stdio_.h.
30605 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
30607 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
30608 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
30610 * lib/string.in.h: Renamed from lib/string_.h.
30611 * modules/string (Files, Makefile.am): Use string.in.h instead of
30613 * doc/gnulib-tool.texi (Initial import): Update.
30614 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
30615 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
30616 of sys_select_.h. Add dependency.
30617 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
30618 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
30620 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
30621 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
30623 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
30624 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
30626 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
30627 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
30629 * lib/time.in.h: Renamed from lib/time_.h.
30630 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
30631 * lib/unistd.in.h: Renamed from lib/unistd_.h.
30632 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
30634 * lib/wchar.in.h: Renamed from lib/wchar_.h.
30635 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
30637 * lib/wctype.in.h: Renamed from lib/wctype_.h.
30638 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
30640 * build-aux/bootstrap (slurp): Update.
30641 * lib/.cppi-disable: Update.
30643 2007-09-30 Bruno Haible <bruno@clisp.org>
30645 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
30648 2007-09-30 Bruno Haible <bruno@clisp.org>
30650 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
30652 2007-09-29 Bruno Haible <bruno@clisp.org>
30654 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
30656 2007-09-29 Bruno Haible <bruno@clisp.org>
30658 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
30659 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
30660 * build-aux/install-reloc: Compile also areadlink.c.
30661 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
30663 2007-09-29 Bruno Haible <bruno@clisp.org>
30665 * gnulib-tool (func_emit_initmacro_done): Indentation.
30667 2007-09-29 Bruno Haible <bruno@clisp.org>
30669 * README: Add CVS checkout update instructions.
30670 Info from Bob Proulx <bob@proulx.com>.
30672 2007-09-28 Eric Blake <ebb9@byu.net>
30674 Provide move-if-change.
30675 * build-aux/move-if-change: New file, based on best practice
30676 rather than any canonical upstream location.
30678 2007-09-28 Jim Meyering <jim@meyering.net>
30680 Fix canonicalize loop-detection corner case.
30681 Do not attempt to stat the symlink values stored via seen_triple.
30682 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
30683 on linux-2.6.18, (but not 2.6.22).
30684 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
30685 triple_compare. The former compares dev,ino,filename, while the latter
30686 would actually stat dirname(filename) when dev and ino were equal.
30687 * lib/hash-triple.c: Install <string.h>.
30689 (triple_compare_ino_str): New function.
30690 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
30692 2007-09-28 Eric Blake <ebb9@byu.net>
30694 Enforce that AC_REPLACE_FUNCS files exist.
30695 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
30696 override check for typos.
30698 Fix test-closein on Solaris 10.
30699 * tests/test-closein.c (main): Don't assume stdin can be inherited
30700 closed on all systems.
30701 * tests/test-closein.sh: Likewise.
30702 Reported by Piotr Tarnowski.
30704 2007-09-28 Jim Meyering <jim@meyering.net>
30706 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
30708 2007-09-27 Jim Meyering <jim@meyering.net>
30710 canonicalize: Avoid a false-positive cycle failure.
30711 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
30712 Sort. Remove cycle-check.
30713 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
30715 (seen_triple): New function.
30716 (canonicalize_filename_mode): Use it instead of cycle-check.
30717 * tests/test-canonicalize.c: Add a test for this bug.
30718 * tests/test-canonicalize.sh: Set up and run the test.
30720 New module, file-set, from coreutils.
30721 * modules/file-set: Define it.
30722 * lib/file-set.c, lib/file-set.h: Implement.
30724 New module, hash-triple, from coreutils.
30725 * modules/hash-triple: Define it.
30726 * lib/hash-triple.c, lib/hash-triple.h: Implement.
30728 2007-09-25 Eric Blake <ebb9@byu.net>
30730 Fix strerror on Interix.
30731 * lib/string_.h (strerror): Declare replacement.
30732 * doc/functions/strerror.texi (strerror): Document the Interix
30734 * modules/string (Makefile.am): Support new hooks.
30735 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
30736 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
30737 gl_FUNC_STRERROR_SEPARATE.
30738 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
30739 * lib/strerror.c (rpl_strerror): Provide replacement.
30740 * modules/strerror (Depends-on): Add string.
30741 (configure.ac): Detect use of module.
30742 * tests/test-strerror.c: New file.
30743 * modules/strerror-tests: New test module.
30744 * modules/argp (Depends-on): Add strerror.
30745 * modules/error (Depends-on): Likewise.
30746 Reported by Martin Koeppe.
30748 2007-09-24 Bruno Haible <bruno@clisp.org>
30750 * README: Update git instructions.
30752 2007-09-24 Eric Blake <ebb9@byu.net>
30754 Revert fpending breakage from 2007-09-08.
30755 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
30758 2007-09-24 Jim Meyering <jim@meyering.net>
30760 filenamecat.c: Add a test.
30761 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
30762 showing how the function works when DIR is the empty string.
30764 2007-09-21 Simon Josefsson <simon@josefsson.org>
30766 * tests/test-canonicalize.sh: Turn on executable bit.
30768 2007-09-19 Eric Blake <ebb9@byu.net>
30770 * README: Update CVS instructions.
30772 2007-09-18 Bruno Haible <bruno@clisp.org>
30774 * modules/areadlink: New file.
30775 * lib/areadlink.h (areadlink): New declaration.
30776 * lib/areadlink.c: New file, based on lib/xreadlink.c.
30778 2007-09-17 Jim Meyering <jim@meyering.net>
30780 * lib/savewd.c (ESTALE) [!defined]: Define.
30781 Reported to be required on Interix by Martin Koeppe.
30783 2007-09-17 Bruno Haible <bruno@clisp.org>
30785 * gnulib-tool (func_version): Use $version.
30787 2007-09-16 Bruno Haible <bruno@clisp.org>
30789 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
30790 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
30791 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
30792 Reported by Greg Schafer <gschafer@zip.com.au>.
30794 2007-09-15 Bruno Haible <bruno@clisp.org>
30796 * gnulib-tool (sed): Try a little harder to make bash understand the
30798 Reported by Bruce Korb <bruce.korb@gmail.com>.
30800 2007-09-13 Eric Blake <ebb9@byu.net>
30802 * ChangeLog: Remove conflict markers.
30804 2007-09-13 Simon Josefsson <simon@josefsson.org>
30806 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
30807 Reported by Bruno Haible <bruno@clisp.org>.
30809 2007-09-12 Bruno Haible <bruno@clisp.org>
30811 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
30812 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
30815 2007-09-12 Eric Blake <ebb9@byu.net>
30817 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
30818 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
30819 Autoconf definition.
30820 * modules/euidaccess (Depends-on): Add extensions, for
30821 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
30822 * modules/fnmatch (Depends-on): Likewise.
30823 * modules/getaddrinfo (Depends-on): Likewise.
30824 * modules/getdelim (Depends-on): Likewise.
30825 * modules/getline (Depends-on): Likewise.
30826 * modules/getsubopt (Depends-on): Likewise.
30827 * modules/gettext (Depends-on): Likewise.
30828 * modules/group-member (Depends-on): Likewise.
30829 * modules/mbchar (Depends-on): Likewise.
30830 * modules/memmem (Depends-on): Likewise.
30831 * modules/mempcpy (Depends-on): Likewise.
30832 * modules/memrchr (Depends-on): Likewise.
30833 * modules/pagealign_alloc (Depends-on): Likewise.
30834 * modules/readutmp (Depends-on): Likewise.
30835 * modules/stpcpy (Depends-on): Likewise.
30836 * modules/stpncpy (Depends-on): Likewise.
30837 * modules/strchrnul (Depends-on): Likewise.
30838 * modules/strndup (Depends-on): Likewise.
30839 * modules/strsep (Depends-on): Likewise.
30840 * modules/strverscmp (Depends-on): Likewise.
30841 * modules/vasprintf (Depends-on): Likewise.
30842 * modules/wcwidth (Depends-on): Likewise.
30843 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
30844 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
30845 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
30846 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
30847 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
30848 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
30849 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
30850 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
30851 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
30852 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
30853 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30854 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
30855 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
30856 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
30857 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
30858 * m4/readutmp.m4 (gl_READUTMP): Likewise.
30859 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30860 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
30861 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
30862 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
30863 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
30864 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
30865 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
30866 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
30867 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
30868 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30869 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
30870 so that lock.m4 can be used in gettext without extensions module.
30872 2007-09-11 Bruno Haible <bruno@clisp.org>
30874 * m4/isc-posix.m4: Remove file.
30875 Suggested by Eric Blake.
30877 2007-09-11 Eric Blake <ebb9@byu.net>
30879 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
30881 2007-09-10 Bruno Haible <bruno@clisp.org>
30883 * posix-modules: Fix typo in error message.
30884 Reported by Matt <mkraai@beckman.com>.
30886 2007-09-09 Bruno Haible <bruno@clisp.org>
30888 * doc/functions/getdelim.texi: Update list of platforms lacking the
30890 * doc/functions/getline.texi: Likewise.
30892 2007-09-09 Jim Meyering <jim@meyering.net>
30894 * lib/hash.c (hash_initialize): Detect calloc failure.
30895 Reported by Bruno Haible.
30897 2007-09-09 Bruno Haible <bruno@clisp.org>
30899 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
30900 malloc or realloc fails.
30902 2007-09-09 Bruno Haible <bruno@clisp.org>
30904 * modules/getcwd (Depends-on): Add malloc-posix.
30905 * modules/glob (Depends-on): Likewise.
30906 * modules/putenv (Depends-on): Likewise.
30907 * modules/strdup (Depends-on): Likewise.
30908 * modules/getdelim (Depends-on): Add realloc-posix.
30909 * modules/read-file (Depends-on): Likewise.
30911 2007-09-09 Bruno Haible <bruno@clisp.org>
30913 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
30914 (gl_FUNC_MALLOC_POSIX): Require it.
30915 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
30916 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
30917 * modules/realloc (Files): Add m4/malloc.m4.
30918 * modules/calloc (Files): Likewise.
30920 2007-09-09 Bruno Haible <bruno@clisp.org>
30922 * modules/malloc-posix: New file.
30923 * modules/malloc (Depends-on): Add malloc-posix.
30924 * lib/malloc.c: Include errno.h.
30925 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
30926 and a POSIX-compatible malloc into a single function. Set ENOMEM
30927 when returning NULL.
30928 * m4/malloc.m4: New file.
30929 * doc/functions/malloc.texi: Mention the malloc-posix module.
30930 * lib/stdlib_.h (malloc): New declaration.
30931 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30932 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
30933 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
30934 and HAVE_MALLOC_POSIX.
30936 2007-09-09 Bruno Haible <bruno@clisp.org>
30938 * modules/realloc-posix: New file.
30939 * modules/realloc (Depends-on): Add realloc-posix.
30940 * lib/realloc.c: Include errno.h.
30941 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
30942 and a POSIX-compatible realloc into a single function. Set ENOMEM
30943 when returning NULL.
30944 * m4/realloc.m4: New file.
30945 * doc/functions/realloc.texi: Mention the realloc-posix module.
30946 * lib/stdlib_.h (realloc): New declaration.
30947 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30948 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
30949 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
30950 and HAVE_REALLOC_POSIX.
30952 2007-09-09 Bruno Haible <bruno@clisp.org>
30954 * modules/calloc-posix: New file.
30955 * modules/calloc (Depends-on): Add calloc-posix.
30956 * lib/calloc.c: Include errno.h.
30957 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
30958 and a POSIX-compatible calloc into a single function. Set ENOMEM
30959 when returning NULL.
30960 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
30961 * doc/functions/calloc.texi: Mention the calloc-posix module.
30962 * lib/stdlib_.h (calloc): New declaration.
30963 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30964 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
30965 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
30966 and HAVE_CALLOC_POSIX.
30968 2007-09-09 Bruno Haible <bruno@clisp.org>
30970 Allow for modules to show an arbitrary notice.
30971 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
30972 * gnulib-tool: New option --extract-notice.
30973 (func_usage): Document it.
30974 (sed_extract_prog): Update.
30975 (func_get_notice): New function.
30976 (func_modules_notice): New function.
30977 (func_import, func_create_testdir): Invoke it.
30978 Suggested by Jim Meyering.
30980 2007-09-09 Bruno Haible <bruno@clisp.org>
30982 * gnulib-tool: New options --verbose, --quiet.
30983 (func_usage): Document them.
30984 (verbose): New variable.
30985 (func_execute_command): New function.
30986 (func_import): Don't show the module list and the file list if
30988 (func_create_testdir): Likewise. Use func_execute_command.
30989 (func_create_megatestdir): Use func_execute_command.
30991 2007-09-08 Bruno Haible <bruno@clisp.org>
30993 * gnulib-tool (func_import): Prefer rsync over wget when available,
30994 for fetching the PO files.
30996 2007-09-08 Bruno Haible <bruno@clisp.org>
30998 * posix-modules: New file. Portions copied from gnulib-tool.
30999 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
31001 2007-09-08 Jim Meyering <jim@meyering.net>
31003 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
31004 * lib/fpending.h: Rename from __fpending.h.
31005 * lib/fpending.c: Rename from __fpending.c.
31006 Include "fpending.h", not "__fpending.h".
31007 * lib/__fpending.h, lib/__fpending.c: Remove files.
31008 * modules/fpending (Files): Reflect new file names.
31009 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
31011 2007-09-08 Bruno Haible <bruno@clisp.org>
31013 * m4/inttypes-h.m4: Remove stub file.
31015 2007-09-07 Simon Josefsson <simon@josefsson.org>
31017 * doc/headers/stdint.texi: Discuss #include_next issue.
31019 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
31021 * build-aux/bootstrap: Remove obsolete comment about wget --help.
31023 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31025 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
31028 2007-09-03 Jim Meyering <jim@meyering.net>
31030 New module: git-version-gen.
31031 * modules/git-version-gen: New file.
31033 Import changes from coreutils for bootstrap script.
31035 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
31037 bootstrap: uses rsync to download the .po files
31038 * build-aux/bootstrap (po_download_command_format): New global.
31039 (download_po_files): Use rsync.
31040 (update_po_files): Don't remove .po files after download,
31041 so future rsync runs can take advantage of the copies.
31043 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
31045 Solve the unnecessary-.po-file-regeneration problem once and for all.
31046 * build-aux/bootstrap (download_po_files): New function, renamed from
31047 get_translations. Now, downloads, but doesn't update LINGUAS.
31048 (update_po_files): New function.
31050 bootstrap: Ignore more.
31051 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
31052 uniwidth to e.g., lib/.gitignore.
31053 (slurp): Handle the sys_stat_.h -> sys mapping, too.
31055 * build-aux/bootstrap: New setting: vc_ignore.
31056 (insert_sorted_if_absent): Create $file if absent.
31057 Adapt to new, possibly empty, list: $vc_ignore.
31059 bootstrap: generate more ignorable names
31060 * build-aux/bootstrap (slurp): When generating ignorable names,
31061 also map .sin to .sed, .gperf to .c, and .y to .c.
31063 2007-09-03 Jim Meyering <jim@meyering.net>
31065 * build-aux/git-version-gen: New file, from coreutils. For details, see
31066 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
31068 2007-09-02 Bruno Haible <bruno@clisp.org>
31070 Fix mis-recognition of 'mcs' on QNX 6.
31071 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
31072 output contains the string "Mono".
31073 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
31074 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
31076 2007-09-01 Bruno Haible <bruno@clisp.org>
31078 Fix collision between uniwidth/* and linebreak modules.
31079 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
31080 u32_width): Remove declarations.
31081 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
31082 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
31083 streq3, streq2, streq1, streq0): Remove functions.
31084 (STREQ): Remove macro.
31085 (is_cjk_encoding): Remove function.
31086 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
31087 (uc_width, u8_width, u16_width, u32_width): Remove functions.
31088 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
31089 * NEWS: Document the change.
31091 2007-09-01 Bruno Haible <bruno@clisp.org>
31093 * lib/streq.h: Add double-inclusion guard.
31095 2007-09-01 Karl Berry <karl@gnu.org>
31097 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
31099 2007-08-28 Jim Meyering <jim@meyering.net>
31101 Rename mreadlink_with_size to areadlink_with_size.
31102 * NEWS: Document the change.
31103 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
31104 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
31105 * lib/mreadlink.h: Rename this to...
31106 * lib/areadlink.h: ...this.
31107 * modules/mreadlink-with-size: Rename this to...
31108 * modules/areadlink-with-size: ...this.
31109 * lib/canonicalize.c: Reflect the renaming.
31110 * modules/canonicalize: Likewise.
31112 2007-08-26 Bruno Haible <bruno@clisp.org>
31114 * gnulib-tool (func_import): When deciding which files to remove,
31115 consider also dangling symbolic links.
31116 Reported by Eric Blake.
31118 2007-08-26 Bruno Haible <bruno@clisp.org>
31120 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
31122 2007-08-23 Simon Josefsson <simon@josefsson.org>
31124 * lib/readline.c: Don't include getline.h, the prototype is now
31127 2007-08-23 Jim Meyering <jim@meyering.net>
31130 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
31131 around the funlockfile call, since funlockfile never sets errno.
31132 Don't set errno upon failed realloc.
31134 2007-08-22 Eric Blake <ebb9@byu.net>
31137 * lib/getdelim.c (getdelim): Revert regression that required *n to
31138 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
31139 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
31140 getdelim, rather than whether implementation is missing.
31141 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
31142 * lib/stdio_.h (getline): Also declare if replacement is
31144 * doc/functions/getdelim.texi: New file.
31145 * doc/functions/getline.texi: Likewise.
31146 * doc/gnulib.texi (Function Substitutes): Add new files.
31147 Reported by Bruno Haible.
31149 2007-08-22 Ludovic Courtès <ludo@gnu.org>
31151 * users.txt: Add Guile.
31153 2007-08-22 Eric Blake <ebb9@byu.net>
31155 * tests/test-getdelim.c (main): Use remove, not unlink.
31156 * tests/test-getline.c (main): Likewise.
31158 Move getline and getdelim into stdio.h, per POSIX 200x.
31159 * modules/getline (Files): Remove getline.h.
31160 (Depends-on): Add stdio.
31161 (configure.ac): Add module indicator.
31162 * modules/getdelim (Files): Remove getdelim.h.
31163 (Depends-on): Add stdio.
31164 (configure.ac): Add module indicator.
31165 * modules/stdio (Makefile.am): Work with new indicators.
31166 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
31167 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
31168 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31169 * lib/getdelim.h: Delete.
31170 * lib/getline.h: Delete.
31171 * lib/stdio_.h (getdelim, getline): Declare.
31172 * modules/getdelim-tests: New module.
31173 * modules/getline-tests: Likewise.
31174 * tests/test-getdelim.c: New file.
31175 * tests/test-getline.c: Likewise.
31176 * NEWS: Document the change.
31177 * lib/getline.c: Update choice of header.
31178 * lib/csharpcomp.c: Likewise.
31179 * lib/getpass.c: Likewise.
31180 * lib/javacomp.c: Likewise.
31181 * lib/javaversion.c: Likewise.
31182 * lib/yesno.c: Likewise.
31183 * lib/getdelim.c: Likewise.
31184 (getdelim): Set errno on failure, and avoid memory leak.
31186 2007-08-19 Bruno Haible <bruno@clisp.org>
31188 * modules/closein (Depends-on): Add freadahead.
31189 * lib/closein.c: Include freadahead.h.
31190 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
31193 2007-08-19 Bruno Haible <bruno@clisp.org>
31195 * modules/freadahead-tests: New file.
31196 * tests/test-freadahead.sh: New file.
31197 * tests/test-freadahead.c: New file.
31199 * modules/freadahead: New file.
31200 * lib/freadahead.h: New file.
31201 * lib/freadahead.c: New file.
31202 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
31203 fbufmode, fpurge, freadable, fwritable.
31205 2007-08-19 Eric Blake <ebb9@byu.net>
31207 Test yesno in combination with closein.
31208 * lib/yesno.c (yesno): Document use of stdin.
31209 * modules/yesno-tests (Files): New module.
31210 * tests/test-yesno.c (main): New file.
31211 * tests/test-yesno.sh: Likewise.
31213 2007-08-19 Bruno Haible <bruno@clisp.org>
31215 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
31216 * lib/fseeko.c (rpl_fseeko): Likewise.
31217 * lib/fseterr.c (fseterr): Likewise.
31219 2007-08-19 Bruno Haible <bruno@clisp.org>
31221 * tests/test-lseek.c (main): Disable a test for BeOS.
31222 * doc/functions/lseek.texi: Document the BeOS bug.
31224 2007-08-19 Bruno Haible <bruno@clisp.org>
31225 Eric Blake <ebb9@byu.net>
31227 * lib/lseek.c: Include <sys/stat.h>.
31228 (rpl_lseek): Add workaround code also for Unix platforms.
31230 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
31231 * doc/functions/lseek.texi: Document BeOS definiency.
31233 2007-08-18 Bruno Haible <bruno@clisp.org>
31235 * modules/fstrcmp-tests: New file.
31236 * tests/test-fstrcmp.c: New file.
31238 2007-08-18 Bruno Haible <bruno@clisp.org>
31240 * modules/fstrcmp: New file, from GNU gettext with modifications.
31241 * lib/fstrcmp.h: New file, from GNU gettext.
31242 * lib/fstrcmp.c: New file, from GNU gettext.
31243 * MODULES.html.sh (String handling): Add fstrcmp.
31245 2007-08-18 Bruno Haible <bruno@clisp.org>
31247 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
31249 (diag, compareseq): Remove const from the ctxt argument.
31250 (USE_HEURISTIC): Undefine at the end.
31252 2007-08-18 Jim Meyering <jim@meyering.net>
31254 New file: lib/idcache.h
31255 * NEWS: Mention the addition.
31256 * modules/idcache (Files): Add lib/idcache.h
31257 * lib/idcache.c: Include "idcache.h".
31258 Don't include <sys/types.h>.
31259 Add a FIXME comment.
31260 Move file-scoped "static" declarations to the top.
31261 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
31263 2007-08-17 Bruno Haible <bruno@clisp.org>
31264 and Paul Eggert <eggert@cs.ucla.edu>
31266 * MODULES.html.sh: Add diffseq.
31267 * modules/diffseq: New file.
31268 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
31269 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
31271 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
31273 Import changes from coreutils for bootstrap script.
31275 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
31277 * build-aux/bootstrap (slurp): Work even in environments where
31278 "ls" defaults to "ls -A". Put in a FIXME, though, since the
31279 current code does not slurp files whose names start with ".", and
31280 this looks like it might be a troublesome area.
31282 2007-07-11 Jim Meyering <jim@meyering.net>
31284 If there's a GPL vN copyright comment, require that N == 3.
31286 2007-07-08 Jim Meyering <jim@meyering.net>
31288 Run the coreutils-specific code only if tests/Makefile.am.in exists.
31289 * build-aux/bootstrap (mam_template): Move definition out of loop.
31291 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
31293 * build-aux/bootstrap (symlink_to_dir): Rename function from
31294 symlink_to_gnulib. Add a directory parameter. Update all
31296 (cp_mark_as_generated): Also check for -- and link to -- files in
31299 2007-07-08 Jim Meyering <jim@meyering.net>
31301 Adapt to deeper hierarchy in gnulib.
31302 * build-aux/bootstrap (symlink_to_dir): If the destination
31303 directory doesn't exist, create it. This is required at least for
31304 "lib/uniwidth/cjk.h".
31306 2007-05-15 Jim Meyering <jim@meyering.net>
31308 * build-aux/bootstrap: Now that generated Makefile.am files
31309 are no longer under version control, they must be created at
31312 2007-08-14 Ben Pfaff <blp@gnu.org>
31314 * lib/count-one-bits.h: Add comments. From Bruno Haible.
31316 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
31318 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
31319 given the changes below.
31320 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
31321 even on hosts that have padding bits beyond the supported 64.
31323 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
31325 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
31326 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
31327 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
31329 (xstrtol_error): Remove.
31330 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
31331 but with a different signature.
31332 (ATTRIBUTE_NORETURN, __attribute__): New macros.
31333 * lib/xstrtol-error.c: Include exitfail.h.
31334 (xstrtol_fatal): New function, with a different signature from the
31335 old xstrtol_error, so that the caller need not worry about passing
31336 in an exit status, or about storage management of the option argument.
31337 (xstrtol_error): Now a static function. Redo signature to
31338 implement xstrtol_fatal. Output the correct number of hyphens in
31339 front of the option so that the caller need not worry about
31340 storage management.
31342 (_): Remove; not used now.
31343 * modules/xstrtol: Depend on getopt.
31344 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
31345 of old STRTOL_FATAL_ERROR macro.
31346 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
31348 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
31349 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
31351 2007-08-08 Eric Blake <ebb9@byu.net>
31353 * lib/xstrtol-error.c: Add missing include.
31355 Move xstrtol messages into gnulib domain, when --pobase is used.
31356 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
31357 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
31358 * modules/xstrtol (Files): Distribute new file.
31359 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
31360 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
31361 * tests/test-xstrtol.c: ...into new file.
31362 * tests/test-xstrtoul.c: Also test xstrtoul.
31363 * tests/test-xstrtoimax.c: Also test xstrtoimax.
31364 * tests/test-xstrtoumax.c: Also test xstrtoumax.
31365 * tests/test-xstrtol.sh: Drive the tests.
31366 * tests/test-xstrtoimax.sh: Likewise.
31367 * tests/test-xstrtoumax.sh: Likewise.
31368 * modules/xstrtol-tests: New module.
31369 * modules/xstrtoimax-tests: Likewise.
31370 * modules/xstrtoumax-tests: Likewise.
31372 2007-08-08 Jim Meyering <jim@meyering.net>
31374 New function: mfile_name_concat.
31375 * lib/filenamecat.c (mfile_name_concat): New function, just like
31376 file_name_concat, but return NULL upon failure rather than exiting
31378 * lib/filenamecat.h: Declare it.
31380 2007-08-07 Bruno Haible <bruno@clisp.org>
31382 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
31383 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
31385 Reported by Eric Blake.
31387 2007-08-07 Simon Josefsson <simon@josefsson.org>
31389 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
31390 * modules/crypto/arcfour (License): Likewise.
31391 * modules/crypto/des-tests (License): Likewise.
31392 * modules/crypto/gc-arctwo-tests (License): Likewise.
31393 * modules/crypto/gc-des-tests (License): Likewise.
31394 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
31395 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
31396 * modules/crypto/gc-md2-tests (License): Likewise.
31397 * modules/crypto/gc-md4-tests (License): Likewise.
31398 * modules/crypto/gc-md5-tests (License): Likewise.
31399 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
31400 * modules/crypto/gc-rijndael-tests (License): Likewise.
31401 * modules/crypto/gc-sha1-tests (License): Likewise.
31402 * modules/crypto/gc-tests (License): Likewise.
31403 * modules/crypto/hmac-md5 (License): Likewise.
31404 * modules/crypto/hmac-sha1 (License): Likewise.
31405 * modules/crypto/md2-tests (License): Likewise.
31406 * modules/crypto/md4-tests (License): Likewise.
31407 * modules/crypto/md5 (License): Likewise.
31408 * modules/crypto/rijndael (License): Likewise.
31409 * modules/crypto/sha1 (License): Likewise.
31410 * modules/memxor (License): Likewise.
31412 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
31413 and Bruno Haible <bruno@clisp.org>
31415 * NEWS: Describe interface changes to human, xstrtol.
31416 * lib/human.h: Include <xstrtol.h>.
31417 (human_options): Return enum strtol_error, not int. Remove
31418 bool arg; take int * instead.
31419 * lib/human.c: Don't include "gettext.h".
31420 (_): Remove; no longer used.
31421 Don't include <xstrtol.h>, since human.h does it.
31422 (human_options): Adjust to abovementioned interface changes.
31423 Do not report error to stderr; that's now the caller's
31425 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
31427 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
31428 Str, Argument_type_string. All uses changed. Put " argument"
31429 in diagnostics to make them clearer. Change wording of suffix
31430 message for clarity.
31431 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
31432 Argument_type_string.
31433 (STRTOL_FATAL_WARN): Remove; no longer used.
31434 * modules/human (Depends-on): Remove gettext-h.
31436 2007-08-06 Simon Josefsson <simon@josefsson.org>
31438 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
31440 2007-07-31 Bruno Haible <bruno@clisp.org>
31442 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
31443 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
31444 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
31446 2007-07-31 Bruno Haible <bruno@clisp.org>
31448 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
31449 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
31451 2007-07-30 Bruno Haible <bruno@clisp.org>
31453 * modules/base64 (License): Use the synonymous term "LGPLv2+".
31454 * modules/c-ctype (License): Likewise.
31455 * modules/c-strcase (License): Likewise.
31456 * modules/check-version (License): Likewise.
31457 * modules/iconv (License): Likewise.
31458 * modules/iconv_open (License): Likewise.
31459 * modules/read-file (License): Likewise.
31460 * modules/striconv (License): Likewise.
31461 * modules/strverscmp (License): Likewise.
31462 * modules/vasprintf (License): Likewise.
31463 * modules/crypto/des (License): Likewise.
31464 * modules/crypto/gc (License): Likewise.
31465 * modules/crypto/gc-arcfour (License): Likewise.
31466 * modules/crypto/gc-arctwo (License): Likewise.
31467 * modules/crypto/gc-des (License): Likewise.
31468 * modules/crypto/gc-hmac-md5 (License): Likewise.
31469 * modules/crypto/gc-hmac-sha1 (License): Likewise.
31470 * modules/crypto/gc-md2 (License): Likewise.
31471 * modules/crypto/gc-md4 (License): Likewise.
31472 * modules/crypto/gc-md5 (License): Likewise.
31473 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
31474 * modules/crypto/gc-random (License): Likewise.
31475 * modules/crypto/gc-rijndael (License): Likewise.
31476 * modules/crypto/gc-sha1 (License): Likewise.
31477 * modules/crypto/md2 (License): Likewise.
31478 * modules/crypto/md4 (License): Likewise.
31480 2007-07-30 Jim Meyering <jim@meyering.net>
31482 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
31483 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
31484 it has valid stat data. This bug would cause du not to count the
31485 sizes of inaccessible directories.
31486 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
31487 in <http://bugzilla.redhat.com/250077>.
31489 2007-07-25 Peter O'Gorman <peter@pogma.com>
31490 Bruno Haible <bruno@clisp.org>
31492 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
31493 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
31494 #include_next, gives a diagnostic about it, but reports no error in
31496 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
31498 2007-07-24 Ben Pfaff <blp@gnu.org>
31500 Improve name: "count-one-bits" is better than "popcount".
31501 * MODULES.html.sh: Update name.
31502 * lib/popcount.h: Renamed lib/count-one-bits.h.
31503 (popcount): Renamed count_one_bits.
31504 (popcountl): Renamed count_one_bits_l.
31505 (popcountll): Renamed count_one_bits_ll.
31506 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
31507 * modules/popcount: Renamed module/count-one-bits.
31508 * modules/popcount-tests: Renamed module/count-one-bits-tests.
31509 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
31511 2007-07-23 Ben Pfaff <blp@gnu.org>
31513 * lib/popcount.h (popcount32): Reduce size of constants, to allow
31514 better code generation, and add U to large constants to avoid
31515 warnings, in non-GCC case.
31516 Suggested by Bruno Haible.
31518 2007-07-23 Ben Pfaff <blp@gnu.org>
31520 * lib/popcount.h: Use verify_true instead of if...abort.
31521 * modules/popcount: Depend on verify module.
31522 Suggested by Jim Meyering.
31524 2007-07-23 Bruno Haible <bruno@clisp.org>
31526 * gnulib-tool (func_import): Create a .cvsignore file also when the
31527 directory is not yet in CVS but the toplevel directory is. When
31528 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
31529 Reported by Karl Berry.
31531 2007-07-22 Ben Pfaff <blp@gnu.org>
31533 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
31535 Suggested by Eric Blake.
31537 2007-07-22 Ben Pfaff <blp@gnu.org>
31539 New module: popcount.
31540 * MODULES.html.sh: Add popcount.
31541 * modules/popcount: New file.
31542 * modules/popcount-tests: New file.
31543 * tests/test-popcount.c: New file.
31544 * lib/popcount.h: New file.
31545 * m4/popcount.m4: New file.
31547 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
31549 * build-aux/announce-gen: Update to GPLv3.
31551 * build-aux/config.guess: Update from config.
31553 2007-07-21 Bruno Haible <bruno@clisp.org>
31555 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
31556 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
31558 2007-07-20 Jim Meyering <jim@meyering.net>
31560 * check-module: Diagnose a self-dependency.
31562 2007-07-19 Bruno Haible <bruno@clisp.org>
31564 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
31566 Reported by Eric Blake.
31568 2007-07-18 Bruno Haible <bruno@clisp.org>
31570 * gnulib-tool: New options --po-base, --po-domain.
31571 (func_usage): Document them.
31572 (pobase, po_domain): New variables.
31573 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
31574 DEFAULT_TEXT_DOMAIN.
31575 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
31576 (func_import): Consider pobase and po_domain. Create a po/ directory.
31577 (func_create_testdir): Set pobase and po_domain to empty.
31578 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
31579 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
31581 2007-07-18 Bruno Haible <bruno@clisp.org>
31583 * gnulib-tool (func_get_automake_snippet): Synthesize also an
31584 EXTRA_DIST augmentation for files in build-aux/.
31586 2007-07-16 Bruno Haible <bruno@clisp.org>
31588 * modules/lseek (License): Use the synonymous term "LGPLv2+".
31589 * modules/getdelim (License): Likewise.
31591 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31593 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
31594 * modules/d-type (License): Likewise.
31595 * modules/extensions (License): Likewise.
31596 * modules/fnmatch (License): Likewise.
31597 * modules/fseeko (License): Likewise.
31598 * modules/getaddrinfo (License): Likewise.
31599 * modules/getline (License): Likewise.
31600 * modules/getlogin_r (License): Likewise.
31601 * modules/getpass (License): Likewise.
31602 * modules/gettimeofday (License): Likewise.
31603 * modules/glob (License): Likewise.
31604 * modules/inet_ntop (License): Likewise.
31605 * modules/malloc (License): Likewise.
31606 * modules/malloca (License): Likewise.
31607 * modules/memmem (License): Likewise.
31608 * modules/mempcpy (License): Likewise.
31609 * modules/memset (License): Likewise.
31610 * modules/minmax (License): Likewise.
31611 * modules/mktime (License): Likewise.
31612 * modules/netinet_in (License): Likewise.
31613 * modules/pathmax (License): Likewise.
31614 * modules/poll (License): Likewise.
31615 * modules/regex (License): Likewise.
31616 * modules/snprintf (License): Likewise.
31617 * modules/stdbool (License): Likewise.
31618 * modules/stdint (License): Likewise.
31619 * modules/stdio (License): Likewise.
31620 * modules/strcase (License): Likewise.
31621 * modules/strcasestr (License): Likewise.
31622 * modules/strdup (License): Likewise.
31623 * modules/string (License): Likewise.
31624 * modules/strndup (License): Likewise.
31625 * modules/strnlen (License): Likewise.
31626 * modules/strpbrk (License): Likewise.
31627 * modules/strptime (License): Likewise.
31628 * modules/strsep (License): Likewise.
31629 * modules/sys_select (License): Likewise.
31630 * modules/sys_socket (License): Likewise.
31631 * modules/sys_stat (License): Likewise.
31632 * modules/sys_time (License): Likewise.
31633 * modules/time (License): Likewise.
31634 * modules/time_r (License): Likewise.
31635 * modules/timegm (License): Likewise.
31636 * modules/unistd (License): Likewise.
31637 * modules/vsnprintf (License): Likewise.
31638 * modules/wctype (License): Likewise.
31640 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31642 * modules/argz (License): LGPLv2+.
31644 2007-07-15 Karl Berry <karl@gnu.org>
31646 * doc/gnulib.texi: revise node structure per new fdl.texi.
31648 2007-07-14 Bruno Haible <bruno@clisp.org>
31650 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
31652 * lib/uniname/uninames.h: Regenerated.
31654 2007-07-14 Karl Berry <karl@gnu.org>
31656 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
31657 omitting sectioning and index commands.
31659 2007-07-13 Bruno Haible <bruno@clisp.org>
31661 New gnulib-tool option --more-symlinks.
31662 * gnulib-tool (func_usage): Document --more-symlinks.
31663 (do_copyrights): New variable.
31664 Recognize option --more-symlinks.
31665 (func_import): Don't add a copyright notice transform to
31666 sed_transform_lib_file if do_copyrights is empty.
31668 2007-07-13 Bruno Haible <bruno@clisp.org>
31670 * lib/vasnprintf.c (decimal_point_char): Define also if
31671 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
31672 && !NEED_PRINTF_DIRECTIVE_A.
31673 Reported by Clemens Koller <clemens.koller@anagramm.de> via
31674 Gary V. Vaughan <gary@gnu.org>.
31676 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
31678 * lib/inttypes_.h: Undo previous change, since it was fixed
31679 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
31681 2007-07-13 Bruno Haible <bruno@clisp.org>
31683 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
31684 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
31686 2007-07-13 Jim Meyering <jim@meyering.net>
31688 df: Don't fail for Tru64's "file-on-file mount".
31689 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
31690 so we fall through and use statfs instead. Details here:
31691 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
31692 Reported by Albert Chin.
31694 2007-07-13 Bruno Haible <bruno@clisp.org>
31696 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
31697 * modules/configmake (License): Likewise.
31698 * modules/gettext (License): Likewise.
31699 * modules/gettext-h (License): Likewise.
31700 * modules/include_next (License): Likewise.
31701 * modules/link-warning (License): Likewise.
31702 * modules/localcharset (License): Likewise.
31703 * modules/localename (License): Likewise.
31704 * modules/lock (License): Likewise.
31705 * modules/relocatable-lib-lgpl (License): Likewise.
31706 * modules/size_max (License): Likewise.
31707 * modules/vasnprintf (License): Likewise.
31708 * modules/wchar (License): Likewise.
31709 * modules/xsize (License): Likewise.
31711 2007-07-13 Bruno Haible <bruno@clisp.org>
31713 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
31714 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
31716 2007-07-12 Bruno Haible <bruno@clisp.org>
31718 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
31719 in the modules files.
31721 2007-07-11 Karl Berry <karl@gnu.org>
31723 * MODULES.html.sh (func_module): use
31724 sed -e '\|^'"${includefile}"'$|d'
31725 instead of /.../d, to avoid errors on $includefile's containing /.
31727 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
31729 * gnulib-tool (func_import): Avoid duplication of --avoid
31731 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
31732 names to `_' in variable names.
31734 2007-07-10 Eric Blake <ebb9@byu.net>
31736 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
31737 * NEWS: Document this change.
31739 2007-07-08 Bruno Haible <bruno@clisp.org>
31741 Update to Unicode 5.0.
31742 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
31743 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
31744 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
31745 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
31746 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
31747 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
31748 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
31749 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
31750 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
31751 U+10A3F, U+1D242..U+1D244.
31752 (nonspacing_table_ind): Update.
31753 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
31754 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
31756 2007-07-08 Bruno Haible <bruno@clisp.org>
31758 Update to Unicode 5.0.
31759 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
31760 code transform. Extend the name index field of unicode_name_to_code and
31761 unicode_code_to_name from 16 to 24 bits.
31762 * lib/uniname/uniname.c (unicode_character_name,
31763 unicode_name_character): Add the range 0x12xxx to the code transform.
31764 * lib/uniname/uninames.h: Regenerated.
31765 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
31767 2007-07-07 Bruno Haible <bruno@clisp.org>
31769 * modules/wcwidth-tests: New file.
31770 * tests/test-wcwidth.c: New file.
31772 Work around MacOS X wcwidth() bug.
31773 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
31774 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
31775 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
31776 original wcwidth in non-UTF-8 locales.
31777 * modules/wcwidth (Depends-on): Add localcharset, streq,
31779 * doc/functions/wcwidth.texi: Update.
31781 2007-07-07 Bruno Haible <bruno@clisp.org>
31783 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
31784 (wcwidth): New declaration.
31785 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
31787 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
31788 here. Prepare for creating <wchar.h> unconditionally.
31789 * modules/wchar (Depends-on): Add link-warning.
31790 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
31791 REPLACE_WCWIDTH, and GL_LINK_WARNING.
31792 * lib/wcwidth.h: Remove file.
31793 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
31794 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
31795 * modules/wcwidth (Files): Remove lib/wcwidth.h.
31796 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
31797 (Include): Replace wcwidth.h with <wchar.h>.
31798 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
31799 * lib/mbchar.h: Don't include wcwidth.h.
31800 * lib/mbswidth.c: Likewise.
31801 * NEWS: Mention the change.
31803 2007-07-07 Bruno Haible <bruno@clisp.org>
31805 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
31806 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
31807 definition with an external declaration.
31808 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
31809 defined as a function. Remove AC_C_INLINE requirement.
31810 * modules/wcwidth (Files): Add lib/wcwidth.c.
31811 (Makefile.am): Remove redundant statement.
31813 2007-07-07 Bruno Haible <bruno@clisp.org>
31815 * MODULES.html.sh (Unicode string functions): Add the new modules.
31817 * tests/uniwidth/test-u32-strwidth.c: New file.
31818 * modules/uniwidth/u32-strwidth-tests: New file.
31820 * lib/uniwidth/u32-strwidth.c: New file.
31821 * modules/uniwidth/u32-strwidth: New file.
31823 * tests/uniwidth/test-u16-strwidth.c: New file.
31824 * modules/uniwidth/u16-strwidth-tests: New file.
31826 * lib/uniwidth/u16-strwidth.c: New file.
31827 * modules/uniwidth/u16-strwidth: New file.
31829 * tests/uniwidth/test-u8-strwidth.c: New file.
31830 * modules/uniwidth/u8-strwidth-tests: New file.
31832 * lib/uniwidth/u8-strwidth.c: New file.
31833 * modules/uniwidth/u8-strwidth: New file.
31835 * tests/uniwidth/test-u32-width.c: New file.
31836 * modules/uniwidth/u32-width-tests: New file.
31838 * lib/uniwidth/u32-width.c: New file.
31839 * modules/uniwidth/u32-width: New file.
31841 * tests/uniwidth/test-u16-width.c: New file.
31842 * modules/uniwidth/u16-width-tests: New file.
31844 * lib/uniwidth/u16-width.c: New file.
31845 * modules/uniwidth/u16-width: New file.
31847 * tests/uniwidth/test-u8-width.c: New file.
31848 * modules/uniwidth/u8-width-tests: New file.
31850 * lib/uniwidth/u8-width.c: New file.
31851 * modules/uniwidth/u8-width: New file.
31853 * tests/uniwidth/test-uc_width.c: New file.
31854 * modules/uniwidth/width-tests: New file.
31856 * lib/uniwidth/width.c: New file, from GNU libiconv.
31857 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
31858 * modules/uniwidth/width: New file.
31860 * lib/uniwidth.h: New file, from GNU libiconv.
31861 * modules/uniwidth/base: New file.
31863 2007-07-07 Bruno Haible <bruno@clisp.org>
31865 * lib/uniname.h: New file, from GNU gettext.
31866 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
31867 * lib/uniname/uninames.h: New file, from GNU gettext.
31868 * lib/uniname/uniname.c: New file, from GNU gettext.
31869 * tests/uniname/test-uninames.sh: New file.
31870 * tests/uniname/test-uninames.c: New file, from GNU gettext.
31871 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
31872 * modules/uniname/base: New file.
31873 * modules/uniname/uniname: New file.
31874 * modules/uniname/uniname-tests: New file.
31875 * MODULES.html.sh (Unicode string functions): Add the new modules.
31877 2007-07-06 Bruno Haible <bruno@clisp.org>
31879 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
31881 2007-07-06 Bruno Haible <bruno@clisp.org>
31883 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
31884 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
31885 includes <cygwin/sys_time.h> which includes <sys/select.h> which
31886 include <sys/time.h>.
31887 Reported by Eric Blake.
31889 2007-07-06 Eric Blake <ebb9@byu.net>
31891 Fix testing canonicalize on cygwin.
31892 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
31893 Revert patch from 2007-06-19.
31894 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
31895 canonicalize module is also in use.
31896 * tests/test-canonicalize.c: New file.
31897 * tests/test-canonicalize.sh: Likewise.
31898 * modules/canonicalize-tests: Likewise.
31900 2007-07-06 Jim Meyering <jim@meyering.net>
31902 * lib/getugroups.c (getugroups): Detect getgrent failure.
31903 Adjust comment to reflect reality: this function may return -1.
31905 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
31907 * build-aux/bootstrap (TP_URL,get_translations): Update to use
31908 the new TP address.
31910 (gnulib_mk): New variable.
31912 2007-07-05 Jim Meyering <jim@meyering.net>
31914 Don't let endgrent clobber errno, no matter how improbable.
31915 * lib/getugroups.c (getugroups): Save and restore errno around
31918 Close the group DB even when failing with 2^31 or more members.
31919 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
31921 2007-07-04 Jim Meyering <jim@meyering.net>
31923 * lib/getugroups.h: New file.
31924 * lib/getugroups.c: Include "getugroups.h".
31925 Remove uses of "register" keyword.
31926 Move local variable, "cp", down into scope where used.
31927 Give "username" parameter the "const" attribute.
31928 * modules/getugroups (Files): Add lib/getugroups.h
31930 2007-07-04 Karl Berry <karl@gnu.org>
31932 * MODULES.html.sh (func_all_modules): Complete rename of
31933 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
31935 2007-07-02 Bruno Haible <bruno@clisp.org>
31937 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
31938 mode, when inttypes.h comes from gnulib.
31939 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
31941 2007-07-02 Simon Josefsson <simon@josefsson.org>
31943 * NEWS: Mention lgpl module name change.
31945 * modules/lgpl-2.1: Renamed from lgpl.
31947 * NEWS: Mention gpl module name change.
31949 * modules/gpl-3.0: New file, based on gpl-2.0.
31951 * modules/gpl-2.0: Renamed from gpl.
31953 * modules/gpl: Fix filename, doc/gpl.texi is now found at
31956 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
31958 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
31959 #define __STDC_LIMIT_MACROS temporarily while including
31960 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
31961 Problem reported by Joel E. Denny in
31962 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
31964 2007-07-01 Bruno Haible <bruno@clisp.org>
31966 * lib/unistdio.h: New file.
31967 * lib/unistdio/u-asnprintf.h: New file.
31968 * lib/unistdio/u-asprintf.h: New file.
31969 * lib/unistdio/u-printf-args.c: New file.
31970 * lib/unistdio/u-printf-args.h: New file.
31971 * lib/unistdio/u-printf-parse.h: New file.
31972 * lib/unistdio/u-snprintf.h: New file.
31973 * lib/unistdio/u-sprintf.h: New file.
31974 * lib/unistdio/u-vasprintf.h: New file.
31975 * lib/unistdio/u-vsnprintf.h: New file.
31976 * lib/unistdio/u-vsprintf.h: New file.
31977 * lib/unistdio/ulc-asnprintf.c: New file.
31978 * lib/unistdio/ulc-asprintf.c: New file.
31979 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
31980 * lib/unistdio/ulc-printf-parse.c: New file.
31981 * lib/unistdio/ulc-snprintf.c: New file.
31982 * lib/unistdio/ulc-sprintf.c: New file.
31983 * lib/unistdio/ulc-vasnprintf.c: New file.
31984 * lib/unistdio/ulc-vasprintf.c: New file.
31985 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
31986 * lib/unistdio/ulc-vsnprintf.c: New file.
31987 * lib/unistdio/ulc-vsprintf.c: New file.
31988 * lib/unistdio/u8-asnprintf.c: New file.
31989 * lib/unistdio/u8-asprintf.c: New file.
31990 * lib/unistdio/u8-printf-parse.c: New file.
31991 * lib/unistdio/u8-snprintf.c: New file.
31992 * lib/unistdio/u8-sprintf.c: New file.
31993 * lib/unistdio/u8-vasnprintf.c: New file.
31994 * lib/unistdio/u8-vasprintf.c: New file.
31995 * lib/unistdio/u8-vsnprintf.c: New file.
31996 * lib/unistdio/u8-vsprintf.c: New file.
31997 * lib/unistdio/u8-u8-asnprintf.c: New file.
31998 * lib/unistdio/u8-u8-asprintf.c: New file.
31999 * lib/unistdio/u8-u8-snprintf.c: New file.
32000 * lib/unistdio/u8-u8-sprintf.c: New file.
32001 * lib/unistdio/u8-u8-vasnprintf.c: New file.
32002 * lib/unistdio/u8-u8-vasprintf.c: New file.
32003 * lib/unistdio/u8-u8-vsnprintf.c: New file.
32004 * lib/unistdio/u8-u8-vsprintf.c: New file.
32005 * lib/unistdio/u16-asnprintf.c: New file.
32006 * lib/unistdio/u16-asprintf.c: New file.
32007 * lib/unistdio/u16-printf-parse.c: New file.
32008 * lib/unistdio/u16-snprintf.c: New file.
32009 * lib/unistdio/u16-sprintf.c: New file.
32010 * lib/unistdio/u16-vasnprintf.c: New file.
32011 * lib/unistdio/u16-vasprintf.c: New file.
32012 * lib/unistdio/u16-vsnprintf.c: New file.
32013 * lib/unistdio/u16-vsprintf.c: New file.
32014 * lib/unistdio/u16-u16-asnprintf.c: New file.
32015 * lib/unistdio/u16-u16-asprintf.c: New file.
32016 * lib/unistdio/u16-u16-snprintf.c: New file.
32017 * lib/unistdio/u16-u16-sprintf.c: New file.
32018 * lib/unistdio/u16-u16-vasnprintf.c: New file.
32019 * lib/unistdio/u16-u16-vasprintf.c: New file.
32020 * lib/unistdio/u16-u16-vsnprintf.c: New file.
32021 * lib/unistdio/u16-u16-vsprintf.c: New file.
32022 * lib/unistdio/u32-asnprintf.c: New file.
32023 * lib/unistdio/u32-asprintf.c: New file.
32024 * lib/unistdio/u32-printf-parse.c: New file.
32025 * lib/unistdio/u32-snprintf.c: New file.
32026 * lib/unistdio/u32-sprintf.c: New file.
32027 * lib/unistdio/u32-vasnprintf.c: New file.
32028 * lib/unistdio/u32-vasprintf.c: New file.
32029 * lib/unistdio/u32-vsnprintf.c: New file.
32030 * lib/unistdio/u32-vsprintf.c: New file.
32031 * lib/unistdio/u32-u32-asnprintf.c: New file.
32032 * lib/unistdio/u32-u32-asprintf.c: New file.
32033 * lib/unistdio/u32-u32-snprintf.c: New file.
32034 * lib/unistdio/u32-u32-sprintf.c: New file.
32035 * lib/unistdio/u32-u32-vasnprintf.c: New file.
32036 * lib/unistdio/u32-u32-vasprintf.c: New file.
32037 * lib/unistdio/u32-u32-vsnprintf.c: New file.
32038 * lib/unistdio/u32-u32-vsprintf.c: New file.
32039 * tests/unistdio/test-ulc-asnprintf1.c: New file.
32040 * tests/unistdio/test-ulc-asnprintf1.h: New file.
32041 * tests/unistdio/test-ulc-printf1.h: New file.
32042 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
32043 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
32044 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
32045 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
32046 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
32047 * tests/unistdio/test-ulc-vasprintf1.c: New file.
32048 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
32049 * tests/unistdio/test-ulc-vsprintf1.c: New file.
32050 * tests/unistdio/test-u8-asnprintf1.c: New file.
32051 * tests/unistdio/test-u8-asnprintf1.h: New file.
32052 * tests/unistdio/test-u8-printf1.h: New file.
32053 * tests/unistdio/test-u8-vasnprintf1.c: New file.
32054 * tests/unistdio/test-u8-vasnprintf2.c: New file.
32055 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
32056 * tests/unistdio/test-u8-vasnprintf3.c: New file.
32057 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
32058 * tests/unistdio/test-u8-vasprintf1.c: New file.
32059 * tests/unistdio/test-u8-vsnprintf1.c: New file.
32060 * tests/unistdio/test-u8-vsprintf1.c: New file.
32061 * tests/unistdio/test-u16-asnprintf1.c: New file.
32062 * tests/unistdio/test-u16-asnprintf1.h: New file.
32063 * tests/unistdio/test-u16-printf1.h: New file.
32064 * tests/unistdio/test-u16-vasnprintf1.c: New file.
32065 * tests/unistdio/test-u16-vasnprintf2.c: New file.
32066 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
32067 * tests/unistdio/test-u16-vasnprintf3.c: New file.
32068 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
32069 * tests/unistdio/test-u16-vasprintf1.c: New file.
32070 * tests/unistdio/test-u16-vsnprintf1.c: New file.
32071 * tests/unistdio/test-u16-vsprintf1.c: New file.
32072 * tests/unistdio/test-u32-asnprintf1.c: New file.
32073 * tests/unistdio/test-u32-asnprintf1.h: New file.
32074 * tests/unistdio/test-u32-printf1.h: New file.
32075 * tests/unistdio/test-u32-vasnprintf1.c: New file.
32076 * tests/unistdio/test-u32-vasnprintf2.c: New file.
32077 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
32078 * tests/unistdio/test-u32-vasnprintf3.c: New file.
32079 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
32080 * tests/unistdio/test-u32-vasprintf1.c: New file.
32081 * tests/unistdio/test-u32-vsnprintf1.c: New file.
32082 * tests/unistdio/test-u32-vsprintf1.c: New file.
32083 * modules/unistdio/base: New file.
32084 * modules/unistdio/u-printf-args: New file.
32085 * modules/unistdio/ulc-asnprintf: New file.
32086 * modules/unistdio/ulc-asprintf: New file.
32087 * modules/unistdio/ulc-fprintf: New file.
32088 * modules/unistdio/ulc-printf-parse: New file.
32089 * modules/unistdio/ulc-snprintf: New file.
32090 * modules/unistdio/ulc-sprintf: New file.
32091 * modules/unistdio/ulc-vasnprintf: New file.
32092 * modules/unistdio/ulc-vasprintf: New file.
32093 * modules/unistdio/ulc-vfprintf: New file.
32094 * modules/unistdio/ulc-vsnprintf: New file.
32095 * modules/unistdio/ulc-vsprintf: New file.
32096 * modules/unistdio/u8-asnprintf: New file.
32097 * modules/unistdio/u8-asprintf: New file.
32098 * modules/unistdio/u8-printf-parse: New file.
32099 * modules/unistdio/u8-snprintf: New file.
32100 * modules/unistdio/u8-sprintf: New file.
32101 * modules/unistdio/u8-vasnprintf: New file.
32102 * modules/unistdio/u8-vasprintf: New file.
32103 * modules/unistdio/u8-vsnprintf: New file.
32104 * modules/unistdio/u8-vsprintf: New file.
32105 * modules/unistdio/u8-u8-asnprintf: New file.
32106 * modules/unistdio/u8-u8-asprintf: New file.
32107 * modules/unistdio/u8-u8-snprintf: New file.
32108 * modules/unistdio/u8-u8-sprintf: New file.
32109 * modules/unistdio/u8-u8-vasnprintf: New file.
32110 * modules/unistdio/u8-u8-vasprintf: New file.
32111 * modules/unistdio/u8-u8-vsnprintf: New file.
32112 * modules/unistdio/u8-u8-vsprintf: New file.
32113 * modules/unistdio/u16-asnprintf: New file.
32114 * modules/unistdio/u16-asprintf: New file.
32115 * modules/unistdio/u16-printf-parse: New file.
32116 * modules/unistdio/u16-snprintf: New file.
32117 * modules/unistdio/u16-sprintf: New file.
32118 * modules/unistdio/u16-vasnprintf: New file.
32119 * modules/unistdio/u16-vasprintf: New file.
32120 * modules/unistdio/u16-vsnprintf: New file.
32121 * modules/unistdio/u16-vsprintf: New file.
32122 * modules/unistdio/u16-u16-asnprintf: New file.
32123 * modules/unistdio/u16-u16-asprintf: New file.
32124 * modules/unistdio/u16-u16-snprintf: New file.
32125 * modules/unistdio/u16-u16-sprintf: New file.
32126 * modules/unistdio/u16-u16-vasnprintf: New file.
32127 * modules/unistdio/u16-u16-vasprintf: New file.
32128 * modules/unistdio/u16-u16-vsnprintf: New file.
32129 * modules/unistdio/u16-u16-vsprintf: New file.
32130 * modules/unistdio/u32-asnprintf: New file.
32131 * modules/unistdio/u32-asprintf: New file.
32132 * modules/unistdio/u32-printf-parse: New file.
32133 * modules/unistdio/u32-snprintf: New file.
32134 * modules/unistdio/u32-sprintf: New file.
32135 * modules/unistdio/u32-vasnprintf: New file.
32136 * modules/unistdio/u32-vasprintf: New file.
32137 * modules/unistdio/u32-vsnprintf: New file.
32138 * modules/unistdio/u32-vsprintf: New file.
32139 * modules/unistdio/u32-u32-asnprintf: New file.
32140 * modules/unistdio/u32-u32-asprintf: New file.
32141 * modules/unistdio/u32-u32-snprintf: New file.
32142 * modules/unistdio/u32-u32-sprintf: New file.
32143 * modules/unistdio/u32-u32-vasnprintf: New file.
32144 * modules/unistdio/u32-u32-vasprintf: New file.
32145 * modules/unistdio/u32-u32-vsnprintf: New file.
32146 * modules/unistdio/u32-u32-vsprintf: New file.
32147 * modules/unistdio/ulc-asnprintf-tests: New file.
32148 * modules/unistdio/ulc-vasnprintf-tests: New file.
32149 * modules/unistdio/ulc-vasprintf-tests: New file.
32150 * modules/unistdio/ulc-vsnprintf-tests: New file.
32151 * modules/unistdio/ulc-vsprintf-tests: New file.
32152 * modules/unistdio/u8-asnprintf-tests: New file.
32153 * modules/unistdio/u8-vasnprintf-tests: New file.
32154 * modules/unistdio/u8-vasprintf-tests: New file.
32155 * modules/unistdio/u8-vsnprintf-tests: New file.
32156 * modules/unistdio/u8-vsprintf-tests: New file.
32157 * modules/unistdio/u16-asnprintf-tests: New file.
32158 * modules/unistdio/u16-vasnprintf-tests: New file.
32159 * modules/unistdio/u16-vasprintf-tests: New file.
32160 * modules/unistdio/u16-vsnprintf-tests: New file.
32161 * modules/unistdio/u16-vsprintf-tests: New file.
32162 * modules/unistdio/u32-asnprintf-tests: New file.
32163 * modules/unistdio/u32-vasnprintf-tests: New file.
32164 * modules/unistdio/u32-vasprintf-tests: New file.
32165 * modules/unistdio/u32-vsnprintf-tests: New file.
32166 * modules/unistdio/u32-vsprintf-tests: New file.
32167 * MODULES.html.sh (Unicode string functions): Add the new modules.
32169 2007-07-01 Bruno Haible <bruno@clisp.org>
32171 * lib/sprintf.c (sprintf): Limit the available length estimation,
32172 to avoid address wraparound.
32173 * lib/vsprintf.c (vsprintf): Likewise.
32174 * modules/sprintf-posix (Dependencies): Add stdint.
32175 * modules/vsprintf-posix (Dependencies): Likewise.
32177 2007-07-01 Bruno Haible <bruno@clisp.org>
32179 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
32180 Windows PATH as well. Conservative double-quoting. Comments.
32182 2007-07-01 Bruno Haible <bruno@clisp.org>
32183 Eric Blake <ebb9@byu.net>
32184 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32186 * gnulib-tool (self_abspathname): Fix algorithm to cope with
32187 empty components in $PATH, denoting '.'.
32189 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32191 * gnulib-tool: Fix indentation.
32192 (func_create_megatestdir): Likewise.
32193 Report by Bruno Haible.
32195 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32197 Sync from Automake.
32198 * build-aux/gnupload: Fix shell portability issues with for loops.
32199 Report by Karl Berry.
32201 2007-06-29 Simon Josefsson <simon@josefsson.org>
32203 * build-aux/maint.mk (POURL): Use translationproject.org.
32205 2007-06-27 Simon Josefsson <simon@josefsson.org>
32206 Bruno Haible <bruno@clisp.org>
32208 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
32209 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
32210 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
32211 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
32212 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
32214 2007-06-27 Bruno Haible <bruno@clisp.org>
32216 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
32217 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
32219 2007-06-26 Karl Berry <karl@gnu.org>
32221 * MODULES.html.sh: remove xreadlink-with-size.
32223 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
32225 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
32226 method that I hope also handles the double-include problem noted
32228 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
32230 2007-06-23 Bruno Haible <bruno@clisp.org>
32232 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32233 Don't let the 'mostlyclean' target fail if the last subdirectory could
32235 Reported by Karl Berry.
32237 2007-06-23 Bruno Haible <bruno@clisp.org>
32239 * gnulib-tool (echo): Add a speedier workaround for ksh.
32240 * tests/test-echo.sh: Likewise.
32242 2007-06-23 Bruno Haible <bruno@clisp.org>
32244 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
32245 * tests/test-echo.sh: Likewise.
32247 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32249 * gnulib-tool (IFS): Initialize early, so we don't set it to
32251 (self_abspathname): Rewrite algorithm to set it, reindent.
32252 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
32253 (func_create_megatestdir): Merge some sed scripts.
32255 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
32257 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
32258 exposed by Sun Studio 11 cc on Solaris 8.
32260 2007-06-22 Bruno Haible <bruno@clisp.org>
32262 * gnulib-tool (echo): Ensure the echo primitive does not interpret
32264 * tests/test-echo.sh: New file.
32266 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32268 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
32269 simplify `sed_replace_build_aux' scripts, they are portable but
32270 echoing them with `echo' is not.
32271 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
32273 2007-06-21 Karl Berry <karl@gnu.org>
32275 * config/srclist.txt: guess we can't handle the licenses via
32276 srclist at the moment.
32278 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
32280 * MODULES.html.sh: Add include_next.
32281 * modules/include_next: New file.
32283 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
32285 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
32287 (gl_CHECK_NEXT_HEADERS): New macro.
32288 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
32289 the obsolescent gl_ABSOLUTE_HEADER.
32290 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
32291 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
32292 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32293 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32294 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
32295 * m4/math_h.m4 (gl_MATH_H): Likewise.
32296 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
32297 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
32298 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
32299 * m4/stdint.m4 (gl_STDINT_H): Likewise.
32300 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
32301 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
32302 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
32303 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32304 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32305 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32306 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
32307 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
32308 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
32309 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
32310 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32311 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
32312 * m4/inttypes.m4 (gl_INTTYPES_H): Define
32313 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
32314 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
32315 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
32316 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
32317 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
32318 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
32319 * lib/float_.h: Likewise.
32320 * lib/inttypes_.h: Likewise.
32321 * lib/math_.h: Likewise.
32322 * lib/search_.h: Likewise.
32323 * lib/signal_.h: Likewise.
32324 * lib/stdint_.h: Likewise.
32325 * lib/stdio_.h: Likewise.
32326 * lib/stdlib_.h: Likewise.
32327 * lib/string_.h: Likewise.
32328 * lib/sys_stat_.h: Likewise.
32329 * lib/sys_time_.h: Likewise.
32330 * lib/time_.h: Likewise.
32331 * lib/unistd_.h: Likewise.
32332 * lib/wchar_.h: Likewise.
32333 * lib/wctype_.h: Likewise.
32334 * lib/dirent_.h: Likewise.
32335 * lib/iconv_.h: Likewise.
32336 * lib/locale_.h: Likewise.
32337 * lib/netinet_in_.h: Likewise.
32338 * lib/sys_select_.h: Likewise.
32339 * lib/sys_socket_.h: Likewise.
32340 * lib/sysexits_.h: Likewise.
32341 * modules/fcntl (Depends-on): Depend on include_next, not
32343 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
32344 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
32345 * modules/fchdir: Likewise.
32346 * modules/float: Likewise.
32347 * modules/iconv_open: Likewise.
32348 * modules/inttypes: Likewise.
32349 * modules/locale: Likewise.
32350 * modules/math: Likewise.
32351 * modules/netinet_in: Likewise.
32352 * modules/search: Likewise.
32353 * modules/signal: Likewise.
32354 * modules/stdint: Likewise.
32355 * modules/stdio: Likewise.
32356 * modules/stdlib: Likewise.
32357 * modules/string: Likewise.
32358 * modules/sys_select: Likewise.
32359 * modules/sys_socket: Likewise.
32360 * modules/sys_stat: Likewise.
32361 * modules/sys_time: Likewise.
32362 * modules/sysexits: Likewise.
32363 * modules/time: Likewise.
32364 * modules/unistd: Likewise.
32365 * modules/wchar: Likewise.
32366 * modules/wctype: Likewise.
32367 * modules/sys_stat: Change maintainer to "all".
32368 * modules/unistd: Likewise.
32370 2007-06-20 Karl Berry <karl@gnu.org>
32372 * config/srclist.txt: track www changes in license files.
32374 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
32376 * build-aux/bootstrap: Remove stray dot.
32377 Make sure build_aux settings are honored when linking
32378 gnulib_extra_files.
32380 2007-06-19 Eric Blake <ebb9@byu.net>
32382 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
32383 Allow compilation on cygwin.
32385 2007-06-19 Jim Meyering <jim@meyering.net>
32387 xreadlink-with-size: Remove module. No longer used.
32388 Ex-callers now use xreadlink or mreadlink-with-size.
32389 * modules/xreadlink-with-size: Remove module.
32390 * lib/xreadlink-with-size.c: Remove file.
32391 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
32392 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
32393 just before the function definition *is* accurate.
32395 Eliminate one way canonicalize_filename_mode could exit.
32396 * lib/canonicalize.c (canonicalize_filename_mode):
32397 Use mreadlink_with_size, not xreadlink_with_size.
32399 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
32401 Detect porting problems to FreeBSD/arm, which has time_t wider than
32402 long int. Original problem reported for GNU diff by Xin Li in
32403 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
32404 * modules/getdate (Depends-on): Add intprops, verify.
32405 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
32406 is an integer type no wider than long int.
32408 2007-06-18 Jim Meyering <jim@meyering.net>
32410 New module: mreadlink-with-size.
32411 * MODULES.html.sh: Add mreadlink-with-size.
32412 * modules/mreadlink-with-size: New module
32413 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
32414 not xreadlink-with-size.
32415 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
32417 2007-06-16 Bruno Haible <bruno@clisp.org>
32419 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
32420 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
32421 Reported by Gary V. Vaughan <gary@gnu.org>.
32423 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
32425 Revamp lchown so that it lives in unistd.h where it belongs.
32426 * lib/lchown.h: Remove.
32427 * lib/dirchownmod.c: Don't include lib/lchown.h.
32428 * lib/fchownat.c: Likewise.
32429 * lib/openat.c: Likewise.
32430 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
32431 does not follow symlinks.
32432 (EOPNOTSUPP): Define if not defined.
32433 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
32435 (lchown): New decl.
32436 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
32437 Do not check for lchown decl.
32438 Set REPLACE_LCHOWN.
32439 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
32441 * modules/chown: Make it clear it follows symlinks.
32442 * modules/lchown: Make it clear it doesn't follow symlinks.
32443 (Files): Remove lib/lchown.h
32444 (Depends-on): Add unistd.
32445 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
32446 (Include): Include <unistd.h>, not "lchown.h".
32447 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
32450 2007-06-15 Jim Meyering <jim@meyering.net>
32452 Change license (GPL to LGPL) of fsusage and dependents.
32453 * modules/fsusage (License): Change to LGPL.
32454 * modules/full-read (License): Likewise.
32455 * modules/full-write (License): Likewise.
32456 * modules/safe-read (License): Likewise.
32457 * modules/safe-write (License): Likewise.
32459 2007-06-14 Ben Pfaff <blp@gnu.org>
32461 Missing part of allocsa -> malloca transition.
32462 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
32465 2007-06-12 Bruno Haible <bruno@clisp.org>
32467 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
32468 to ia64, x86_64, i386.
32469 Reported by Eric Blake.
32471 2007-06-12 Bruno Haible <bruno@clisp.org>
32473 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
32474 cross-compiling to x86_64.
32476 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
32478 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
32479 glitch reported by Ralf Wildenhues in
32480 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
32482 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
32485 2007-06-11 Bruno Haible <bruno@clisp.org>
32487 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
32488 replacement string.
32489 Reported by Eric Blake.
32491 2007-06-10 Bruno Haible <bruno@clisp.org>
32493 Prepare vasnprintf code for use with Unicode strings.
32494 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
32495 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
32497 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
32498 a_u32_string variants.
32499 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
32500 * lib/printf-args.c: Don't include config.h and the specification
32501 header if PRINTF_FETCHARGS is already defined.
32502 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
32503 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
32504 TYPE_U16_STRING, TYPE_U32_STRING.
32505 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
32506 u16_directive, u16_directives, u32_directive, u32_directives): New
32508 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
32510 * lib/printf-parse.c: Don't include config.h and the specification
32511 header if PRINTF_PARSE is already defined. Eliminate the set of
32512 parameters for WIDE_CHAR_VERSION; the user of this file must provide
32513 them now. Include c-ctype.h.
32514 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
32515 directive and CHAR_T_ONLY_ASCII.
32516 * lib/vasnprintf.c: Don't include config.h and the specification header
32517 if VASNPRINTF is already defined.
32518 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
32519 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
32520 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
32521 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
32522 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
32523 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
32525 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
32526 pad_ourselves also in this case, with the 'c' and 's' directives, and
32527 with a different notion of "width".
32528 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
32530 2007-06-10 Bruno Haible <bruno@clisp.org>
32532 * modules/unistr/u32-mbsnlen: New file.
32533 * lib/unistr/u32-mbsnlen.c: New file.
32535 * modules/unistr/u16-mbsnlen: New file.
32536 * lib/unistr/u16-mbsnlen.c: New file.
32538 * modules/unistr/u8-mbsnlen: New file.
32539 * lib/unistr/u8-mbsnlen.c: New file.
32541 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
32544 2007-06-10 Bruno Haible <bruno@clisp.org>
32546 * lib/string_.h (mbsnlen): New declaration.
32547 * lib/mbsnlen.c: New file.
32548 * m4/mbsnlen.m4: New file.
32549 * modules/mbsnlen: New file.
32550 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
32551 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
32552 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
32554 2007-06-10 Bruno Haible <bruno@clisp.org>
32556 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
32558 2007-06-10 Bruno Haible <bruno@clisp.org>
32560 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
32561 * lib/mbuiter.h: Likewise.
32563 2007-06-10 Bruno Haible <bruno@clisp.org>
32565 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
32568 2007-06-10 Karl Berry <karl@gnu.org>
32570 * config/srclist.txt: remove gettext entries, Bruno prefers
32571 to update individually.
32573 2007-06-10 Bruno Haible <bruno@clisp.org>
32575 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
32576 'maxlen'. Ensure only length + width bytes are allocated, not
32577 length + 1 + width.
32579 2007-06-09 Bruno Haible <bruno@clisp.org>
32581 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
32582 (CHAR_T): Remove macro.
32583 (VASNPRINTF): Update.
32585 2007-06-09 Bruno Haible <bruno@clisp.org>
32587 * MODULES.html.sh (Unicode string functions): Add the new modules.
32589 * modules/uniconv/u32-conv-to-enc: New file.
32590 * lib/uniconv/u32-conv-to-enc.c: New file.
32591 * modules/uniconv/u32-conv-to-enc-tests: New file.
32592 * tests/uniconv/test-u32-conv-to-enc.c: New file.
32594 * modules/uniconv/u16-conv-to-enc: New file.
32595 * lib/uniconv/u16-conv-to-enc.c: New file.
32596 * lib/uniconv/u-conv-to-enc.h: New file.
32597 * modules/uniconv/u16-conv-to-enc-tests: New file.
32598 * tests/uniconv/test-u16-conv-to-enc.c: New file.
32600 * modules/uniconv/u8-conv-to-enc: New file.
32601 * lib/uniconv/u8-conv-to-enc.c: New file.
32602 * modules/uniconv/u8-conv-to-enc-tests: New file.
32603 * tests/uniconv/test-u8-conv-to-enc.c: New file.
32605 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
32606 u32_conv_to_encoding): New declarations.
32608 2007-06-09 Bruno Haible <bruno@clisp.org>
32610 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
32612 2007-06-09 Bruno Haible <bruno@clisp.org>
32614 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
32615 * modules/malloca: Renamed from modules/allocsa, updated.
32616 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
32617 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
32618 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
32619 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
32620 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
32621 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
32622 * modules/xmalloca: Renamed from modules/xallocsa, updated.
32623 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
32624 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
32625 * modules/c-strcasestr (Depends-on): Update.
32626 * lib/c-strcasestr.c: Update.
32627 * modules/c-strstr (Depends-on): Update.
32628 * lib/c-strstr.c: Update.
32629 * modules/canonicalize-lgpl (Depends-on): Update.
32630 * lib/canonicalize-lgpl.c: Update.
32631 * modules/clean-temp (Depends-on): Update.
32632 * lib/clean-temp.c: Update.
32633 * modules/csharpcomp (Depends-on): Update.
32634 * lib/csharpcomp.c: Update.
32635 * modules/csharpexec (Depends-on): Update.
32636 * lib/csharpexec.c: Update.
32637 * modules/javacomp (Depends-on): Update.
32638 * lib/javacomp.c: Update.
32639 * modules/javaexec (Depends-on): Update.
32640 * lib/javaexec.c: Update.
32641 * modules/mbscasestr (Depends-on): Update.
32642 * lib/mbscasestr.c: Update.
32643 * modules/mbsstr (Depends-on): Update.
32644 * lib/mbsstr.c: Update.
32645 * modules/setenv (Depends-on): Update.
32646 * lib/setenv.c: Update.
32647 * modules/strcasestr (Depends-on): Update.
32648 * lib/strcasestr.c: Update.
32649 * modules/striconveha (Depends-on): Update.
32650 * lib/striconveha.c: Update.
32651 * modules/relocatable-prog-wrapper (Files): Update.
32652 * lib/relocwrapper.c: Update.
32653 * build-aux/install-reloc: Update.
32654 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
32656 2007-06-08 Bruno Haible <bruno@clisp.org>
32659 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
32660 * lib/fpurge.c (fpurge): Likewise.
32661 * lib/freading.c (freading): Likewise.
32662 * lib/fseeko.c (rpl_fseeko): Likewise.
32663 * lib/fseterr.c (fseterr): Likewise.
32664 * lib/fwriting.c (fwriting): Likewise.
32665 * tests/test-fflush.c (main): Avoid a failure on uClibc.
32667 2007-06-08 Bruno Haible <bruno@clisp.org>
32669 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
32670 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
32671 * modules/gettext (Files): Add m4/intlmacosx.m4.
32673 2007-06-07 Bruno Haible <bruno@clisp.org>
32675 * modules/localename-tests: New file.
32676 * tests/test-localename.c: New file.
32678 New module 'localename'.
32679 * lib/localename.h: New file.
32680 * lib/localename.c: New file, from GNU gettext.
32681 * m4/localename.m4: New file.
32682 * modules/localename: New file.
32684 2007-06-07 Bruno Haible <bruno@clisp.org>
32686 Work around the lack of <wchar.h> on some builds of uClibc.
32687 * doc/headers/wchar.texi: Update.
32688 * lib/wchar_.h: Include <wchar.h> only if it exists.
32689 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
32690 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
32691 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
32693 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
32694 * modules/mbfile (Depends-on): Add wchar.
32695 * modules/mbiter (Depends-on): Likewise.
32696 * modules/mbuiter (Depends-on): Likewise.
32697 Reported by Simon Josefsson.
32699 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
32701 Work around problem reported by Steven M. Schweda in
32702 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
32703 Tru64 5.1B with the Compaq compiler environment installed declares
32704 an 'isblank' function but does not define it in the C library.
32705 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
32706 * lib/regex_internal.h (isblank): Likewise.
32707 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
32708 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32710 2007-06-05 Bruno Haible <bruno@clisp.org>
32712 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
32714 * modules/printf-safe: New file.
32715 * modules/fprintf-posix (Depends-on): Add printf-safe.
32716 * modules/printf-posix (Depends-on): Likewise.
32717 * modules/snprintf-posix (Depends-on): Likewise.
32718 * modules/sprintf-posix (Depends-on): Likewise.
32719 * modules/vasnprintf-posix (Depends-on): Likewise.
32720 * modules/vasprintf-posix (Depends-on): Likewise.
32721 * modules/vfprintf-posix (Depends-on): Likewise.
32722 * modules/vprintf-posix (Depends-on): Likewise.
32723 * modules/vsnprintf-posix (Depends-on): Likewise.
32724 * modules/vsprintf-posix (Depends-on): Likewise.
32725 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
32726 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
32727 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
32728 "no" on i386, x86_64, ia64.
32729 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
32730 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32731 on i386, x86_64, ia64.
32732 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
32733 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32734 on i386, x86_64, ia64.
32735 * tests/test-vasnprintf-posix.c: Include float.h.
32736 (LDBL80_WORDS): New macro.
32737 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32738 on i386, x86_64, ia64.
32739 * tests/test-vasprintf-posix.c: Include float.h.
32740 (LDBL80_WORDS): New macro.
32741 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32742 on i386, x86_64, ia64.
32743 * tests/test-snprintf-posix.c: Include float.h.
32744 * tests/test-sprintf-posix.c: Likewise.
32745 * tests/test-vsnprintf-posix.c: Likewise.
32746 * tests/test-vsprintf-posix.c: Likewise.
32748 2007-06-05 Bruno Haible <bruno@clisp.org>
32750 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
32751 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
32752 non-IEEE numbers on i386, x86_64, ia64.
32753 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
32754 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
32755 * tests/test-isnanl.h: Include float.h.
32756 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
32758 2007-06-05 Bruno Haible <bruno@clisp.org>
32760 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
32761 also the %a / %A. Handle the %a / %A code before this extra handling.
32763 2007-06-05 Bruno Haible <bruno@clisp.org>
32765 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
32766 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
32768 2007-06-05 Bruno Haible <bruno@clisp.org>
32770 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
32771 typo in variable name.
32773 2007-06-05 Eric Blake <ebb9@byu.net>
32775 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
32776 Reported by Simon Josefsson.
32778 2007-06-04 Bruno Haible <bruno@clisp.org>
32780 Avoid test failures on some PowerPC platforms.
32781 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
32782 Define differently for PowerPC.
32783 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
32784 Reported by Gary V. Vaughan <gary@gnu.org>.
32786 2007-06-02 Bruno Haible <bruno@clisp.org>
32788 Fix test-stdint failure on FreeBSD/ia64.
32789 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
32790 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
32791 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
32792 * doc/headers/stdint.texi: Update.
32794 2007-06-01 Bruno Haible <bruno@clisp.org>
32796 * tests/test-binary-io.c (main): Pass a third argument to open().
32797 Reported by Gary V. Vaughan <gary@gnu.org>.
32799 2007-06-01 Bruno Haible <bruno@clisp.org>
32801 * doc/functions/frexpl.texi: Update for mingw.
32803 2007-06-01 Bruno Haible <bruno@clisp.org>
32805 * tests/test-lseek.c (main): Disable test of errno for invalid third
32807 * doc/functions/lseek.texi: Update.
32808 Reported by Gary V. Vaughan <gary@gnu.org>.
32810 2007-05-28 Bruno Haible <bruno@clisp.org>
32812 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
32814 2007-05-31 Eric Blake <ebb9@byu.net>
32816 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
32819 2007-05-30 Eric Blake <ebb9@byu.net>
32820 and Bruno Haible <bruno@clisp.org>
32822 Work around mingw test failures exposed by m4-1.4.9b.
32823 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
32824 * tests/test-unistd.c: Disable uid_t and git_t tests for the
32827 2007-05-30 Bruno Haible <bruno@clisp.org>
32829 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
32830 assuming that they are closed. Needed on HP-UX 11.
32832 2007-05-29 Bruno Haible <bruno@clisp.org>
32834 Fix a problem with #include_next.
32835 * lib/dirent_.h: Split the double-inclusion guard.
32836 * lib/fcntl_.h: Likewise.
32837 * lib/float_.h: Likewise.
32838 * lib/iconv_.h: Likewise.
32839 * lib/inttypes_.h: Likewise.
32840 * lib/locale_.h: Likewise.
32841 * lib/math_.h: Likewise.
32842 * lib/netinet_in_.h: Likewise.
32843 * lib/search_.h: Likewise.
32844 * lib/signal_.h: Likewise.
32845 * lib/stdint_.h: Likewise.
32846 * lib/stdio_.h: Likewise.
32847 * lib/stdlib_.h: Likewise.
32848 * lib/string_.h: Likewise.
32849 * lib/sys_select_.h: Likewise.
32850 * lib/sys_socket_.h: Likewise.
32851 * lib/sys_stat_.h: Likewise.
32852 * lib/sys_time_.h: Likewise.
32853 * lib/sysexits_.h: Likewise.
32854 * lib/time_.h: Likewise.
32855 * lib/unistd_.h: Likewise.
32856 * lib/wchar_.h: Likewise.
32857 * lib/wctype_.h: Likewise.
32859 2007-05-29 Bruno Haible <bruno@clisp.org>
32861 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
32864 2007-05-29 Bruno Haible <bruno@clisp.org>
32866 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
32868 Reported by Eric Blake.
32870 2007-05-29 Bruno Haible <bruno@clisp.org>
32872 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
32875 2007-05-29 Eric Blake <ebb9@byu.net>
32876 Bruno Haible <bruno@clisp.org>
32878 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
32881 2007-05-28 Eric Blake <ebb9@byu.net>
32883 * modules/closein-tests (test_closein_LDADD): Support test on
32884 cygwin with libtool.
32886 2007-05-28 Bruno Haible <bruno@clisp.org>
32888 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
32889 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
32890 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
32891 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
32892 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
32893 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
32894 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
32895 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
32896 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
32898 2007-05-28 Eric Blake <ebb9@byu.net>
32900 Unconditionally include <config.h> in unit tests.
32901 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
32902 * tests/test-allocsa.c, tests/test-arcfour.c,
32903 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
32904 tests/test-array_list.c, tests/test-array_oset.c,
32905 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
32906 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
32907 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
32908 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
32909 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
32910 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
32911 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
32912 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
32913 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
32914 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
32915 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
32916 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
32917 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
32918 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
32919 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
32920 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
32921 test-md5.c, test-memmem.c, test-printf-posix.c,
32922 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
32923 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
32924 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
32925 test-strcasestr.c, test-striconv.c, test-striconveh.c,
32926 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
32927 test-vasnprintf-posix2.c, test-vasnprintf.c,
32928 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
32929 test-vfprintf-posix.c, test-vprintf-posix.c,
32930 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
32931 test-xvasprintf.c: Likewise.
32933 2007-05-28 Bruno Haible <bruno@clisp.org>
32935 * gnulib-tool (func_import): Remember the --with-tests command-line
32936 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
32937 Reported by Eric Blake.
32939 2007-05-28 Bruno Haible <bruno@clisp.org>
32941 * modules/ftell-tests: New file.
32942 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
32943 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
32945 * lib/ftell.c: New file.
32946 * modules/ftell: New file.
32947 * m4/ftell.m4: New file.
32948 * doc/functions/ftell.texi: Update.
32949 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
32951 * lib/stdio_.h (rpl_ftell): New declaration.
32952 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
32955 2007-05-28 Eric Blake <ebb9@byu.net>
32957 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
32959 2007-05-28 Bruno Haible <bruno@clisp.org>
32961 * modules/fseek-tests: New file.
32962 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
32963 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
32965 * lib/fseek.c: New file.
32966 * modules/fseek: New file.
32967 * m4/fseek.m4: New file.
32968 * doc/functions/fseek.texi: Update.
32969 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
32971 * lib/stdio_.h (rpl_fseek): New declaration.
32972 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
32975 2007-05-28 Bruno Haible <bruno@clisp.org>
32977 * lib/stdio_.h (fflush): More comments.
32979 2007-05-28 Bruno Haible <bruno@clisp.org>
32981 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
32984 2007-05-28 Eric Blake <ebb9@byu.net>
32986 Improve lseek module.
32987 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
32988 * lib/unistd_.h (lseek): Scale back link warning message.
32989 * tests/test-lseek.c: Beef up test.
32990 * tests/test-lseek.sh: Exercise more facets of lseek.
32991 Reported by Bruno Haible.
32993 2007-05-28 Bruno Haible <bruno@clisp.org>
32995 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
32998 2007-05-27 Bruno Haible <bruno@clisp.org>
33000 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
33002 2007-05-27 Bruno Haible <bruno@clisp.org>
33004 * modules/openmp: New file.
33005 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
33008 2007-05-26 Bruno Haible <bruno@clisp.org>
33010 * modules/chdir-long (Depends-on): Add fchdir.
33011 * modules/chdir-safer (Depends-on): Likewise.
33012 * modules/fts (Depends-on): Likewise.
33013 * modules/fts-lgpl (Depends-on): Likewise.
33014 * modules/openat (Depends-on): Likewise.
33015 * modules/savewd (Depends-on): Likewise.
33017 2007-05-24 Eric Blake <ebb9@byu.net>
33019 Fix lseek on mingw.
33020 * modules/lseek: New module.
33021 * m4/lseek.m4: New file.
33022 * lib/lseek.c: New file.
33023 * modules/lseek-tests: New file.
33024 * tests/test-lseek.c: New file.
33025 * tests/test-lseek.sh: New file.
33026 * MODULES.html.sh: Document lseek module.
33027 * modules/fflush (Depends-on): Add lseek, fseeko.
33028 * modules/fseeko (Depends-on): Likewise.
33029 * modules/ftello (Depends-on): Likewise.
33030 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
33032 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
33034 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
33035 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
33036 * lib/ftello.c (rpl_ftello): Likewise.
33037 * tests/test-fseeko.c (main): Test this.
33038 * tests/test-fseeko.sh: Likewise.
33039 * tests/test-ftello.c (main): Likewise.
33040 * tests/test-ftello.sh: Likewise.
33041 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
33042 implies replacing fseek.
33043 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
33045 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
33046 * modules/unistd (Makefile.am): Likewise.
33047 * lib/unistd_.h (lseek): Declare a replacement.
33048 * doc/functions/lseek.texi (lseek): Document this fix.
33049 * doc/functions/fseek.texi (fseek): Likewise.
33050 * doc/functions/ftell.texi (ftell): Likewise.
33052 2007-05-24 Bruno Haible <bruno@clisp.org>
33054 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
33055 in the printed representation of a NaN.
33056 * tests/test-vasprintf-posix.c (test_function): Likewise.
33057 * tests/test-snprintf-posix.h (test_function): Likewise.
33058 * tests/test-sprintf-posix.h (test_function): Likewise.
33059 Reported by Eric Blake.
33061 2007-05-23 Eric Blake <ebb9@byu.net>
33063 Fix fseeko/ftello on cygwin 1.5.24.
33064 * doc/functions/fseeko.texi (fseeko): Document the fix.
33065 * doc/functions/ftello.texi (ftello): Document the fix.
33066 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
33067 * doc/functions/stdout.text (stdout): New file.
33068 * doc/functions/stderr.text (stderr): New file.
33069 * doc/gnulib.texi (Function Substitutes): Use new files.
33070 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
33072 * tests/test-ftello.c (main): Likewise for ftello.
33073 * tests/test-fseeko.sh: New file.
33074 * tests/test-ftello.sh: New file.
33075 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
33076 with seekable stdin.
33077 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
33078 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
33079 (gl_REPLACE_FSEEKO): New macro.
33080 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
33081 * modules/fseeko (Files): Distribute fseeko.c.
33082 * modules/ftello (Files): Distribute ftello.c.
33083 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
33085 * lib/ftello.c (rpl_ftello): New file.
33086 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
33088 (gl_STDIN_LARGE_OFFSET): New macro.
33089 * modules/stdio (Makefile.am): Perform the replacement.
33090 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
33092 2007-05-23 Bruno Haible <bruno@clisp.org>
33094 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
33095 GNULIB_POSIXCHECK is defined.
33097 2007-05-21 Bruno Haible <bruno@clisp.org>
33099 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
33100 Check also the output for NaN arguments. When cross-compiling, guess
33102 * lib/vasnprintf.c: Update comments.
33103 * tests/test-vasnprintf-posix.c (strisnan): New function.
33104 (test_function): Use it.
33105 * tests/test-vasprintf-posix.c (strisnan): New function.
33106 (test_function): Use it.
33107 * tests/test-snprintf-posix.h (strisnan): New function.
33108 (test_function): Use it.
33109 * tests/test-sprintf-posix.h (strisnan): New function.
33110 (test_function): Use it.
33111 Reported by Eric Blake.
33113 2007-05-20 Bruno Haible <bruno@clisp.org>
33115 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
33116 numbers that fails on BeOS.
33117 * doc/functions/frexpl.texi: Update.
33119 2007-05-20 Jim Meyering <jim@meyering.net>
33121 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
33122 forced upon us by glibc-2.6.
33124 2007-05-20 Bruno Haible <bruno@clisp.org>
33126 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
33127 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
33128 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
33129 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
33130 NEED_PRINTF_INFINITE.
33131 (is_infinitel): New function.
33132 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
33133 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
33134 gl_PREREQ_VASNPRINTF_INFINITE.
33135 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
33136 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33137 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
33138 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
33139 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
33140 gl_PREREQ_VASNPRINTF_INFINITE.
33141 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33142 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33143 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33144 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33145 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33146 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33147 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33148 * doc/functions/fprintf.texi: Update.
33149 * doc/functions/printf.texi: Update.
33150 * doc/functions/snprintf.texi: Update.
33151 * doc/functions/sprintf.texi: Update.
33152 * doc/functions/vfprintf.texi: Update.
33153 * doc/functions/vprintf.texi: Update.
33154 * doc/functions/vsnprintf.texi: Update.
33155 * doc/functions/vsprintf.texi: Update.
33157 2007-05-20 Bruno Haible <bruno@clisp.org>
33159 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
33160 was not found in libc.
33161 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
33163 2007-05-20 Bruno Haible <bruno@clisp.org>
33165 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33166 printed as "-nan" instead of "nan".
33167 * tests/test-vasprintf-posix.c (test_function): Likewise.
33168 * tests/test-snprintf-posix.h (test_function): Likewise.
33169 * tests/test-sprintf-posix.h (test_function): Likewise.
33170 Needed for HP-UX 11.
33172 2007-05-20 Jim Meyering <jim@meyering.net>
33174 Fix buggy test for the fchownat-deref bug.
33175 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
33176 symlink required for the run-test. Without it, this test would
33177 always declare that fchownat doesn't work, and client code would
33178 unnecessarily use the replacement function with fixed libc.
33179 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
33180 Reported by Greg Schafer.
33182 2007-05-19 Bruno Haible <bruno@clisp.org>
33184 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
33185 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
33186 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
33187 Needed for IRIX 6.5 and Solaris 2.5.1.
33189 2007-05-19 Bruno Haible <bruno@clisp.org>
33191 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
33192 (test_function): Skip tests involving -0.0 on platforms where
33194 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
33195 (test_function): Skip tests involving -0.0 on platforms where
33197 * tests/test-snprintf-posix.h (have_minus_zero): New function.
33198 (test_function): Skip tests involving -0.0 on platforms where
33200 * tests/test-sprintf-posix.h (have_minus_zero): New function.
33201 (test_function): Skip tests involving -0.0 on platforms where
33203 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
33205 * tests/test-printf-posix.h (test_function): Likewise.
33206 * tests/test-printf-posix.output: Remove all -0.0 related results.
33207 Needed for IRIX 6.5.
33209 2007-05-19 Bruno Haible <bruno@clisp.org>
33211 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33212 printed as "nan0x7fffffff" instead of "nan".
33213 * tests/test-vasprintf-posix.c (test_function): Likewise.
33214 * tests/test-snprintf-posix.h (test_function): Likewise.
33215 * tests/test-sprintf-posix.h (test_function): Likewise.
33216 * tests/test-fprintf-posix.h (NaN): Remove macro.
33217 (test_function): Remove all NaN related tests.
33218 * tests/test-printf-posix.h (NaN): Remove macro.
33219 (test_function): Remove all NaN related tests.
33220 * tests/test-printf-posix.output: Remove all NaN related results.
33221 Needed for IRIX 6.5.
33223 2007-05-19 Bruno Haible <bruno@clisp.org>
33225 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
33226 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
33228 2007-05-19 Bruno Haible <bruno@clisp.org>
33230 * lib/float_.h: New file.
33231 * m4/float_h.m4: New file.
33232 * modules/float: New file.
33233 * modules/isnanl (Dependencies): Add float.
33234 * modules/isnanl-nolibm (Dependencies): Likewise.
33235 * modules/mathl (Dependencies): Likewise.
33236 * modules/printf-frexpl (Dependencies): Likewise.
33237 * modules/signbit (Dependencies): Likewise.
33238 * modules/vasnprintf (Dependencies): Likewise.
33239 * doc/headers/float.texi: Update.
33241 2007-05-19 Jim Meyering <jim@meyering.net>
33243 * lib/utimens.c (gl_futimens): Rename from futimens,
33244 now that glibc-2.6 declares futimens.
33245 * lib/utimens.h: Likewise.
33247 2007-05-19 Bruno Haible <bruno@clisp.org>
33249 Avoid test failures on mingw.
33250 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
33251 * tests/test-printf-posix.sh: Likewise.
33252 * tests/test-vfprintf-posix.sh: Likewise.
33253 * tests/test-vprintf-posix.sh: Likewise.
33255 2007-05-19 Bruno Haible <bruno@clisp.org>
33257 Fix *printf result for NaN, Inf, -0.0 on mingw.
33258 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
33259 * lib/vasnprintf.c: Include math.h and isnan.h.
33260 (is_infinite_or_zero): New function.
33261 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
33262 values in the %f, %F, %e, %E, %g, %G directives.
33263 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
33264 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33265 gl_PRINTF_INFINITE and test its result. Invoke
33266 gl_PREREQ_VASNPRINTF_INFINITE.
33267 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33268 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33269 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33270 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33271 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33272 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33273 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33274 * doc/functions/fprintf.texi: Update.
33275 * doc/functions/printf.texi: Update.
33276 * doc/functions/snprintf.texi: Update.
33277 * doc/functions/sprintf.texi: Update.
33278 * doc/functions/vfprintf.texi: Update.
33279 * doc/functions/vprintf.texi: Update.
33280 * doc/functions/vsnprintf.texi: Update.
33281 * doc/functions/vsprintf.texi: Update.
33283 2007-05-19 Bruno Haible <bruno@clisp.org>
33285 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
33286 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
33287 Instead of multiplying with 10^k, set extra_zeroes to k.
33288 (scale10_round_long_double): Remove function.
33290 2007-05-18 Bruno Haible <bruno@clisp.org>
33292 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
33293 introduced on 2007-05-06.
33295 2007-05-18 Bruno Haible <bruno@clisp.org>
33297 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
33299 * tests/test-vasprintf-posix.c (test_function): Likewise.
33300 * tests/test-snprintf-posix.h (test_function): Likewise.
33301 * tests/test-sprintf-posix.h (test_function): Likewise.
33303 2007-05-18 Bruno Haible <bruno@clisp.org>
33305 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
33306 (strmatch): New function.
33307 (test_function): Test the %f directive on numbers of various exponents.
33308 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
33309 (strmatch): New function.
33310 (test_function): Test the %f directive on numbers of various exponents.
33311 * tests/test-snprintf-posix.h (strmatch): New function.
33312 (test_function): Test the %f directive on numbers of various exponents.
33313 * tests/test-sprintf-posix.h (strmatch): New function.
33314 (test_function): Test the %f directive on numbers of various exponents.
33315 * tests/test-snprintf-posix.c (SIZEOF): New macro.
33316 * tests/test-sprintf-posix.c (SIZEOF): New macro.
33317 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
33318 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
33320 2007-05-18 Bruno Haible <bruno@clisp.org>
33322 Add support for 'long double' number output.
33323 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
33324 * lib/vasnprintf.c: Include math.h and float+.h.
33325 (mp_limb_t): New type.
33326 (GMP_LIMB_BITS): New macro.
33327 (mp_twolimb_t): New type.
33328 (GMP_TWOLIMB_BITS): New macro.
33330 (multiply, divide, convert_to_decimal, decode_long_double,
33331 scale10_round_long_double, scale10_round_decimal_long_double,
33332 floorlog10l): New functions.
33333 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
33334 for the %f, %F, %e, %E, %g, %G directives.
33335 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
33336 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33337 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
33338 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
33339 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33340 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33341 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33342 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33343 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33344 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33345 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33346 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
33347 * modules/snprintf-posix (Depends-on): Likewise.
33348 * modules/sprintf-posix (Depends-on): Likewise.
33349 * modules/vasnprintf-posix (Depends-on): Likewise.
33350 * modules/vasprintf-posix (Depends-on): Likewise.
33351 * modules/vfprintf-posix (Depends-on): Likewise.
33352 * modules/vsnprintf-posix (Depends-on): Likewise.
33353 * modules/vsprintf-posix (Depends-on): Likewise.
33354 * modules/vasnprintf (Files): Add lib/float+.h.
33355 * doc/functions/fprintf.texi: Update.
33356 * doc/functions/printf.texi: Update.
33357 * doc/functions/snprintf.texi: Update.
33358 * doc/functions/sprintf.texi: Update.
33359 * doc/functions/vfprintf.texi: Update.
33360 * doc/functions/vprintf.texi: Update.
33361 * doc/functions/vsnprintf.texi: Update.
33362 * doc/functions/vsprintf.texi: Update.
33364 2007-05-18 Bruno Haible <bruno@clisp.org>
33366 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
33368 2007-05-18 Bruno Haible <bruno@clisp.org>
33370 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
33371 for printing 64-bit integers. Needed for mingw.
33373 2007-05-18 Bruno Haible <bruno@clisp.org>
33375 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
33376 gl_FUNC_FREXPL_WORKS.
33377 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
33379 2007-05-18 Bruno Haible <bruno@clisp.org>
33381 * modules/frexpl-nolibm-tests: New file.
33383 * modules/frexpl-nolibm: New file.
33384 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
33386 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
33388 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
33389 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
33390 GCC 4.2, which otherwise issues a lot of warnings.
33391 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
33392 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
33394 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
33395 * modules/iconv_open (iconv.h): Likewise.
33396 * modules/locale (locale.h): Likewise.
33397 * modules/netinet_in (netinet/in.h): Likewise.
33398 * modules/sys_select (sys_select.h): Likewise.
33399 * modules/sys_socket (sys/socket.h): Likewise.
33400 * modules/sys_stat (sys/stat.h): Likewise.
33401 * modules/sysexits (sysexits.h): Likewise.
33402 * modules/unistd (unistd.h): Likewise.
33404 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33406 * modules/closein-tests (Makefile.am): Distribute
33409 2007-05-17 Bruno Haible <bruno@clisp.org>
33411 * tests/test-printf-posix.output: Renamed from
33412 tests/test-fprintf-posix.out.
33413 * modules/fprintf-posix-tests: Update.
33414 * modules/printf-posix-tests: Update.
33415 * modules/vfprintf-posix-tests: Update.
33416 * modules/vprintf-posix-tests: Update.
33417 * tests/test-fprintf-posix.sh: Update.
33418 * tests/test-printf-posix.sh: Update.
33419 * tests/test-vfprintf-posix.sh: Update.
33420 * tests/test-vprintf-posix.sh: Update.
33421 Reported by Ralf Wildenhues.
33423 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
33425 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
33426 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
33427 GCC 4.2, which otherwise issues a lot of warnings.
33428 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
33429 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
33430 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
33431 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
33432 it should no longer be needed.
33433 * lib/string_.h: Likewise.
33434 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
33435 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
33436 * modules/inttypes (inttypes.h): Likewise.
33437 * modules/math (math.h): Likewise.
33438 * modules/search (search.h): Likewise.
33439 * modules/signal (signal.h): Likewise.
33440 * modules/stdint (stdint.h): Likewise.
33441 * modules/stdio (stdio.h): Likewise.
33442 * modules/stdlib (stdlib.h): Likewise.
33443 * modules/string (string.h): Likewise.
33444 * modules/sys_time (sys/time.h): Likewise.
33445 * modules/time (time.h): Likewise.
33446 * modules/wchar (wchar.h): Likewise.
33447 * modules/wctype (wtype.h): Likewise.
33449 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
33451 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
33453 2007-05-13 Bruno Haible <bruno@clisp.org>
33455 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
33456 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
33457 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
33458 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
33459 (gl_PREREQ_STRTOK_R): Don't require it here.
33461 2007-05-13 Bruno Haible <bruno@clisp.org>
33463 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
33464 when used in C++ mode.
33466 2007-05-12 Bruno Haible <bruno@clisp.org>
33468 * lib/linebuffer.h: Tweak doc.
33469 * lib/linebuffer.c: Likewise.
33471 2007-05-12 James Youngman <jay@gnu.org>
33473 * lib/linebuffer.c (readlinebuffer_delim): New function,
33474 like readlinebuffer, but use a caller-specified delimiter.
33475 (readlinebuffer): Just call readlinebuffer_delim with '\n'
33477 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
33479 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
33481 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
33482 * modules/openat (Files): Remove openat-die.c.
33483 (Depends-on): Add openat-die.
33484 * modules/openat-die: New module.
33486 2007-05-06 Bruno Haible <bruno@clisp.org>
33488 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
33489 Update with info about Cygwin.
33490 * doc/functions/fprintf.texi: Update.
33491 * doc/functions/printf.texi: Update.
33492 * doc/functions/snprintf.texi: Update.
33493 * doc/functions/sprintf.texi: Update.
33494 * doc/functions/vfprintf.texi: Update.
33495 * doc/functions/vprintf.texi: Update.
33496 * doc/functions/vsnprintf.texi: Update.
33497 * doc/functions/vsprintf.texi: Update.
33498 Reported by Eric Blake.
33500 2007-05-06 Bruno Haible <bruno@clisp.org>
33502 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
33503 padding ourselves for the floating-point directives.
33504 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
33505 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
33506 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33507 gl_PRINTF_FLAG_ZERO and test its result. Invoke
33508 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
33509 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33510 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
33511 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33512 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33513 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33514 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33515 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33516 * tests/test-snprintf-posix.h (test_function): Also check the width
33517 and some flags in the %f directive.
33518 * tests/test-sprintf-posix.h (test_function): Likewise.
33519 * tests/test-vasnprintf-posix.c (test_function): Likewise.
33520 * tests/test-vasprintf-posix.c (test_function): Likewise.
33521 * doc/functions/fprintf.texi: Update.
33522 * doc/functions/printf.texi: Update.
33523 * doc/functions/snprintf.texi: Update.
33524 * doc/functions/sprintf.texi: Update.
33525 * doc/functions/vfprintf.texi: Update.
33526 * doc/functions/vprintf.texi: Update.
33527 * doc/functions/vsnprintf.texi: Update.
33528 * doc/functions/vsprintf.texi: Update.
33530 2007-05-06 Bruno Haible <bruno@clisp.org>
33532 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
33533 pass the ' flag character to sprintf or snprintf.
33534 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
33535 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
33536 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33537 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
33538 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
33539 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33540 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
33541 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33542 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33543 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33544 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33545 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33546 * tests/test-snprintf-posix.h (test_function): Also check the grouping
33548 * tests/test-sprintf-posix.h (test_function): Likewise.
33549 * tests/test-vasnprintf-posix.c (test_function): Likewise.
33550 * tests/test-vasprintf-posix.c (test_function): Likewise.
33551 * doc/functions/fprintf.texi: Update.
33552 * doc/functions/printf.texi: Update.
33553 * doc/functions/snprintf.texi: Update.
33554 * doc/functions/sprintf.texi: Update.
33555 * doc/functions/vfprintf.texi: Update.
33556 * doc/functions/vprintf.texi: Update.
33557 * doc/functions/vsnprintf.texi: Update.
33558 * doc/functions/vsprintf.texi: Update.
33560 2007-05-01 Bruno Haible <bruno@clisp.org>
33562 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
33564 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
33566 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
33567 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
33569 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
33571 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
33572 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
33573 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
33575 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
33577 * lib/argp-help.c (struct hol_entry): New member `ord'.
33578 (HOL_ENTRY_PTRCMP): Use ord for comparison
33579 (hol_sort): Initialize ord.
33581 2007-05-01 Bruno Haible <bruno@clisp.org>
33583 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
33584 Reported by Eric Blake.
33585 * doc/gnulib.texi (Function Substitutes): Update.
33587 2007-05-01 Bruno Haible <bruno@clisp.org>
33589 * doc/functions.texi: Remove file, now redundant through
33590 doc/functions/*.texi.
33592 2007-05-01 Bruno Haible <bruno@clisp.org>
33594 * modules/argp (Depends-on): Add sleep.
33596 2007-05-01 Bruno Haible <bruno@clisp.org>
33598 * modules/sleep-tests: New file.
33599 * tests/test-sleep.c: New file.
33601 * modules/sleep: New file.
33602 * lib/sleep.c: New file.
33603 * m4/sleep.m4: New file.
33604 * lib/unistd_.h (sleep): New declaration.
33605 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
33607 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
33608 * doc/functions/sleep.texi: Document the sleep module.
33610 2007-05-01 Bruno Haible <bruno@clisp.org>
33612 * lib/sigprocmask.h: Remove file.
33613 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
33614 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
33615 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
33616 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
33617 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
33618 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
33619 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
33620 HAVE_SIGSET_T as a shell variable.
33621 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
33622 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
33623 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
33624 (Depends-on): Add signal. Remove verify.
33625 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
33626 (Include): Mention <signal.h> instead of sigprocmask.h.
33627 * NEWS: Mention the change.
33628 * lib/fatal-signal.c: Don't include sigprocmask.h.
33630 2007-05-01 Bruno Haible <bruno@clisp.org>
33632 * modules/signal: New file.
33633 * lib/signal_.h: New file.
33634 * m4/signal_h.m4: New file.
33636 2007-05-01 Bruno Haible <bruno@clisp.org>
33638 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
33639 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
33640 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
33641 HAVE_WCTYPE_CTMP_BUG into wctype.h.
33643 2007-05-01 Bruno Haible <bruno@clisp.org>
33645 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
33647 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
33648 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
33649 * modules/sys_stat (Makefile.am): Substitute their values into
33652 2007-05-01 Bruno Haible <bruno@clisp.org>
33654 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
33655 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
33656 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
33658 2007-05-01 Bruno Haible <bruno@clisp.org>
33660 * doc/header/assert.texi: Undo last change: don't mention the gnulib
33661 'assert' module here.
33663 2007-05-01 Bruno Haible <bruno@clisp.org>
33665 * doc/functions/*.texi: New files.
33666 * doc/functions/google-ranking.txt: New file.
33667 * doc/gnulib.texi (Function Substitutes): New chapter.
33668 (ctime, inet_ntoa): Remove sections.
33669 * doc/ctime.texi: Remove file.
33670 * doc/inet_ntoa.texi: Remove file.
33671 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
33673 (%.info): New rule, specifying a --reference-limit.
33675 2007-05-01 Bruno Haible <bruno@clisp.org>
33677 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
33679 2007-05-01 Bruno Haible <bruno@clisp.org>
33681 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
33682 the portability of 'mkdir' to mingw systems.
33684 2007-05-01 Bruno Haible <bruno@clisp.org>
33686 * doc/headers/google-ranking.txt: New file.
33688 2007-04-30 Eric Blake <ebb9@byu.net>
33690 Prefer fseeko to fseek.
33691 * modules/getpass (Depends-on): Add fseeko.
33692 * lib/getpass.c (getpass): Use fseeko, not fseek.
33694 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
33696 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
33697 assumes the sorting is stable, while most qsort implementations
33698 are not. Use argument addresses to ensure they never compare as
33701 * tests/test-argp-2.sh (usage-indent test): Fix output
33702 (func_compare): Restore diff options
33703 * tests/test-argp.c: Restore #include "progname.h"
33705 2007-04-29 Bruno Haible <bruno@clisp.org>
33707 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
33708 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33709 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
33710 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33711 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
33712 (configure.ac): Define CHECK_SNPRINTF_POSIX.
33713 (TESTS, check_PROGRAMS): Add test-snprintf.
33714 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
33715 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
33716 (TESTS, check_PROGRAMS): Add test-vsnprintf.
33717 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
33718 assertions that fail on HP-UX, OSF/1, or IRIX.
33719 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
33721 2007-04-29 Bruno Haible <bruno@clisp.org>
33723 * MODULES.html.sh (posix_functions): Remove 'contents'.
33725 2007-04-29 Karl Berry <karl@gnu.org>
33727 * config/srclist.txt (gendocs_template_min): new entry.
33729 2007-04-29 Bruno Haible <bruno@clisp.org>
33731 Work around fpurge bug on BSD systems.
33732 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
33733 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
33734 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
33735 fpurge to rpl_fpurge if the system already has this function.
33736 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
33737 the case where the system already has this function. Correct invariants
33739 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
33742 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
33744 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
33745 proposed by Sven Verdoolaege.
33747 * tests/test-argp.c: Fix option ordering. Test deeply clustered
33749 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
33750 (usage and help tests): Update
33752 2007-04-29 Bruno Haible <bruno@clisp.org>
33754 * tests/test-fflush.c (main): Use a file of size 17, not 10.
33755 Print more information in case of failure. Disable a test on BeOS.
33757 2007-04-29 Bruno Haible <bruno@clisp.org>
33759 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
33760 This helps debugging on systems on which no gdb is available.
33762 2007-04-29 Bruno Haible <bruno@clisp.org>
33764 * lib/freading.h: Improve comments.
33765 * lib/fwriting.h: Likewise.
33766 * tests/test-freading.c (main): Don't check freading immediately after
33767 repositioning. Needed for glibc.
33769 2007-04-29 Bruno Haible <bruno@clisp.org>
33771 * lib/freading.c (freading): Trivial simplification.
33773 2007-04-28 Bruno Haible <bruno@clisp.org>
33775 * tests/test-fwriting.c (main): Also test the interaction between
33776 fflush and fwriting.
33777 * modules/fwriting-tests (Depends-on): Add fflush.
33779 * tests/test-freading.c (main): Also test the interaction between
33780 fflush and freading.
33781 * modules/freading-tests (Depends-on): Add fflush.
33783 2007-04-28 Bruno Haible <bruno@clisp.org>
33785 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
33787 Suggested by Eric Blake.
33789 2007-04-28 Jim Meyering <jim@meyering.net>
33791 Avoid false-negative in gl_STDINT_H's C99 conformance test.
33792 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
33793 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
33795 2007-04-27 Eric Blake <ebb9@byu.net>
33797 * doc/headers/assert.texi (assert.h): Document assert module use.
33799 2007-04-27 Bruno Haible <bruno@clisp.org>
33801 * doc/headers/*.texi: New files.
33802 * doc/gnulib.texi (Header File Substitutes): New chapter.
33803 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
33805 (standards.info ,standards.html, standards.dvi): Update dependencies.
33806 (mostlyclean, clean): New targets.
33808 2007-04-27 Bruno Haible <bruno@clisp.org>
33810 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
33811 * modules/sysexits (Files, Makefile.am): Update.
33813 * lib/sys_socket_.h: Renamed from lib/socket_.h.
33814 * modules/sys_socket (Files, Makefile.am): Update.
33816 * lib/sys_stat_.h: Renamed from lib/stat_.h.
33817 * modules/sys_stat (Files, Makefile.am): Update.
33819 2007-04-27 Eric Blake <ebb9@byu.net>
33821 * lib/freading.h: Improve comments.
33822 * lib/fwriting.h: Likewise.
33823 * lib/fflush.c: Likewise.
33825 Fix closein for mingw.
33826 * modules/closein-tests: Add tests for closein.
33827 * tests/test-closein.c: New file.
33828 * tests/test-closein.sh: Likewise.
33829 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
33830 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
33832 2007-04-27 Bruno Haible <bruno@clisp.org>
33834 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
33836 * lib/math_.h [__DECC]: Likewise.
33837 * lib/stdio_.h [__DECC]: Likewise.
33838 * lib/stdlib_.h [__DECC]: Likewise.
33839 * lib/string_.h [__DECC]: Likewise.
33840 * lib/time_.h [__DECC]: Likewise.
33841 * lib/wchar_.h [__DECC]: Likewise.
33842 * lib/wctype_.h [__DECC]: Likewise.
33844 2007-04-27 Bruno Haible <bruno@clisp.org>
33846 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
33848 2007-04-27 Bruno Haible <bruno@clisp.org>
33850 * lib/fflush.c: Add comments.
33851 * modules/fpurge-tests (Depends-on): Add fflush.
33852 * modules/freadable-tests (Depends-on): Likewise.
33853 * modules/fwritable-tests (Depends-on): Likewise.
33855 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
33857 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
33858 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
33859 Report by Bruno Haible <bruno@clisp.org>.
33861 2007-04-26 Eric Blake <ebb9@byu.net>
33863 Fix fflush on mingw.
33864 * modules/fflush (Depends-on): Add freading.
33865 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
33868 2007-04-26 Eric Blake <ebb9@byu.net>
33869 and Bruno Haible <bruno@clisp.org>
33871 Implement freading and fwriting.
33872 * lib/freading.c: New file.
33873 * lib/freading.h: Likewise.
33874 * m4/freading.m4: Likewise.
33875 * modules/freading: Likewise.
33876 * modules/freading-tests: Likewise.
33877 * tests/test-freading.c: Likewise.
33878 * lib/fwriting.c: New file.
33879 * lib/fwriting.h: Likewise.
33880 * m4/fwriting.m4: Likewise.
33881 * modules/fwriting: Likewise.
33882 * modules/fwriting-tests: Likewise.
33883 * tests/test-fwriting.c: Likewise.
33884 * MODULES.html.sh (File stream based Input/Output): Mention them.
33886 2007-04-26 Bruno Haible <bruno@clisp.org>
33888 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
33889 'long' when we assume it.
33890 Suggested by Eric Blake.
33892 2007-04-26 Bruno Haible <bruno@clisp.org>
33894 Ensure fseeko, ftello are declared on glibc systems.
33895 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
33896 * modules/fseeko (configure.ac-early): Likewise.
33897 * modules/ftello (configure.ac-early): Likewise.
33898 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
33899 AC_FUNC_FSEEKO for this.
33900 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
33901 (gl_CHECK_FSEEKO): Remove macro.
33903 2007-04-26 Bruno Haible <bruno@clisp.org>
33905 * tests/test-fflush.c (main): Also check the ftell result after
33906 fflush and fseek/fseeko.
33907 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
33908 file descriptor position cache in the stream.
33909 * lib/fseeko.c (rpl_fseeko): Likewise.
33911 2007-04-26 Bruno Haible <bruno@clisp.org>
33913 * modules/fflush-tests (Depends-on): Add fseeko.
33915 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
33916 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33918 * lib/argz_.h: ensure error_t definition is obtained in same
33919 mechanism system argz.h would have.
33920 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
33921 argz facilities are known bad. Err on the side of caution if
33924 2007-04-25 Eric Blake <ebb9@byu.net>
33926 * lib/fpurge.c (includes): Use stdlib.h for free.
33927 * tests/test-fflush.c (main): Also test fflush-fseeko.
33929 2007-04-25 Bruno Haible <bruno@clisp.org>
33931 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
33932 * lib/fseeko.c: New file.
33933 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
33934 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
33935 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
33937 (gl_FUNC_FSEEKO): Invoke it.
33938 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
33939 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
33940 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
33942 2007-04-25 Bruno Haible <bruno@clisp.org>
33944 * modules/fflush (Depends-on): Add ftello.
33946 2007-04-25 Bruno Haible <bruno@clisp.org>
33948 * modules/ftello-tests: New file.
33949 * tests/test-ftello.c: New file.
33951 * modules/ftello: New file.
33952 * m4/ftello.m4: New file.
33953 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
33955 * lib/stdio_.h (ftello): New declaration.
33956 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
33959 2007-04-25 Bruno Haible <bruno@clisp.org>
33961 * modules/fseeko-tests: New file.
33962 * tests/test-fseeko.c: New file.
33964 * modules/fseeko: New file.
33965 * m4/fseeko.m4: New file.
33966 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
33968 * lib/stdio_.h (fseeko): New declaration.
33969 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
33972 2007-04-25 Bruno Haible <bruno@clisp.org>
33974 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
33976 2007-04-25 Bruno Haible <bruno@clisp.org>
33978 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
33979 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
33980 * tests/test-unistd.c: Likewise.
33981 * tests/test-fcntl.c: Likewise.
33983 2007-04-23 Eric Blake <ebb9@byu.net>
33985 * lib/fflush.c: Fix missing include.
33986 Reported by Bruno Haible.
33988 2007-04-23 Bruno Haible <bruno@clisp.org>
33990 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
33991 Reported by Eric Blake.
33993 2007-04-23 Bruno Haible <bruno@clisp.org>
33995 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
33997 2007-04-23 Bruno Haible <bruno@clisp.org>
33999 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
34001 2007-04-23 Bruno Haible <bruno@clisp.org>
34003 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
34004 Needed on HP-UX 11.
34006 2007-04-16 Eric Blake <ebb9@byu.net>
34008 Make fflush rely on fpurge.
34009 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
34010 open coding all variants.
34011 * modules/fflush (Depends-on): Add fpurge and unistd.
34012 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
34013 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
34015 Fix --with-tests compilation on cygwin.
34016 * modules/argmatch-tests (Makefile.am): List gnulib library first
34018 * modules/argp-tests (Makefile.am): Likewise.
34019 * modules/array-list-tests (Makefile.am): Likewise.
34020 * modules/array-oset-tests (Makefile.am): Likewise.
34021 * modules/avltree-list-tests (Makefile.am): Likewise.
34022 * modules/avltree-oset-tests (Makefile.am): Likewise.
34023 * modules/avltreehash-list-tests (Makefile.am): Likewise.
34024 * modules/carray-list-tests (Makefile.am): Likewise.
34025 * modules/dirname-tests (Makefile.am): Likewise.
34026 * modules/frexp-tests (Makefile.am): Likewise.
34027 * modules/isnanl-tests (Makefile.am): Likewise.
34028 * modules/linked-list-tests (Makefile.am): Likewise.
34029 * modules/linkedhash-list-tests (Makefile.am): Likewise.
34030 * modules/lock-tests (Makefile.am): Likewise.
34031 * modules/rbtree-list-tests (Makefile.am): Likewise.
34032 * modules/rbtree-oset-tests (Makefile.am): Likewise.
34033 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
34034 * modules/tls-tests (Makefile.am): Likewise.
34035 * modules/tsearch-tests (Makefile.am): Likewise.
34036 * modules/xvasprintf-tests (Makefile.am): Likewise.
34038 Fix fpurge for cygwin.
34039 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
34041 * modules/fpurge-tests (Depends-on): Clean up trash.
34043 2007-04-16 Simon Josefsson <simon@josefsson.org>
34045 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
34047 * m4/autobuild.m4: Re-indent.
34049 2007-04-13 Bruno Haible <bruno@clisp.org>
34051 * modules/fpurge-tests: New file.
34052 * tests/test-fpurge.c: New file.
34054 * modules/fpurge: New file.
34055 * lib/fpurge.h: New file.
34056 * lib/fpurge.c: New file.
34057 * m4/fpurge.m4: New file.
34059 2007-04-13 Bruno Haible <bruno@clisp.org>
34061 * modules/fbufmode-tests: New file.
34062 * tests/test-fbufmode.c: New file.
34064 * modules/fbufmode: New file.
34065 * lib/fbufmode.h: New file.
34066 * lib/fbufmode.c: New file.
34067 * m4/fbufmode.m4: New file.
34069 2007-04-13 Bruno Haible <bruno@clisp.org>
34071 * modules/fwritable-tests: New file.
34072 * tests/test-fwritable.c: New file.
34074 * modules/fwritable: New file.
34075 * lib/fwritable.h: New file.
34076 * lib/fwritable.c: New file.
34077 * m4/fwritable.m4: New file.
34079 2007-04-13 Bruno Haible <bruno@clisp.org>
34081 * modules/freadable-tests: New file.
34082 * tests/test-freadable.c: New file.
34084 * modules/freadable: New file.
34085 * lib/freadable.h: New file.
34086 * lib/freadable.c: New file.
34087 * m4/freadable.m4: New file.
34089 2007-04-13 Bruno Haible <bruno@clisp.org>
34091 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
34094 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
34096 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
34097 gzip bootstrap.conf to avoid dragging in i18n machinery.
34098 (gnulib_tool_option): Use it.
34100 2007-04-13 Bruno Haible <bruno@clisp.org>
34102 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
34104 * tests/test-vasprintf-posix.c (test_function): Likewise.
34105 * tests/test-snprintf-posix.h (test_function): Likewise.
34106 * tests/test-sprintf-posix.h (test_function): Likewise.
34107 * tests/test-fprintf-posix.h (test_function): Likewise.
34108 * tests/test-printf-posix.h (test_function): Likewise.
34109 * tests/test-fprintf-posix.out: Likewise.
34111 2007-04-13 Bruno Haible <bruno@clisp.org>
34113 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
34114 * modules/tls-tests (configure.ac): Likewise.
34115 Reported by Arto C. Nirkko <anirkko@insel.ch>.
34117 2007-04-13 Bruno Haible <bruno@clisp.org>
34119 * lib/tls.c (glthread_tls_get): Fix return type.
34120 Patch by Arto C. Nirkko <anirkko@insel.ch>.
34122 2007-04-12 Eric Blake <ebb9@byu.net>
34124 * modules/gettime (Depends-on): Remove gettime.
34125 Reported by Dmitry V. Levin.
34127 2007-04-12 Bruno Haible <bruno@clisp.org>
34129 * modules/fflush (Include): Mention <stdio.h>.
34130 * modules/strtoimax (Include): Mention <inttypes.h>.
34131 * modules/strtoumax (Include): Likewise.
34133 2007-04-12 Eric Blake <ebb9@byu.net>
34135 * .cvsignore: New file.
34136 * .gitignore: Likewise.
34138 2007-04-12 Bruno Haible <bruno@clisp.org>
34140 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
34141 not before, since $(LDADD) often contains libgnu.a.
34142 * modules/striconv-tests (test_striconv_LDADD): Likewise.
34143 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
34144 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
34147 2007-04-12 Eric Blake <ebb9@byu.net>
34149 Work around glibc's failure to flush stdin on fclose.
34150 * lib/closein.c (close_stdin): Flush stdin before closing.
34152 Work around glibc's failure to reset seekable stdin on exit.
34153 * modules/closein: New module.
34154 * lib/closein.c: New file.
34155 * lib/closein.h: Likewise.
34156 * m4/closein.m4: Likewise.
34157 * MODULES.html.sh (File stream based Input/Output): Document it.
34159 2007-04-12 Simon Josefsson <simon@josefsson.org>
34161 * gnulib-tool: Rename generated 'autobuild' script to
34162 'do-autobuild' in --create-megatestdir output.
34164 * doc/gnulib.texi (Build robot for gnulib): Fix.
34166 2007-04-12 Simon Josefsson <simon@josefsson.org>
34168 * modules/sysexits (Depends-on): Add absolute-header.
34170 2007-04-12 Eric Blake <ebb9@byu.net>
34172 No need to preserve errno on success.
34173 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
34174 Reported by Bruno Haible.
34176 2007-04-12 Simon Josefsson <simon@josefsson.org>
34178 * MODULES.html.sh (Support for maintaining and releasing
34179 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
34181 2007-04-12 Simon Josefsson <simon@josefsson.org>
34183 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
34185 2007-04-12 Simon Josefsson <simon@josefsson.org>
34187 * modules/autobuild: New module.
34189 * m4/autobuild.m4: New file.
34191 2007-04-11 Bruno Haible <bruno@clisp.org>
34193 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
34194 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
34195 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
34196 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
34197 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34198 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34199 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34200 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34201 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34202 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34203 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
34204 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34205 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34206 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
34207 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34208 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34209 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
34210 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34211 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34212 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
34213 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34214 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34215 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_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/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_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 Reported by Eric Blake.
34223 2007-04-11 Bruno Haible <bruno@clisp.org>
34225 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
34227 2007-04-10 Bruno Haible <bruno@clisp.org>
34229 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
34230 for NaN and Infinity. Needed on FreeBSD 6.1.
34231 * tests/test-vasnprintf-posix.c (test_function): Undo last change
34232 regarding results for "%010a" of Infinity and NaN.
34233 * tests/test-vasprintf-posix.c (test_function): Likewise.
34234 * tests/test-snprintf-posix.h (test_function): Likewise.
34235 * tests/test-sprintf-posix.h (test_function): Likewise.
34236 * tests/test-fprintf-posix.h (test_function): Likewise.
34237 * tests/test-printf-posix.h (test_function): Likewise.
34238 * tests/test-fprintf-posix.out: Likewise.
34240 2007-04-10 Bruno Haible <bruno@clisp.org>
34242 * modules/locale-tests: New file.
34243 * tests/test-locale.c: New file.
34245 * modules/locale: New file.
34246 * lib/locale_.h: New file.
34247 * m4/locale_h.m4: New file.
34249 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
34250 Bruno Haible <bruno@clisp.org>
34252 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
34253 be determined, test for availability of the copysignf, copysign,
34254 copysignl functions.
34255 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
34256 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
34257 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
34259 2007-04-09 Eric Blake <ebb9@byu.net>
34261 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
34262 * modules/stdio (Makefile.am): Support fflush.
34263 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34264 * modules/fflush: New file.
34265 * lib/fflush.c: Likewise.
34266 * m4/fflush.m4: Likewise.
34267 * modules/fflush-tests: New test.
34268 * tests/test-fflush.c: Likewise.
34269 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
34271 2007-04-06 Bruno Haible <bruno@clisp.org>
34273 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
34274 (VASNPRINTF): Use signbit for faster determination whether to print a
34276 * modules/vasnprintf (Files): Remove lib/float+.h.
34277 * modules/fprintf-posix (Depends-on): Add signbit.
34278 * modules/snprintf-posix (Depends-on): Likewise.
34279 * modules/sprintf-posix (Depends-on): Likewise.
34280 * modules/vasnprintf-posix (Depends-on): Likewise.
34281 * modules/vasprintf-posix (Depends-on): Likewise.
34282 * modules/vfprintf-posix (Depends-on): Likewise.
34283 * modules/vsnprintf-posix (Depends-on): Likewise.
34284 * modules/vsprintf-posix (Depends-on): Likewise.
34286 2007-04-06 Bruno Haible <bruno@clisp.org>
34288 * tests/test-frexp.c (main): Test also the sign bit of zero results.
34289 * tests/test-frexpl.c (main): Likewise.
34290 * tests/test-ldexpl.c (main): Likewise.
34291 * modules/frexp-tests (Depends-on): Add signbit.
34292 * modules/frexpl-tests (Depdends-on): Likewise.
34293 * modules/ldexpl-tests (Depdends-on): Likewise.
34295 2007-04-06 Bruno Haible <bruno@clisp.org>
34297 * modules/signbit-tests: New file.
34298 * tests/test-signbit.c: New file.
34300 * modules/signbit: New file.
34301 * lib/signbitf.c: New file.
34302 * lib/signbitd.c: New file.
34303 * lib/signbitl.c: New file.
34304 * m4/signbit.m4: New file.
34305 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
34306 (signbit): New macro.
34307 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
34309 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
34310 REPLACE_FREXPL into math.h.
34312 2007-04-06 Bruno Haible <bruno@clisp.org>
34314 * modules/isnanf-nolibm-tests: New file.
34315 * tests/test-isnanf.c: New file.
34317 * modules/isnanf-nolibm: New file.
34318 * lib/isnanf.h: New file.
34319 * lib/isnanf.c: New file.
34320 * lib/isnan.c: Consider the USE_FLOAT macro.
34321 * m4/isnanf.m4: New file.
34323 2007-04-06 Bruno Haible <bruno@clisp.org>
34325 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
34326 (Link): New section.
34328 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
34330 2007-04-06 Bruno Haible <bruno@clisp.org>
34332 Assume the 'long double' type.
34333 * m4/longdouble.m4: Remove file.
34334 * config/srclist.txt: Don't mention longdouble.m4.
34335 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
34336 * lib/float+.h: Likewise.
34337 * lib/frexp.c: Likewise.
34338 * lib/printf-args.h: Likewise.
34339 * lib/printf-args.c: Likewise.
34340 * lib/printf-frexp.c: Likewise.
34341 * lib/printf-parse.c: Likewise.
34342 * lib/vasnprintf.c: Likewise.
34343 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
34344 * m4/intl.m4: Likewise.
34345 * m4/isnanl.m4: Likewise.
34346 * m4/printf.m4: Likewise.
34347 * m4/printf-frexpl.m4: Likewise.
34348 * m4/vasnprintf.m4: Likewise.
34349 * modules/allocsa (Files): Remove m4/longdouble.m4.
34350 * modules/gettext (Files): Likewise.
34351 * modules/relocatable-prog-wrapper (Files): Likewise.
34352 * modules/vasnprintf (Files): Likewise.
34353 * modules/isnanl (Files): Likewise.
34354 (Include): Simplify.
34355 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
34356 (Include): Simplify.
34357 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
34358 (Include): Simplify.
34359 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
34360 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34361 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
34362 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34363 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
34364 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34365 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
34366 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34367 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
34368 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34369 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
34370 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34371 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
34372 * tests/test-isnanl.c: Likewise.
34373 * tests/test-snprintf-posix.h: Likewise.
34374 * tests/test-sprintf-posix.h: Likewise.
34375 * tests/test-vasnprintf-posix.c: Likewise.
34376 * tests/test-vasnprintf-posix2.c: Likewise.
34377 * tests/test-vasprintf-posix.c: Likewise.
34379 2007-04-06 Bruno Haible <bruno@clisp.org>
34381 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
34382 * lib/math_.h [__DECC]: Include the overridden include file through
34383 #include_next, outside the double-inclusion guard.
34384 * lib/stdio_.h [__DECC]: Likewise.
34385 * lib/stdlib_.h [__DECC]: Likewise.
34386 * lib/string_.h [__DECC]: Likewise.
34387 * lib/time_.h [__DECC]: Likewise.
34388 * lib/wchar_.h [__DECC]: Likewise.
34389 * lib/wctype_.h [__DECC]: Likewise.
34390 * lib/inttypes_.h [__DECC]: Likewise.
34391 Reported by Albert Chin <china@thewrittenword.com> in
34392 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
34394 2007-04-04 Eric Blake <ebb9@byu.net>
34396 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
34399 2007-04-04 Bruno Haible <bruno@clisp.org>
34401 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
34402 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
34404 2007-04-04 Bruno Haible <bruno@clisp.org>
34406 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
34407 results for "%010a" of Infinity and NaN.
34408 * tests/test-vasprintf-posix.c (test_function): Likewise.
34409 * tests/test-snprintf-posix.h (test_function): Likewise.
34410 * tests/test-sprintf-posix.h (test_function): Likewise.
34411 * tests/test-fprintf-posix.h (test_function): Remove these tests.
34412 * tests/test-printf-posix.h (test_function): Likewise.
34413 * tests/test-fprintf-posix.out: Update.
34414 Needed for FreeBSD 6.1.
34416 2007-04-04 Bruno Haible <bruno@clisp.org>
34418 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
34419 directly used by the gnulib modules nor by gnulib-tool.
34421 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
34423 * DEPENDENCIES: Give overall description of version dependency
34424 desirability. Use more-typical names for apps.
34425 Add shell, coreutils, diffutils, grep, tar, gzip.
34427 2007-04-04 Simon Josefsson <simon@josefsson.org>
34429 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
34431 2007-04-04 Karl Berry <karl@gnu.org>
34433 * MODULES.html.sh (func_module): missing '.
34435 2007-04-03 Bruno Haible <bruno@clisp.org>
34437 * modules/argmatch-tests (Makefile.am): New variable
34438 test_argmatch_LDADD.
34439 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
34440 * modules/array-list-tests (Makefile.am): New variable
34441 test_array_list_LDADD.
34442 * modules/array-oset-tests (Makefile.am): New variable
34443 test_array_oset_LDADD.
34444 * modules/avltree-list-tests (Makefile.am): New variable
34445 test_avltree_list_LDADD.
34446 * modules/avltree-oset-tests (Makefile.am): New variable
34447 test_avltree_oset_LDADD.
34448 * modules/avltreehash-list-tests (Makefile.am): New variable
34449 test_avltreehash_list_LDADD.
34450 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
34451 test_canonicalize_lgpl_LDADD.
34452 * modules/carray-list-tests (Makefile.am): New variable
34453 test_carray_list_LDADD.
34454 * modules/dirname-tests (Makefile.am): New variable
34455 test_dirname_LDADD.
34456 * modules/linked-list-tests (Makefile.am): New variable
34457 test_linked_list_LDADD.
34458 * modules/linkedhash-list-tests (Makefile.am): New variable
34459 test_linkedhash_list_LDADD.
34460 * modules/rbtree-list-tests (Makefile.am): New variable
34461 test_rbtree_list_LDADD.
34462 * modules/rbtree-oset-tests (Makefile.am): New variable
34463 test_rbtree_oset_LDADD.
34464 * modules/rbtreehash-list-tests (Makefile.am): New variable
34465 test_rbtreehash_list_LDADD.
34466 * modules/xvasprintf-tests (Makefile.am): New variable
34467 test_xvasprintf_LDADD.
34468 Reported by Eric Blake.
34470 2007-04-03 Eric Blake <ebb9@byu.net>
34472 * DEPENDENCIES: Weaken m4 requirements.
34474 2007-04-03 Bruno Haible <bruno@clisp.org>
34476 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
34477 * modules/isnanl-tests (configure.ac): Likewise.
34479 2007-04-03 Ben Pfaff <blp@gnu.org>
34481 * modules/iconv_open: Add $(srcdir)/ to source directory
34482 references in Makefile fragments that call gperf, to fix VPATH
34485 2007-04-03 Bruno Haible <bruno@clisp.org>
34487 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
34488 * lib/ldexpl.c: Undo last change.
34490 2007-04-03 Bruno Haible <bruno@clisp.org>
34492 * modules/printf-frexpl (Depends-on): Undo last change.
34493 (Files): Add m4/ldexpl.m4.
34495 2007-04-03 Bruno Haible <bruno@clisp.org>
34497 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
34498 * modules/isnanl (Link): New section.
34500 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
34501 * modules/frexp (Link): New section.
34503 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
34504 * modules/frexpl (Link): New section.
34506 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
34507 * modules/ldexpl (Link): New section.
34509 2007-04-03 Bruno Haible <bruno@clisp.org>
34511 * modules/TEMPLATE-EXTENDED: New file.
34512 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
34514 2007-04-03 Bruno Haible <bruno@clisp.org>
34516 * DEPENDENCIES: New file.
34517 Suggested by Simon Josefsson.
34519 2007-04-03 Bruno Haible <bruno@clisp.org>
34521 * doc/gnulib.texi: Escape @.
34523 2007-04-03 James Youngman <jay@gnu.org>
34524 and Paul Eggert <eggert@cs.ucla.edu>
34526 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
34527 birthtime on all systems that have birthtime, not just those which
34528 use st_birthtimensec rather than st_birthtim. Putting zero in
34529 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
34530 that the birth time is not available for files on an NFS mount.
34532 2007-04-03 Simon Josefsson <simon@josefsson.org>
34534 * modules/memxor: Move back from crypto/, suggested by Bruno.
34535 * modules/crypto/hmac-sha1: Fix memxor dependency.
34537 * modules/crypto/gc: Moved from ../.
34539 2007-04-02 Eric Blake <ebb9@byu.net>
34541 * lib/ldexpl.c (includes): Avoid libm.
34543 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
34545 2007-04-02 Bruno Haible <bruno@clisp.org>
34547 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
34550 2007-04-02 Bruno Haible <bruno@clisp.org>
34552 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
34553 x86 or x86_64 platforms running MacOS X.
34554 Reported by Ryan Schmidt <@ryandesign.com>.
34556 2007-04-02 Bruno Haible <bruno@clisp.org>
34558 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
34561 2007-04-01 Simon Josefsson <simon@josefsson.org>
34563 * modules/crypto/arcfour: Moved from ../.
34564 * modules/crypto/arcfour-tests: Moved from ../.
34565 * modules/crypto/arctwo: Moved from ../.
34566 * modules/crypto/arctwo-tests: Moved from ../.
34567 * modules/crypto/des: Moved from ../.
34568 * modules/crypto/des-tests: Moved from ../.
34569 * modules/crypto/gc-arcfour: Moved from ../.
34570 * modules/crypto/gc-arcfour-tests: Moved from ../.
34571 * modules/crypto/gc-arctwo: Moved from ../.
34572 * modules/crypto/gc-arctwo-tests: Moved from ../.
34573 * modules/crypto/gc-des: Moved from ../.
34574 * modules/crypto/gc-des-tests: Moved from ../.
34575 * modules/crypto/gc-hmac-md5: Moved from ../.
34576 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
34577 * modules/crypto/gc-hmac-sha1: Moved from ../.
34578 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
34579 * modules/crypto/gc-md2: Moved from ../.
34580 * modules/crypto/gc-md2-tests: Moved from ../.
34581 * modules/crypto/gc-md4: Moved from ../.
34582 * modules/crypto/gc-md4-tests: Moved from ../.
34583 * modules/crypto/gc-md5: Moved from ../.
34584 * modules/crypto/gc-md5-tests: Moved from ../.
34585 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
34586 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
34587 * modules/crypto/gc-random: Moved from ../.
34588 * modules/crypto/gc-rijndael: Moved from ../.
34589 * modules/crypto/gc-rijndael-tests: Moved from ../.
34590 * modules/crypto/gc-sha1: Moved from ../.
34591 * modules/crypto/gc-sha1-tests: Moved from ../.
34592 * modules/crypto/gc-tests: Moved from ../.
34593 * modules/crypto/hmac-md5: Moved from ../.
34594 * modules/crypto/hmac-md5-tests: Moved from ../.
34595 * modules/crypto/hmac-sha1: Moved from ../.
34596 * modules/crypto/hmac-sha1-tests: Moved from ../.
34597 * modules/crypto/md2: Moved from ../.
34598 * modules/crypto/md2-tests: Moved from ../.
34599 * modules/crypto/md4: Moved from ../.
34600 * modules/crypto/md4-tests: Moved from ../.
34601 * modules/crypto/md5: Moved from ../.
34602 * modules/crypto/md5-tests: Moved from ../.
34603 * modules/crypto/memxor: Moved from ../.
34604 * modules/crypto/rijndael: Moved from ../.
34605 * modules/crypto/rijndael-tests: Moved from ../.
34606 * modules/crypto/sha1: Moved from ../.
34608 2007-03-30 James Youngman <jay@gnu.org>
34610 * tests/test-stat-time.c (prepare_test): use chmod() rather than
34611 rename() to change the ctime of a file (because ctime is unaffected
34612 by rename on jfs2 on AIX 5.1).
34613 (main): Start by doing cleanup, in case a previous run failed leaving
34616 2007-03-31 Bruno Haible <bruno@clisp.org>
34618 Support old proprietary implementations of iconv.
34619 * modules/iconv_open: New file.
34620 * lib/iconv_.h: New file.
34621 * m4/iconv_h.m4: New file.
34622 * lib/iconv_open.c: New file.
34623 * lib/iconv_open-aix.gperf: New file.
34624 * lib/iconv_open-hpux.gperf: New file.
34625 * lib/iconv_open-irix.gperf: New file.
34626 * lib/iconv_open-osf.gperf: New file.
34627 * m4/iconv_open.m4: New file.
34628 * modules/linebreak (Depends-on): Add iconv_open.
34629 * modules/striconv (Depends-on): Likewise.
34630 * modules/striconveh (Depends-on): Likewise.
34631 * modules/unicodeio (Depends-on): Likewise.
34632 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
34634 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
34635 conversion if cd is (iconv_t)(-1).
34636 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
34639 2007-03-31 Bruno Haible <bruno@clisp.org>
34641 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
34642 work on Solaris either. Protect also second use of "autodetect_jp".
34644 2007-03-31 Bruno Haible <bruno@clisp.org>
34646 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
34647 the function is not present.
34649 2007-03-31 Bruno Haible <bruno@clisp.org>
34651 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
34652 the function is not present.
34654 2007-03-31 Bruno Haible <bruno@clisp.org>
34656 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
34657 a bug in HP-UX iconv_open().
34659 2007-03-31 Bruno Haible <bruno@clisp.org>
34661 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
34662 (Mathematics <math.h>): New section, add fpieee.
34663 (Input/output <stdio.h>): Add fseterr.
34664 (Mathematics <math.h>): New section, add printf-frexp.
34665 (Container data structures): Add sublist.
34666 (Core language properties): Add fpucw, inline.
34667 (Functions for greatest-width integer types <inttypes.h>): Add
34668 imaxabs, imaxdiv, inttypes.
34669 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
34670 isnanl-nolibm, ldexp.
34671 (Mathematics <math.h>): New section, add printf-frexpl.
34672 (Support for systems lacking POSIX:2001): Add fprintf-posix,
34673 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
34674 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
34675 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
34676 (Unicode string functions): Add unistr/u*-mbtoucr.
34677 (Java): Add javacomp-script, javaexec-script.
34678 (C#): Add csharpcomp-script, csharpexec-script.
34679 (Support for building libraries and executables): Add havelib,
34681 (Support for maintaining and releasing projects): Renamed from
34682 'Support for maintaining and release projects'. Add announce-gen.
34684 2007-03-31 Bruno Haible <bruno@clisp.org>
34686 * README: Talk primarily about git.
34687 (git and CVS): Renamed from CVS.
34688 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
34689 gnulib is available through git.
34690 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
34692 2007-03-30 Bruno Haible <bruno@clisp.org>
34694 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
34695 * lib/poll_.h: Likewise.
34696 * lib/stat_.h: Likewise.
34697 * lib/sys_time_.h: Likewise.
34698 * lib/sysexit_.h: Likewise.
34699 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
34700 * lib/stdbool_.h: Likewise.
34701 * lib/byteswap_.h: Add double-inclusion guard.
34703 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
34705 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
34707 2007-03-30 Karl Berry <karl@gnu.org>
34709 * config/srclist-update: double space after USA in the license
34710 substitution, since that's how it's usually (?) written.
34712 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
34714 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
34715 reported by Bruno Haible.
34717 2007-03-29 Bruno Haible <bruno@clisp.org>
34719 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
34720 a bug in AIX iconv().
34722 2007-03-29 Bruno Haible <bruno@clisp.org>
34724 * modules/ldexpl-tests: New file.
34725 * tests/test-ldexpl.c: New file.
34727 2007-03-29 Bruno Haible <bruno@clisp.org>
34729 * lib/ldexpl.c: Include fpucw.h.
34730 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
34732 * modules/ldexpl (Depends-on): Add fpucw.
34734 2007-03-29 Bruno Haible <bruno@clisp.org>
34736 * modules/ldexpl: New file.
34737 * m4/ldexpl.m4: New file.
34738 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
34740 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
34742 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
34744 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
34745 gl_FUNC_LDEXPL_WORKS.
34746 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
34747 * modules/mathl (Files): Remove lib/ldexpl.c.
34748 (Depends-on): Add ldexpl.
34750 2007-03-29 Bruno Haible <bruno@clisp.org>
34752 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
34754 2007-03-29 Bruno Haible <bruno@clisp.org>
34756 * tests/test-striconveh.c (main): Don't assume that a direct conversion
34757 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
34758 and possibly also HP-UX.
34759 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
34760 work on AIX, IRIX, HP-UX, OSF/1.
34761 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
34762 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
34763 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
34764 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
34765 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
34766 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
34768 2007-03-29 Bruno Haible <bruno@clisp.org>
34770 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
34772 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
34774 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
34775 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
34777 2007-03-29 Eric Blake <ebb9@byu.net>
34779 * lib/acl-internal.h: Remove redundant include.
34780 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
34781 Cygwin when a file is locked.
34783 2007-03-29 Bruno Haible <bruno@clisp.org>
34785 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
34787 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
34789 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
34791 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
34792 try to remove a parent directory if the child couldn't be removed
34793 (except for the first rmdir, which could fail because the child
34794 doesn't exist). Problem reported by Jeff Blaine in
34795 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
34797 2007-03-28 Bruno Haible <bruno@clisp.org>
34799 * lib/striconveh.c (utf8conv_carefully): New function.
34800 (mem_cd_iconveh_internal): Invoke it.
34802 2007-03-28 Bruno Haible <bruno@clisp.org>
34804 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
34805 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
34807 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
34808 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
34811 2007-03-28 Bruno Haible <bruno@clisp.org>
34813 * modules/unistr/u8-mbtoucr: New file.
34814 * lib/unistr/u8-mbtoucr.c: New file.
34815 * modules/unistr/u16-mbtoucr: New file.
34816 * lib/unistr/u16-mbtoucr.c: New file.
34817 * modules/unistr/u16-mbtoucr: New file.
34818 * lib/unistr/u16-mbtoucr.c: New file.
34819 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
34821 2007-03-27 Simon Josefsson <simon@josefsson.org>
34822 Bruno Haible <bruno@clisp.org>
34824 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
34825 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
34826 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
34828 * m4/stdio_h.m4: Add stubs for vasprintf too.
34830 * modules/stdio: Support vasprintf in sed command.
34832 * modules/vasprintf: Depend on stdio for prototypes. Remove
34833 vasprintf.h. Add stdio module indicator.
34835 * lib/stdio_.h: Declare asprintf and vasprintf, based on
34838 * lib/vasprintf.h: File removed.
34840 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
34841 * lib/vasprintf.c: Ditto.
34842 * lib/xvasprintf.c: Ditto.
34843 * tests/test-vasprintf-posix.c: Ditto.
34844 * tests/test-vasprintf.c: Ditto.
34846 2007-03-27 Bruno Haible <bruno@clisp.org>
34848 Make vasnprintf multithread-safe.
34849 * lib/vasnprintf.c (decimal_point_char): New function.
34850 (VASNPRINTF): Use it.
34851 Suggested by Simon Josefsson.
34853 2007-03-27 Eric Blake <ebb9@byu.net>
34855 Support sub-second birthtime on cygwin.
34856 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
34857 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
34858 (get_stat_birthtime): Also work with st_birthtim.
34860 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
34862 * lib/stat-time.h (USE_BIRTHTIME): Remove.
34863 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
34864 (get_stat_birthtime_ns): Do not try to use "spare" fields.
34865 (get_stat_birthtime_ns): Simplify compile-time tests.
34866 (get_stat_birthtime): Change the API to look like
34867 get_stat_mtime etc., except return a negative tv_nsec on error.
34868 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
34869 Don't check for "spare" fields.
34870 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
34871 or for struct stat.st_birthtime, as these tests aren't used.
34872 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
34874 2007-03-27 Bruno Haible <bruno@clisp.org>
34876 * lib/stat-time.h: Include <sys/stat.h>.
34878 2007-03-27 James Youngman <jay@gnu.org>
34880 * lib/stat-time.h (get_stat_birthtime): New function for
34881 retrieving st_birthtime as provided by UFS2 (hence *BSD).
34882 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
34884 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
34885 * modules/stat-time-test: New file.
34886 * tests/test-stat-time.c: New test, devised by Bruno Haible.
34888 2007-03-26 Bruno Haible <bruno@clisp.org>
34890 Better support of signalling NaNs.
34891 * lib/atanl.c: Include isnanl.h.
34892 (atanl): Perform test for NaN at the beginning of the function and
34893 through a call to isnanl.
34894 * lib/cosl.c: Include isnanl.h.
34895 (cosl): Perform test for NaN at the beginning of the function and
34896 through a call to isnanl.
34897 * lib/ldexpl.c: Include isnanl.h.
34898 (ldexpl): Perform test for NaN through a call to isnanl.
34899 * lib/logl.c: Include isnanl.h.
34900 (logl): Perform test for NaN at the beginning of the function and
34901 through a call to isnanl.
34902 * lib/sinl.c: Include isnanl.h.
34903 (sinl): Perform test for NaN at the beginning of the function and
34904 through a call to isnanl.
34905 * lib/sqrtl.c: Include isnanl.h.
34906 (sqrtl): Perform test for NaN at the beginning of the function and
34907 through a call to isnanl.
34908 * lib/tanl.c: Include isnanl.h.
34909 (tanl): Perform test for NaN at the beginning of the function and
34910 through a call to isnanl.
34911 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
34912 * modules/mathl (Depends-on): Add isnanl.
34914 2007-03-26 Eric Blake <ebb9@byu.net>
34916 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
34917 regression in logic sense of previous patch.
34919 2007-03-26 Bruno Haible <bruno@clisp.org>
34921 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
34922 unportable shell command "if ! ...".
34923 Reported by Ralf Wildenhues.
34925 2007-03-25 Bruno Haible <bruno@clisp.org>
34927 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
34928 <sysexits.h> file, and only add EX_CONFIG.
34929 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
34930 absolute file name and whether it is sufficient. Substitute also
34931 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
34932 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
34933 ABSOLUTE_SYSEXITS_H into sysexits.h.
34935 2007-03-25 Bruno Haible <bruno@clisp.org>
34937 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
34940 2007-03-25 Bruno Haible <bruno@clisp.org>
34942 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
34943 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
34945 2007-03-25 Bruno Haible <bruno@clisp.org>
34947 * lib/vasnprintf.c: Include langinfo.h.
34948 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
34950 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
34951 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
34952 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34953 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34954 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34955 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34956 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34957 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
34958 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34959 Reported by Simon Josefsson.
34961 2007-03-25 Bruno Haible <bruno@clisp.org>
34963 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
34964 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
34965 * modules/vasnprintf (Depends-on): Add stdint.
34967 2007-03-25 Bruno Haible <bruno@clisp.org>
34969 * modules/fpieee: New file.
34970 * m4/fpieee.m4: New file.
34971 * modules/isnan-nolibm (Depends-on): Add fpieee.
34972 * modules/isnanl-nolibm (Depends-on): Add fpieee.
34973 * modules/isnanl (Depends-on): Add fpieee.
34975 2007-03-25 Bruno Haible <bruno@clisp.org>
34977 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
34979 2007-03-25 Bruno Haible <bruno@clisp.org>
34981 Avoid test failures on IRIX 6.5.
34982 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
34984 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
34988 2007-03-25 Bruno Haible <bruno@clisp.org>
34990 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
34991 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
34992 exists but doesn't work.
34993 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
34994 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
34995 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
34996 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
34998 2007-03-25 Bruno Haible <bruno@clisp.org>
35000 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
35001 returns inf. Needed on IRIX 6.5.
35003 2007-03-25 Bruno Haible <bruno@clisp.org>
35005 * tests/test-frexpl.c: Include isnanl-nolibm.h.
35006 (main): Use isnanl instead of x != x idiom.
35007 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
35009 * tests/test-frexp.c: Include isnan.h.
35010 (main): Use isnan instead of x != x idiom.
35011 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
35013 2007-03-25 Bruno Haible <bruno@clisp.org>
35015 * tests/test-frexp.c (NaN): New function/macro.
35016 (main): Use it instead of 0.0 / 0.0.
35017 * tests/test-isnan.c (NaN): New function/macro.
35018 (main): Use it instead of 0.0 / 0.0.
35019 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
35020 (test_function): Use it instead of 0.0 / 0.0.
35021 * tests/test-vasprintf-posix.c (NaN): New function/macro.
35022 (test_function): Use it instead of 0.0 / 0.0.
35023 * tests/test-snprintf-posix.h (NaN): New function/macro.
35024 (test_function): Use it instead of 0.0 / 0.0.
35025 * tests/test-sprintf-posix.h (NaN): New function/macro.
35026 (test_function): Use it instead of 0.0 / 0.0.
35027 * tests/test-fprintf-posix.h (NaN): New function/macro.
35028 (test_function): Use it instead of 0.0 / 0.0.
35029 * tests/test-printf-posix.h (NaN): New function/macro.
35030 (test_function): Use it instead of 0.0 / 0.0.
35032 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
35034 2007-03-25 Bruno Haible <bruno@clisp.org>
35036 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
35038 2007-03-25 Bruno Haible <bruno@clisp.org>
35040 * lib/regexec.c (merge_state_with_log): Make static.
35042 2007-03-25 Bruno Haible <bruno@clisp.org>
35044 * lib/trigl.c (kernel_rem_pio2): Make static.
35046 2007-03-25 Bruno Haible <bruno@clisp.org>
35048 * lib/sincosl.c (sincosl_table): Make static.
35050 2007-03-25 Bruno Haible <bruno@clisp.org>
35052 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
35053 if the compiler does not support C99.
35055 2007-03-25 Bruno Haible <bruno@clisp.org>
35057 * modules/time (Makefile.am): Ensure all rule action lines start with a
35060 2007-03-24 Bruno Haible <bruno@clisp.org>
35062 * modules/tsearch-tests: New file.
35063 * tests/test-tsearch.sh: New file.
35064 * tests/test-tsearch.c: New file, mostly copied from glibc.
35066 * modules/search-tests: New file.
35067 * tests/test-search.c: New file.
35069 * modules/search: New file.
35070 * lib/search_.h: New file, incorporating lib/tsearch.h.
35071 * m4/search_h.m4: New file.
35072 * lib/tsearch.h: Remove file.
35073 * lib/tsearch.c: Include search.h instead of tsearch.h.
35074 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
35076 * modules/tsearch (Files): Remove lib/tsearch.h.
35077 (Depends-on): Add search.
35078 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
35079 (Include): Change tsearch.h into search.h.
35081 2007-03-24 Bruno Haible <bruno@clisp.org>
35083 * modules/fpucw: New file.
35084 * lib/fpucw.h: New file.
35085 * lib/frexp.c: Include fpucw.h.
35086 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35088 * lib/printf-frexp.c: Include fpucw.h.
35089 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35091 * lib/vasnprintf.c: Include fpucw.h.
35092 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
35093 'long double' calculations.
35094 * tests/test-frexpl.c: Include fpucw.h.
35095 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35096 * tests/test-printf-frexpl.c: Include fpucw.h.
35097 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35098 * modules/frexpl (Depends-on): Add fpucw.
35099 * modules/printf-frexpl (Depends-on): Likewise.
35100 * modules/fprintf-posix (Depends-on): Likewise.
35101 * modules/snprintf-posix (Depends-on): Likewise.
35102 * modules/sprintf-posix (Depends-on): Likewise.
35103 * modules/vasnprintf-posix (Depends-on): Likewise.
35104 * modules/vasprintf-posix (Depends-on): Likewise.
35105 * modules/vfprintf-posix (Depends-on): Likewise.
35106 * modules/vsnprintf-posix (Depends-on): Likewise.
35107 * modules/vsprintf-posix (Depends-on): Likewise.
35108 * modules/frexpl-tests (Depends-on): Likewise.
35109 * modules/printf-frexpl-tests (Depends-on): Likewise.
35111 2007-03-24 Bruno Haible <bruno@clisp.org>
35113 * lib/float+.h: New file.
35114 * lib/isnan.c: Include float+.h.
35116 (FUNC): Compare only SIZE bytes of the value.
35117 * lib/vasnprintf.c: Include float+.h.
35118 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
35119 SIZEOF_LDBL or SIZEOF_DBL bytes.
35120 * modules/isnan-nolibm (Files): Add lib/float+.h.
35121 * modules/isnanl-nolibm (Files): Add lib/float+.h.
35122 * modules/isnanl (Files): Add lib/float+.h.
35123 * modules/vasnprintf (Files): Add lib/float+.h.
35125 2007-03-24 Bruno Haible <bruno@clisp.org>
35127 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
35128 include isnanl-nolibm.h.
35130 2007-03-24 Bruno Haible <bruno@clisp.org>
35132 * tests/test-read-file.c (main): Don't produce spurious output for
35133 expected situations. Make the test fail if it encountered unexpected
35136 2007-03-24 Bruno Haible <bruno@clisp.org>
35138 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
35139 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
35141 2007-03-24 Bruno Haible <bruno@clisp.org>
35143 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
35145 2007-03-24 Bruno Haible <bruno@clisp.org>
35147 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
35148 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
35150 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
35151 * modules/utf8-ucs4: Turn into a symbolic link to module
35154 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
35156 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
35157 unistr/u8-mbtouc-unsafe.
35159 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
35160 * modules/utf16-ucs4: Turn into a symbolic link to module
35163 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
35165 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
35166 unistr/u16-mbtouc-unsafe.
35168 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
35169 * modules/ucs4-utf8: Turn into a symbolic link to module
35172 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
35173 * modules/ucs4-utf16: Turn into a symbolic link to module
35176 2007-03-24 Bruno Haible <bruno@clisp.org>
35178 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
35179 Enable the function only if HAVE_INLINE.
35180 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
35181 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35182 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
35183 Enable the function only if HAVE_INLINE.
35184 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
35185 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35186 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
35187 Enable the function only if HAVE_INLINE.
35188 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
35189 Enable the function only if HAVE_INLINE.
35190 * modules/utf8-ucs4: Update.
35191 * modules/utf8-ucs4-unsafe: Update.
35192 * modules/utf16-ucs4: Update.
35193 * modules/utf16-ucs4-unsafe: Update.
35194 * modules/ucs4-utf8: Update.
35195 * modules/ucs4-utf16: Update.
35197 2007-03-24 Bruno Haible <bruno@clisp.org>
35199 * lib/utf8-ucs4.h: Remove file.
35200 * lib/utf8-ucs4-unsafe.h: Remove file.
35201 * lib/utf16-ucs4.h: Remove file.
35202 * lib/utf16-ucs4-unsafe.h: Remove file.
35203 * lib/ucs4-utf8.h: Remove file.
35204 * lib/ucs4-utf16.h: Remove file.
35205 * lib/unistr.h: Include their previous contents.
35206 * m4/utf-ucs4.m4: Remove file.
35207 * m4/ucs4-utf.m4: Remove file.
35208 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
35209 (Depends-on): Add unistr/base.
35210 (configure.ac): Remove gl_UTF_UCS4.
35211 (Makefile.am): Update.
35212 (Include): Change to unistr.h.
35213 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
35214 (Depends-on): Add unistr/base.
35215 (configure.ac): Remove gl_UTF_UCS4.
35216 (Makefile.am): Update.
35217 (Include): Change to unistr.h.
35218 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
35219 (Depends-on): Add unistr/base.
35220 (configure.ac): Remove gl_UTF_UCS4.
35221 (Makefile.am): Update.
35222 (Include): Change to unistr.h.
35223 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
35224 (Depends-on): Add unistr/base.
35225 (configure.ac): Remove gl_UTF_UCS4.
35226 (Makefile.am): Update.
35227 (Include): Change to unistr.h.
35228 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
35229 (Depends-on): Add unistr/base.
35230 (configure.ac): Remove gl_UCS4_UTF.
35231 (Makefile.am): Update.
35232 (Include): Change to unistr.h.
35233 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
35234 (Depends-on): Add unistr/base.
35235 (configure.ac): Remove gl_UCS4_UTF.
35236 (Makefile.am): Update.
35237 (Include): Change to unistr.h.
35238 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
35239 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
35240 utf8-ucs4-unsafe.h.
35241 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
35242 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
35243 utf16-ucs4-unsafe.h.
35244 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
35245 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
35246 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
35247 * lib/unistr/u8-strchr.c: Likewise.
35248 * lib/unistr/u8-strrchr.c: Likewise.
35249 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
35250 * lib/unistr/u16-strchr.c: Likewise.
35251 * lib/unistr/u16-strrchr.c: Likewise.
35252 * lib/striconveh.c: Update.
35253 * lib/linebreak.c: Update.
35255 2007-03-24 Bruno Haible <bruno@clisp.org>
35257 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
35258 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
35260 2007-03-22 Bruno Haible <bruno@clisp.org>
35262 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
35264 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
35266 * MODULES.html.sh (File system functions): New module write-any-file.
35267 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
35268 * m4/write-any-file.m4: New files.
35270 2007-03-23 Eric Blake <ebb9@byu.net>
35272 * gnulib-tool: Rearrange space-tab sequences, since some editors
35275 2007-03-23 Eric Blake <ebb9@byu.net>
35277 * lib/version-etc.c (version_etc_va): Update license wording to
35278 be more concise. Recommended by Richard Stallman.
35280 2007-03-22 Bruno Haible <bruno@clisp.org>
35282 * lib/poll.c (MSG_PEEK): New fallback definition.
35284 2007-03-22 Bruno Haible <bruno@clisp.org>
35286 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
35287 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
35289 Fixes a compilation error on BeOS.
35291 2007-03-22 Bruno Haible <bruno@clisp.org>
35293 * modules/frexpl-tests: New file.
35294 * tests/test-frexpl.c: New file.
35296 * modules/frexpl: New file.
35297 * m4/frexpl.m4: New file.
35298 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
35299 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
35300 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
35301 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
35302 (Depends-on): Add frexpl. Remove isnanl-nolibm.
35303 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
35305 2007-03-22 Bruno Haible <bruno@clisp.org>
35307 * lib/frexpl.c: Share code with lib/frexp.c.
35308 * modules/mathl (Files): Add lib/frexp.c.
35309 (Depends-on): Add isnanl-nolibm.
35311 2007-03-22 Bruno Haible <bruno@clisp.org>
35313 * modules/printf-frexp (Files): Add m4/frexp.m4.
35314 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
35315 only if the found frexp function actually works.
35317 2007-03-22 Bruno Haible <bruno@clisp.org>
35319 * lib/frexp.c: Remove older implementation that uses divisions.
35321 2007-03-21 Bruno Haible <bruno@clisp.org>
35323 * modules/frexp-tests: New file.
35324 * tests/test-frexp.c: New file.
35326 * modules/frexp: New file.
35327 * lib/frexp.c: New file.
35328 * m4/frexp.m4: New file.
35329 * lib/math_.h (frexp): New declaration.
35330 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
35332 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
35334 2007-03-21 Bruno Haible <bruno@clisp.org>
35336 * modules/isnanl-tests: New file.
35337 * tests/test-isnanl.c: New file.
35339 * modules/isnanl: New file.
35340 * lib/isnanl.h: New file.
35341 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
35342 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
35343 gl_FUNC_ISNANL_WORKS.
35344 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
35347 2007-03-21 Bruno Haible <bruno@clisp.org>
35349 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
35352 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
35353 * lib/vasnprintf.c: Update.
35354 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
35355 tests/test-isnanl.h, remove tests/test-isnanl.c.
35356 (Makefile.am): Update.
35357 * tests/test-isnanl-nolibm.c: New file.
35358 * tests/test-isnanl.h: New file.
35359 * tests/test-isnanl.c: Remove file.
35361 2007-03-21 Jim Meyering <jim@meyering.net>
35363 When trying to open ".", treat ESTALE like EACCES.
35364 * lib/savewd.c (savewd_save): Resort to forking not just upon
35365 failure with EACCES, but also when errno is ESTALE.
35367 2007-03-20 Bruno Haible <bruno@clisp.org>
35369 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
35370 Needed on AIX 5.1. Reported by Matthew Woehlke.
35372 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
35374 Suggestions by Bruno Haible:
35375 * lib/acl-internal.h: Include "gettext.h" rather than rolling
35377 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
35378 * modules/acl (Depends-on): Add gettext.
35380 2007-03-19 Bruno Haible <bruno@clisp.org>
35382 * modules/iconvme: Remove file.
35383 * lib/iconvme.h: Remove file.
35384 * lib/iconvme.c: Remove file.
35385 * m4/iconvme.m4: Remove file.
35387 2007-03-19 Bruno Haible <bruno@clisp.org>
35389 * doc/relocatable-maint.texi: Break long shell script line.
35390 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
35392 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
35394 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
35395 handle file_has_acl.
35396 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
35397 * lib/acl.c: Move header inclusions and related macro defns into
35398 lib/acl-internal.h.
35399 (S_ISLNK): Remove defn, since that's now done for us.
35400 (file_has_acl): Move to lib/file-has-acl.c.
35401 Call acl_trivial if available. This is the crucial part of the fix.
35402 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
35403 shared within the library. Rewrite a bit, partly to make it compatible
35404 with the GNU coding style.
35405 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
35406 Remove unnecessary double-quotes.
35407 Don't test for acl_to_text; the build will catch that.
35408 Replace acl_entries if it doesn't exist and it is needed.
35409 Check for -lsec and acl_trivial (as used on Solaris 10).
35410 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
35411 lib/file-has-acl.c.
35412 (Depends-on): Add sys_stat, for S_ISLNK.
35414 2007-03-19 Ben Pfaff <blp@gnu.org>
35416 * doc/gnulib.texi: Fix typos.
35417 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
35419 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
35421 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
35422 If size is zero here, buf must be zero.
35424 2007-03-19 Simon Josefsson <simon@josefsson.org>
35426 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
35429 2007-03-18 Bruno Haible <bruno@clisp.org>
35431 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
35432 Suggested by Eric Blake.
35434 2007-03-18 Ben Pfaff <blp@gnu.org>
35436 * doc/relocatable.texi: Recommend using as prefix a directory
35437 that does not exist and will never be created. Based on
35438 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
35441 2007-03-17 Bruno Haible <bruno@clisp.org>
35443 * lib/fchownat.c: Include lchown.h.
35445 2007-03-17 Bruno Haible <bruno@clisp.org>
35447 Fix endless loop when the given allocated size was > INT_MAX.
35448 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
35449 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
35450 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
35451 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
35452 * lib/sprintf.c (sprintf): Likewise.
35454 2007-03-17 Bruno Haible <bruno@clisp.org>
35456 * tests/test-argp-2.sh (func_compare): Output a context diff.
35458 2007-03-17 Bruno Haible <bruno@clisp.org>
35460 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
35461 locale's decimal-point character.
35463 2007-03-17 Bruno Haible <bruno@clisp.org>
35465 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
35466 before comparing it. Needed because on some platforms (e.g. x86) a
35467 'long double' occupies less bytes than sizeof (long double).
35469 2007-03-17 Bruno Haible <bruno@clisp.org>
35471 * tests/test-crc.c (main): Make printf statements 64-bit clean.
35472 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
35473 * tests/test-getaddrinfo.c (simple): Likewise.
35474 * tests/test-read-file.c (main): Likewise.
35476 2007-03-17 Bruno Haible <bruno@clisp.org>
35478 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
35480 2007-03-17 Bruno Haible <bruno@clisp.org>
35482 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
35485 2007-03-17 Bruno Haible <bruno@clisp.org>
35487 * tests/test-c-strcasecmp.c: Include c-strcase.h.
35488 * tests/test-c-strncasecmp.c: Likewise.
35490 2007-03-17 Bruno Haible <bruno@clisp.org>
35492 * modules/stdlib (Depends-on): Add unistd.
35493 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
35494 Needed for MacOS X 10.3.
35496 2007-03-17 Bruno Haible <bruno@clisp.org>
35498 * lib/unistr/u-strdup.h: Include <stdlib.h>.
35500 2007-03-17 Bruno Haible <bruno@clisp.org>
35502 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
35504 2007-03-17 Bruno Haible <bruno@clisp.org>
35506 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
35507 to reflect files copied from gnulib (with or without modifications).
35508 Suggested by Jim Meyering.
35510 2007-03-17 Eric Blake <ebb9@byu.net>
35512 * NEWS: Document stdlib change from 2007-02-18.
35514 2007-03-17 Jim Meyering <jim@meyering.net>
35516 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
35517 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
35518 someone uses a name containing shell meta-characters.
35519 Reported by Alfred M. Szmidt.
35521 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
35523 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
35525 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
35526 and copy gettext configuration files only if configure.ac contains
35527 a use of AM_GNU_GETTEXT_VERSION.
35529 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
35531 * build-aux/bootstrap (gnulib_name): New variable.
35532 (gnulib_tool_options): Use it.
35534 2007-03-13 Simon Josefsson <simon@josefsson.org>
35536 * tests/test-des.c: Use new namespace.
35538 2007-03-15 Bruno Haible <bruno@clisp.org>
35540 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
35541 Reported by James Youngman <jay@gnu.org>.
35543 2007-03-15 Bruno Haible <bruno@clisp.org>
35545 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
35546 declared prototype. Needed with cc on OSF/1 5.1.
35548 2007-03-15 Bruno Haible <bruno@clisp.org>
35550 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
35551 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
35552 (struct gl_list_implementation): Add dispose_fn argument to the
35553 'create_empty', 'create' methods.
35554 (struct gl_list_impl_base): Add field 'dispose_fn'.
35555 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
35557 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
35558 dispose_fn argument.
35559 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
35560 dispose_fn on the dropped values.
35561 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
35562 dispose_fn argument.
35563 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
35565 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
35566 (gl_tree_remove_node): Call dispose_fn on the dropped value.
35567 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
35568 (gl_tree_remove_node): Call dispose_fn on the dropped value.
35569 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
35571 (gl_tree_list_free): Call dispose_fn on the dropped values.
35572 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
35573 the dropped values.
35574 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
35575 Add dispose_fn argument.
35576 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
35577 Call dispose_fn on the dropped values.
35578 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
35579 Add dispose_fn argument.
35580 (gl_sublist_create): Initialize the 'dispose_fn' field.
35581 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
35582 * tests/test-array_list.c (main): Update.
35583 * tests/test-carray_list.c (main): Update.
35584 * tests/test-avltree_list.c (main): Update.
35585 * tests/test-rbtree_list.c (main): Update.
35586 * tests/test-avltreehash_list.c (main): Update.
35587 * tests/test-rbtreehash_list.c (main): Update.
35588 * tests/test-linked_list.c (main): Update.
35589 * tests/test-linkedhash_list.c (main): Update.
35590 * tests/test-array_oset.c (main): Update.
35592 2007-03-15 Bruno Haible <bruno@clisp.org>
35594 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
35595 (gl_oset_create_empty): Add dispose_fn argument.
35596 (struct gl_oset_implementation): Add dispose_fn argument to
35597 'create_empty' method.
35598 (struct gl_oset_impl_base): Add dispose_fn field.
35599 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
35600 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
35601 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
35603 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
35604 (gl_tree_oset_free): Call dispose_fn on the dropped values.
35605 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
35607 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
35609 * tests/test-array_oset.c (main): Update.
35610 * tests/test-avltree_oset.c (main): Update.
35611 * tests/test-rbtree_oset.c (main): Update.
35612 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
35614 2007-03-13 Bruno Haible <bruno@clisp.org>
35616 * tests/test-stdbool.c (i): Update after last patch.
35618 2007-03-12 Bruno Haible <bruno@clisp.org>
35620 * lib/quotearg.c: Include <wctype.h> early, before the definition of
35621 the iswprint macro. Needed on Solaris 2.5.1.
35623 2007-03-12 Bruno Haible <bruno@clisp.org>
35625 * tests/test-printf-frexp.c (main): Declare x as volatile.
35627 2007-03-12 Simon Josefsson <simon@josefsson.org>
35629 * doc/gnulib.texi (Build robot for gnulib): New section.
35631 2007-03-12 Jim Meyering <jim@meyering.net>
35633 * build-aux/bootstrap: New file.
35634 * build-aux/bootstrap.conf: New file, from coreutils.
35636 2007-03-11 Bruno Haible <bruno@clisp.org>
35638 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
35640 2007-03-12 Simon Josefsson <simon@josefsson.org>
35642 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
35643 avoid collisions with 'des_setkey'. Reported by Bruno Haible
35644 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
35646 2007-03-11 Bruno Haible <bruno@clisp.org>
35648 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
35649 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
35651 2007-03-11 Bruno Haible <bruno@clisp.org>
35653 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
35654 formula. Needed for SunPRO C 5.0.
35656 2007-03-11 Bruno Haible <bruno@clisp.org>
35658 * modules/long-options (Depends-on): Add getopt.
35660 2007-03-11 Bruno Haible <bruno@clisp.org>
35662 * modules/modechange (Depends-on): Add stdbool.
35664 2007-03-11 Bruno Haible <bruno@clisp.org>
35666 * modules/i-ring (Depends-on): Add stdbool.
35668 2007-03-11 Bruno Haible <bruno@clisp.org>
35670 * modules/gc-des (Depends-on): Add stdbool.
35672 2007-03-11 Bruno Haible <bruno@clisp.org>
35674 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
35676 2007-03-11 Bruno Haible <bruno@clisp.org>
35678 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
35680 2007-03-11 Bruno Haible <bruno@clisp.org>
35682 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
35684 2007-03-11 Bruno Haible <bruno@clisp.org>
35686 * lib/vasnprintf.c (sprintf): Undefine.
35688 2007-03-11 Bruno Haible <bruno@clisp.org>
35690 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
35691 initializers in SunPRO C and Compaq C compilers.
35693 2007-03-11 Bruno Haible <bruno@clisp.org>
35695 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
35696 decrementing code ANSI C compliant.
35698 2007-03-11 Bruno Haible <bruno@clisp.org>
35700 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
35701 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
35703 2007-03-11 Bruno Haible <bruno@clisp.org>
35705 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
35706 <stdbool.h> substitute doesn't pass.
35708 2007-03-11 Bruno Haible <bruno@clisp.org>
35710 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
35712 2007-03-11 Bruno Haible <bruno@clisp.org>
35714 * gnulib-tool (func_create_megatestdir): Create also an autobuild
35715 script, for submission to autobuild.josefsson.org.
35717 2007-03-10 Bruno Haible <bruno@clisp.org>
35719 * modules/canonicalize-lgpl-tests: New file.
35720 * tests/test-canonicalize-lgpl.sh: New file.
35721 * tests/test-canonicalize-lgpl.c: New file.
35723 * modules/c-strcase-tests: New file.
35724 * tests/test-c-strcase.sh: New file.
35725 * tests/test-c-strcasecmp.c: New file.
35726 * tests/test-c-strncasecmp.c: New file.
35728 * modules/atexit-tests: New file.
35729 * tests/test-atexit.sh: New file.
35730 * tests/test-atexit.c: New file.
35732 2007-03-10 Bruno Haible <bruno@clisp.org>
35734 * tests/test-binary-io.sh: Use temporary filenames that are not so
35735 likely to clash with those of other tests (in a parallel make).
35736 * tests/test-binary-io.c: Likewise.
35738 2007-03-10 Bruno Haible <bruno@clisp.org>
35740 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
35741 fallback; use #error instead.
35742 Suggested by Simon Josefsson.
35744 2007-03-10 Bruno Haible <bruno@clisp.org>
35746 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
35747 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
35748 first and the last.
35750 2007-03-10 Bruno Haible <bruno@clisp.org>
35752 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
35754 2007-03-10 Bruno Haible <bruno@clisp.org>
35756 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
35758 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
35759 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
35760 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
35762 2007-03-10 Bruno Haible <bruno@clisp.org>
35764 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
35766 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
35769 2007-03-09 Eric Blake <ebb9@byu.net>
35770 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
35772 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
35773 types are not being provided by gnulib.
35774 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
35775 types are supported.
35777 2007-03-10 Bruno Haible <bruno@clisp.org>
35779 * lib/stdio_.h (__attribute__): New macro.
35780 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
35781 vsprintf): Specify __attribute__ __format__ for GCC.
35782 Suggested by Eric Blake.
35784 2007-03-09 Bruno Haible <bruno@clisp.org>
35786 * modules/printf-posix-tests: New file.
35787 * tests/test-printf-posix.sh: New file.
35788 * tests/test-printf-posix.c: New file.
35790 * modules/printf-posix: New file.
35791 * lib/printf.c: New file.
35792 * m4/printf-posix-rpl.m4: New file.
35793 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
35795 * lib/stdio_.h (printf): New declaration.
35796 (format, __format__, ____printf____, ____scanf____, ____strftime____,
35797 ____strfmon____): New macros.
35798 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
35801 2007-03-09 Bruno Haible <bruno@clisp.org>
35803 * tests/test-vasnprintf-posix2.sh: New file.
35804 * tests/test-vasnprintf-posix2.c: New file.
35805 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
35806 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
35807 (Makefile.am): Activate test-vasnprintf-posix2.sh.
35809 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
35810 a locale dependent decimal point, rather than always '.'.
35812 2007-03-09 Eric Blake <ebb9@byu.net>
35814 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
35815 spite of platforms like Tandem/NSK that define it to -1.
35817 2007-03-08 Bruno Haible <bruno@clisp.org>
35819 * modules/vprintf-posix-tests: New file.
35820 * tests/test-vprintf-posix.sh: New file.
35821 * tests/test-vprintf-posix.c: New file.
35822 * tests/test-printf-posix.h: New file.
35824 * modules/vprintf-posix: New file.
35825 * lib/vprintf.c: New file.
35826 * m4/vprintf-posix.m4: New file.
35827 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
35829 * lib/stdio_.h (vprintf): New declaration.
35830 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
35833 2007-03-08 Bruno Haible <bruno@clisp.org>
35835 * modules/fprintf-posix-tests: New file.
35836 * tests/test-fprintf-posix.sh: New file.
35837 * tests/test-fprintf-posix.c: New file.
35839 * modules/fprintf-posix: New file.
35840 * lib/fprintf.c: New file.
35841 * m4/fprintf-posix.m4: New file.
35842 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
35844 * lib/stdio_.h (fprintf): New declaration.
35845 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
35848 2007-03-08 Bruno Haible <bruno@clisp.org>
35850 * modules/vfprintf-posix-tests: New file.
35851 * tests/test-vfprintf-posix.sh: New file.
35852 * tests/test-vfprintf-posix.c: New file.
35853 * tests/test-fprintf-posix.h: New file.
35854 * tests/test-fprintf-posix.out: New file.
35856 * modules/vfprintf-posix: New file.
35857 * lib/vfprintf.c: New file.
35858 * m4/vfprintf-posix.m4: New file.
35859 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
35861 * lib/stdio_.h (vfprintf): New declaration.
35862 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
35865 2007-03-08 Bruno Haible <bruno@clisp.org>
35867 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
35869 2007-03-08 Bruno Haible <bruno@clisp.org>
35871 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
35872 instead of 'expr' invocations.
35873 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35874 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35875 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35876 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35877 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35878 Suggested by Paul Eggert.
35880 2007-03-08 Bruno Haible <bruno@clisp.org>
35882 * modules/fseterr-tests: New file.
35883 * tests/test-fseterr.c: New file.
35885 * modules/fseterr: New file.
35886 * lib/fseterr.h: New file.
35887 * lib/fseterr.c: New file.
35889 2007-03-08 Bruno Haible <bruno@clisp.org>
35891 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
35892 * lib/getopt_.h: Likewise.
35893 * lib/mbswidth.h: Likewise.
35894 * lib/setenv.h: Likewise.
35895 * lib/vasnprintf.h: Likewise.
35896 * lib/vasprintf.h: Likewise.
35897 * lib/verror.h: Likewise.
35898 * lib/xsetenv.h: Likewise.
35899 * lib/xvasprintf.h: Likewise.
35901 2007-03-08 Jim Meyering <jim@meyering.net>
35903 * users.txt: Add parted.
35905 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
35907 2007-03-07 Bruno Haible <bruno@clisp.org>
35909 * m4/printf.m4: Make the shell script snippets copy&pastable.
35911 2007-03-02 Bruno Haible <bruno@clisp.org>
35913 * lib/netinet_in_.h: New file.
35914 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
35915 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
35916 * modules/netinet_in (Files): Add lib/netinet_in_.h.
35917 (Depends-on): Add absolute-header.
35918 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
35921 2007-03-03 Bruno Haible <bruno@clisp.org>
35923 * lib/sys_select_.h: New file.
35924 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
35925 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
35926 * modules/sys_select (Files): Add lib/sys_select_.h.
35927 (Depends-on): Add absolute-header.
35928 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
35931 2007-03-02 Bruno Haible <bruno@clisp.org>
35933 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
35934 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
35936 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
35937 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
35938 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
35939 * modules/sys_socket (Depends-on): Add absolute-header.
35940 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
35941 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
35942 (Include): Remove requirement of inclusion of <sys/types.h>.
35944 2007-03-02 Bruno Haible <bruno@clisp.org>
35946 * lib/byteswap_.h (bswap_32): Fix formula.
35948 2007-03-06 Bruno Haible <bruno@clisp.org>
35950 * modules/sprintf-posix-tests: New file.
35951 * tests/test-sprintf-posix.c: New file.
35953 * modules/sprintf-posix: New file.
35954 * lib/sprintf.c: New file.
35955 * m4/sprintf-posix.m4: New file.
35956 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
35958 * lib/stdio_.h (sprintf): New declaration.
35959 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
35962 2007-03-06 Bruno Haible <bruno@clisp.org>
35964 * modules/vsprintf-posix-tests: New file.
35965 * tests/test-vsprintf-posix.c: New file.
35966 * tests/test-sprintf-posix.h: New file.
35968 * modules/vsprintf-posix: New file.
35969 * lib/vsprintf.c: New file.
35970 * m4/vsprintf-posix.m4: New file.
35971 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
35973 * lib/stdio_.h (vsprintf): New declaration.
35974 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
35977 2007-03-06 Bruno Haible <bruno@clisp.org>
35979 * modules/vsnprintf (Depend-on): Remove minmax.
35981 2007-03-06 Bruno Haible <bruno@clisp.org>
35983 * modules/snprintf-posix-tests: New file.
35984 * tests/test-snprintf-posix.c: New file.
35986 * modules/snprintf-posix: New file.
35987 * m4/snprintf-posix.m4: New file.
35988 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
35990 (gl_FUNC_SNPRINTF): Invoke it.
35991 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
35992 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
35994 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
35996 2007-03-06 Bruno Haible <bruno@clisp.org>
35998 * modules/vsnprintf-posix-tests: New file.
35999 * tests/test-vsnprintf-posix.c: New file.
36000 * tests/test-snprintf-posix.h: New file.
36002 * modules/vsnprintf-posix: New file.
36003 * m4/vsnprintf-posix.m4: New file.
36004 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
36006 (gl_FUNC_VSNPRINTF): Invoke it.
36007 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
36008 * lib/stdio_.h (vsnprintf): Define as a replacement if
36009 REPLACE_VSNPRINTF is set.
36010 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
36012 2007-03-06 Bruno Haible <bruno@clisp.org>
36014 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
36015 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
36017 2007-03-06 Bruno Haible <bruno@clisp.org>
36019 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
36020 (asinl): Declare also if HAVE_DECL_ASINL is set.
36021 (atanl): Declare also if HAVE_DECL_ATANL is set.
36022 (ceill): Declare also if HAVE_DECL_CEILL is set.
36023 (cosl): Declare also if HAVE_DECL_COSL is set.
36024 (expl): Declare also if HAVE_DECL_EXPL is set.
36025 (floorl): Declare also if HAVE_DECL_FLOORL is set.
36026 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
36027 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
36028 (logl): Declare also if HAVE_DECL_LOGL is set.
36029 (sinl): Declare also if HAVE_DECL_SINL is set.
36030 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
36031 (tanl): Declare also if HAVE_DECL_TANL is set.
36032 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
36033 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
36034 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
36035 declaration of frexpl, ldexpl.
36036 * modules/printf-frexpl (Depends-on): Add math.
36037 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
36039 2007-03-05 Bruno Haible <bruno@clisp.org>
36041 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
36042 frexpl and ldexpl are declared.
36043 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
36045 2007-03-05 Bruno Haible <bruno@clisp.org>
36047 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
36048 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
36050 2007-03-05 Bruno Haible <bruno@clisp.org>
36052 * lib/stdio_.h: Include <stddef.h>.
36054 2007-03-05 Bruno Haible <bruno@clisp.org>
36056 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
36058 2007-03-05 Bruno Haible <bruno@clisp.org>
36060 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
36061 NetBSD 4, from Ralf Wildenhues.
36063 2007-03-04 Bruno Haible <bruno@clisp.org>
36065 * lib/vasprintf.h: Update #if logic for the case when the functions
36066 exist but are overridden.
36068 2007-03-04 Bruno Haible <bruno@clisp.org>
36070 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
36071 implementations: glibc-2.4 and MacOS X 10.3.
36072 * tests/test-vasnprintf-posix.c (test_function): Test also the case
36073 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
36074 * tests/test-vasprintf-posix.c (test_function): Likewise.
36076 2007-03-04 Bruno Haible <bruno@clisp.org>
36078 * modules/vasprintf-posix-tests: New file.
36079 * tests/test-vasprintf-posix.c: New file.
36081 * modules/vasprintf-posix: New file.
36082 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
36084 * m4/vasprintf-posix.m4: New file.
36085 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
36087 (gl_FUNC_VASPRINTF): Invoke it.
36088 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
36090 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
36092 2007-03-04 Bruno Haible <bruno@clisp.org>
36094 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
36095 REPLACE_GETTIMEOFDAY.
36096 * modules/sys_time (Makefile.am): Likewise.
36097 * m4/sys_time_h.m4: Likewise.
36098 * m4/gettimeofday.m4: Likewise.
36100 2007-03-04 Bruno Haible <bruno@clisp.org>
36102 * modules/vasnprintf-posix-tests: New file.
36103 * tests/test-vasnprintf-posix.c: New file.
36105 * modules/vasnprintf-posix: New file.
36106 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
36108 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
36109 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
36110 REPLACE_VASNPRINTF is defined.
36111 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
36112 gl_FUNC_VASNPRINTF.
36113 (gl_FUNC_VASNPRINTF): Invoke it.
36114 * m4/vasnprintf-posix.m4: New file.
36115 * m4/printf.m4: New file.
36117 2007-03-04 Bruno Haible <bruno@clisp.org>
36119 Compile progreloc.c only if --enable-relocatable is specified.
36120 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
36121 if --enable-relocatable was specified.
36122 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
36125 2007-03-04 Jim Meyering <jim@meyering.net>
36127 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
36128 Use it consistently, rather than enumerating errno constants.
36130 2007-03-04 Bruno Haible <bruno@clisp.org>
36132 * modules/xvasprintf-tests: New file.
36133 * tests/test-xvasprintf.c: New file.
36135 * modules/vasprintf-tests: New file.
36136 * tests/test-vasprintf.c: New file.
36138 * modules/vasnprintf-tests: New file.
36139 * tests/test-vasnprintf.c: New file.
36141 * modules/vsnprintf-tests: New file.
36142 * tests/test-vsnprintf.c: New file.
36144 * modules/snprintf-tests: New file.
36145 * tests/test-snprintf.c: New file.
36147 2007-03-04 Bruno Haible <bruno@clisp.org>
36149 Compile relocatable.c only if --enable-relocatable is specified.
36150 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
36151 gl_RELOCATABLE_LIBRARY.
36152 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
36153 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
36154 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
36155 gl_RELOCATABLE_LIBRARY.
36156 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
36157 (Makefile.am): Remove lib_SOURCES.
36158 * modules/relocatable-lib-lgpl (configure.ac): Invoke
36159 gl_RELOCATABLE_LIBRARY.
36160 (Makefile.am): Remove lib_SOURCES.
36161 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
36163 * modules/relocatable-prog-wrapper (configure.ac): Invoke
36164 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
36166 2007-03-04 Bruno Haible <bruno@clisp.org>
36168 * modules/argmatch-tests: New file.
36169 * tests/test-argmatch.c: New file.
36171 * tests/test-allocsa.c (main): Halve the number of loop runs.
36173 * modules/alloca-opt-tests: New file.
36174 * tests/test-alloca-opt.c: New file.
36176 2007-03-04 Jim Meyering <jim@meyering.net>
36178 Work around difference between Linux ACLs and Solaris 10 ZFS.
36179 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
36182 2007-03-03 Bruno Haible <bruno@clisp.org>
36184 * modules/relocatable-prog (Depends-on): Add back progreloc's
36185 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
36187 2007-03-03 Bruno Haible <bruno@clisp.org>
36189 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
36190 * modules/relocatable-lib: New file.
36192 2007-03-03 Bruno Haible <bruno@clisp.org>
36194 * modules/relocatable-prog: Renamed from modules/relocatable.
36195 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
36197 2007-03-03 Bruno Haible <bruno@clisp.org>
36199 * modules/relocatable-script (Files): Add doc/relocatable.texi,
36200 m4/relocatable-lib.m4.
36201 (Depends-on): Remove 'relocatable'.
36202 (configure.ac): Add gl_RELOCATABLE_NOP.
36204 2007-03-03 Bruno Haible <bruno@clisp.org>
36206 * modules/relocatable-prog-wrapper: New file.
36207 * modules/relocatable (Depends-on): Add it. Remove all other
36208 dependencies except progname.
36209 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
36211 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
36212 (gl_FUNC_STRERROR): Nop.
36213 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
36215 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
36216 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
36218 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
36219 (gl_FUNC_READLINK): Update.
36221 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
36223 2007-03-03 Bruno Haible <bruno@clisp.org>
36225 * lib/xreadlink.c: Include <unistd.h> unconditionally.
36226 * modules/xreadlink (Depends-on): Add unistd.
36227 * modules/xreadlink-with-size (Depends-on): Likewise.
36229 2007-03-03 Bruno Haible <bruno@clisp.org>
36231 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
36232 extracted from gt_FUNC_SETENV.
36233 (gt_FUNC_SETENV): Remove macro.
36234 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
36235 remove gt_FUNC_SETENV.
36237 2007-03-03 Bruno Haible <bruno@clisp.org>
36239 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
36240 ENABLE_RELOCATABLE here.
36241 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
36243 2007-03-03 Bruno Haible <bruno@clisp.org>
36245 * modules/rbtreehash-list-tests (Depends-on): Add progname.
36246 * tests/test-rbtreehash_list.c: Include progname.h.
36247 (main): Call set_program_name.
36249 * modules/rbtree-oset-tests (Depends-on): Add progname.
36250 * tests/test-rbtree_oset.c: Include progname.h.
36251 (main): Call set_program_name.
36253 * modules/rbtree-list-tests (Depends-on): Add progname.
36254 * tests/test-rbtree_list.c: Include progname.h.
36255 (main): Call set_program_name.
36257 * modules/linked-list-tests (Depends-on): Add progname.
36258 * tests/test-linked_list.c: Include progname.h.
36259 (main): Call set_program_name.
36261 2007-03-03 Bruno Haible <bruno@clisp.org>
36263 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
36264 All uses of __restrict changed to _Restrict_.
36265 * lib/glob_.h (__restrict): Remove macro.
36267 2007-03-02 Bruno Haible <bruno@clisp.org>
36269 * modules/gettext (configure.ac): Require gettext infrastructure
36270 from version 0.16.1.
36272 2007-03-02 Bruno Haible <bruno@clisp.org>
36274 * modules/linkedhash-list-tests (Depends-on): Add progname.
36275 * tests/test-linkedhash_list.c: Include progname.h.
36276 (main): Call set_program_name.
36278 * modules/carray-list-tests (Depends-on): Add progname.
36279 * tests/test-carray_list.c: Include progname.h.
36280 (main): Call set_program_name.
36282 * modules/avltreehash-list-tests (Depends-on): Add progname.
36283 * tests/test-avltreehash_list.c: Include progname.h.
36284 (main): Call set_program_name.
36286 * modules/avltree-oset-tests (Depends-on): Add progname.
36287 * tests/test-avltree_oset.c: Include progname.h.
36288 (main): Call set_program_name.
36290 * modules/avltree-list-tests (Depends-on): Add progname.
36291 * tests/test-avltree_list.c: Include progname.h.
36292 (main): Call set_program_name.
36294 * modules/array-oset-tests (Depends-on): Add progname.
36295 * tests/test-array_oset.c: Include progname.h.
36296 (main): Call set_program_name.
36298 * modules/array-list-tests (Depends-on): Add progname.
36299 * tests/test-array_list.c: Include progname.h.
36300 (main): Call set_program_name.
36302 * modules/argp-tests (Depends-on): Add progname.
36303 * tests/test-argp.c: Include argp.h first. Include progname.h.
36304 (main): Call set_program_name.
36306 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
36308 * doc/gnulib-tool.texi (Initial import): Reword description of
36309 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
36310 limited effect even if defined after the first system include.
36312 2007-03-01 Bruno Haible <bruno@clisp.org>
36314 * build-aux/config.libpath: Update to libtool-1.5.22.
36315 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36317 2007-03-01 Bruno Haible <bruno@clisp.org>
36319 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
36321 Reported by Ralf Wildenhues.
36323 2007-03-01 Bruno Haible <bruno@clisp.org>
36325 * build-aux/install-reloc: Remove object files left over by some
36327 Reported by Ralf Wildenhues.
36329 2007-03-01 Bruno Haible <bruno@clisp.org>
36331 * build-aux/install-reloc: Break long lines.
36333 2007-03-01 Bruno Haible <bruno@clisp.org>
36335 * doc/relocatable.texi: Document that it may not work on OpenBSD.
36336 Reported by Ralf Wildenhues.
36338 2007-03-01 Bruno Haible <bruno@clisp.org>
36340 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
36341 include ordering constraints.
36343 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
36345 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
36346 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
36347 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
36348 as another example.
36349 * lib/time_.h: Fix misspelling.
36350 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
36351 Require gl_HEADER_TIME_H_DEFAULTS.
36352 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
36353 * m4/time_r.m4 (gl_TIME_R): Likewise.
36354 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
36356 2007-03-01 Bruno Haible <bruno@clisp.org>
36358 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
36359 * m4/utimens.m4 (gl_UTIMENS): Likewise.
36361 2007-03-01 Jim Meyering <jim@meyering.net>
36363 * modules/xreadlink (Maintainer): Add my name.
36364 * modules/xreadlink-with-size (Depends-on): Alphabetize.
36366 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
36367 Bruno Haible <bruno@clisp.org>
36369 * build-aux/install-reloc: Compile also c-ctype.c.
36370 * build-aux/relocatable.sh.in: New file.
36371 * doc/relocatable.texi: New file.
36372 * doc/relocatable-maint.texi: New file.
36373 * doc/gnulib.texi: Include relocatable-maint.texi.
36374 * lib/progreloc.c: Include unistd.h unconditionally.
36375 * lib/relocwrapper.c: Include unistd.h unconditionally.
36377 (add_dotbin): Use c_tolower.
36378 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
36379 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
36380 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
36381 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
36382 to m4/relocatable-lib.m4.
36383 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
36384 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
36385 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
36386 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
36387 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
36388 * modules/relocatable: New file.
36389 * modules/relocatable-lib: New file.
36390 * modules/relocatable-script: New file.
36392 2007-02-28 Bruno Haible <bruno@clisp.org>
36394 Import --enable-relocatable infrastructure.
36395 * build-aux/config.libpath: New file, from GNU gettext.
36396 * build-aux/install-reloc: New file, from GNU gettext.
36397 * build-aux/reloc-ldflags: New file, from GNU gettext.
36398 * lib/relocatable.h: New file, from GNU gettext.
36399 * lib/relocatable.c: New file, from GNU gettext.
36400 * lib/relocwrapper.c: New file, from GNU gettext.
36401 * m4/relocatable.m4: New file, from GNU gettext.
36403 2007-02-28 Bruno Haible <bruno@clisp.org>
36405 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
36407 * modules/xreadlink: New file, from GNU gettext with modifications.
36408 * lib/xreadlink.c: New file, from GNU gettext.
36409 * lib/xreadlink.h: Add comments.
36410 (xreadlink): New declaration.
36412 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
36413 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
36414 lib/xreadlink-with-size.c.
36415 (configure.ac): Remove gl_XREADLINK invocation.
36416 (Makefile.am): Augment lib_SOURCES.
36417 * m4/xreadlink.m4: Remove file.
36418 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
36419 (xreadlink_with_size): Renamed from xreadink.
36420 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
36421 * modules/canonicalize (Depends-on): Replace xreadlink with
36422 xreadlink-with-size.
36423 * lib/canonicalize.c (canonicalize_filename_mode): Update.
36425 2007-02-25 Jim Meyering <jim@meyering.net>
36427 * build-aux/announce-gen: When complaining about excess arguments,
36430 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
36432 * README: Document signed integer overflow situation more
36435 2007-02-25 Bruno Haible <bruno@clisp.org>
36437 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
36438 'a' or 'A' conversion.
36440 2007-02-25 Bruno Haible <bruno@clisp.org>
36442 * modules/filename: Renamed from modules/pathname.
36443 (Files): Replace lib/pathname.h with lib/filename.h. Replace
36444 lib/concatpath.c with lib/concat-filename.c.
36445 (Makefile.am): Update.
36446 (Include): Replace pathname.h with filename.h.
36447 * lib/filename.h: Renamed from lib/pathname.h.
36448 (concatenated_filename): Renamed from concatenated_pathname.
36449 * lib/concat-filename.c: Renamed from lib/concatpath.c.
36450 (concatenated_filename): Renamed from concatenated_pathname.
36451 * lib/findprog.c: Include filename.h instead of pathname.h.
36452 (find_in_path): Update.
36453 * lib/javacomp.c: Include filename.h instead of pathname.h.
36454 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
36455 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
36456 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
36457 is_oldgcj_14_13_usable, is_javac_usable): Update.
36458 * lib/javaexec.c: Include filename.h instead of pathname.h.
36459 (execute_java_class): Update.
36460 * modules/findprog: Update.
36461 * modules/javacomp: Update.
36462 * modules/javaexec: Update.
36463 * MODULES.html.sh (File system functions): Add 'filename', remove
36466 2007-02-25 Bruno Haible <bruno@clisp.org>
36468 * modules/printf-frexpl-tests: New file.
36469 * tests/test-printf-frexpl.c: New file.
36471 * modules/printf-frexpl: New file.
36472 * lib/printf-frexpl.h: New file.
36473 * lib/printf-frexpl.c: New file.
36474 * m4/printf-frexpl.m4: New file.
36476 2007-02-25 Bruno Haible <bruno@clisp.org>
36478 * modules/printf-frexp-tests: New file.
36479 * tests/test-printf-frexp.c: New file.
36481 * modules/printf-frexp: New file.
36482 * lib/printf-frexp.h: New file.
36483 * lib/printf-frexp.c: New file.
36484 * m4/printf-frexp.m4: New file.
36486 2007-02-25 Bruno Haible <bruno@clisp.org>
36488 Assume automake >= 1.10 for the tests.
36489 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
36490 * modules/arctwo-tests: Likewise.
36491 * modules/argp-tests: Likewise.
36492 * modules/avltree-list-tests: Likewise.
36493 * modules/avltree-oset-tests: Likewise.
36494 * modules/avltreehash-list-tests: Likewise.
36495 * modules/carray-list-tests: Likewise.
36496 * modules/crc-tests: Likewise.
36497 * modules/des-tests: Likewise.
36498 * modules/gc-arcfour-tests: Likewise.
36499 * modules/gc-arctwo-tests: Likewise.
36500 * modules/gc-des-tests: Likewise.
36501 * modules/gc-hmac-md5-tests: Likewise.
36502 * modules/gc-hmac-sha1-tests: Likewise.
36503 * modules/gc-md2-tests: Likewise.
36504 * modules/gc-md4-tests: Likewise.
36505 * modules/gc-md5-tests: Likewise.
36506 * modules/gc-pbkdf2-sha1-tests: Likewise.
36507 * modules/gc-rijndael-tests: Likewise.
36508 * modules/gc-sha1-tests: Likewise.
36509 * modules/gc-tests: Likewise.
36510 * modules/getaddrinfo-tests: Likewise.
36511 * modules/hmac-md5-tests: Likewise.
36512 * modules/hmac-sha1-tests: Likewise.
36513 * modules/linked-list-tests: Likewise.
36514 * modules/linkedhash-list-tests: Likewise.
36515 * modules/lock-tests: Likewise.
36516 * modules/md2-tests: Likewise.
36517 * modules/md4-tests: Likewise.
36518 * modules/md5-tests: Likewise.
36519 * modules/rbtree-list-tests: Likewise.
36520 * modules/rbtree-oset-tests: Likewise.
36521 * modules/rbtreehash-list-tests: Likewise.
36522 * modules/read-file-tests: Likewise.
36523 * modules/rijndael-tests: Likewise.
36524 * modules/stdint-tests: Likewise.
36525 * modules/tls-tests: Likewise.
36527 2007-02-24 Bruno Haible <bruno@clisp.org>
36529 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
36530 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
36531 function; instead check whether isnan with a double argument links.
36532 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
36533 function; instead check whether isnan with a 'long double' argument
36535 Reported by Eric Blake <ebb9@byu.net>.
36537 2007-02-24 Bruno Haible <bruno@clisp.org>
36539 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
36541 * lib/isnanl.c: Remove all code. Just include isnan.c.
36542 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
36544 2007-02-25 Jim Meyering <jim@meyering.net>
36546 Avoid conflicting types for 'unsetenv' on FreeBSD.
36547 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
36548 conflicting with FreeBSD's (5.0 and 6.1) function declaration
36551 2007-02-24 Bruno Haible <bruno@clisp.org>
36553 * modules/isnanl-nolibm-tests: New file.
36554 * tests/test-isnanl.c: New file.
36556 * modules/isnanl-nolibm: New file.
36557 * lib/isnanl.h: New file.
36558 * lib/isnanl.c: New file.
36559 * m4/isnanl.m4: New file.
36561 2007-02-24 Bruno Haible <bruno@clisp.org>
36563 * modules/isnan-nolibm-tests: New file.
36564 * tests/test-isnan.c: New file.
36566 * modules/isnan-nolibm: New file.
36567 * lib/isnan.h: New file.
36568 * lib/isnan.c: New file.
36569 * m4/isnan.m4: New file.
36571 2007-02-24 Bruno Haible <bruno@clisp.org>
36573 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
36574 assume that an exponent fits in 20 bits.
36576 2007-02-24 Jim Meyering <jim@meyering.net>
36578 * m4/regex.m4: Update the description of the configure-time option,
36579 --without-included-regex, to state accurately what the defaults are,
36580 and perhaps to give people an idea why using this option is risky.
36582 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
36584 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
36585 loops on small arguments. This attempts to avoid the problem
36586 Bruno Haible reported for AIX 4.3.2 in
36587 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
36589 2007-02-23 Bruno Haible <bruno@clisp.org>
36591 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
36592 Needed for help2man.
36594 2007-02-23 Karl Berry <karl@gnu.org>
36596 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
36597 exists, foo.h should be cvs-ignored, not committed.
36599 2007-02-23 Eric Blake <ebb9@byu.net>
36601 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
36602 * lib/stat-time.h (includes): Likewise.
36603 * lib/utimecmp.c (includes): Likewise.
36604 * lib/utimens.h (includes): Likewise.
36605 * lib/getdate.y (includes): Also include "timespec.h" for use
36606 internal to the module.
36607 * modules/utimens (Depends-on): Revert yesterday's patch.
36608 * modules/nanosleep (Depends-on): Add missing dependency.
36610 2007-02-22 Bruno Haible <bruno@clisp.org>
36612 * lib/glob.c: Don't include getlogin_r.h.
36614 2007-02-22 Jim Meyering <jim@meyering.net>
36616 * modules/utimens (Depends-on): Add timespec, required for
36617 utimens.h's inclusion of timespec.h.
36619 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
36621 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
36622 long unreadable paths in GNU/Linux. Problem reported by Andreas
36624 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
36625 I'll try to think of a better way to fix the Solaris problem.
36627 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
36628 like glibc; on Solaris 10, it fails with errno == EINVAL.
36629 POSIX says the behavior is unspecified if the first argument is NULL,
36630 so play it safe and never pass NULL to the system getcwd.
36632 2007-02-21 Jim Meyering <jim@meyering.net>
36634 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
36635 of gettimeofday. It would conflict with the one now always
36636 provided via sys_time_.h. Reported by Matthew Woehlke, as
36637 an IRIX 6.5 build failure.
36639 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
36641 Minor fixups to port to Solaris 10 with Sun C 5.8.
36642 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
36643 * modules/getcwd (Depends-on): Add dirfd.
36644 * lib/putenv.c (putenv): #undef it.
36645 (rpl_putenv): New decl.
36646 (malloc, free): Include <stdlib.h> rather than prototyping separately.
36648 2007-02-20 Bruno Haible <bruno@clisp.org>
36650 * modules/stdio-tests: New file.
36651 * tests/test-stdio.c: New file.
36653 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
36654 (Depends-on): Add stdio.
36655 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
36656 (Include): Use <stdio.h> instead of vsnprintf.h.
36657 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
36658 HAVE_DECL_VSNPRINTF.
36659 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
36661 * modules/snprintf (Files): Remove lib/snprintf.h.
36662 (Depends-on): Add stdio.
36663 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
36664 (Include): Use <stdio.h> instead of snprintf.h.
36665 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
36666 HAVE_DECL_SNPRINTF.
36667 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
36668 * lib/getaddrinfo.c: Likewise.
36670 * modules/stdio: New file.
36671 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
36672 * lib/snprintf.h: Remove file.
36673 * lib/vsnprintf.h: Remove file.
36674 * lib/.cppi-disable: Remove snprintf.h.
36675 * m4/stdio_h.m4: New file.
36676 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
36678 2007-02-20 Jim Meyering <jim@meyering.net>
36680 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
36681 used by e.g., mingw. From Bruno Haible.
36683 2007-02-19 Bruno Haible <bruno@clisp.org>
36685 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
36687 Reported by Ben Pfaff <blp@cs.stanford.edu>.
36689 2007-02-19 Bruno Haible <bruno@clisp.org>
36691 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
36694 2007-02-19 Bruno Haible <bruno@clisp.org>
36696 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
36698 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
36700 2007-02-19 Jim Meyering <jim@meyering.net>
36702 Don't use FD after a successful "fdopendir (fd)".
36703 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
36704 Reset it by calling dirfd on the just-obtained DIR*.
36706 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
36707 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
36709 2007-02-18 Bruno Haible <bruno@clisp.org>
36711 * lib/readlink.c: Include <unistd.h>.
36712 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
36714 * modules/readlink (Depends-on): Add unistd.
36715 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36716 (Include): Add <unistd.h>.
36718 * lib/getlogin_r.h: Remove file.
36719 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
36720 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
36721 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
36722 HAVE_DECL_GETLOGIN_R.
36723 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
36724 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36725 (Include): Use <unistd.h> instead of getlogin_r.h.
36727 * lib/getcwd.h: Remove file.
36728 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
36729 * lib/xgetcwd.c: Likewise.
36730 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
36731 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
36732 * modules/getcwd (Files): Remove lib/getcwd.h.
36733 (Depends-on): Add unistd.
36734 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36735 (Include): Use <unistd.h> instad of getcwd.h.
36737 * lib/ftruncate.c: Include <unistd.h> first.
36738 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
36739 Set HAVE_FTRUNCATE.
36740 * modules/ftruncate (Depends-on): Add unistd.
36741 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36743 * lib/fchdir.c: Include <unistd.h> first.
36744 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
36745 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
36746 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
36747 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36748 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
36750 * lib/dup2.c: Include <unistd.h> first.
36751 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
36753 * modules/dup2 (Depends-on): Add unistd.
36754 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36756 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
36757 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
36758 REPLACE_CHOWN. Don't define chown as a macro here.
36759 * modules/chown (Depends-on): Add unistd.
36760 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36762 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
36763 Add definition for GL_LINK_WARNING.
36764 (chown, dup2): New declarations.
36765 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
36767 (ftruncate): New declaration.
36768 (getcwd): New declaration, taken from old getcwd.h.
36769 (getlogin_r): New declaration, taken from old getlogin_r.h.
36770 (readlink): New declaration.
36771 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
36772 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
36773 (gl_PREREQ_UNISTD): Remove macro.
36774 (gl_UNISTD_MODULE_INDICATOR): New macro.
36775 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
36776 many new variables. Don't set UNISTD_H.
36777 * modules/unistd (Description): Change.
36778 (Depends-on): Add link-warning.
36779 (configure.ac): Update.
36780 (Makefile.am): Create unistd.h always. Substitute many new variables
36783 2007-02-18 Bruno Haible <bruno@clisp.org>
36785 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
36786 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
36788 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
36789 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
36790 * lib/getsubopt.h: Remove file.
36791 * modules/getsubopt (Files): Remove lib/getsubopt.h.
36792 (Depends-on): Add stdlib.
36793 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36794 (Includes): Use <stdlib.h> instead of getsubopt.h.
36795 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
36796 Set HAVE_GETSUBOPT.
36797 * lib/getsubopt.c: Don't include getsubopt.h.
36799 2007-02-18 Bruno Haible <bruno@clisp.org>
36801 * modules/fchdir (Depends-on): Add dup2.
36803 2007-02-18 Bruno Haible <bruno@clisp.org>
36805 * lib/stdlib_.h: Handle glibc's special invocation convention
36808 2007-02-18 Bruno Haible <bruno@clisp.org>
36810 * modules/stdlib-tests: New file.
36811 * tests/test-stdlib.c: New file.
36813 * modules/mkstemp (Files): Remove lib/mkstemp.h.
36814 (Depends-on): Add stdlib.
36815 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36816 (Includes): Use <stdlib.h> instead of mkstemp.h.
36817 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
36818 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
36819 * lib/mkstemp.c: Don't include mkstemp.h.
36820 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
36821 * lib/stdlib--.h: Don't include mkstemp.h.
36823 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
36824 (Depends-on): Add stdlib.
36825 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36826 (Includes): Use <stdlib.h> instead of mkdtemp.h.
36827 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
36829 * lib/mkdtemp.c: Don't include mkdtemp.h.
36830 * lib/clean-temp.c: Don't include mkdtemp.h.
36832 * modules/exit (Files): Remove lib/exit.h.
36833 (Depends-on): Add stdlib.
36834 (Makefile.am): Remove lib_SOURCES.
36835 (Include): Use <stdlib.h> instead of exit.h.
36836 * lib/argmatch.c: Don't include exit.h.
36837 * lib/execute.c: Likewise.
36838 * lib/pagealign_alloc.c: Likewise.
36839 * lib/pipe.c: Likewise.
36840 * lib/wait-process.c: Likewise.
36841 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
36842 * lib/exitfail.c: Likewise.
36843 * lib/savewd.c: Likewise.
36844 * lib/xsetenv.c: Likewise.
36846 * modules/stdlib: New file.
36847 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
36848 and extra comments about mkstemp().
36849 * lib/exit.h: Remove file.
36850 * lib/mkdtemp.h: Remove file.
36851 * lib/mkstemp.h: Remove file.
36852 * m4/stdlib_h.m4: New file.
36853 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
36855 2007-02-18 Bruno Haible <bruno@clisp.org>
36857 * modules/math-tests: New file.
36858 * tests/test-math.c: New file.
36860 * modules/math: New file.
36861 * modules/mathl (Files): Remove lib/mathl.h.
36862 (Depends-on): Add math.
36863 (Makefile.am): Don't mention mathl.h.
36864 (Include): Use <math.h> instead of mathl.h.
36865 * lib/math_.h: New file.
36866 * lib/mathl.h: Remove file.
36867 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
36869 * lib/asinl.c: Likewise.
36870 * lib/atanl.c: Likewise.
36871 * lib/ceill.c: Likewise.
36872 * lib/cosl.c: Likewise.
36873 * lib/expl.c: Likewise.
36874 * lib/floorl.c: Likewise.
36875 * lib/frexpl.c: Likewise.
36876 * lib/ldexpl.c: Likewise.
36877 * lib/logl.c: Likewise.
36878 * lib/sincosl.c: Likewise.
36879 * lib/sinl.c: Likewise.
36880 * lib/sqrtl.c: Likewise.
36881 * lib/tanl.c: Likewise.
36882 * lib/trigl.c: Likewise.
36883 * m4/math_h.m4: New file.
36884 * MODULES.html.sh (Mathematics): Add math.
36886 2007-02-17 Bruno Haible <bruno@clisp.org>
36888 * modules/wctype-tests: New file.
36889 * tests/test-wctype.c: New file.
36891 * modules/wchar-tests: New file.
36892 * tests/test-wchar.c: New file.
36894 * modules/unistd-tests: New file.
36895 * tests/test-unistd.c: New file.
36897 * modules/time-tests: New file.
36898 * tests/test-time.c: New file.
36900 * modules/sysexits-tests: New file.
36901 * tests/test-sysexits.c: New file.
36903 * modules/sys_time-tests: New file.
36904 * tests/test-sys_time.c: New file.
36906 * modules/sys_stat-tests: New file.
36907 * tests/test-sys_stat.c: New file.
36909 * modules/sys_socket-tests: New file.
36910 * tests/test-sys_socket.c: New file.
36912 * modules/sys_select-tests: New file.
36913 * tests/test-sys_select.c: New file.
36915 * modules/string-tests: New file.
36916 * tests/test-string.c: New file.
36918 * modules/stdbool-tests: New file.
36919 * tests/test-stdbool.c: New file.
36921 * modules/netinet_in-tests: New file.
36922 * tests/test-netinet_in.c: New file.
36924 * modules/inttypes-tests: New file.
36925 * tests/test-inttypes.c: New file.
36927 * modules/fcntl-tests: New file.
36928 * tests/test-fcntl.c: New file.
36930 * modules/byteswap-tests: New file.
36931 * tests/test-byteswap.c: New file.
36933 * modules/arpa_inet-tests: New file.
36934 * tests/test-arpa_inet.c: New file.
36936 2007-02-17 Bruno Haible <bruno@clisp.org>
36938 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
36939 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
36940 if the corresponding module is not enabled. Emit link warnings if
36941 the function is used nevertheless.
36942 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
36943 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
36944 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
36945 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
36946 * modules/inttypes (Depends-on): Add link-warning.
36947 (Makefile.am): Copy the contents of build-aux/link-warning.h into
36948 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
36949 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
36950 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
36951 * modules/imaxdiv (configure.ac): Likewise.
36952 * modules/strtoimax (configure.ac): Likewise.
36953 * modules/strtoumax (configure.ac): Likewise.
36955 2007-02-17 Bruno Haible <bruno@clisp.org>
36957 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
36958 gl_STRING_MODULE_INDICATOR_DEFAULTS.
36959 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
36960 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
36962 2007-02-17 Bruno Haible <bruno@clisp.org>
36964 * modules/link-warning: New file.
36965 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
36966 * lib/string_.h (GL_LINK_WARNING): Remove definition.
36967 * modules/string (Depends-on): Add link-warning.
36968 (Makefile.am): Copy the contents of build-aux/link-warning.h into
36970 * MODULES.html.sh (Support for building libraries and executables): Add
36973 2007-02-17 Bruno Haible <bruno@clisp.org>
36975 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
36976 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
36977 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
36980 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
36981 Bruno Haible <bruno@clisp.org>
36983 * modules/tmpfile: New file.
36984 * lib/tmpfile.c: New file.
36985 * m4/tmpfile.m4: New file.
36986 * MODULES.html.sh (func_all_modules): New section "Input/output".
36988 2007-02-15 Bruno Haible <bruno@clisp.org>
36990 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
36991 (supports_delete_on_close): New function.
36992 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
36994 2007-02-14 Bruno Haible <bruno@clisp.org>
36996 * modules/mbspcasecmp-tests: New file.
36997 * tests/test-mbspcasecmp.sh: New file.
36998 * tests/test-mbspcasecmp.c: New file.
37000 New module mbspcasecmp.
37001 * modules/mbspcasecmp: New file.
37002 * lib/mbspcasecmp.c: New file.
37003 * lib/string_.h (strncasecmp): Change warning message.
37004 (mbspcasecmp): New declaration.
37005 * m4/mbspcasecmp.m4: New file.
37006 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37007 GNULIB_MBSPCASECMP.
37008 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
37009 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
37011 2007-02-14 Bruno Haible <bruno@clisp.org>
37013 * modules/mbsncasecmp-tests: New file.
37014 * tests/test-mbsncasecmp.sh: New file.
37015 * tests/test-mbsncasecmp.c: New file.
37017 New module mbsncasecmp.
37018 * modules/mbsncasecmp: New file.
37019 * lib/mbsncasecmp.c: New file.
37020 * lib/string_.h (mbsncasecmp): New declaration.
37021 * m4/mbsncasecmp.m4: New file.
37022 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37023 GNULIB_MBSNCASECMP.
37024 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
37025 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
37027 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
37029 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
37030 Verify that it doesn't overlap with our flags.
37031 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
37032 do not have the desired effect in multibyte locales; instead, use
37034 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
37035 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
37036 we don't require GNU fnmatch ourselves (if our users require it, they
37037 should do so explicitly).
37039 Fix regex code so it doesn't rely on strcasecmp.
37040 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
37041 Otherwise, include gnulib's langinfo.h.
37042 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
37043 undesirable behavior in non-C locales. Instead, rely on localecharset.
37044 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
37045 * modules/regex (FILES): Remove m4/codeset.m4.
37046 (Depends-on): Add localcharset. Remove strcase.
37048 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37050 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
37051 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
37053 2007-02-13 Bruno Haible <bruno@clisp.org>
37055 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
37056 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37058 2007-02-12 Bruno Haible <bruno@clisp.org>
37060 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37061 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
37062 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
37063 time warning rather than a link error.
37065 2007-02-12 Bruno Haible <bruno@clisp.org>
37067 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
37068 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37069 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37071 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
37073 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
37076 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
37078 New module 'time', so that apps can include <time.h> as per
37079 POSIX and GNU instead of separate include files like time_r.h
37080 and timegm.h. This implementation tries out a simpler approach
37081 for replacing decls in standard include files (as compared to
37082 the string module), somewhat as an experiment.
37084 * config/srclist.txt: Comment out mktime.c for now.
37085 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
37086 since it doesn't apply any more. Use generic wording instead.
37087 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
37089 * lib/time_.h, m4/time_h.m4, modules/time: New files.
37090 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
37091 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
37092 Don't include <sys/types.h>; no longer needed since we assume C89.
37093 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
37094 * lib/strftime.c: Likewise.
37095 * lib/time_r.c: Likewise.
37096 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
37097 * lib/nanosleep.c: Include <time.h> first, to check interface.
37098 * lib/strptime.c: Likewise.
37099 * lib/time_r.c: Likewise.
37100 * lib/timegm.c: Likewise.
37101 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
37103 * lib/timegm.c: Don't include timegm.h; no longer needed.
37104 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
37105 time.h now handles any problems in that area.
37106 (struct timespec, nanosleep): Remove; time.h now arranges for these.
37107 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
37108 that time.h defines struct timespec.
37109 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
37110 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
37112 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
37113 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
37114 needed. Set REPLACE_LOCALTIME.
37115 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
37116 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
37117 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
37118 nanosleep; time_h.m4 now does that. Don't require
37119 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
37120 module handles this now.
37121 * modules/getdate (Depends-on): Remove timespec. Add time.
37122 * modules/nanosleep (Depends-on): Likewise.
37123 * modules/stat-time (Depends-on): Likewise.
37124 * modules/nanosleep (Include): Include time.h, not timespec.h.
37125 * modules/strptime (Files): Remove lib/strptime.h.
37126 (Depends-on): Add extensions, time.
37127 (Include): Include time.h, not strptime.h.
37128 * modules/time_r (Files): Remove lib/time_r.h.
37129 (Depends-on): Add time.
37130 (Include): Include time.h, not time_r.h.
37131 * modules/timegm: Likewise.
37132 * modules/timespec (Description): Now does timespec-related decls
37133 of our own, instead of struct timespec itself.
37134 (Depends-on): Add time; remove extensions.
37135 (Maintainer): Add self.
37136 * modules/utimecmp (Depends-on): Add time; remove timespec.
37137 * modules/utimens (Depends-on): Likewise.
37138 * modules/xnanosleep (Depends-on): Likewise.
37140 2007-02-11 Bruno Haible <bruno@clisp.org>
37142 * lib/c-strstr.c: Include allocsa.h.
37143 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37144 * lib/c-strcasestr.c: Include allocsa.h.
37145 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37146 * lib/strcasestr.c: Include allocsa.h.
37147 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37148 * lib/mbsstr.c: Include allocsa.h.
37149 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
37150 allocsa/freesa instead of malloc/free.
37151 * lib/mbscasestr.c: Include allocsa.h.
37152 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
37153 allocsa/freesa instead of malloc/free.
37154 * modules/c-strstr (Depends-on): Add allocsa.
37155 * modules/c-strcasestr (Depends-on): Likewise.
37156 * modules/strcasestr (Depends-on): Likewise.
37157 * modules/mbsstr (Depends-on): Likewise.
37158 * modules/mbscasestr (Depends-on): Likewise.
37160 2007-02-11 Bruno Haible <bruno@clisp.org>
37162 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
37164 * modules/mbsspn-tests: New file.
37165 * tests/test-mbsspn.sh: New file.
37166 * tests/test-mbsspn.c: New file.
37168 2007-02-11 Bruno Haible <bruno@clisp.org>
37170 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
37172 * modules/mbspbrk-tests: New file.
37173 * tests/test-mbspbrk.sh: New file.
37174 * tests/test-mbspbrk.c: New file.
37176 2007-02-11 Bruno Haible <bruno@clisp.org>
37178 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
37181 * modules/mbscspn-tests: New file.
37182 * tests/test-mbscspn.sh: New file.
37183 * tests/test-mbscspn.c: New file.
37185 2007-02-11 Bruno Haible <bruno@clisp.org>
37187 * modules/mbscasecmp-tests: New file.
37188 * tests/test-mbscasecmp.sh: New file.
37189 * tests/test-mbscasecmp.c: New file.
37191 2007-02-11 Bruno Haible <bruno@clisp.org>
37193 Ensure O(n) worst-case complexity of mbscasestr.
37194 * lib/mbscasestr.c: Include stdbool.h.
37195 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37197 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
37198 the bookkeeping indicates that it's worth it.
37199 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
37201 * modules/mbscasestr-tests: New file.
37202 * tests/test-mbscasestr1.c: New file.
37203 * tests/test-mbscasestr2.sh: New file.
37204 * tests/test-mbscasestr2.c: New file.
37205 * tests/test-mbscasestr3.sh: New file.
37206 * tests/test-mbscasestr3.c: New file.
37207 * tests/test-mbscasestr4.sh: New file.
37208 * tests/test-mbscasestr4.c: New file.
37209 * m4/locale-tr.m4: New file.
37211 2007-02-11 Bruno Haible <bruno@clisp.org>
37213 Ensure O(n) worst-case complexity of mbsstr.
37214 * lib/mbsstr.c: Include stdbool.h.
37215 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37217 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
37218 bookkeeping indicates that it's worth it.
37219 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
37221 * modules/mbsstr-tests: New file.
37222 * tests/test-mbsstr1.c: New file.
37223 * tests/test-mbsstr2.sh: New file.
37224 * tests/test-mbsstr2.c: New file.
37225 * tests/test-mbsstr3.sh: New file.
37226 * tests/test-mbsstr3.c: New file.
37227 * m4/locale-fr.m4: New file.
37229 2007-02-11 Bruno Haible <bruno@clisp.org>
37231 * lib/mbsrchr.c (mbsrchr): Fix bug.
37233 * modules/mbsrchr-tests: New file.
37234 * tests/test-mbsrchr.sh: New file.
37235 * tests/test-mbsrchr.c: New file.
37237 2007-02-11 Bruno Haible <bruno@clisp.org>
37239 * lib/mbschr.c (mbschr): Fix bug.
37241 * modules/mbschr-tests: New file.
37242 * tests/test-mbschr.sh: New file.
37243 * tests/test-mbschr.c: New file.
37244 * m4/locale-zh.m4: New file.
37246 2007-02-11 Bruno Haible <bruno@clisp.org>
37248 Support for copying multibyte string iterators.
37249 * lib/mbiter.h: Include <string.h>.
37250 (mbiter_multi_copy): New function.
37251 (mbi_copy): New macro.
37252 * lib/mbuiter.h: Include <string.h>.
37253 (mbuiter_multi_copy): New function.
37254 (mbui_copy): New macro.
37256 2007-02-11 Bruno Haible <bruno@clisp.org>
37259 * modules/mbslen: New file.
37260 * lib/mbslen.c: New file.
37261 * lib/string_.h (mbslen): New declaration.
37262 * m4/mbslen.m4: New file.
37263 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37265 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
37266 * MODULES.html.sh (Internationalization functions): Add mbslen.
37268 2007-02-11 Bruno Haible <bruno@clisp.org>
37270 Ensure O(n) worst-case complexity of strcasestr substitute.
37271 * lib/strcasestr.c: Include stdbool.h.
37272 (knuth_morris_pratt): New function.
37273 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
37274 bookkeeping indicates that it's worth it.
37275 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
37277 * modules/strcasestr-tests: New file.
37278 * tests/test-strcasestr.c: New file.
37280 2007-02-11 Bruno Haible <bruno@clisp.org>
37282 Ensure O(n) worst-case complexity of c_strcasestr.
37283 * lib/c-strcasestr.c: Include stdbool.h, string.h.
37284 (knuth_morris_pratt): New function.
37285 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
37286 the bookkeeping indicates that it's worth it.
37287 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
37289 * modules/c-strcasestr-tests: New file.
37290 * tests/test-c-strcasestr.c: New file.
37292 2007-02-11 Bruno Haible <bruno@clisp.org>
37294 Ensure O(n) worst-case complexity of c_strstr.
37295 * lib/c-strstr.c: Include stdbool.h, string.h.
37296 (knuth_morris_pratt): New function.
37297 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
37298 bookkeeping indicates that it's worth it.
37299 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
37301 * lib/c-strstr.c: Complete rewrite for maintainability.
37303 * modules/c-strstr-tests: New file.
37304 * tests/test-c-strstr.c: New file.
37306 2007-02-11 Bruno Haible <bruno@clisp.org>
37308 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
37309 5.2.1 and earlier, whereby \055 was treated just like the range
37311 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
37313 2007-02-08 Bruno Haible <bruno@clisp.org>
37315 * modules/regex (Depends-on): Add stdbool.
37316 Reported by Dalibor Topic <robilad@kaffe.org>.
37318 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
37320 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
37321 Prefer returning from main to exiting from it.
37322 Remove unnecessary parens after sizeof.
37324 2007-02-05 Bruno Haible <bruno@clisp.org>
37327 * modules/mbssep: New file.
37328 * lib/mbssep.c: New file.
37329 * lib/string_.h (strsep): Add a conditional link warning.
37330 (mbssep): New declaration.
37331 * m4/mbssep.m4: New file.
37332 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37334 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
37335 * MODULES.html.sh (Internationalization functions): Add mbssep.
37337 2007-02-05 Bruno Haible <bruno@clisp.org>
37339 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
37340 Optimize search in case of 1 delimiter.
37342 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
37344 * lib/acl.h: Include sys/types.h before sys/acl.h.
37346 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
37348 Merge upstream fix for glibc bugzilla #3957:
37350 2007-02-05 Jakub Jelinek <jakub@redhat.com>
37352 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
37353 bit for RE_HAT_LISTS_NOT_NEWLINE.
37354 (build_charclass_op): Remove bogus comment.
37356 2007-02-05 Simon Josefsson <simon@josefsson.org>
37358 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
37360 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
37362 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
37363 * lib/memmem.c [!defined _LIBC]: Include config.h.
37365 2007-02-04 Bruno Haible <bruno@clisp.org>
37367 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
37370 2007-02-04 Bruno Haible <bruno@clisp.org>
37372 New module mbstok_r.
37373 * modules/mbstok_r: New file.
37374 * lib/mbstok_r.c: New file.
37375 * lib/string_.h (strtok_r): Change argument names to match the
37376 comments. Add a conditional link warning.
37377 (mbstok_r): New declaration.
37378 * m4/mbstok_r.m4: New file.
37379 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37381 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
37382 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
37384 2007-02-04 Bruno Haible <bruno@clisp.org>
37387 * modules/mbsspn: New file.
37388 * lib/mbsspn.c: New file.
37389 * lib/string_.h (strspn): Add a conditional link warning.
37390 (mbsspn): New declaration.
37391 * m4/mbsspn.m4: New file.
37392 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37394 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
37395 * MODULES.html.sh (Internationalization functions): Add mbsspn.
37397 2007-02-04 Bruno Haible <bruno@clisp.org>
37399 New module mbspbrk.
37400 * modules/mbspbrk: New file.
37401 * lib/mbspbrk.c: New file.
37402 * lib/string_.h (strpbrk): Add a conditional link warning.
37403 (mbspbrk): New declaration.
37404 * m4/mbspbrk.m4: New file.
37405 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37407 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
37408 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
37410 2007-02-04 Bruno Haible <bruno@clisp.org>
37412 New module mbscspn.
37413 * modules/mbscspn: New file.
37414 * lib/mbscspn.c: New file.
37415 * lib/string_.h (strcspn): Add a conditional link warning.
37416 (mbscspn): New declaration.
37417 * m4/mbscspn.m4: New file.
37418 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37420 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
37421 * MODULES.html.sh (Internationalization functions): Add mbscspn.
37423 2007-02-04 Bruno Haible <bruno@clisp.org>
37425 New module mbscasestr, reduced goal of strcasestr.
37426 * modules/mbscasestr: New file.
37427 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
37428 (mbscasestr): Renamed from strcasestr.
37429 * lib/strcasestr.c: Don't include mbuiter.h.
37430 (strcasestr): Remove support for multibyte locales.
37431 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
37432 Change the conditional link warning.
37433 (mbscasestr): New declaration.
37434 * m4/mbscasestr.m4: New file.
37435 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
37436 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
37437 REPLACE_STRCASESTR.
37438 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
37439 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37440 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
37441 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
37442 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
37443 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
37444 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
37445 (Depends-on): Remove mbuiter.
37446 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
37448 2007-02-04 Bruno Haible <bruno@clisp.org>
37450 Simplify handling of strncasecmp.
37451 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
37452 the conditional link warning.
37453 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37454 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
37455 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
37456 * modules/strcase (configure.ac): Don't invoke
37457 gl_STRING_MODULE_INDICATOR.
37458 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
37460 2007-02-04 Bruno Haible <bruno@clisp.org>
37462 New module mbscasecmp, reduced goal of strcasecmp.
37463 * modules/mbscasecmp: New file.
37464 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
37465 (mbscasecmp): Renamed from strcasecmp.
37466 * lib/strcasecmp.c: Don't include mbuiter.h.
37467 (strcasecmp): Remove support for multibyte locales.
37468 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
37469 Change the conditional link warning.
37470 (mbscasecmp): New declaration.
37471 * m4/mbscasecmp.m4: New file.
37472 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
37473 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
37474 REPLACE_STRCASECMP.
37475 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
37476 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37478 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
37479 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
37480 * modules/strcase (Files): Remove m4/mbrtowc.m4.
37481 (Depends-on): Remove mbuiter.
37482 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
37484 2007-02-04 Bruno Haible <bruno@clisp.org>
37486 New module mbsstr. Remove module strstr.
37487 * modules/mbsstr: New file.
37488 * modules/strstr: Remove file.
37489 * lib/mbsstr.c: Renamed from lib/strstr.c.
37490 (mbsstr): Renamed from strstr.
37491 * lib/string_.h (strstr): Remove declaration. Change the conditional
37493 (mbsstr): New declaration.
37494 * m4/mbsstr.m4: New file.
37495 * m4/strstr.m4: Remove file.
37496 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
37498 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
37499 Don't initialize GNULIB_STRSTR.
37500 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
37501 substitute GNULIB_STRSTR and REPLACE_STRSTR.
37502 * MODULES.html.sh (Internationalization functions): Add mbsstr.
37503 (Support for systems lacking ANSI C 89): Remove strstr.
37505 2007-02-04 Bruno Haible <bruno@clisp.org>
37507 New module mbsrchr.
37508 * modules/mbsrchr: New file.
37509 * lib/mbsrchr.c: New file.
37510 * lib/string_.h (strrchr): Add a conditional link warning.
37511 (mbsrchr): New declaration.
37512 * m4/mbsrchr.m4: New file.
37513 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37515 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
37516 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
37518 2007-02-04 Bruno Haible <bruno@clisp.org>
37521 * modules/mbschr: New file.
37522 * lib/mbschr.c: New file.
37523 * lib/string_.h (strchr): Add a conditional link warning.
37524 (mbschr): New declaration.
37525 * m4/mbschr.m4: New file.
37526 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37528 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
37529 * MODULES.html.sh (Internationalization functions): Add mbschr.
37531 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
37533 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
37535 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
37537 2007-02-04 Bruno Haible <bruno@clisp.org>
37539 New module description section 'configure.ac-early'.
37540 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
37541 (func_get_autoconf_early_snippet): New function.
37542 (func_import, func_create_testdir): Use it. Remove special cases for
37543 modules 'extensions' and 'lock'.
37544 * modules/extensions (configure.ac-early): Require
37545 gl_USE_SYSTEM_EXTENSIONS.
37546 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
37548 2007-02-04 Bruno Haible <bruno@clisp.org>
37550 Make use of gcj-4.3's -fsource and -ftarget option.
37551 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
37552 and if so try the options -fsource and -ftarget.
37553 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
37554 source_version, ftarget_option, target_version arguments.
37555 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
37556 (is_envjavac_oldgcj_14_14_usable): Renamed from
37557 is_envjavac_gcj_14_14_usable.
37558 (is_envjavac_oldgcj_14_13_usable): Renamed from
37559 is_envjavac_gcj_14_13_usable.
37560 (is_gcj_present): Update.
37561 (is_gcj_43, is_gcj43_usable): New functions.
37562 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
37563 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
37564 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
37565 try the options -fsource and -ftarget.
37567 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
37569 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
37570 checking code. Set N = ceil (1.5 * N) rather than to a slightly
37573 2007-02-03 Jim Meyering <jim@meyering.net>
37575 Give tools a better chance to allocate space for very large buffers.
37576 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
37578 Make pwd and readlink work also when run with an unreadable parent dir
37579 on systems with openat support.
37580 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
37581 provided getcwd function, even when we have openat support.
37582 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
37584 2007-02-02 Bruno Haible <bruno@clisp.org>
37586 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37587 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
37588 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
37589 portability problems if one of these functions is only used on specific
37591 Reported by Paul Eggert.
37593 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
37595 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
37596 is causing more trouble than it's curing.
37597 * lib/regex_internal.h (__mempcpy): Remove.
37598 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
37599 (and make the code a tad smaller to boot).
37600 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
37602 2007-02-02 Jim Meyering <jim@meyering.net>
37604 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
37605 section, not in the Makefile.am: one.
37607 2007-02-02 Eric Blake <ebb9@byu.net>
37609 * lib/strchrnul.c: Always include config.h first.
37611 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
37612 gnulib strstr is not necessary here.
37614 2007-02-02 Simon Josefsson <simon@josefsson.org>
37616 * m4/socklen.m4: Fix typo.
37618 2007-02-02 Eric Blake <ebb9@byu.net>
37620 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
37621 * modules/netinet_in (Makefile.am): Likewise.
37623 2007-02-01 Bruno Haible <bruno@clisp.org>
37625 * lib/string_.h (GL_LINK_WARNING): New macro.
37626 (strcasecmp, strstr, strcasestr): If provided by the system,
37627 conditionally define as a macro that leads to a warning instead of to
37629 (strncasecmp): Conditionally define as a macro that leads to a warning.
37631 2007-02-01 Karl Berry <karl@gnu.org>
37633 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
37635 2007-02-01 Bruno Haible <bruno@clisp.org>
37637 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
37640 2007-02-01 Eric Blake <ebb9@byu.net>
37642 * modules/regex (Depends-on): Revert dependence on mempcpy.
37643 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
37644 module's definition of mempcpy.
37645 Reported by Paul Eggert.
37647 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
37649 * lib/string_.h: If the gnulib module XYZ is not present, undefine
37650 the symbol XYZ before redefining it. This fixes a problem with
37651 programs that don't use XYZ, when compiled on systems that define
37652 XYZ to something else.
37654 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
37656 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
37657 occurs when "mkdir -m foo" creates a setgid directory that is (1)
37658 writeable to group or other and (2) is intended to have a special
37659 mode bit that is set or cleared. In such a case, the directory
37660 should be neither group- nor other-writeable until the special
37661 mode bits are right.
37663 2007-01-31 Eric Blake <ebb9@byu.net>
37665 * modules/mountlist (Depends-on): Add strstr.
37667 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
37669 * modules/string (Makefile.am): Remove redundant replacement.
37670 * modules/regex (Depends-on): Add mempcpy.
37672 2007-01-31 Bruno Haible <bruno@clisp.org>
37674 New module description field 'Link'.
37675 * gnulib-tool (func_usage): Document --extract-link-directive.
37676 (sed_extract_prog): Recognize 'Link' directive.
37677 (func_get_link_directive): New function.
37678 (func_import): Show summary of link directives.
37679 Handle --extract-link-directive option.
37680 * modules/acl (Link): New section.
37681 * modules/clock-time (Link): New section.
37682 * modules/euidaccess (Link): New section.
37683 * modules/gettext (Link): New section.
37684 * modules/iconv (Link): New section.
37685 * modules/lock (Link): New section.
37686 * modules/nanosleep (Link): New section.
37687 * modules/readline (Link): New section.
37689 2007-01-27 Bruno Haible <bruno@clisp.org>
37691 Enforce the use of gnulib modules for unportable <string.h> functions.
37692 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
37693 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
37694 (gl_HEADER_STRING_H_BODY): Require it.
37695 * lib/string_.h: If the gnulib module XYZ is not present, redefine
37696 the symbol XYZ to one that gives a link error.
37697 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
37698 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
37699 * modules/mempcpy (configure.ac): Likewise.
37700 * modules/memrchr (configure.ac): Likewise.
37701 * modules/stpcpy (configure.ac): Likewise.
37702 * modules/stpncpy (configure.ac): Likewise.
37703 * modules/strcase (configure.ac): Likewise.
37704 * modules/strcasestr (configure.ac): Likewise.
37705 * modules/strchrnul (configure.ac): Likewise.
37706 * modules/strdup (configure.ac): Likewise.
37707 * modules/strndup (configure.ac): Likewise.
37708 * modules/strnlen (configure.ac): Likewise.
37709 * modules/strpbrk (configure.ac): Likewise.
37710 * modules/strsep (configure.ac): Likewise.
37711 * modules/strstr (configure.ac): Likewise.
37712 * modules/strtok_r (configure.ac): Likewise.
37714 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
37716 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
37718 2007-01-30 Jim Meyering <jim@meyering.net>
37720 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
37722 2007-01-29 Bruno Haible <bruno@clisp.org>
37724 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
37725 * lib/execute.c: Likewise.
37726 * lib/pipe.c: Likewise.
37727 * lib/printf-args.h: Likewise.
37728 * lib/printf-args.c: Likewise.
37729 * lib/printf-parse.c: Likewise.
37730 * lib/vasnprintf.c: Likewise.
37732 2007-01-29 Eric Blake <ebb9@byu.net>
37734 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
37737 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
37739 * lib/strptime.h (strptime): Use 'restrict' for args where
37740 POSIX requires this.
37741 * lib/strptime.c (strptime): Likewise.
37742 Change license notice from LGPL to GPL, since gnulib-tool will
37743 change this as needed.
37744 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
37746 Include "strptime.h" first, to check interface.
37747 Do not #undef _LIBC and _NL_CURRENT.
37748 Do not include <stdlib.h>; no longer needed.
37749 Include "time_r.h" and declare ptime_locale_status
37750 only if _LIBC is not defined.
37751 (__P): Remove unused macro.
37752 (match_string): Bring back glibc version, but use it only if _LIBC
37754 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
37755 Remove unnecessary assertion and abort() call.
37756 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
37757 * m4/strptime.m4: Fix serial number comment.
37758 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
37759 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
37760 (Depends-on): Add time_r.
37762 2007-01-29 Bruno Haible <bruno@clisp.org>
37764 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37766 * modules/strptime (Depends-on): Add stdbool.
37767 * lib/strptime.h: Include <time.h> always. Add comments.
37769 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
37771 * modules/strptime: New file.
37772 * lib/strptime.h: New file.
37773 * lib/strptime.c: New file.
37774 * m4/strptime.m4: New file.
37776 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
37778 * MODULES.html.sh: New module mpsort.
37779 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
37781 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
37782 a circularity problem with HP-UX ia64 reported by Bob Proulx in
37783 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
37785 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
37787 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
37789 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
37790 the parameter matches the prototype.
37792 2007-01-28 Jim Meyering <jim@meyering.net>
37794 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
37795 sys/time.h here, reverting that part of the previous patch:
37796 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
37798 2007-01-28 Bruno Haible <bruno@clisp.org>
37800 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
37801 value of $(SYS_TIME_H).
37802 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
37803 remove it conditionally, too. [added by Jim Meyering]
37804 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
37805 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
37806 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
37807 GETTIMEOFDAY_REPLACEMENT to 1.
37809 2007-01-28 Bruno Haible <bruno@clisp.org>
37811 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
37812 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
37813 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
37814 Set UNISTD_H instead of UNISTD_H2.
37815 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
37817 2007-01-28 Bruno Haible <bruno@clisp.org>
37819 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
37820 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
37822 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37824 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
37825 (func_create_testdir): Ensure C locale for `grep' and `tr'
37827 (func_create_megatestdir): Avoid one `grep'. Fix bug in
37828 ACLOCAL_AMFLAGS parsing state machine.
37830 2007-01-27 Bruno Haible <bruno@clisp.org>
37832 * modules/unistr/base: Update.
37834 2007-01-27 Bruno Haible <bruno@clisp.org>
37836 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
37837 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
37838 * modules/unistr/u32-mbtouc-unsafe: Renamed from
37839 modules/unistr/u32-mbtouc.
37840 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
37841 * lib/unistr.h: Update.
37842 * lib/linebreak.c: Update.
37843 * modules/unistr/u32-mbtouc: Renamed from
37844 modules/unistr/u32-mbtouc-safe.
37845 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
37846 * lib/unistr.h: Update.
37847 * lib/unistr/u32-to-u8.c: Update.
37848 * lib/unistr/u32-to-u16.c: Update.
37850 2007-01-27 Bruno Haible <bruno@clisp.org>
37852 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
37853 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
37854 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
37855 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
37856 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
37857 * modules/unistr/u16-mbtouc-unsafe: Renamed from
37858 modules/unistr/u16-mbtouc.
37859 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
37860 * lib/unistr.h: Update.
37861 * lib/linebreak.c: Update.
37862 * modules/linebreak: Update.
37863 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
37864 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
37865 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
37866 * modules/unistr/u16-mbtouc: Renamed from
37867 modules/unistr/u16-mbtouc-safe.
37868 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
37869 * lib/unistr.h: Update.
37870 * lib/unistr/u16-to-u8.c: Update.
37871 * modules/unistr/u16-to-u8: Update.
37872 * lib/unistr/u16-to-u32.c: Update.
37873 * modules/unistr/u16-to-u32: Update.
37875 2007-01-27 Bruno Haible <bruno@clisp.org>
37877 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
37878 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
37879 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
37880 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
37881 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
37882 * modules/unistr/u8-mbtouc-unsafe: Renamed from
37883 modules/unistr/u8-mbtouc.
37884 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
37885 * lib/unistr.h: Update.
37886 * lib/striconveh.c: Update.
37887 * modules/striconveh: Update.
37888 * lib/linebreak.c: Update.
37889 * modules/linebreak: Update.
37890 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
37891 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
37892 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
37893 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
37894 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
37895 * lib/unistr.h: Update.
37896 * lib/striconveh.c: Update.
37897 * modules/striconveh: Update.
37898 * lib/unistr/u8-to-u16.c: Update.
37899 * modules/unistr/u8-to-u16: Update.
37900 * lib/unistr/u8-to-u32.c: Update.
37901 * modules/unistr/u8-to-u32: Update.
37903 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37906 * lib/argz.c: Do not include strings.h nor memory.h, include
37907 string.h unconditionally. Patch by Simon Josefsson.
37909 2007-01-27 Bruno Haible <bruno@clisp.org>
37911 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
37912 from gl_HEADER_STRING_H_BODY.
37913 (gl_HEADER_STRING_H_BODY): Require it.
37914 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
37915 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
37916 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
37917 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
37918 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
37919 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
37920 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37921 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
37922 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
37923 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
37924 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
37925 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
37926 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
37927 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37928 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
37930 2007-01-27 Bruno Haible <bruno@clisp.org>
37932 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
37933 check_PROGRAMS into noinst_PROGRAMS.
37934 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
37935 check_PROGRAMS in this case.
37936 (func_import): Set for_test to false.
37937 (func_create_testdir): Set for_test to true.
37939 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
37940 Bruno Haible <bruno@clisp.org>
37942 * modules/strcasestr (Files): Remove lib/strcasestr.h.
37943 (Depends-on): Add string.
37944 (Includes): Use <string.h> instead of strcasestr.h.
37945 * modules/string (Makefile.am): Also substitute the value of
37946 REPLACE_STRCASESTR.
37947 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
37948 assume strcasestr is declared in <string.h> not <strings.h>. Also
37949 set REPLACE_STRCASESTR.
37950 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
37951 REPLACE_STRCASESTR.
37952 * lib/strcasestr.h: Remove file.
37953 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
37954 * lib/string_.h (strcasestr): New declaration.
37956 2007-01-27 Bruno Haible <bruno@clisp.org>
37958 * lib/string_.h: Use 'extern'.
37960 2007-01-27 Jim Meyering <jim@meyering.net>
37962 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
37963 of set-but-not-used local, "q".
37965 * lib/mempcpy.c: Include <config.h> before <string.h>.
37966 This fixes a compilation error on HP-UX, due to the system's
37967 "restrict"-using mempcpy prototype.
37969 2007-01-26 Bruno Haible <bruno@clisp.org>
37971 Small optimization.
37972 * lib/javacomp.c: Include c-strstr.h.
37973 (is_envjavac_gcj): Use c_strstr instead of strstr.
37974 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
37976 2007-01-26 Bruno Haible <bruno@clisp.org>
37978 * MODULES.html.sh (Unicode string functions): Add the new modules.
37980 * modules/uniconv/u32-strconv-to-locale: New file.
37981 * lib/uniconv/u32-strconv-to-locale.c: New file.
37983 * modules/uniconv/u16-strconv-to-locale: New file.
37984 * lib/uniconv/u16-strconv-to-locale.c: New file.
37986 * modules/uniconv/u8-strconv-to-locale: New file.
37987 * lib/uniconv/u8-strconv-to-locale.c: New file.
37989 * modules/uniconv/u32-strconv-from-locale: New file.
37990 * lib/uniconv/u32-strconv-from-locale.c: New file.
37992 * modules/uniconv/u16-strconv-from-locale: New file.
37993 * lib/uniconv/u16-strconv-from-locale.c: New file.
37995 * modules/uniconv/u8-strconv-from-locale: New file.
37996 * lib/uniconv/u8-strconv-from-locale.c: New file.
37998 * modules/uniconv/u32-strconv-to-enc: New file.
37999 * lib/uniconv/u32-strconv-to-enc.c: New file.
38000 * modules/uniconv/u32-strconv-to-enc-tests: New file.
38001 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
38003 * modules/uniconv/u16-strconv-to-enc: New file.
38004 * lib/uniconv/u16-strconv-to-enc.c: New file.
38005 * lib/uniconv/u-strconv-to-enc.h: New file.
38006 * modules/uniconv/u16-strconv-to-enc-tests: New file.
38007 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
38009 * modules/uniconv/u8-strconv-to-enc: New file.
38010 * lib/uniconv/u8-strconv-to-enc.c: New file.
38011 * modules/uniconv/u8-strconv-to-enc-tests: New file.
38012 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
38014 * modules/uniconv/u32-strconv-from-enc: New file.
38015 * lib/uniconv/u32-strconv-from-enc.c: New file.
38016 * modules/uniconv/u32-strconv-from-enc-tests: New file.
38017 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
38019 * modules/uniconv/u16-strconv-from-enc: New file.
38020 * lib/uniconv/u16-strconv-from-enc.c: New file.
38021 * modules/uniconv/u16-strconv-from-enc-tests: New file.
38022 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
38024 * modules/uniconv/u8-strconv-from-enc: New file.
38025 * lib/uniconv/u8-strconv-from-enc.c: New file.
38026 * lib/uniconv/u-strconv-from-enc.h: New file.
38027 * modules/uniconv/u8-strconv-from-enc-tests: New file.
38028 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
38030 * modules/uniconv/u32-conv-from-enc: New file.
38031 * lib/uniconv/u32-conv-from-enc.c: New file.
38032 * modules/uniconv/u32-conv-from-enc-tests: New file.
38033 * tests/uniconv/test-u32-conv-from-enc.c: New file.
38035 * modules/uniconv/u16-conv-from-enc: New file.
38036 * lib/uniconv/u16-conv-from-enc.c: New file.
38037 * lib/uniconv/u-conv-from-enc.h: New file.
38038 * modules/uniconv/u16-conv-from-enc-tests: New file.
38039 * tests/uniconv/test-u16-conv-from-enc.c: New file.
38041 * modules/uniconv/u8-conv-from-enc: New file.
38042 * lib/uniconv/u8-conv-from-enc.c: New file.
38043 * modules/uniconv/u8-conv-from-enc-tests: New file.
38044 * tests/uniconv/test-u8-conv-from-enc.c: New file.
38046 * modules/uniconv/base: New file.
38047 * lib/uniconv.h: New file.
38049 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
38051 * doc/gnulib-tool.texi (Initial import): Update to match current
38052 behavior with strdup module.
38053 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
38054 * lib/memmem.h: Remove; all uses removed. This is now done
38056 * lib/mempcpy.h: Likewise.
38057 * lib/memrchr.h: Likewise.
38058 * lib/stpcpy.h: Likewise.
38059 * lib/stpncpy.h: Likewise.
38060 * lib/strcase.h: Likewise.
38061 * lib/strchrnul.h: Likewise.
38062 * lib/strdup.h: Likewise.
38063 * lib/strndup.h: Likewise.
38064 * lib/strnlen.h: Likewise.
38065 * lib/strpbrk.h: Likewise.
38066 * lib/strsep.h: Likewise.
38067 * lib/strstr.h: Likewise.
38068 * lib/strtok_r.h: Likewise.
38069 * lib/string_.h: New file.
38070 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
38071 Rely on <string.h> instead.
38072 * lib/canon-host.c: Likewise.
38073 * lib/chdir-long.c: Likewise.
38074 * lib/concatpath.c: Likewise.
38075 * lib/exclude.c: Likewise.
38076 * lib/fchdir.c: Likewise.
38077 * lib/getaddrinfo.c: Likewise.
38078 * lib/getcwd.c: Likewise.
38079 * lib/getsubopt.c: Likewise.
38080 * lib/glob.c: Likewise.
38081 * lib/hard-locale.c: Likewise.
38082 * lib/iconvme.c: Likewise.
38083 * lib/javacomp.c: Likewise.
38084 * lib/mempcpy.c: Likewise.
38085 * lib/memrchr.c: Likewise.
38086 * lib/regex_internal.h: Likewise.
38087 * lib/stpncpy.c: Likewise.
38088 * lib/strcasecmp.c: Likewise.
38089 * lib/strchrnul.c: Likewise.
38090 * lib/strdup.c: Likewise.
38091 * lib/striconv.c: Likewise.
38092 * lib/striconveh.c: Likewise.
38093 * lib/striconveha.c: Likewise.
38094 * lib/strncasecmp.c: Likewise.
38095 * lib/strndup.c: Likewise.
38096 * lib/strnlen.c: Likewise.
38097 * lib/strsep.c: Likewise.
38098 * lib/strstr.c: Likewise.
38099 * lib/strtok_r.c: Likewise.
38100 * lib/userspec.c: Likewise.
38101 * lib/w32spawn.h: Likewise.
38102 * lib/xstrndup.c: Likewise.
38103 * lib/mountlist.c (strstr): Remove decl.
38104 * m4/string_h.m4: New file.
38105 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
38106 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
38107 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
38108 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
38109 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
38110 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
38111 Set REPLACE_STRCASECMP if necessary.
38112 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
38113 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
38114 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
38115 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
38116 HAVE_DECL_STRDUP if necessary.
38117 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
38118 since gl_FUNC_STRNDUP does that now.
38119 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
38120 Check for decl here...
38121 (gl_PREREQ_STRNLEN): ... not here.
38122 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
38123 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
38124 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
38125 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
38127 * modules/string: New file.
38128 * modules/memmem (Files): Remove special-purpose include file.
38129 (Depends-on): Add string.
38130 (Include): Include <string.h>, not the removed file.
38131 * modules/mempcpy: Likewise.
38132 * modules/memrchr: Likewise.
38133 * modules/stpcpy: Likewise.
38134 * modules/stpncpy: Likewise.
38135 * modules/strcase: Likewise.
38136 * modules/strchrnul: Likewise.
38137 * modules/strdup: Likewise.
38138 * modules/strndup: Likewise.
38139 * modules/strnlen: Likewise.
38140 * modules/strpbrk: Likewise.
38141 * modules/strsep: Likewise.
38142 * modules/strstr: Likewise.
38143 * modules/strtok_r: Likewise.
38144 * tests/test-dirname.c: Don't include "strdup.h", since
38145 <string.h> now suffices.
38146 * tests/test-memmem.c: Don't include "memmem.h", since
38147 <string.h> now suffices.
38149 2007-01-25 Bruno Haible <bruno@clisp.org>
38151 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
38154 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
38155 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
38156 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
38157 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
38159 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
38160 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
38161 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
38162 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
38163 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
38164 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
38166 2007-01-24 Bruno Haible <bruno@clisp.org>
38168 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
38169 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
38170 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
38171 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
38173 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
38174 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
38175 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
38176 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
38177 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
38178 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
38180 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
38182 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
38183 Reported by Ralf Wildenhues.
38185 2007-01-24 Bruno Haible <bruno@clisp.org>
38187 Drop AC_REQUIRE calls that are redundant with the module dependencies.
38188 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
38190 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
38191 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
38192 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
38194 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
38196 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
38197 Don't use 'exit'; just return from 'main'.
38198 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
38200 * lib/fnmatch_.h: Readjust white space and comments to match
38201 glibc, to avoid spurious diffs.
38203 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
38205 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
38206 2004-12-01 change by Jakub Jelinek, since this code won't compile
38207 if !LIBC. Problem reported by Bob Proulx.
38209 2007-01-23 Bruno Haible <bruno@clisp.org>
38211 * lib/striconveh.c: Include c-strcaseeq.h.
38212 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
38213 * modules/striconveh (Depends-on): Add c-strcaseeq.
38215 2007-01-23 Bruno Haible <bruno@clisp.org>
38217 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
38219 * modules/c-strcaseeq: New file.
38220 * lib/c-strcaseeq.h: New file.
38222 * modules/streq: New file.
38223 * lib/streq.h: New file.
38225 2007-01-23 Bruno Haible <bruno@clisp.org>
38227 * modules/striconveha-tests: New file.
38228 * tests/test-striconveha.c: New file.
38230 * lib/striconveha.h: Include <stdbool.h>.
38231 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
38232 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
38233 (mem_iconveha_notranslit): Renamed from mem_iconveha.
38234 (mem_iconveha): New function.
38235 (str_iconveha_notranslit): Renamed from str_iconveha.
38236 (str_iconveha): New function.
38237 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
38240 2007-01-23 Bruno Haible <bruno@clisp.org>
38242 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
38243 encodings without forgiving before trying any encoding with handler.
38244 (str_iconveha): Try all encodings without forgiving before trying any
38245 encoding with handler.
38247 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
38249 Import the following changes from libc.
38251 2005-10-14 Ulrich Drepper <drepper@redhat.com>
38253 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
38255 2004-12-01 Jakub Jelinek <jakub@redhat.com>
38257 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
38258 normal_bracket label.
38260 2004-09-01 Jakub Jelinek <jakub@redhat.com>
38263 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
38264 to normal_bracket after fetching the next character.
38266 2007-01-22 Bruno Haible <bruno@clisp.org>
38268 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
38270 * lib/striconveh.c (iconv_carefully_1): New function.
38271 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
38273 (str_cd_iconveh): Update.
38274 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
38275 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
38276 * tests/test-striconveh.c (MAGIC): New macro.
38277 (new_offsets): New function.
38278 (main): Test call with and without offsets.
38280 2007-01-22 Bruno Haible <bruno@clisp.org>
38282 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
38283 * modules/sys_select (Makefile.am): Likewise.
38284 * modules/sys_socket (Makefile.am): Likewise.
38285 * modules/sys_time (Makefile.am): Likewise.
38287 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
38289 * modules/gettimeofday (License): Change from GPL to LGPL, since
38290 gettimeofday is a library function.
38292 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38294 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
38296 2007-01-21 Bruno Haible <bruno@clisp.org>
38298 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
38300 2007-01-21 Bruno Haible <bruno@clisp.org>
38302 * modules/striconveha: New file.
38303 * lib/striconveha.h: New file.
38304 * lib/striconveha.c: New file.
38305 * MODULES.html.sh (Internationalization functions): Add striconveha.
38306 * lib/striconv.c (str_iconv): Optimize the case of an empty input
38308 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
38310 2007-01-21 Bruno Haible <bruno@clisp.org>
38312 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
38313 * lib/striconveh.c (str_iconveh): Likewise.
38315 2007-01-21 Bruno Haible <bruno@clisp.org>
38317 * lib/striconveh.h (mem_iconveh): New declaration.
38318 * lib/striconveh.c (mem_iconveh): New function.
38319 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
38321 2007-01-21 Bruno Haible <bruno@clisp.org>
38323 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
38325 * lib/striconveh.h (mem_cd_iconveh): Change specification.
38326 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
38327 original result buffer.
38328 (str_cd_iconveh): Update.
38329 * tests/test-striconveh.c (main): Update.
38331 * lib/striconv.h (mem_cd_iconv): Change specification.
38332 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
38334 (str_cd_iconv): Update.
38335 * tests/test-striconv.c (main): Update.
38337 2007-01-21 Bruno Haible <bruno@clisp.org>
38339 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
38341 2007-01-20 Jim Meyering <jim@meyering.net>
38343 * lib/userspec.c (parse_with_separator): If a user or group string
38344 starts with "+", skip the corresponding name-to-ID look-up, since
38345 such a look-up must fail: user and group names may not include "+".
38347 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
38349 * lib/poll.c: Include sys/time.h and time.h unconditionally,
38350 since we now assume the sys_time module.
38351 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
38352 check for sys/time.h; no longer needed.
38353 * modules/poll (Depends-on): Depend on sys_time.
38355 2007-01-18 Bruno Haible <bruno@clisp.org>
38357 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
38358 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
38360 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
38363 * tests/test-gettimeofday.c: Include <time.h>.
38364 (dummy): Remove variable.
38366 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
38367 gl_HEADER_SYS_TIME_H.
38368 (gl_HEADER_SYS_TIME_H): New macro.
38370 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
38371 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38372 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
38373 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
38374 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38375 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
38376 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
38377 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38378 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
38379 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
38380 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38382 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
38383 last change; it caused a compilation error when cross-compiling to
38386 2007-01-18 Jim Meyering <jim@meyering.net>
38388 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
38389 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
38390 than the race-prone "test -d sys || mkdir sys".
38391 (configure.ac): Use AC_PROG_MKDIR_P.
38392 * modules/sys_select: Likewise.
38393 * modules/sys_socket: Likewise.
38394 * modules/sys_time: Likewise.
38396 2007-01-18 Eric Blake <ebb9@byu.net>
38398 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
38399 replace gettimeofday.
38400 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
38401 name, to avoid infinite recursion.
38403 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
38405 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
38407 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
38408 assume timespec.h defines struct timeval.
38409 * lib/settime.c: Likewise.
38410 * lib/utimens.c: Likewise.
38411 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
38412 since we now assume the gettimeofday module.
38413 * lib/tempname.c (__gen_tempname): Likewise.
38414 * lib/gettimeofday.h: Remove.
38415 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
38416 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
38417 Include <time.h>, for 'time()'.
38418 (localtime_buffer_addr): Also use this workaround if
38419 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
38420 to simplify the uses. All uses changed.
38421 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
38422 that #undef is inside {}, and 'const' follows type name consistently.
38423 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
38424 (gettimeofday): Do not use the maximum possible value for
38425 tv->tv_usec, since that might break usages other than ls.c.
38426 Instead, we'll leave ls.c alone. This undoes today's patch
38427 by Bruno. Add a compile-time warning for 1s-clock resolution;
38428 we've never observed the problem but might as well keep the
38430 * lib/nanosleep.c: Include timespec.h first, for interface check.
38431 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
38432 now assume the sys_time module.
38433 * lib/tempname.c: Likewise.
38434 * lib/timespec.h: Likewise.
38435 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
38437 * lib/strftime.c: Likewise.
38438 * lib/timespec.h: Likewise.
38439 * lib/posixtm.c: Include posixtm.h first, for interface check.
38440 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
38441 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
38442 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
38443 * lib/sys_time_.h: New file.
38444 * lib/timespec.h (struct timespec): Use long int, not long.
38445 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
38446 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
38447 Remove obsolescent call to AC_HEADER_TIME.
38448 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
38449 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38450 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
38451 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
38453 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
38454 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
38455 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
38456 into the sys_time module. Check for gettimeofday just once.
38457 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
38458 for gettimeofday signature to just check the signature. Merely
38459 compile it, since linking doesn't test signature. Improve test for
38460 whether gettimeofday.o is actually needed.
38461 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
38462 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
38463 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
38464 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38465 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
38466 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
38467 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
38468 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
38469 than worrying about sys/time.h.
38470 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
38471 Don't bother worrying about TIME_WITH_SYS_TIME.
38472 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
38473 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
38474 * m4/sys_time_h.m4: New file.
38475 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
38476 Don't include sys/time.h. Return from main rather than exiting.
38477 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
38479 * modules/gethrxtime (Depends-on): Add sys_time.
38480 * modules/gettime (Depends-on): Likewise.
38481 * modules/gettimeofday (Depends-on): Likewise.
38482 * modules/nanosleep (Depends-on): Likewise.
38483 * modules/settime (Depends-on): Likewise.
38484 * modules/tempname (Depends-on): Likewise.
38485 * modules/utimens (Depends-on): Likewise.
38486 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
38487 (Include:) Change back to <sys/time.h>.
38488 (Maintainer:) Add self.
38489 * modules/sys_time: New file.
38490 * modules/tempname (Depends-on): Add gettimeofday.
38491 * tests/test-gettimeofday.c: Include <sys/time.h>
38492 rather than gettimeofday.h.
38494 2007-01-17 Bruno Haible <bruno@clisp.org>
38496 * gnulib-tool (func_get_license): Revert last patch. Instead, let
38497 the license default to GPL.
38498 (func_create_testdir): Don't complain if a module is LGPL and its
38499 tests module depends on GPLed modules.
38501 2007-01-17 Bruno Haible <bruno@clisp.org>
38503 * lib/gettimeofday.c (gettimeofday): Add code for the case
38504 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
38505 maximum possible value for tv->tv_usec, rather than the minimum one.
38507 2005-10-08 Martin Lambers <marlam@marlam.de>
38508 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
38509 2007-01-16 Bruno Haible <bruno@clisp.org>
38511 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
38512 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
38513 gl_FUNC_GETTIMEOFDAY.
38514 (Include): Add gettimeofday.h.
38515 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
38516 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
38517 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
38518 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
38519 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
38520 * lib/gettimeofday.h: New file.
38521 * lib/gettimeofday.c: Include <sys/timeb.h>.
38522 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
38523 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38524 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
38525 fall back on time().
38527 * tests/test-gettimeofday.c: New file.
38528 * modules/gettimeofday-tests: New file.
38530 2007-01-16 Eric Blake <ebb9@byu.net>
38532 * modules/fnmatch (Depends-on): Depend on wchar.
38533 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
38534 * m4/fnmatch.m4: Likewise.
38535 * modules/mbchar (Makefile.am): Assume <wchar.h>.
38536 * m4/mbchar.m4: Likewise.
38537 * modules/mbswidth (Depends-on): Depend on wchar.
38538 * lib/mbswidth.c: Assume <wchar.h>.
38539 * m4/mbswidth.m4: Likewise.
38540 * modules/quotearg (Depends-on): Depend on wchar.
38541 * lib/quotearg.c: Assume <wchar.h>.
38542 * m4/quotearg.m4: Likewise.
38543 * modules/regex (Depends-on): Depend on wchar.
38544 * lib/regex_internal.h: Assume <wchar.h>.
38545 * m4/regex.m4: Likewise.
38546 * modules/stdint (Depends-on): Depend on wchar.
38547 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
38548 * m4/stdint.m4: Likewise.
38549 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
38550 * modules/strftime (Depends-on): Depend on wchar.
38551 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
38552 * modules/strtol (Depends-on): Depend on wchar.
38553 * lib/strtol.c: Assume <wchar.h>.
38554 * modules/wcwidth (Depends-on): Depend on wchar.
38555 * lib/wcwidth.h: Assume <wchar.h>.
38556 * m4/wcwidth.m4: Likewise.
38558 2007-01-16 Bruno Haible <bruno@clisp.org>
38560 * modules/csharpexec-script: New, created from...
38561 * modules/csharpexec: ... this.
38563 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
38565 * modules/javaexec-script: New, created from...
38566 * modules/javaexec: ... this.
38568 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38570 * modules/poll (Dependencies): Add sys_select.
38572 2007-01-15 Jim Meyering <jim@meyering.net>
38574 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
38575 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
38576 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
38577 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
38579 2007-01-15 Bruno Haible <bruno@clisp.org>
38581 * modules/striconveh: New file.
38582 * lib/striconveh.h: New file.
38583 * lib/striconveh.c: New file.
38584 * MODULES.html.sh (Internationalization functions): Add striconveh.
38586 * modules/striconveh-tests: New file.
38587 * tests/test-striconveh.c: New file.
38589 2007-01-15 Bruno Haible <bruno@clisp.org>
38591 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
38592 not from GNU libiconv or GNU libc.
38594 2007-01-15 Bruno Haible <bruno@clisp.org>
38596 * doc/gnulib-intro.texi (Copyright): Explain the different license
38597 terms for module descriptions, autoconf macros, tests, documentation.
38599 2007-01-14 Bruno Haible <bruno@clisp.org>
38601 * modules/striconv-tests: New file.
38602 * tests/test-striconv.c: New file.
38604 2007-01-14 Bruno Haible <bruno@clisp.org>
38606 * modules/iconv-tests: New file.
38607 * tests/test-iconv.c: New file.
38609 2007-01-14 Bruno Haible <bruno@clisp.org>
38611 * gnulib-tool (func_get_license): For test modules, use the license of
38614 2007-01-14 Bruno Haible <bruno@clisp.org>
38616 * modules/iconv (Include): Clarify that <iconv.h> can only be included
38617 if iconv is found to exist.
38619 2007-01-14 Bruno Haible <bruno@clisp.org>
38621 * modules/c-ctype-tests: New file.
38622 * tests/test-c-ctype.c: New file.
38624 2007-01-14 Bruno Haible <bruno@clisp.org>
38626 * modules/binary-io-tests: New file.
38627 * tests/test-binary-io.sh: New file.
38628 * tests/test-binary-io.c: New file.
38630 2007-01-14 Bruno Haible <bruno@clisp.org>
38632 * modules/array-oset-tests: New file.
38633 * tests/test-array_oset.c: New file.
38635 2007-01-14 Bruno Haible <bruno@clisp.org>
38637 * modules/array-list-tests: New file.
38638 * tests/test-array_list.c: New file.
38640 2007-01-14 Bruno Haible <bruno@clisp.org>
38642 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
38644 Reported by Simon Josefsson in
38645 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
38647 2007-01-14 Bruno Haible <bruno@clisp.org>
38649 * modules/allocsa-tests: New file.
38650 * tests/test-allocsa.c: New file.
38652 2007-01-14 Bruno Haible <bruno@clisp.org>
38654 * modules/fchdir (Depends-on): Add absolute-header.
38655 * modules/unistd (Depends-on): Likewise.
38657 2006-12-30 Bruno Haible <bruno@clisp.org>
38659 * modules/fchdir: New file.
38660 * modules/unistd (Files): Add lib/unistd_.h.
38661 (Makefile.am): Generate unistd.h from unistd_.h.
38662 * lib/fchdir.c: New file.
38663 * lib/dirent_.h: New file.
38664 * lib/unistd_.h: New file.
38665 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
38666 * m4/fchdir.m4: New file.
38667 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
38668 (gl_HEADER_UNISTD): Invoke it.
38669 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
38671 * lib/backupfile.c (opendir, closedir): Undefine.
38672 * lib/chown.c (open, close): Undefine.
38673 * lib/clean-temp.c (open, close): Undefine.
38674 * lib/copy-file.c (open, close): Undefine.
38675 * lib/execute.c (open, close): Undefine.
38676 * lib/fsusage.c (open, close): Undefine.
38677 * lib/gc-gnulib.c (open, close): Undefine.
38678 * lib/getcwd.c (opendir, closedir): Undefine.
38679 * lib/glob.c (opendir, closedir): Undefine.
38680 * lib/javacomp.c (open, close): Undefine.
38681 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
38682 * lib/openat-proc.c (open, close): Undefine.
38683 * lib/pagealign_alloc.c (open, close): Undefine.
38684 * lib/pipe.c (open, close): Undefine.
38685 * lib/progreloc.c (open, close): Undefine.
38686 * lib/savedir.c (opendir, closedir): Undefine.
38687 * lib/utime.c (open, close): Undefine.
38688 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
38690 2007-01-10 Bruno Haible <bruno@clisp.org>
38692 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
38694 2007-01-12 Eric Blake <ebb9@byu.net>
38696 Provide a robust <wchar.h>. Further simplifications are now
38697 possible in other modules, but not included here.
38698 * modules/wchar: New module.
38699 * m4/wchar.m4: New file.
38700 * lib/wchar_.h: Likewise.
38701 * modules/mbchar (Depends-on): Depend on wchar, as the first use
38703 * MODULES.html.sh (Extended multibyte and wide character utilities):
38706 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
38708 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
38709 to a reasonable default for memory allocation.
38710 (xreadlink): Don't allocate a huge buffer, to work around a buggy
38711 file system that reports garbage st_size values for symlinks.
38712 Problem reported by Liyang Hu.
38714 2007-01-11 Simon Josefsson <simon@josefsson.org>
38716 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
38717 Emacs .#* auto-save files).
38719 2007-01-11 Bruno Haible <bruno@clisp.org>
38721 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
38724 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
38726 Use @...@ consistently in lib/wctype_.h.
38727 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
38728 on it being set to 1 or 0.
38729 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
38730 go back to AC_SUBSTing it.
38731 * modules/wctype (Makefile.am): Undo previous change.
38733 2007-01-10 Eric Blake <ebb9@byu.net>
38735 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
38736 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
38737 * modules/wctype (Makefile.am): Likewise.
38738 Reported by Chris McGuire.
38740 2007-01-10 Jim Meyering <jim@meyering.net>
38742 fts.c: a small readability/maintainability improvement
38743 * lib/fts.c (fts_read): Make this code slightly more readable and
38744 maintainable by hoisting the "sp->fts_cur = p" assignments to
38745 immediately follow the statements that set P. Derived from
38746 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
38748 2007-01-10 Eric Blake <ebb9@byu.net>
38750 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
38751 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
38752 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
38753 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
38754 Reported by Chris McGuire.
38756 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38758 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
38761 2007-01-09 Bruno Haible <bruno@clisp.org>
38763 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
38764 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
38766 (func_module): Use them.
38768 2007-01-09 Bruno Haible <bruno@clisp.org>
38770 * modules/unistr/base: New file.
38771 * lib/unistr.h: New file.
38773 * modules/unistr/u8-to-u16: New file.
38774 * lib/unistr/u8-to-u16.c: New file.
38776 * modules/unistr/u8-to-u32: New file.
38777 * lib/unistr/u8-to-u32.c: New file.
38779 * modules/unistr/u16-to-u8: New file.
38780 * lib/unistr/u16-to-u8.c: New file.
38782 * modules/unistr/u16-to-u32: New file.
38783 * lib/unistr/u16-to-u32.c: New file.
38785 * modules/unistr/u32-to-u8: New file.
38786 * lib/unistr/u32-to-u8.c: New file.
38788 * modules/unistr/u32-to-u16: New file.
38789 * lib/unistr/u32-to-u16.c: New file.
38791 * modules/unistr/u8-check: New file.
38792 * modules/unistr/u16-check: New file.
38793 * modules/unistr/u32-check: New file.
38794 * lib/unistr/u8-check.c: New file.
38795 * lib/unistr/u16-check.c: New file.
38796 * lib/unistr/u32-check.c: New file.
38798 * modules/unistr/u8-chr: New file.
38799 * modules/unistr/u16-chr: New file.
38800 * modules/unistr/u32-chr: New file.
38801 * lib/unistr/u8-chr.c: New file.
38802 * lib/unistr/u16-chr.c: New file.
38803 * lib/unistr/u32-chr.c: New file.
38805 * modules/unistr/u8-cmp: New file.
38806 * modules/unistr/u16-cmp: New file.
38807 * modules/unistr/u32-cmp: New file.
38808 * lib/unistr/u8-cmp.c: New file.
38809 * lib/unistr/u16-cmp.c: New file.
38810 * lib/unistr/u32-cmp.c: New file.
38812 * modules/unistr/u8-cpy: New file.
38813 * modules/unistr/u16-cpy: New file.
38814 * modules/unistr/u32-cpy: New file.
38815 * lib/unistr/u8-cpy.c: New file.
38816 * lib/unistr/u16-cpy.c: New file.
38817 * lib/unistr/u32-cpy.c: New file.
38818 * lib/unistr/u-cpy.h: New file.
38820 * modules/unistr/u8-cpy-alloc: New file.
38821 * modules/unistr/u16-cpy-alloc: New file.
38822 * modules/unistr/u32-cpy-alloc: New file.
38823 * lib/unistr/u8-cpy-alloc.c: New file.
38824 * lib/unistr/u16-cpy-alloc.c: New file.
38825 * lib/unistr/u32-cpy-alloc.c: New file.
38826 * lib/unistr/u-cpy-alloc.h: New file.
38828 * modules/unistr/u8-endswith: New file.
38829 * modules/unistr/u16-endswith: New file.
38830 * modules/unistr/u32-endswith: New file.
38831 * lib/unistr/u8-endswith.c: New file.
38832 * lib/unistr/u16-endswith.c: New file.
38833 * lib/unistr/u32-endswith.c: New file.
38834 * lib/unistr/u-endswith.h: New file.
38836 * modules/unistr/u8-mblen: New file.
38837 * modules/unistr/u16-mblen: New file.
38838 * modules/unistr/u32-mblen: New file.
38839 * lib/unistr/u8-mblen.c: New file.
38840 * lib/unistr/u16-mblen.c: New file.
38841 * lib/unistr/u32-mblen.c: New file.
38843 * modules/unistr/u8-mbtouc: New file.
38844 * modules/unistr/u16-mbtouc: New file.
38845 * modules/unistr/u32-mbtouc: New file.
38846 * lib/unistr/u8-mbtouc.c: New file.
38847 * lib/unistr/u16-mbtouc.c: New file.
38848 * lib/unistr/u32-mbtouc.c: New file.
38850 * modules/unistr/u8-mbtouc-safe: New file.
38851 * modules/unistr/u16-mbtouc-safe: New file.
38852 * modules/unistr/u32-mbtouc-safe: New file.
38853 * lib/unistr/u8-mbtouc-safe.c: New file.
38854 * lib/unistr/u16-mbtouc-safe.c: New file.
38855 * lib/unistr/u32-mbtouc-safe.c: New file.
38857 * modules/unistr/u8-move: New file.
38858 * modules/unistr/u16-move: New file.
38859 * modules/unistr/u32-move: New file.
38860 * lib/unistr/u8-move.c: New file.
38861 * lib/unistr/u16-move.c: New file.
38862 * lib/unistr/u32-move.c: New file.
38863 * lib/unistr/u-move.h: New file.
38865 * modules/unistr/u8-next: New file.
38866 * modules/unistr/u16-next: New file.
38867 * modules/unistr/u32-next: New file.
38868 * lib/unistr/u8-next.c: New file.
38869 * lib/unistr/u16-next.c: New file.
38870 * lib/unistr/u32-next.c: New file.
38872 * modules/unistr/u8-prev: New file.
38873 * modules/unistr/u16-prev: New file.
38874 * modules/unistr/u32-prev: New file.
38875 * lib/unistr/u8-prev.c: New file.
38876 * lib/unistr/u16-prev.c: New file.
38877 * lib/unistr/u32-prev.c: New file.
38879 * modules/unistr/u8-set: New file.
38880 * modules/unistr/u16-set: New file.
38881 * modules/unistr/u32-set: New file.
38882 * lib/unistr/u8-set.c: New file.
38883 * lib/unistr/u16-set.c: New file.
38884 * lib/unistr/u32-set.c: New file.
38885 * lib/unistr/u-set.h: New file.
38887 * modules/unistr/u8-startswith: New file.
38888 * modules/unistr/u16-startswith: New file.
38889 * modules/unistr/u32-startswith: New file.
38890 * lib/unistr/u8-startswith.c: New file.
38891 * lib/unistr/u16-startswith.c: New file.
38892 * lib/unistr/u32-startswith.c: New file.
38893 * lib/unistr/u-startswith.h: New file.
38895 * modules/unistr/u8-stpcpy: New file.
38896 * modules/unistr/u16-stpcpy: New file.
38897 * modules/unistr/u32-stpcpy: New file.
38898 * lib/unistr/u8-stpcpy.c: New file.
38899 * lib/unistr/u16-stpcpy.c: New file.
38900 * lib/unistr/u32-stpcpy.c: New file.
38901 * lib/unistr/u-stpcpy.h: New file.
38903 * modules/unistr/u8-stpncpy: New file.
38904 * modules/unistr/u16-stpncpy: New file.
38905 * modules/unistr/u32-stpncpy: New file.
38906 * lib/unistr/u8-stpncpy.c: New file.
38907 * lib/unistr/u16-stpncpy.c: New file.
38908 * lib/unistr/u32-stpncpy.c: New file.
38909 * lib/unistr/u-stpncpy.h: New file.
38911 * modules/unistr/u8-strcat: New file.
38912 * modules/unistr/u16-strcat: New file.
38913 * modules/unistr/u32-strcat: New file.
38914 * lib/unistr/u8-strcat.c: New file.
38915 * lib/unistr/u16-strcat.c: New file.
38916 * lib/unistr/u32-strcat.c: New file.
38917 * lib/unistr/u-strcat.h: New file.
38919 * modules/unistr/u8-strchr: New file.
38920 * modules/unistr/u16-strchr: New file.
38921 * modules/unistr/u32-strchr: New file.
38922 * lib/unistr/u8-strchr.c: New file.
38923 * lib/unistr/u16-strchr.c: New file.
38924 * lib/unistr/u32-strchr.c: New file.
38926 * modules/unistr/u8-strcmp: New file.
38927 * modules/unistr/u16-strcmp: New file.
38928 * modules/unistr/u32-strcmp: New file.
38929 * lib/unistr/u8-strcmp.c: New file.
38930 * lib/unistr/u16-strcmp.c: New file.
38931 * lib/unistr/u32-strcmp.c: New file.
38933 * modules/unistr/u8-strcpy: New file.
38934 * modules/unistr/u16-strcpy: New file.
38935 * modules/unistr/u32-strcpy: New file.
38936 * lib/unistr/u8-strcpy.c: New file.
38937 * lib/unistr/u16-strcpy.c: New file.
38938 * lib/unistr/u32-strcpy.c: New file.
38939 * lib/unistr/u-strcpy.h: New file.
38941 * modules/unistr/u8-strcspn: New file.
38942 * modules/unistr/u16-strcspn: New file.
38943 * modules/unistr/u32-strcspn: New file.
38944 * lib/unistr/u8-strcspn.c: New file.
38945 * lib/unistr/u16-strcspn.c: New file.
38946 * lib/unistr/u32-strcspn.c: New file.
38947 * lib/unistr/u-strcspn.h: New file.
38949 * modules/unistr/u8-strdup: New file.
38950 * modules/unistr/u16-strdup: New file.
38951 * modules/unistr/u32-strdup: New file.
38952 * lib/unistr/u8-strdup.c: New file.
38953 * lib/unistr/u16-strdup.c: New file.
38954 * lib/unistr/u32-strdup.c: New file.
38955 * lib/unistr/u-strdup.h: New file.
38957 * modules/unistr/u8-strlen: New file.
38958 * modules/unistr/u16-strlen: New file.
38959 * modules/unistr/u32-strlen: New file.
38960 * lib/unistr/u8-strlen.c: New file.
38961 * lib/unistr/u16-strlen.c: New file.
38962 * lib/unistr/u32-strlen.c: New file.
38963 * lib/unistr/u-strlen.h: New file.
38965 * modules/unistr/u8-strmblen: New file.
38966 * modules/unistr/u16-strmblen: New file.
38967 * modules/unistr/u32-strmblen: New file.
38968 * lib/unistr/u8-strmblen.c: New file.
38969 * lib/unistr/u16-strmblen.c: New file.
38970 * lib/unistr/u32-strmblen.c: New file.
38972 * modules/unistr/u8-strmbtouc: New file.
38973 * modules/unistr/u16-strmbtouc: New file.
38974 * modules/unistr/u32-strmbtouc: New file.
38975 * lib/unistr/u8-strmbtouc.c: New file.
38976 * lib/unistr/u16-strmbtouc.c: New file.
38977 * lib/unistr/u32-strmbtouc.c: New file.
38979 * modules/unistr/u8-strncat: New file.
38980 * modules/unistr/u16-strncat: New file.
38981 * modules/unistr/u32-strncat: New file.
38982 * lib/unistr/u8-strncat.c: New file.
38983 * lib/unistr/u16-strncat.c: New file.
38984 * lib/unistr/u32-strncat.c: New file.
38985 * lib/unistr/u-strncat.h: New file.
38987 * modules/unistr/u8-strncmp: New file.
38988 * modules/unistr/u16-strncmp: New file.
38989 * modules/unistr/u32-strncmp: New file.
38990 * lib/unistr/u8-strncmp.c: New file.
38991 * lib/unistr/u16-strncmp.c: New file.
38992 * lib/unistr/u32-strncmp.c: New file.
38994 * modules/unistr/u8-strncpy: New file.
38995 * modules/unistr/u16-strncpy: New file.
38996 * modules/unistr/u32-strncpy: New file.
38997 * lib/unistr/u8-strncpy.c: New file.
38998 * lib/unistr/u16-strncpy.c: New file.
38999 * lib/unistr/u32-strncpy.c: New file.
39000 * lib/unistr/u-strncpy.h: New file.
39002 * modules/unistr/u8-strnlen: New file.
39003 * modules/unistr/u16-strnlen: New file.
39004 * modules/unistr/u32-strnlen: New file.
39005 * lib/unistr/u8-strnlen.c: New file.
39006 * lib/unistr/u16-strnlen.c: New file.
39007 * lib/unistr/u32-strnlen.c: New file.
39008 * lib/unistr/u-strnlen.h: New file.
39010 * modules/unistr/u8-strpbrk: New file.
39011 * modules/unistr/u16-strpbrk: New file.
39012 * modules/unistr/u32-strpbrk: New file.
39013 * lib/unistr/u8-strpbrk.c: New file.
39014 * lib/unistr/u16-strpbrk.c: New file.
39015 * lib/unistr/u32-strpbrk.c: New file.
39016 * lib/unistr/u-strpbrk.h: New file.
39018 * modules/unistr/u8-strrchr: New file.
39019 * modules/unistr/u16-strrchr: New file.
39020 * modules/unistr/u32-strrchr: New file.
39021 * lib/unistr/u8-strrchr.c: New file.
39022 * lib/unistr/u16-strrchr.c: New file.
39023 * lib/unistr/u32-strrchr.c: New file.
39025 * modules/unistr/u8-strspn: New file.
39026 * modules/unistr/u16-strspn: New file.
39027 * modules/unistr/u32-strspn: New file.
39028 * lib/unistr/u8-strspn.c: New file.
39029 * lib/unistr/u16-strspn.c: New file.
39030 * lib/unistr/u32-strspn.c: New file.
39031 * lib/unistr/u-strspn.h: New file.
39033 * modules/unistr/u8-strstr: New file.
39034 * modules/unistr/u16-strstr: New file.
39035 * modules/unistr/u32-strstr: New file.
39036 * lib/unistr/u8-strstr.c: New file.
39037 * lib/unistr/u16-strstr.c: New file.
39038 * lib/unistr/u32-strstr.c: New file.
39039 * lib/unistr/u-strstr.h: New file.
39041 * modules/unistr/u8-strtok: New file.
39042 * modules/unistr/u16-strtok: New file.
39043 * modules/unistr/u32-strtok: New file.
39044 * lib/unistr/u8-strtok.c: New file.
39045 * lib/unistr/u16-strtok.c: New file.
39046 * lib/unistr/u32-strtok.c: New file.
39047 * lib/unistr/u-strtok.h: New file.
39049 * modules/unistr/u8-uctomb: New file.
39050 * modules/unistr/u16-uctomb: New file.
39051 * modules/unistr/u32-uctomb: New file.
39052 * lib/unistr/u8-uctomb.c: New file.
39053 * lib/unistr/u16-uctomb.c: New file.
39054 * lib/unistr/u32-uctomb.c: New file.
39056 * MODULES.html.sh (Unicode string functions): Add the new modules.
39058 2007-01-08 Bruno Haible <bruno@clisp.org>
39060 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
39061 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
39064 2007-01-08 Karl Berry <karl@gnu.org>
39066 * doc/error.texi: mention that main() fns must set program_name
39067 when progname is used.
39069 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
39071 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
39072 WCTYPE_H is empty, for the benefit of builds from non-distclean
39073 directories. Problem reported by Eric Blake in
39074 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
39076 2007-01-08 Bruno Haible <bruno@clisp.org>
39078 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
39079 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
39080 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
39081 PROVIDE_CANONICALIZE_FILENAME_MODE.
39082 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
39084 2007-01-08 Bruno Haible <bruno@clisp.org>
39086 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
39087 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
39088 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
39089 * lib/fts.c: Likewise.
39090 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
39092 2006-12-25 Bruno Haible <bruno@clisp.org>
39094 * modules/utf8-ucs4-safe: New file.
39095 * lib/utf8-ucs4-safe.h: New file.
39096 * lib/unistr/utf8-ucs4-safe.c: New file.
39098 * modules/utf16-ucs4-safe: New file.
39099 * lib/utf16-ucs4-safe.h: New file.
39100 * lib/unistr/utf16-ucs4-safe.c: New file.
39102 * MODULES.html.sh (Unicode string functions): Add the new modules.
39104 2007-01-08 Bruno Haible <bruno@clisp.org>
39106 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
39107 (Depends-on): Add unitypes.
39108 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39109 (u8_mbtouc_aux): Move out to separate file.
39110 (u8_mbtouc): Use ucs4_t, uint8_t types.
39111 * lib/unistr/utf8-ucs4.c: New file.
39113 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
39114 (Depends-on): Add unitypes.
39115 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39116 (u16_mbtouc_aux): Move out to separate file.
39117 (u16_mbtouc): Use ucs4_t, uint16_t types.
39118 * lib/unistr/utf16-ucs4.c: New file.
39120 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
39121 (Depends-on): Add unitypes.
39122 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
39123 (u8_uctomb_aux): Move out to separate file.
39124 (u8_uctomb): Use ucs4_t, uint8_t types.
39125 * lib/unistr/ucs4-utf8.c: New file.
39127 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
39128 (Depends-on): Add unitypes.
39129 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
39130 (u16_uctomb_aux): Move out to separate file.
39131 (u16_uctomb): Use ucs4_t, uint16_t types.
39132 * lib/unistr/ucs4-utf16.c: New file.
39134 2006-12-25 Bruno Haible <bruno@clisp.org>
39136 * modules/unitypes: New file.
39137 * lib/unitypes.h: New file.
39138 * MODULES.html.sh (func_all_modules): New section "Unicode string
39139 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
39140 this section. Add unitypes.
39142 2007-01-08 Bruno Haible <bruno@clisp.org>
39144 Avoid variable names that conflict with those from libtool.
39145 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
39146 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
39147 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
39148 library_names_spec to acl_library_names_spec, hardcode_* to
39150 Reported by Ralf Wildenhues.
39152 2007-01-08 Bruno Haible <bruno@clisp.org>
39154 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
39156 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
39158 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
39159 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
39161 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
39163 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
39164 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
39165 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
39166 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
39168 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
39170 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
39171 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
39172 GC_USE_<algorithm>.
39173 * lib/gc-libgcrypt.c: Likewise.
39174 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
39175 * modules/gc-arctwo (configure.ac): Likewise.
39176 * modules/gc-des (configure.ac): Likewise.
39177 * modules/gc-hmac-md5 (configure.ac): Likewise.
39178 * modules/gc-hmac-sha1 (configure.ac): Likewise.
39179 * modules/gc-md2 (configure.ac): Likewise.
39180 * modules/gc-md4 (configure.ac): Likewise.
39181 * modules/gc-md5 (configure.ac): Likewise.
39182 * modules/gc-random (configure.ac): Likewise.
39183 * modules/gc-rijndael (configure.ac): Likewise.
39184 * modules/gc-sha1 (configure.ac): Likewise.
39186 2007-01-08 Bruno Haible <bruno@clisp.org>
39188 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
39190 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
39192 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
39194 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
39195 * modules/fcntl-safer (configure.ac): Likewise.
39196 * modules/fopen-safer (configure.ac): Likewise.
39197 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
39198 GNULIB_FWRITEERROR macro definition.
39200 2007-01-08 Bruno Haible <bruno@clisp.org>
39202 * m4/gnulib-common.m4: New file.
39203 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
39204 (func_get_filelist): Add m4/gnulib-common.m4.
39206 2007-01-08 Bruno Haible <bruno@clisp.org>
39208 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
39211 2007-01-08 Jim Meyering <jim@meyering.net>
39213 Use a more robust test for a "can't happen" condition.
39214 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
39215 narrowed the st_size value. Presuming the "can't happen" condition
39216 is true, that narrowing could conceivably convert an invalid st_size
39217 value into a valid one. Instead, use a change based on Matthew
39218 Woehlke's original patch.
39220 Slight readability improvement: use an assert-like macro
39221 in place of literal "abort ()" uses.
39222 * lib/fts.c (fts_assert): Define.
39223 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
39224 Use this macro instead of a bare 'abort'.
39226 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
39228 Don't worry about using IRIX 5.3's wctype.h broken definitions;
39229 simply work around them.
39230 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
39231 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
39232 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
39234 Don't bother to define as macros, since the standard doesn't require it.
39235 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
39236 longer worry about IRIX 5.3.
39237 (HAVE_WCTYPE_CTMP_BUG): Remove.
39239 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
39241 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
39242 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
39243 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
39244 Problems reported by Georg Schwarz for IRIX 5.3.
39246 * gnulib-tool (autoconf_minversion): Take the maximum version number
39247 found, not the minimum. Problem reported by James Youngman.
39249 2007-01-03 Karl Berry <karl@gnu.org>
39251 * doc/error.texi: new file, explaining interaction with progname.
39252 * doc/gnulib.texi: include it. Update copyright.
39254 2007-01-03 Simon Josefsson <simon@josefsson.org>
39256 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
39257 AC_CANONICAL_HOST, to improve autobuild outputs.
39259 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
39260 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39262 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
39263 sockets, server sockets, and other file descriptors. Count errors
39264 to compute the return value. Reorder the code a bit to be easier
39265 to follow. Don't set event bits that were not requested (except
39266 POLLERR and POLLHUP).
39268 2007-01-01 Bruno Haible <bruno@clisp.org>
39270 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
39272 2007-01-03 Jim Meyering <jim@meyering.net>
39274 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
39276 2007-01-02 Bruno Haible <bruno@clisp.org>
39278 * modules/settime (Include): Require timespec.h.
39279 * modules/nanosleep (Include): Likewise.
39281 2007-01-01 Bruno Haible <bruno@clisp.org>
39283 * gnulib-tool (func_emit_copyright_notice): Bump year.
39284 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
39286 2007-01-01 Bruno Haible <bruno@clisp.org>
39288 Improve support for OpenBSD.
39289 * build-aux/config.rpath (libname_spec): Export.
39290 (library_names_spec): New variable. Export.
39291 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
39292 library_names_spec from the config.rpath output. Locate shared library
39293 through the name pattern in library_names_spec.
39295 2007-01-01 Eric Blake <ebb9@byu.net>
39297 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
39299 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
39301 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
39302 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
39303 assume the C locale, and avoid an "eval" that could cause trouble.
39304 Problem with SORT reported by Bob Proulx.
39306 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
39307 Define. Trivial patch from Henning Nielsen Lund, originally
39308 sent to bug-grep@gnu.org today.
39310 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
39312 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
39313 struct stat. Problem reported by Henning Nielsen Lund.
39314 * lib/acl.c: Include acl.h first, to check interface. Don't
39315 bother to include sys/types.h and sys/stat.h again.
39317 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
39319 Import the following change from libc; problem reported by
39322 2005-10-13 Ulrich Drepper <drepper@redhat.com>
39325 * lib/argp.h: Remove __NTH for __argp_usage inline function.
39327 2006-12-28 Jim Meyering <jim@meyering.net>
39329 * build-aux/announce-gen: Do not assume that the package
39330 builds any of tar.gz, tar.bz2, and .xdelta files.
39331 Suggestion from Simon Josefsson.
39333 2006-12-28 Simon Josefsson <simon@josefsson.org>
39335 * modules/announce-gen: New file.
39337 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
39339 * lib/mbchar.h: Just include <wctype.h>; the wctype module
39340 handles its gotchas now.
39341 * lib/mbswidth.c: Likewise.
39342 * lib/wcwidth.h: Likewise.
39343 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
39344 and iswcntrl; the wctype module does this stuff now.
39345 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39346 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39347 * modules/mbchar (Depends-on): Add wctype.
39348 * modules/mbswidth (Depends-on): Likewise.
39349 * modules/wcwidth (Depends-on): Likewise.
39351 2006-12-27 Eric Blake <ebb9@byu.net>
39353 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
39354 module uses more than what <wctype.h> is required to provide.
39356 2006-12-26 Eric Blake <ebb9@byu.net>
39358 * gnulib-tool (sed_extract_prog): Avoid space-tab.
39360 2006-12-26 Eric Blake <ebb9@byu.net>
39362 * modules/absolute-header: New module.
39363 * modules/fcntl (Depends-on): Depend on it.
39364 * modules/inttypes (Depends-on): Likewise.
39365 * modules/stdint (Depends-on): Likewise.
39366 * modules/sys_stat (Depends-on): Likewise.
39367 * modules/wctype (Depends-on): Likewise.
39368 * MODULES.html.sh (Support for building libraries and
39369 executables): Document it.
39371 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
39373 * gnulib-tool (SED): Remove, undoing previous change.
39374 The problem was that it broke coreutils on Solaris, because
39375 "sed --posix" leaked into a makefile.
39376 (sed): New alias, if 'alias' and GNU sed.
39378 2006-12-24 Jim Meyering <jim@meyering.net>
39380 Work around an fchownat bug in glibc-2.4:
39381 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
39382 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
39383 in spite of the -P option.
39384 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
39386 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
39387 * modules/openat (Files): Add lib/fchownat.c.
39388 * lib/openat.c (fchownat): Don't define here. Move to...
39389 * lib/fchownat.c: ...this new file.
39391 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
39393 Fix bug reported by Bruno Haible in
39394 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
39395 where quotearg.c didn't compile on Mac OS X 10.2 because it
39396 lacks <wchar.h> and wint_t.
39397 * lib/wctype_.h (__wctype_wint_t): New type.
39398 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
39399 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
39400 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
39401 Arg is now of type __wctype_wint_t, not wint_t.
39402 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
39403 substitute HAVE_WINT_T.
39404 * modules/wctype (Files): Add m4/wint_t.m4.
39405 (wctype.h): Substitute HAVE_WINT_T.
39407 2006-12-23 Bruno Haible <bruno@clisp.org>
39409 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
39411 2006-12-23 Bruno Haible <bruno@clisp.org>
39413 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
39415 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
39418 2006-12-22 Bruno Haible <bruno@clisp.org>
39420 * lib/copy-file.c: Include acl.h.
39421 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
39422 Close the file descriptors only after being done with copy_acl.
39423 * modules/copy-file (Depends-on): Add acl.
39425 2006-12-22 Bruno Haible <bruno@clisp.org>
39427 * gnulib-tool (SED): New variable.
39428 Use $SED instead of sed everywhere.
39430 2006-12-22 Bruno Haible <bruno@clisp.org>
39432 * modules/no-c++: New file.
39433 * m4/no-c++.m4: New file.
39434 * MODULES.html.sh (Support for building libraries and executables):
39437 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
39439 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
39440 Include <limits.h>, and use its INT_MAX to rewrite the
39441 j loop so that it does not overflow 'int'. Problem reported by
39443 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
39444 Play it safe by shifting left by 1 rather than multiplying by 2,
39445 as GCC is less likely to optimize this away when the value
39446 is signed (when it assumes overflow leads to undefined behavior).
39447 Also, don't assume time_t uses two's complement.
39449 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
39451 * MODULES.html.sh: New module wctype.
39452 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
39453 * lib/fnmatch.c: Don't bother to include <wchar.h> before
39454 <wctype.h>, since the new wctype module should fix this.
39455 * lib/quotearg.c: Include <wctype.h> unconditionally, since
39456 the wctype module should arrange for it.
39457 * lib/regex_internal.h: Likewise.
39458 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
39459 since the wctype module should handle this now.
39460 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
39461 * modules/fnmatch (Depends-on): Add wctype.
39462 * modules/quotearg (Depends-on): Likewise.
39463 * modules/regex (Depends-on): Likewise.
39465 2006-12-19 Bruno Haible <bruno@clisp.org>
39467 * lib/strdup.h [C++]: Wrap definitions in extern "C".
39468 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
39470 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39472 * modules/savewd (Depends-on): Fix dependency on fcntl.
39474 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
39476 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
39477 conforms to C99, rather than relying on the user's environment
39478 setting of STDINT_H.
39480 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
39481 and Eric Blake <ebb9@byu.net>
39483 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
39484 This is more consistent with the other defines here.
39485 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
39486 Port to z/OS. Problem reported by Paul Gilmartin.
39487 Change local vars to use gl_ prefix rather than ac_.
39488 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
39489 with other defines.
39490 * modules/double-slash-root: New module.
39491 * modules/dirname (Files): Remove m4/double-slash-root.m4.
39492 (Depends-on): Add double-slash-root.
39493 * MODULES.html.sh (File system functions): Mention new module.
39495 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
39497 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
39498 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
39499 This is for the benefit of gzip, which doesn't do i18n.
39501 2006-12-12 Jim Meyering <jim@meyering.net>
39503 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
39504 Reported by Andreas Schwab <schwab@suse.de>.
39506 2006-12-12 Bruno Haible <bruno@clisp.org>
39508 Merge these changes.
39509 2006-09-05 Bruno Haible <bruno@clisp.org>
39510 * lib/iconvme.c (iconv_string): No need to save and restore errno when
39511 iconv_alloc succeeded.
39512 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
39513 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
39514 test for " && dest " at the end - dest is always != NULL there. Call
39515 iconv with 4xNULL arguments initially, to reset the state. Call iconv
39516 with 2xNULL arguments, also to flush the state storage. Handle the
39517 IRIX iconv behaviour. Realloc the final result, to throw away unused
39520 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
39522 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
39523 and fchmodat unconditionally, since glibc 2.4 has them.
39524 Problem reported by Arkadiusz Miskiewicz.
39526 2006-12-10 Bruno Haible <bruno@clisp.org>
39528 * gnulib-tool (func_import): Show the include files only for those
39529 modules that are copied and specified.
39530 Reported by Karl Berry.
39532 2006-12-08 Jim Meyering <jim@meyering.net>
39534 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
39535 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
39537 * build-aux/announce-gen: Add two new options, both optional:
39538 --bootstrap-tools=TOOL_LIST
39539 a comma-separated list of tools, e.g.,
39540 autoconf,automake,bison,gnulib
39541 --gnulib-snapshot-date=DATE
39542 if gnulib is in the bootstrap tool list,
39543 then report this as the snapshot date.
39544 If not specified, use the current date/time.
39545 If you specify a date here, be sure it's UTC.
39547 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39549 * tests/test-argp-2.sh: Fix test to match actual output.
39550 (func_compare): Fix sed script to be portable.
39552 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
39554 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
39555 workaround for this case. It is not autoconfigured now; offhand
39556 it's hard to see how to autoconfigure it.
39558 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
39560 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
39561 a directory that is about to be chowned. Such a directory's
39562 initial file permissions should permit the owner only and this
39563 should not be changed until after the chown, since the group and
39564 other bits would be incorrect if they granted permission before
39567 Fix porting problem for iswctype reported by Georg Schwarz in:
39568 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
39569 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
39570 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
39571 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
39572 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39574 2006-12-03 Jim Meyering <jim@meyering.net>
39576 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
39577 p->fts_statp may not yet be defined.
39578 (fts_read): Instead, set it in the caller, once p->fts_statp is
39579 sure to be defined, and corresponds to a top-level directory.
39580 This bug made du -x fail. Here's the coreutils test case:
39581 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
39582 Reported by Mike Frysinger.
39584 2006-12-01 Jim Meyering <jim@meyering.net>
39586 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
39587 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
39588 Reported by Simon Josefsson.
39590 2006-11-30 Jim Meyering <jim@meyering.net>
39592 * m4/warning.m4: Use the all-permissive copyright notice
39593 recommended by RMS (rather than LGPL).
39594 * m4/vararrays.m4: Likewise.
39595 * m4/flexmember.m4: Likewise.
39597 2006-11-29 Bruno Haible <bruno@clisp.org>
39599 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
39600 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
39602 Reported by Simon Josefsson <simon@josefsson.org>.
39604 2006-11-28 James Youngman <jay@gnu.org>
39606 * README: Advise users that they might find the bug-gnulib@gnu.org
39607 and autotools-announce@gnu.org mailing lists useful.
39609 2006-11-28 Bruno Haible <bruno@clisp.org>
39611 * m4/ptrdiff_max.m4: Remove file.
39613 2006-11-21 Bruno Haible <bruno@clisp.org>
39615 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
39617 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39618 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
39620 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39621 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
39623 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39625 2006-11-28 Jim Meyering <jim@meyering.net>
39627 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
39628 warning from "gcc -Wshadow" about shadowing the builtin.
39630 2006-11-27 Bruno Haible <bruno@clisp.org>
39632 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
39634 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39636 2006-11-27 Bruno Haible <bruno@clisp.org>
39637 Paul Eggert <eggert@cs.ucla.edu>
39639 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
39641 2006-11-26 Bruno Haible <bruno@clisp.org>
39643 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
39644 noinst_LTLIBRARIES.
39646 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
39647 Bruno Haible <bruno@clisp.org>
39649 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
39650 if compiling with "gcc -ansi".
39652 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
39654 Fix some incompatibilities with gcc -ansi -pedantic.
39655 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
39656 if compiling pedantically with GCC, unless it's C99 or later.
39657 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
39658 it mishandles gcc -ansi -pedantic as well.
39659 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
39661 * lib/regexec.c (check_node_accept_bytes): Don't use auto
39662 initializers for struct if -pedantic, unless it's C99 or later.
39664 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
39666 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
39667 Don't close an fd more than once. Identical atimes indicate
39668 success, not failure.
39670 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
39672 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
39674 2006-11-23 Jim Meyering <jim@meyering.net>
39676 * build-aux/announce-gen: New file. From coreutils.
39678 2006-11-22 Jim Meyering <jim@meyering.net>
39680 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
39681 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
39682 (fts_read): Use a temporary to narrow the overused st_size member
39683 before using it in a switch statement. Reported by Matthew Woehlke.
39685 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
39686 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39688 2006-11-20 Bruno Haible <bruno@clisp.org>
39690 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
39691 changequote instead of pairs of brackets.
39692 Reported by Andreas Schwab <schwab@suse.de>.
39694 2006-11-21 Jim Meyering <jim@meyering.net>
39696 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
39697 so as to remain compatible with older compilers.
39698 Patch from Michael Deutschmann.
39700 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
39702 * MODULES.html.sh (File system functions): Add openat.
39704 * lib/openat.h (rpl_fstatat): New macro, if
39705 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
39706 (fstatat): Define to rpl_fstatat under the same conditions,
39707 unless COMPILING_FSTATAT.
39708 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
39709 seems to have the bug.
39710 * lib/fstatat.c: New file.
39711 * modules/openat (Files): Add it.
39713 2006-11-20 Bruno Haible <bruno@clisp.org>
39715 * Makefile: New file.
39717 2006-11-20 Jim Meyering <jim@meyering.net>
39719 The beginnings of syntax-related checks for gnulib.
39720 * lib/Makefile: New file.
39721 * lib/t-idcache: New script. Ensure that the two halves of
39722 idcache.c stay in sync.
39724 * lib/idcache.c: Adjust comments in user- and group- portions to
39725 be more accurate, and to be consistent with one another.
39727 2006-11-20 Jim Meyering <jim@meyering.net>
39729 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
39730 continue using the flexible array member (thus, this module performs
39731 half as many malloc calls), with the addition that...
39732 (getgroup, getuser): Consistently record a non-match via an empty
39733 "name" string, and map an empty string match to a NULL return value.
39734 * modules/idcache (Depends-on): Re-add flexmember.
39736 * lib/idcache.c (getuser): Remove all uses of the register keyword.
39737 (getuidbyname, getgroup, getgidbyname): Likewise.
39739 Use cleaner syntax: NULL rather than 0.
39740 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
39742 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
39744 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
39745 It mishandled the case where the group was missing.
39746 Problem reported by Greg Schafer.
39747 * modules/idcache: Likewise.
39749 2006-11-18 Jim Meyering <jim@meyering.net>
39751 * check-module (%exempt_header): Add exception for some
39752 conditionally-included headers.
39754 * modules/i-ring (Depends-on): Add verify.
39755 (License): Change to LGPL.
39757 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
39759 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
39760 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
39761 and inttostr.h. Use snprintf rather than uinttostr, so that
39762 LGPLed code doesn't depend on GPLed.
39764 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
39766 * modules/inline (License): Change from GPL to LGPL.
39768 2006-11-17 Jim Meyering <jim@meyering.net>
39770 * modules/d-type (License): Switch to LGPL.
39772 2006-11-15 Bruno Haible <bruno@clisp.org>
39774 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
39776 2006-11-15 Eric Blake <ebb9@byu.net>
39778 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
39779 the module dependency.
39781 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39782 Bruno Haible <bruno@clisp.org>
39784 * gnulib-tool (func_create_testdir): Add license consistency check.
39786 2006-11-15 Eric Blake <ebb9@byu.net>
39788 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
39789 random "(cached)" in configure output.
39791 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39793 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
39794 test for conforming inttypes.h is both announced and cached.
39796 * MODULES.html.sh (seen_modules, seen_files): New variables.
39797 (func_module): Rewrite to use a few less gnulib-tool and sed
39798 invocations. Avoid a couple of quadratic algorithms for ...
39799 (missed_modules, missed_files): ... these, with ...
39800 (func_append, func_tmpdir): ... these new functions, from
39801 gnulib-tool. Analogously, install traps for cleanup.
39803 * tests/test-gc.c (main): Remove unused variables.
39804 * tests/test-read-file.c: Include stdlib.h, for 'free'.
39806 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
39808 * modules/inttostr (License): Change to LGPL.
39810 2006-11-14 Eric Blake <ebb9@byu.net>
39812 * modules/tempname (License): Change to LGPL.
39814 2006-11-14 Eric Blake <ebb9@byu.net>
39816 * doc/functions.texi (Function Portability): *printf functions on
39817 Cygwin now understand all POSIX size specifiers.
39819 2006-11-14 Bruno Haible <bruno@clisp.org>
39821 * modules/c-ctype (License): Change to LGPL.
39823 2006-11-12 Bruno Haible <bruno@clisp.org>
39825 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
39826 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
39827 for GNOME libraries, for which the include files are installed in
39828 subdirectories of $prefix/include.
39830 2006-11-12 Bruno Haible <bruno@clisp.org>
39832 * m4/lib-link.m4: Require at least autoconf-2.54.
39833 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
39834 name to underscores for the --with option.
39836 2006-11-13 Bruno Haible <bruno@clisp.org>
39838 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
39839 the tests directory.
39840 Reported by Ralf Wildenhues.
39842 2006-11-13 Bruno Haible <bruno@clisp.org>
39844 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
39845 (func_emit_initmacro_end): Undo the override here.
39846 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
39847 Works around the famous automake error in coreutils.
39849 2006-11-13 Eric Blake <ebb9@byu.net>
39851 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
39852 element, not its node.
39854 2006-11-12 Bruno Haible <bruno@clisp.org>
39856 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
39857 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
39859 2006-11-12 Bruno Haible <bruno@clisp.org>
39861 * gnulib-tool: New option --local-symlink.
39862 (func_usage): Document it.
39863 (lsymbolic): New variable.
39864 (func_import, func_create_testdir): If --symlink was not specified,
39865 test whether --local-symlink was specified and the file comes from
39866 the local_gnulib_dir.
39868 2006-11-12 Bruno Haible <bruno@clisp.org>
39870 * gnulib-tool (func_ln): New function.
39871 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
39873 2006-11-12 Bruno Haible <bruno@clisp.org>
39875 Finish support for source files in subdirectories.
39876 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
39877 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
39879 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
39881 2006-11-12 Bruno Haible <bruno@clisp.org>
39883 * gnulib-tool (func_get_automake_snippet): Synthesize also an
39884 EXTRA_lib_SOURCES augmentation.
39885 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
39887 2006-11-12 Jim Meyering <jim@meyering.net>
39889 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
39890 file descriptors. This also averts a failure on systems with
39891 native openat support when a traversed directory lacks "x" access.
39892 * lib/fts_.h: Include "i-ring.h"
39893 (struct FTS) [fts_fd_ring]: New member.
39894 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
39895 (FCHDIR): Add parentheses.
39896 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
39897 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
39898 When descending, rather than simply closing the previous
39899 fts_cwd_fd value, push that file descriptor onto the ring.
39900 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
39901 (fts_open): Initialize the new fd_ring member.
39902 (fts_close): Clear the ring.
39903 (fts_safe_changedir): When possible, use our new fd_ring to skip
39904 the diropen and fstat and dev/ino comparison that would normally
39905 accompany a virtual `chdir ("..")'.
39907 * modules/fts (Depends-on): Add i-ring.
39908 * modules/i-ring: New module.
39909 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
39910 * m4/i-ring.m4: New file.
39912 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39914 * gnulib-tool (func_create_testdir): Fix replacement of
39915 `build-aux' in configure.ac. Run autotools in gltests
39917 (func_create_testdir, func_create_megatestdir, test): There is
39918 no need for '--force' in most autotool invocations in a new
39919 tree. Actually fail the whole test if any of the tools, or the
39920 configure or make stages fail.
39922 Sync from Automake.
39923 * build-aux/gnupload: Revert last change. Add pointer to upload
39924 instructions of the GNU Maintenance Instructions.
39925 Suggestion by Karl Berry.
39927 2006-11-10 Jim Meyering <jim@meyering.net>
39929 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
39931 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
39933 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
39934 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
39935 (bind_textdomain_codeset) [! ENABLE_NLS]:
39936 Evaluate all the arguments. That way, callers get compatible behavior
39937 if the arguments have side effects. Also, it avoids some GCC
39938 diagnostics in some cases; Joel E. Denny reported problems when Bison
39939 was configured with --enable-gcc-warnigs.
39941 2006-11-10 Jim Meyering <jim@meyering.net>
39943 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
39944 relevant options in CFLAGS (like -O, -fno-inline) are taken into
39947 2006-11-10 Jim Meyering <jim@meyering.net>
39949 * modules/inline: New file/module.
39950 * modules/xalloc (Files): Remove m4/inline.m4.
39951 (Depends-on): Add inline, instead.
39952 * modules/oset: Likewise.
39953 * modules/list: Likewise.
39955 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
39957 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
39958 Problem reported by Matthew Woehlke.
39960 2006-11-09 Bruno Haible <bruno@clisp.org>
39962 * lib/tempname.c (gen_tempname): Remove variant that invokes
39964 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
39967 2006-11-08 Bruno Haible <bruno@clisp.org>
39969 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
39970 to 'yes' instead of 'cross-compiling'.
39972 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
39974 * lib/quotearg.h (quotearg_free): New decl.
39975 * lib/quotearg.c (quotearg_free): New function.
39976 (slot0, nslots, slotvec0, slotvec):
39977 Now file-scope so that quotearg_free can get at them.
39979 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39981 Sync from Automake.
39982 * build-aux/gnupload: Add missing 'gnu' to example URL.
39983 Report by Karl Berry.
39985 2006-11-08 Bruno Haible <bruno@clisp.org>
39987 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
39988 Suggested by Paul Eggert.
39990 2006-11-08 Jim Meyering <jim@meyering.net>
39992 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
39993 It's already included if !_LIBC.
39994 (fts_safe_changedir): Add a comment.
39996 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
39998 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
39999 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
40002 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
40003 definitions up, to avoid colliding with change below.
40004 (static_inline) [HAVE_INLINE]: New macro.
40005 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
40006 Provide extern decls when !HAVE_INLINE. Do not define unless
40007 static_inline is defined, either by us or by xmalloc.c. Use
40008 static_inline rather than static inline.
40009 (XCALLOC): Optimize sizeof(T) = 1 case.
40010 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
40012 2006-11-07 Bruno Haible <bruno@clisp.org>
40014 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
40015 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
40017 * modules/xalloc (Files): Add m4/inline.m4.
40019 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40021 * README: Fix typo.
40022 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
40023 (Miscellanous Notes): ...from this.
40025 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
40027 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
40028 Mention that offsetof should be used instead of sizeof.
40031 2006-11-07 Bruno Haible <bruno@clisp.org>
40033 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
40035 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
40037 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40038 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
40039 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40040 (gl_tree_add_before, gl_tree_add_after):
40041 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
40042 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
40043 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
40044 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
40045 (gl_linked_add_after, gl_linked_add_at): Likewise.
40046 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
40047 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40048 (gl_tree_add_before, gl_tree_add_after): Likewise.
40049 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
40050 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
40051 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
40053 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40055 * lib/gl_oset.h: Use C comment style, not C++ comment style.
40057 2006-11-06 Bruno Haible <bruno@clisp.org>
40059 * m4/inline.m4: New file.
40060 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
40061 * modules/list (Files): Add m4/inline.m4.
40062 * modules/oset (Files): Likewise.
40064 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
40066 * lib/idcache.c: Include <stddef.h>, for offsetof.
40067 (struct userid.name): Change from char * to a flexible array member.
40069 * modules/idcache (Depends-on): Add flexmember.
40071 * MODULES.html.sh (Core language properties): New module flexmember.
40072 * modules/flexmember, m4/flexmember.m4: New files.
40074 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
40075 inline functions that are identical with the old xnmalloc_inline,
40076 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
40077 that we can avoid some unnecessary integer multiplications and
40078 divisions in the common case where the element size is known at
40080 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
40082 (xnboundedmalloc): Remove.
40083 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
40084 arguments, for consistency with rest of this header.
40085 (xcharalloc): Rewrite using XNMALLOC.
40086 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
40087 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
40088 versions have been moved to lib/xalloc.h and renamed to be the
40089 non-*_inline versions.
40090 (xmalloc, xrealloc): Implement without reference to the xnmalloc
40091 and xnrealloc functions, since those functions are now inline and
40093 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
40094 renaming described above.
40095 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
40096 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
40097 captures the dependency in AC_C_INLINE.
40099 New module canonicalize-lgpl, proposed by Charles Wilson in
40100 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
40101 with a few small changes afterwards.
40102 * MODULES.html.sh (File system functions): New module
40104 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
40105 and canonicalize_file_name.
40106 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
40107 * modules/canonicalize-lgpl: New files.
40109 2006-11-05 Bruno Haible <bruno@clisp.org>
40111 * gnulib-tool (func_import, func_create_testdir): Create directories
40112 also for files in subdirectories of lib/.
40114 2006-11-05 Bruno Haible <bruno@clisp.org>
40116 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
40119 2006-11-03 Bruno Haible <bruno@clisp.org>
40121 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40122 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
40123 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
40124 (xnboundedmalloc): New inline function.
40125 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
40126 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
40128 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
40130 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
40131 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
40132 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
40134 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40135 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
40137 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
40138 gl_tree_add_after): Use XMALLOC instead of xmalloc.
40139 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
40141 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40142 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
40143 gl_tree_add_after): Use XMALLOC instead of xmalloc.
40144 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
40145 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
40146 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
40147 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
40149 2006-11-03 Bruno Haible <bruno@clisp.org>
40151 * lib/c-ctype.h [C++]: Define functions without name mangling.
40152 * lib/fwriteerror.h [C++]: Likewise.
40153 * lib/gcd.h [C++]: Likewise.
40154 * lib/linebreak.h [C++]: Likewise.
40156 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
40158 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
40159 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
40160 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
40161 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
40162 Check for functions and headers just once.
40163 Check for declaration of canonicalize_file_name.
40164 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
40166 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
40168 * gnulib-tool (func_import): Fix typo in actioncmd.
40170 2006-11-02 Bruno Haible <bruno@clisp.org>
40172 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
40173 newline sequence in the Makefile.am snippet as a space, like "make"
40175 Reported by Roger Persson <perrog@gmail.com>.
40177 2006-11-01 Bruno Haible <bruno@clisp.org>
40179 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
40180 already declared in <string.h>.
40181 * lib/strcase.h (strncasecmp): Don't declare it if yes.
40183 2006-11-01 Bruno Haible <bruno@clisp.org>
40185 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
40186 * lib/strcase.h: Include <string.h>.
40187 (strcasecmp): Define to rpl_strcasecmp here.
40189 2006-11-01 Bruno Haible <bruno@clisp.org>
40191 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
40193 2006-11-01 Eric Blake <ebb9@byu.net>
40195 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
40197 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
40199 2006-10-29 Bruno Haible <bruno@clisp.org>
40201 Make it compile in C++ mode.
40202 * lib/full-write.c (full_rw): Add a cast.
40204 2006-11-01 Bruno Haible <bruno@clisp.org>
40206 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
40207 be POSIX compliant.
40208 Reported by Roger Persson <perrog@gmail.com>.
40210 2006-11-01 Eric Blake <ebb9@byu.net>
40212 * lib/getopt_.h: Fix comments.
40214 2006-10-31 Eric Blake <ebb9@byu.net>
40216 * modules/tmpdir (Depends-on): Add sys_stat.
40217 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
40218 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
40219 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
40220 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
40223 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
40225 Avoid some C++ diagnostics reported by Bruno Haible.
40226 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
40228 (quotearg_alloc): Use xcharalloc rather than xmalloc.
40229 (struct slotvec): Move to top level.
40230 (quotearg_n_options): Rewrite to avoid xmalloc.
40231 * lib/xalloc.h (xcharalloc): New function.
40232 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
40233 [defined __cplusplus]: Add function template that provides result
40234 type propagation. This part of the change is from Bruno Haible.
40236 2006-10-29 Bruno Haible <bruno@clisp.org>
40238 Make it compile in C++ mode.
40239 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
40240 * lib/strnlen1.c (strnlen1): Cast memchr result.
40241 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
40242 * lib/clean-temp.c (string_equals, string_hash): Add casts.
40243 (create_temp_dir): Rename local variable 'template'.
40244 (compile_csharp_using_sscli): Add cast.
40245 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
40246 * lib/findprog.c (find_in_path): Likewise.
40247 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
40248 * lib/wait-process.c (register_slave_subprocess): Likewise.
40250 2006-10-22 Bruno Haible <bruno@clisp.org>
40252 * modules/tsearch: New file.
40253 * lib/tsearch.h: New file.
40254 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
40255 * m4/tsearch.m4: New file.
40256 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
40258 2006-10-29 Eric Blake <ebb9@byu.net>
40260 * lib/arcfour.c: Assume config.h.
40261 * lib/arctwo.c: Likewise.
40262 * lib/base64.c: Likewise.
40263 * lib/check-version.c: Likewise.
40264 * lib/crc.c: Likewise.
40265 * lib/des.c: Likewise.
40266 * lib/gc-gnulib.c: Likewise.
40267 * lib/gc-libgcrypt.c: Likewise.
40268 * lib/gc-pbkdf2-sha1.c: Likewise.
40269 * lib/getaddrinfo.c: Likewise.
40270 * lib/getdelim.c: Likewise.
40271 * lib/getline.c: Likewise.
40272 * lib/hmac-md5.c: Likewise.
40273 * lib/hmac-sha1.c: Likewise.
40274 * lib/iconvme.c: Likewise.
40275 * lib/md2.c: Likewise.
40276 * lib/md4.c: Likewise.
40277 * lib/memxor.c: Likewise.
40278 * lib/read-file.c: Likewise.
40279 * lib/readline.c: Likewise.
40280 * lib/rijndael-alg-fst.c: Likewise.
40281 * lib/rijndael-api-fst.c: Likewise.
40282 * lib/xgetdomainname.c: Likewise.
40284 2006-10-28 Eric Blake <ebb9@byu.net>
40286 * lib/xstrndup.c: Assume config.h.
40288 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
40290 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
40291 stat-macros.h is now for our own macros, whereas stat_h is for
40292 macros in the <sys/stat.h> name space.
40293 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
40294 (STAT_MACROS_H): Remove.
40295 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
40296 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
40297 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
40298 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
40299 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
40300 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
40301 Move these macros to ...
40302 * lib/stat_.h: here. Don't include stat-macros.h.
40303 * lib/canonicalize.c: Don't include stat-macros.h.
40304 * lib/chown.c: Likewise.
40305 * lib/euidaccess.c: Likewise.
40306 * lib/file-type.c: Likewise.
40307 * lib/filemode.c: Likewise.
40308 * lib/glob.c: Likewise.
40309 * lib/isapipe.c: Likewise.
40310 * lib/lchown.c: Likewise.
40311 * lib/lstat.c: Likewise.
40312 * lib/mkdir-p.c: Likewise.
40313 * lib/rmdir.c: Likewise.
40314 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
40315 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
40316 unless mkdir isn't declared, to speed up 'configure'.
40317 Always create sys/stat.h, since it's unlikely any real sys/stat.h
40318 would define all the S_* symbols.
40319 * modules/canonicalize (Depends-on):
40320 Depend on sys_stat, not stat-macros.
40321 * modules/chown: Likewise.
40322 * modules/euidaccess: Likewise.
40323 * modules/filemode: Likewise.
40324 * modules/file-type: Likewise.
40325 * modules/glob: Likewise.
40326 * modules/isapipe: Likewise.
40327 * modules/lchown: Likewise.
40328 * modules/lstat: Likewise.
40329 * modules/mkancesdirs: Likewise.
40330 * modules/rmdir: Likewise.
40331 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
40332 * modules/modechange: Likewise.
40333 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
40334 (configure.ac): Remove gl_STAT_MACROS.
40335 * modules/sys_stat (Depends-on): Remove stat-macros.
40337 2006-10-27 Bruno Haible <bruno@clisp.org>
40339 * m4/signed.m4: Remove file.
40340 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
40342 * modules/vasnprintf (Files): Remove m4/signed.m4.
40344 2006-10-27 Bruno Haible <bruno@clisp.org>
40346 Update to GNU gettext 0.16.
40347 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
40348 m4/inttypes-h.m4, m4/signed.m4.
40349 * m4/gettext.m4: Update to GNU gettext 0.16.
40350 * m4/intl.m4: New file, from GNU gettext.
40351 * m4/intldir.m4: New file, from GNU gettext.
40352 * config/srclist.txt: Update
40354 2006-10-27 Eric Blake <ebb9@byu.net>
40356 * MODULES.html.sh: Document tempname.
40357 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
40359 (Files): Move lib/tempname.c...
40360 * modules/tempname: ...to this new module.
40361 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
40362 (gl_PREREQ_TEMPNAME): Move...
40363 * m4/tempname.m4: ...to this new file.
40364 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
40365 * modules/sys_stat (Depends-on): Add stat-macros.
40366 * lib/stat_.h (includes): Pick up stat macros.
40367 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
40368 if stat macros are broken.
40369 * lib/tempname.c (includes): No need to include "stat-macros.h".
40370 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
40371 (direxists, __path_search) [!_LIBC]: Don't compile these in
40372 gnulib; the tmpdir module covers that.
40373 * lib/tempname.h: New file.
40375 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
40377 * COPYING: Explain how gnulib-tool converts licence headers.
40378 Almost all wording by Eric Blake.
40380 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
40382 * lib/mbchar.h (is_basic_table): Make read-only.
40383 * lib/mbchar.c (is_basic_table): Likewise.
40384 Reported by John Darrington.
40386 2006-10-25 Bruno Haible <bruno@clisp.org>
40388 * lib/progname.h (set_program_name): Undefine before defining.
40390 2006-10-25 Bruno Haible <bruno@clisp.org>
40392 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
40393 false for non-gcc C++ compilers.
40394 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40396 2006-10-24 Bruno Haible <bruno@clisp.org>
40398 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
40399 iconv implementations like Irix iconv.
40401 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
40403 * modules/vararrays: New file.
40404 * m4/vararrays.m4: New file, taken from diffutils.
40405 * MODULES.html.sh: New module vararrays.
40407 2006-10-24 Karl Berry <karl@gnu.org>
40409 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
40410 Don't call GNU Unix.
40412 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40414 * users.txt: Add Libtool.
40418 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
40420 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
40421 to gnulib's policy of including config.h unconditionally.
40423 2006-10-24 Bruno Haible <bruno@clisp.org>
40425 * modules/wcwidth (Files): Add m4/wint_t.m4.
40426 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
40427 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
40429 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
40431 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
40432 to pacify GCC with some -W flags enabled. Problem reported by
40435 2006-10-24 Jim Meyering <jim@meyering.net>
40437 * MODULES.html.sh: Remove uinttostr. It's not a module.
40438 Reported by Karl Berry.
40440 2006-10-23 Bruno Haible <bruno@clisp.org>
40442 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
40444 2006-10-24 Bruno Haible <bruno@clisp.org>
40446 * lib/gl_list.h: Use C comment style, not C++ comment style.
40448 2006-10-23 Eric Blake <ebb9@byu.net>
40450 * lib/getaddrinfo.c (includes): Add missing include.
40452 2006-10-23 Bruno Haible <bruno@clisp.org>
40453 Paul Eggert <eggert@cs.ucla.edu>
40455 Ability to rename obstack_free.
40456 * lib/obstack.h (__obstack_free): New macro. Declare instead of
40458 (obstack_free): Invoke the __obstack_free macro.
40459 * lib/obstack.c (obstack_free): Use __obstack_free macro.
40461 2006-10-23 Bruno Haible <bruno@clisp.org>
40462 Paul Eggert <eggert@cs.ucla.edu>
40464 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
40465 __argc, __argv from the declaration. (They are defined as macros on
40468 2006-10-22 Bruno Haible <bruno@clisp.org>
40470 * doc/gnulib-intro.texi: New file.
40471 * doc/gnulib.texi: Include it.
40473 2006-10-21 Bruno Haible <bruno@clisp.org>
40475 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
40476 "Introduction", "Miscellanous Notes", "Particular Modules".
40478 2006-10-21 Bruno Haible <bruno@clisp.org>
40480 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40481 Change mostlyclean-local rule to avoid sh syntax error from bash
40482 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
40484 2006-10-23 Jim Meyering <jim@meyering.net>
40486 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
40487 in place of snprintf.
40489 * modules/inttostr (Files): Add lib/uinttostr.c.
40490 * lib/uinttostr.c (inttostr): New file/function.
40491 * lib/inttostr.h (uinttostr): Declare.
40492 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
40493 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
40495 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
40497 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
40499 * lib/canonicalize.c (ELOOP): Define if not already defined.
40500 Problem reported by Bruno Haible in
40501 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
40503 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
40505 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
40506 Problem reported by Perry Smith and Ville Laurikari.
40508 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
40511 2006-10-19 Bruno Haible <bruno@clisp.org>
40513 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
40516 2006-10-19 Bruno Haible <bruno@clisp.org>
40518 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
40521 2006-10-19 Bruno Haible <bruno@clisp.org>
40523 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
40525 2006-10-19 Bruno Haible <bruno@clisp.org>
40527 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
40530 2006-10-19 Bruno Haible <bruno@clisp.org>
40532 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
40535 2006-10-19 Bruno Haible <bruno@clisp.org>
40537 * gnulib-tool (func_create_testdir): Don't include ftruncate and
40538 mountlist by default.
40540 2006-10-16 Bruno Haible <bruno@clisp.org>
40542 * lib/c-strstr.c: Include c-strstr.h.
40544 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
40546 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
40549 2006-10-18 Bruno Haible <bruno@clisp.org>
40551 * lib/lock.h [C++]: Wrap definitions in extern "C".
40553 2006-10-18 Bruno Haible <bruno@clisp.org>
40555 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
40558 2006-10-18 Bruno Haible <bruno@clisp.org>
40560 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
40562 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
40564 * lib/xstrtol.h: Include gettext.h.
40565 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
40566 Problem reported by Eric Blake.
40567 * modules/xstrtol (Depends-on): Add gettext-h.
40569 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
40571 * lib/strftime.c (advance): New macro.
40572 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
40573 incomplete type, so you can't add 0 to it. Problem and patch
40574 reported by Eelco Dolstra for dietlibc.
40576 2006-10-18 Jim Meyering <jim@meyering.net>
40578 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
40579 type for a local, and rename it: s/up/user_proc/.
40581 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
40583 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
40584 READ_UTMP_USER_PROCESS.
40585 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
40587 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
40589 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
40590 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
40592 2006-10-17 Eric Blake <ebb9@byu.net>
40594 * lib/sigprocmask.c (sigprocmask): Fix typo.
40596 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
40598 * modules/clean-temp (Makefile.am): Don't add to make output...
40599 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
40602 2006-10-17 Bruno Haible <bruno@clisp.org>
40604 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
40605 differently if DEFAULT_TEXT_DOMAIN is set.
40607 2006-10-16 Bruno Haible <bruno@clisp.org>
40609 * lib/clean-temp.c: Include fwriteerror.h.
40611 2006-10-16 Bruno Haible <bruno@clisp.org>
40613 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
40615 2006-10-16 Bruno Haible <bruno@clisp.org>
40617 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
40618 * lib/sigprocmask.h: Include <sys/types.h>.
40619 (sigset_t): Use the system's definition if present.
40621 2006-10-17 Eric Blake <ebb9@byu.net>
40623 * lib/xvasprintf.c (includes): Assume config.h.
40624 * lib/xasprintf.c (includes): Likewise.
40626 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
40628 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
40629 at least as wide as intmax_t.
40631 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
40633 (Imported from Automake.)
40634 * build-aux/gnupload: Update to version 1.1 of directive file.
40636 2006-10-16 Eric Blake <ebb9@byu.net>
40638 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
40639 match Automake 1.10a.
40641 2006-10-14 Bruno Haible <bruno@clisp.org>
40643 * modules/sigprocmask: New file.
40644 * lib/sigprocmask.h: New file.
40645 * lib/sigprocmask.c: New file.
40646 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
40647 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
40648 request sigprocmask.o.
40649 (gl_PREREQ_SIGPROCMASK): New macro.
40650 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
40651 (Depends-on): Add sigprocmask.
40652 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
40653 gt_SIGNALBLOCKING. Test for 'raise' only once.
40654 * lib/fatal-signal.c: Include sigprocmask.h.
40655 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
40656 unblock_fatal_signals): Define always.
40657 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40660 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
40662 Sync from Automake.
40663 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
40664 which incorrectly sets the mode of an existing destination
40665 directory. In some cases the unpatched install-sh could do the
40666 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
40667 system. We hope this is rare in practice, but it's clearly worth
40668 fixing. Problem reported by Alex Unleashed in
40669 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
40670 Also, don't bother to check for -m bugs unless we're using -m;
40671 suggested by Stepan Kasal.
40673 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40675 Sync from Automake.
40676 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
40677 `-c' flag, so they appear at the same position as in %FASTDEP%
40678 mode in depend2.am. Fixes build failure for FreeBSD's c89,
40679 which ignores unknown options only after the first non-option.
40680 Bug report against M4 by Nelson H. F. Beebe.
40682 2006-10-13 Jim Meyering <jim@meyering.net>
40684 Fix a bug in yesterday's change.
40685 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
40686 p->fts_statp->st_dev would be used uninitialized.
40687 Ensures that we always call fts_stat on the very first entry.
40688 Miklos Szeredi reported that find -xdev stopped working.
40690 2006-10-12 Bruno Haible <bruno@clisp.org>
40692 * gnulib-tool (func_get_automake_snippet): Append an automatically
40693 computed EXTRA_DIST augmentation.
40694 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
40695 * modules/alloca-opt (Makefile.am): Likewise.
40696 * modules/allocsa (Makefile.am): Likewise.
40697 * modules/arcfour (Makefile.am): Likewise.
40698 * modules/arctwo (Makefile.am): Likewise.
40699 * modules/argmatch (Makefile.am): Likewise.
40700 * modules/argz (Makefile.am): Likewise.
40701 * modules/atexit (Makefile.am): Likewise.
40702 * modules/backupfile (Makefile.am): Likewise.
40703 * modules/byteswap (Makefile.am): Likewise.
40704 * modules/c-strtod (Makefile.am): Likewise.
40705 * modules/c-strtold (Makefile.am): Likewise.
40706 * modules/calloc (Makefile.am): Likewise.
40707 * modules/canon-host (Makefile.am): Likewise.
40708 * modules/canonicalize (Makefile.am): Likewise.
40709 * modules/chdir-long (Makefile.am): Likewise.
40710 * modules/chdir-safer (Makefile.am): Likewise.
40711 * modules/check-version (Makefile.am): Likewise.
40712 * modules/chown (Makefile.am): Likewise.
40713 * modules/cloexec (Makefile.am): Likewise.
40714 * modules/close-stream (Makefile.am): Likewise.
40715 * modules/closeout (Makefile.am): Likewise.
40716 * modules/crc (Makefile.am): Likewise.
40717 * modules/csharpexec (Makefile.am): Likewise.
40718 * modules/cycle-check (Makefile.am): Likewise.
40719 * modules/des (Makefile.am): Likewise.
40720 * modules/dev-ino (Makefile.am): Likewise.
40721 * modules/dirfd (Makefile.am): Likewise.
40722 * modules/dirname (Makefile.am): Likewise.
40723 * modules/dup2 (Makefile.am): Likewise.
40724 * modules/eealloc (Makefile.am): Likewise.
40725 * modules/error (Makefile.am): Likewise.
40726 * modules/euidaccess (Makefile.am): Likewise.
40727 * modules/exclude (Makefile.am): Likewise.
40728 * modules/exitfail (Makefile.am): Likewise.
40729 * modules/fcntl-safer (Makefile.am): Likewise.
40730 * modules/fcntl (Makefile.am): Likewise.
40731 * modules/file-type (Makefile.am): Likewise.
40732 * modules/fileblocks (Makefile.am): Likewise.
40733 * modules/filemode (Makefile.am): Likewise.
40734 * modules/filenamecat (Makefile.am): Likewise.
40735 * modules/fnmatch (Makefile.am): Likewise.
40736 * modules/fopen-safer (Makefile.am): Likewise.
40737 * modules/fpending (Makefile.am): Likewise.
40738 * modules/fprintftime (Makefile.am): Likewise.
40739 * modules/free (Makefile.am): Likewise.
40740 * modules/fsusage (Makefile.am): Likewise.
40741 * modules/ftruncate (Makefile.am): Likewise.
40742 * modules/fts (Makefile.am): Likewise.
40743 * modules/gc-arcfour (Makefile.am): Likewise.
40744 * modules/gc-des (Makefile.am): Likewise.
40745 * modules/gc-hmac-md5 (Makefile.am): Likewise.
40746 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
40747 * modules/gc-md4 (Makefile.am): Likewise.
40748 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
40749 * modules/gc-sha1 (Makefile.am): Likewise.
40750 * modules/gc (Makefile.am): Likewise.
40751 * modules/getaddrinfo (Makefile.am): Likewise.
40752 * modules/getcwd (Makefile.am): Likewise.
40753 * modules/getdelim (Makefile.am): Likewise.
40754 * modules/getdomainname (Makefile.am): Likewise.
40755 * modules/getgroups (Makefile.am): Likewise.
40756 * modules/gethostname (Makefile.am): Likewise.
40757 * modules/gethrxtime (Makefile.am): Likewise.
40758 * modules/getline (Makefile.am): Likewise.
40759 * modules/getloadavg (Makefile.am): Likewise.
40760 * modules/getlogin_r (Makefile.am): Likewise.
40761 * modules/getndelim2 (Makefile.am): Likewise.
40762 * modules/getopt (Makefile.am): Likewise.
40763 * modules/getpagesize (Makefile.am): Likewise.
40764 * modules/getpass-gnu (Makefile.am): Likewise.
40765 * modules/getpass (Makefile.am): Likewise.
40766 * modules/getsubopt (Makefile.am): Likewise.
40767 * modules/gettime (Makefile.am): Likewise.
40768 * modules/gettimeofday (Makefile.am): Likewise.
40769 * modules/getugroups (Makefile.am): Likewise.
40770 * modules/getusershell (Makefile.am): Likewise.
40771 * modules/glob (Makefile.am): Likewise.
40772 * modules/group-member (Makefile.am): Likewise.
40773 * modules/hard-locale (Makefile.am): Likewise.
40774 * modules/hash (Makefile.am): Likewise.
40775 * modules/hmac-md5 (Makefile.am): Likewise.
40776 * modules/hmac-sha1 (Makefile.am): Likewise.
40777 * modules/human (Makefile.am): Likewise.
40778 * modules/idcache (Makefile.am): Likewise.
40779 * modules/imaxabs (Makefile.am): Likewise.
40780 * modules/imaxdiv (Makefile.am): Likewise.
40781 * modules/inet_ntop (Makefile.am): Likewise.
40782 * modules/inet_pton (Makefile.am): Likewise.
40783 * modules/intprops (Makefile.am): Likewise.
40784 * modules/inttostr (Makefile.am): Likewise.
40785 * modules/inttypes (Makefile.am): Likewise.
40786 * modules/isapipe (Makefile.am): Likewise.
40787 * modules/javaversion (Makefile.am): Likewise.
40788 * modules/lchmod (Makefile.am): Likewise.
40789 * modules/lchown (Makefile.am): Likewise.
40790 * modules/localcharset (Makefile.am): Likewise.
40791 * modules/long-options (Makefile.am): Likewise.
40792 * modules/lstat (Makefile.am): Likewise.
40793 * modules/malloc (Makefile.am): Likewise.
40794 * modules/mathl (Makefile.am): Likewise.
40795 * modules/mbchar (Makefile.am): Likewise.
40796 * modules/md2 (Makefile.am): Likewise.
40797 * modules/md4 (Makefile.am): Likewise.
40798 * modules/md5 (Makefile.am): Likewise.
40799 * modules/memcasecmp (Makefile.am): Likewise.
40800 * modules/memchr (Makefile.am): Likewise.
40801 * modules/memcmp (Makefile.am): Likewise.
40802 * modules/memcoll (Makefile.am): Likewise.
40803 * modules/memcpy (Makefile.am): Likewise.
40804 * modules/memmem (Makefile.am): Likewise.
40805 * modules/memmove (Makefile.am): Likewise.
40806 * modules/mempcpy (Makefile.am): Likewise.
40807 * modules/memrchr (Makefile.am): Likewise.
40808 * modules/memset (Makefile.am): Likewise.
40809 * modules/memxor (Makefile.am): Likewise.
40810 * modules/mkancesdirs (Makefile.am): Likewise.
40811 * modules/mkdir-p (Makefile.am): Likewise.
40812 * modules/mkdir (Makefile.am): Likewise.
40813 * modules/mkdtemp (Makefile.am): Likewise.
40814 * modules/mkstemp (Makefile.am): Likewise.
40815 * modules/mktime (Makefile.am): Likewise.
40816 * modules/modechange (Makefile.am): Likewise.
40817 * modules/mountlist (Makefile.am): Likewise.
40818 * modules/nanosleep (Makefile.am): Likewise.
40819 * modules/obstack (Makefile.am): Likewise.
40820 * modules/openat (Makefile.am): Likewise.
40821 * modules/pagealign_alloc (Makefile.am): Likewise.
40822 * modules/pathmax (Makefile.am): Likewise.
40823 * modules/physmem (Makefile.am): Likewise.
40824 * modules/poll (Makefile.am): Likewise.
40825 * modules/posixtm (Makefile.am): Likewise.
40826 * modules/posixver (Makefile.am): Likewise.
40827 * modules/putenv (Makefile.am): Likewise.
40828 * modules/quote (Makefile.am): Likewise.
40829 * modules/quotearg (Makefile.am): Likewise.
40830 * modules/raise (Makefile.am): Likewise.
40831 * modules/read-file (Makefile.am): Likewise.
40832 * modules/readline (Makefile.am): Likewise.
40833 * modules/readlink (Makefile.am): Likewise.
40834 * modules/readtokens (Makefile.am): Likewise.
40835 * modules/readutmp (Makefile.am): Likewise.
40836 * modules/realloc (Makefile.am): Likewise.
40837 * modules/regex (Makefile.am): Likewise.
40838 * modules/rename-dest-slash (Makefile.am): Likewise.
40839 * modules/rename (Makefile.am): Likewise.
40840 * modules/rijndael (Makefile.am): Likewise.
40841 * modules/rmdir (Makefile.am): Likewise.
40842 * modules/rpmatch (Makefile.am): Likewise.
40843 * modules/safe-read (Makefile.am): Likewise.
40844 * modules/safe-write (Makefile.am): Likewise.
40845 * modules/same-inode (Makefile.am): Likewise.
40846 * modules/same (Makefile.am): Likewise.
40847 * modules/save-cwd (Makefile.am): Likewise.
40848 * modules/savedir (Makefile.am): Likewise.
40849 * modules/setenv (Makefile.am): Likewise.
40850 * modules/settime (Makefile.am): Likewise.
40851 * modules/sha1 (Makefile.am): Likewise.
40852 * modules/sig2str (Makefile.am): Likewise.
40853 * modules/snprintf (Makefile.am): Likewise.
40854 * modules/stat-macros (Makefile.am): Likewise.
40855 * modules/stat-time (Makefile.am): Likewise.
40856 * modules/stdbool (Makefile.am): Likewise.
40857 * modules/stdint (Makefile.am): Likewise.
40858 * modules/stdlib-safer (Makefile.am): Likewise.
40859 * modules/stpcpy (Makefile.am): Likewise.
40860 * modules/stpncpy (Makefile.am): Likewise.
40861 * modules/strcase (Makefile.am): Likewise.
40862 * modules/strcasestr (Makefile.am): Likewise.
40863 * modules/strchrnul (Makefile.am): Likewise.
40864 * modules/strcspn (Makefile.am): Likewise.
40865 * modules/strdup (Makefile.am): Likewise.
40866 * modules/strerror (Makefile.am): Likewise.
40867 * modules/strftime (Makefile.am): Likewise.
40868 * modules/strndup (Makefile.am): Likewise.
40869 * modules/strnlen (Makefile.am): Likewise.
40870 * modules/strpbrk (Makefile.am): Likewise.
40871 * modules/strsep (Makefile.am): Likewise.
40872 * modules/strstr (Makefile.am): Likewise.
40873 * modules/strtod (Makefile.am): Likewise.
40874 * modules/strtoimax (Makefile.am): Likewise.
40875 * modules/strtok_r (Makefile.am): Likewise.
40876 * modules/strtol (Makefile.am): Likewise.
40877 * modules/strtoll (Makefile.am): Likewise.
40878 * modules/strtoul (Makefile.am): Likewise.
40879 * modules/strtoull (Makefile.am): Likewise.
40880 * modules/strtoumax (Makefile.am): Likewise.
40881 * modules/strverscmp (Makefile.am): Likewise.
40882 * modules/sys_socket (Makefile.am): Likewise.
40883 * modules/sys_stat (Makefile.am): Likewise.
40884 * modules/sysexits (Makefile.am): Likewise.
40885 * modules/time_r (Makefile.am): Likewise.
40886 * modules/timegm (Makefile.am): Likewise.
40887 * modules/timespec (Makefile.am): Likewise.
40888 * modules/tmpfile-safer (Makefile.am): Likewise.
40889 * modules/trim (Makefile.am): Likewise.
40890 * modules/unistd-safer (Makefile.am): Likewise.
40891 * modules/unlinkdir (Makefile.am): Likewise.
40892 * modules/unlocked-io (Makefile.am): Likewise.
40893 * modules/userspec (Makefile.am): Likewise.
40894 * modules/utime (Makefile.am): Likewise.
40895 * modules/utimecmp (Makefile.am): Likewise.
40896 * modules/utimens (Makefile.am): Likewise.
40897 * modules/vasnprintf (Makefile.am): Likewise.
40898 * modules/vasprintf (Makefile.am): Likewise.
40899 * modules/vsnprintf (Makefile.am): Likewise.
40900 * modules/xalloc (Makefile.am): Likewise.
40901 * modules/xgetcwd (Makefile.am): Likewise.
40902 * modules/xnanosleep (Makefile.am): Likewise.
40903 * modules/xreadlink (Makefile.am): Likewise.
40904 * modules/xstrtod (Makefile.am): Likewise.
40905 * modules/xstrtol (Makefile.am): Likewise.
40906 * modules/xstrtold (Makefile.am): Likewise.
40907 * modules/yesno (Makefile.am): Likewise.
40908 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
40910 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
40912 * modules/error (Makefile.am): Distribute files through
40913 EXTRA_DIST, not lib_SOURCES.
40915 2006-10-12 Eric Blake <ebb9@byu.net>
40917 * modules/error (Makefile.am): Distribute files in /lib.
40918 * modules/obstack (Makefile.am): Likewise.
40920 2006-10-12 Bruno Haible <bruno@clisp.org>
40922 * modules/acl (Makefile.am): Distribute all files in lib/ through
40924 * modules/arcfour (Makefile.am): Likewise.
40925 * modules/arctwo (Makefile.am): Likewise.
40926 * modules/argmatch (Makefile.am): Likewise.
40927 * modules/argz (Makefile.am): Likewise.
40928 * modules/atexit (Makefile.am): Likewise.
40929 * modules/backupfile (Makefile.am): Likewise.
40930 * modules/c-strtod (Makefile.am): Likewise.
40931 * modules/c-strtold (Makefile.am): Likewise.
40932 * modules/calloc (Makefile.am): Likewise.
40933 * modules/canon-host (Makefile.am): Likewise.
40934 * modules/canonicalize (Makefile.am): Likewise.
40935 * modules/chdir-long (Makefile.am): Likewise.
40936 * modules/chdir-safer (Makefile.am): Likewise.
40937 * modules/check-version (Makefile.am): Likewise.
40938 * modules/chown (Makefile.am): Likewise.
40939 * modules/cloexec (Makefile.am): Likewise.
40940 * modules/close-stream (Makefile.am): Likewise.
40941 * modules/closeout (Makefile.am): Likewise.
40942 * modules/crc (Makefile.am): Likewise.
40943 * modules/cycle-check (Makefile.am): Likewise.
40944 * modules/des (Makefile.am): Likewise.
40945 * modules/dirfd (Makefile.am): Likewise.
40946 * modules/dirname (Makefile.am): Likewise.
40947 * modules/dup2 (Makefile.am): Likewise.
40948 * modules/euidaccess (Makefile.am): Likewise.
40949 * modules/exclude (Makefile.am): Likewise.
40950 * modules/exitfail (Makefile.am): Likewise.
40951 * modules/fcntl-safer (Makefile.am): Likewise.
40952 * modules/file-type (Makefile.am): Likewise.
40953 * modules/fileblocks (Makefile.am): Likewise.
40954 * modules/filemode (Makefile.am): Likewise.
40955 * modules/filenamecat (Makefile.am): Likewise.
40956 * modules/fnmatch (Makefile.am): Likewise.
40957 * modules/fopen-safer (Makefile.am): Likewise.
40958 * modules/fpending (Makefile.am): Likewise.
40959 * modules/fprintftime (Makefile.am): Likewise.
40960 * modules/free (Makefile.am): Likewise.
40961 * modules/fsusage (Makefile.am): Likewise.
40962 * modules/ftruncate (Makefile.am): Likewise.
40963 * modules/fts (Makefile.am): Likewise.
40964 * modules/gc (Makefile.am): Likewise.
40965 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
40966 * modules/getaddrinfo (Makefile.am): Likewise.
40967 * modules/getcwd (Makefile.am): Likewise.
40968 * modules/getdelim (Makefile.am): Likewise.
40969 * modules/getdomainname (Makefile.am): Likewise.
40970 * modules/getgroups (Makefile.am): Likewise.
40971 * modules/gethostname (Makefile.am): Likewise.
40972 * modules/gethrxtime (Makefile.am): Likewise.
40973 * modules/getline (Makefile.am): Likewise.
40974 * modules/getloadavg (Makefile.am): Likewise.
40975 * modules/getlogin_r (Makefile.am): Likewise.
40976 * modules/getopt (Makefile.am): Likewise.
40977 * modules/getpass (Makefile.am): Likewise.
40978 * modules/getpass-gnu (Makefile.am): Likewise.
40979 * modules/getsubopt (Makefile.am): Likewise.
40980 * modules/gettime (Makefile.am): Likewise.
40981 * modules/gettimeofday (Makefile.am): Likewise.
40982 * modules/getugroups (Makefile.am): Likewise.
40983 * modules/getusershell (Makefile.am): Likewise.
40984 * modules/glob (Makefile.am): Likewise.
40985 * modules/group-member (Makefile.am): Likewise.
40986 * modules/hard-locale (Makefile.am): Likewise.
40987 * modules/hash (Makefile.am): Likewise.
40988 * modules/hmac-md5 (Makefile.am): Likewise.
40989 * modules/hmac-sha1 (Makefile.am): Likewise.
40990 * modules/human (Makefile.am): Likewise.
40991 * modules/idcache (Makefile.am): Likewise.
40992 * modules/imaxabs (Makefile.am): Likewise.
40993 * modules/imaxdiv (Makefile.am): Likewise.
40994 * modules/inet_ntop (Makefile.am): Likewise.
40995 * modules/inet_pton (Makefile.am): Likewise.
40996 * modules/inttostr (Makefile.am): Likewise.
40997 * modules/isapipe (Makefile.am): Likewise.
40998 * modules/lchown (Makefile.am): Likewise.
40999 * modules/long-options (Makefile.am): Likewise.
41000 * modules/lstat (Makefile.am): Likewise.
41001 * modules/malloc (Makefile.am): Likewise.
41002 * modules/mathl (Makefile.am): Likewise.
41003 * modules/mbchar (Makefile.am): Likewise.
41004 * modules/md2 (Makefile.am): Likewise.
41005 * modules/md4 (Makefile.am): Likewise.
41006 * modules/md5 (Makefile.am): Likewise.
41007 * modules/memcasecmp (Makefile.am): Likewise.
41008 * modules/memchr (Makefile.am): Likewise.
41009 * modules/memcmp (Makefile.am): Likewise.
41010 * modules/memcoll (Makefile.am): Likewise.
41011 * modules/memcpy (Makefile.am): Likewise.
41012 * modules/memmem (Makefile.am): Likewise.
41013 * modules/memmove (Makefile.am): Likewise.
41014 * modules/mempcpy (Makefile.am): Likewise.
41015 * modules/memrchr (Makefile.am): Likewise.
41016 * modules/memset (Makefile.am): Likewise.
41017 * modules/memxor (Makefile.am): Likewise.
41018 * modules/mkancesdirs (Makefile.am): Likewise.
41019 * modules/mkdir (Makefile.am): Likewise.
41020 * modules/mkdir-p (Makefile.am): Likewise.
41021 * modules/mkdtemp (Makefile.am): Likewise.
41022 * modules/mkstemp (Makefile.am): Likewise.
41023 * modules/mktime (Makefile.am): Likewise.
41024 * modules/modechange (Makefile.am): Likewise.
41025 * modules/mountlist (Makefile.am): Likewise.
41026 * modules/nanosleep (Makefile.am): Likewise.
41027 * modules/openat (Makefile.am): Likewise.
41028 * modules/pagealign_alloc (Makefile.am): Likewise.
41029 * modules/physmem (Makefile.am): Likewise.
41030 * modules/poll (Makefile.am): Likewise.
41031 * modules/posixtm (Makefile.am): Likewise.
41032 * modules/posixver (Makefile.am): Likewise.
41033 * modules/putenv (Makefile.am): Likewise.
41034 * modules/quote (Makefile.am): Likewise.
41035 * modules/quotearg (Makefile.am): Likewise.
41036 * modules/raise (Makefile.am): Likewise.
41037 * modules/read-file (Makefile.am): Likewise.
41038 * modules/readline (Makefile.am): Likewise.
41039 * modules/readlink (Makefile.am): Likewise.
41040 * modules/readtokens (Makefile.am): Likewise.
41041 * modules/readutmp (Makefile.am): Likewise.
41042 * modules/realloc (Makefile.am): Likewise.
41043 * modules/regex (Makefile.am): Likewise.
41044 * modules/rename (Makefile.am): Likewise.
41045 * modules/rename-dest-slash (Makefile.am): Likewise.
41046 * modules/rijndael (Makefile.am): Likewise.
41047 * modules/rmdir (Makefile.am): Likewise.
41048 * modules/rpmatch (Makefile.am): Likewise.
41049 * modules/safe-read (Makefile.am): Likewise.
41050 * modules/safe-write (Makefile.am): Likewise.
41051 * modules/same (Makefile.am): Likewise.
41052 * modules/save-cwd (Makefile.am): Likewise.
41053 * modules/savedir (Makefile.am): Likewise.
41054 * modules/setenv (Makefile.am): Likewise.
41055 * modules/settime (Makefile.am): Likewise.
41056 * modules/sha1 (Makefile.am): Likewise.
41057 * modules/sig2str (Makefile.am): Likewise.
41058 * modules/snprintf (Makefile.am): Likewise.
41059 * modules/stdlib-safer (Makefile.am): Likewise.
41060 * modules/stpcpy (Makefile.am): Likewise.
41061 * modules/stpncpy (Makefile.am): Likewise.
41062 * modules/strcase (Makefile.am): Likewise.
41063 * modules/strcasestr (Makefile.am): Likewise.
41064 * modules/strchrnul (Makefile.am): Likewise.
41065 * modules/strcspn (Makefile.am): Likewise.
41066 * modules/strdup (Makefile.am): Likewise.
41067 * modules/strerror (Makefile.am): Likewise.
41068 * modules/strftime (Makefile.am): Likewise.
41069 * modules/strndup (Makefile.am): Likewise.
41070 * modules/strnlen (Makefile.am): Likewise.
41071 * modules/strpbrk (Makefile.am): Likewise.
41072 * modules/strsep (Makefile.am): Likewise.
41073 * modules/strstr (Makefile.am): Likewise.
41074 * modules/strtod (Makefile.am): Likewise.
41075 * modules/strtoimax (Makefile.am): Likewise.
41076 * modules/strtok_r (Makefile.am): Likewise.
41077 * modules/strtol (Makefile.am): Likewise.
41078 * modules/strtoll (Makefile.am): Likewise.
41079 * modules/strtoul (Makefile.am): Likewise.
41080 * modules/strtoull (Makefile.am): Likewise.
41081 * modules/strtoumax (Makefile.am): Likewise.
41082 * modules/strverscmp (Makefile.am): Likewise.
41083 * modules/time_r (Makefile.am): Likewise.
41084 * modules/timegm (Makefile.am): Likewise.
41085 * modules/tmpfile-safer (Makefile.am): Likewise.
41086 * modules/unistd-safer (Makefile.am): Likewise.
41087 * modules/unlinkdir (Makefile.am): Likewise.
41088 * modules/userspec (Makefile.am): Likewise.
41089 * modules/utime (Makefile.am): Likewise.
41090 * modules/utimecmp (Makefile.am): Likewise.
41091 * modules/utimens (Makefile.am): Likewise.
41092 * modules/vasnprintf (Makefile.am): Likewise.
41093 * modules/vasprintf (Makefile.am): Likewise.
41094 * modules/vsnprintf (Makefile.am): Likewise.
41095 * modules/xalloc (Makefile.am): Likewise.
41096 * modules/xgetcwd (Makefile.am): Likewise.
41097 * modules/xnanosleep (Makefile.am): Likewise.
41098 * modules/xreadlink (Makefile.am): Likewise.
41099 * modules/xstrtod (Makefile.am): Likewise.
41100 * modules/xstrtol (Makefile.am): Likewise.
41101 * modules/xstrtold (Makefile.am): Likewise.
41102 * modules/yesno (Makefile.am): Likewise.
41104 2006-10-12 Jim Meyering <jim@meyering.net>
41106 * m4/getloadavg.m4: Revert the change below.
41108 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
41109 lib/getloadavg.c using "ls -L", not "test -f". The latter would
41110 fail with a symlink, which is what coreutils' ./bootstrap now
41111 creates by default.
41113 2006-10-12 Bruno Haible <bruno@clisp.org>
41115 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
41117 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
41118 MSVC and mingw explicitly.
41120 2006-10-11 Simon Josefsson <jas@extundo.com>
41121 Bruno Haible <bruno@clisp.org>
41123 Add support for multiple gnulib-tool invocations in the scope of a
41124 single configure.ac file.
41125 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
41126 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
41127 with the same contents as the _LIBADD variable.
41128 (func_emit_initmacro_start, func_emit_initmacro_end,
41129 func_emit_initmacro_done): New functions.
41130 (func_import, func_create_testdir): Invoke them. Allow the identifiers
41131 gl_LIBOBJS and gl_LTLIBOBJS.
41133 2006-10-11 Bruno Haible <bruno@clisp.org>
41135 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
41136 (func_create_testdir): Don't create po/Makefile.am, don't invoke
41137 autoreconf. Instead, invoke autopoint explicitly but move back the
41138 *.m4 files from gnulib.
41140 2006-10-11 Bruno Haible <bruno@clisp.org>
41142 * gnulib-tool (func_usage): Make module names after --create-testdir
41144 (func_create_testdir): If no module was specified, use nearly all
41147 2006-10-12 Jim Meyering <jim@meyering.net>
41149 Big performance improvement for fts-based tools that use FTS_NOSTAT.
41150 Avoid spurious inode-mismatch problems on non-POSIX file systems.
41151 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
41152 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
41153 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
41154 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
41155 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
41156 (fts_set_stat_required): New function.
41157 (fts_open): Defer the calls to fts_stat, if possible or requested.
41158 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
41159 into fts_stat itself.
41160 (fts_read): Perform any required (deferred) fts_stat call.
41161 (fts_build): Likewise, for the directory we're about to open and read.
41162 In the readdir loop, carefully decide whether each entry will require
41163 an eventual call to fts_stat, using dirent.d_type info if available.
41164 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
41165 a command line argument into this function. Update all callers.
41166 Map a return value of FTS_DOT to FTS_D for a command line argument.
41167 * modules/fts (Depends-on): Add d-type. Alphabetize.
41168 Thanks to Miklos Szeredi for his tenacity and for the initial
41169 bug report about "find" failing on a FUSE-based file system.
41171 * lib/fts.c (fts_open): Use consistent indentation.
41173 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
41175 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
41176 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
41177 reported by Jim Meyering. All uses of cache variables renamed
41178 to match Autoconf's.
41179 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
41182 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41183 Fix misspelling in diagnostic.
41185 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
41187 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
41188 defined. Problem reported by Matthew Woehlke.
41190 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
41191 Add support for Tandem NonStop R series.
41192 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
41195 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
41196 (has_trailing_slash): Omit size arg; all callers changed.
41197 Omit 'inline', since it doesn't help performance and we'd
41198 need to configure it.
41199 Don't count //, ///, etc. as having a trailing slash.
41200 As a side effect, this removes a C99ism reported by Matthew Woehlke.
41201 (rpl_rename_dest_slash): On failure, use rename's errno rather
41202 than (in some cases) an incorrect or junk errno.
41203 Simplify code by removing need to compute length; this does
41204 cause it to make two passes instead of one over the file name,
41207 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
41208 change, since Autoconf's version may no longer be appropriate now
41209 that we are using CVS Autoconf's version. Add support for Tandem.
41211 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
41212 Bruno Haible <bruno@clisp.org>
41214 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
41215 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
41216 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
41217 gl_AC_TYPE_LONG_LONG.
41219 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
41220 instead of HAVE_LONG_LONG.
41221 * lib/printf-args.c (printf_fetchargs): Likewise.
41222 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
41223 * lib/vasnprintf.c (VASNPRINTF): Likewise.
41224 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
41225 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
41226 gl_AC_TYPE_LONG_LONG.
41228 2006-10-11 Bruno Haible <bruno@clisp.org>
41230 * m4/longlong.m4: Add comments.
41231 * m4/ulonglong.m4: Likewise.
41233 2006-10-10 Bruno Haible <bruno@clisp.org>
41235 Make it possible to #define stpcpy, strdup to aliases.
41236 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
41237 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
41239 2006-10-10 Bruno Haible <bruno@clisp.org>
41241 Make it possible to #define gcd to an alias.
41242 * lib/gcd.c: Include config.h.
41244 2006-10-10 Bruno Haible <bruno@clisp.org>
41246 Make it possible to #define c_isascii to an alias.
41247 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
41248 defined. Undefine the macros before defining them, to avoid gcc
41250 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
41251 define NO_C_CTYPE_MACROS early.
41253 2006-10-10 Bruno Haible <bruno@clisp.org>
41255 Make it possible to #define set_program_name to an alias.
41256 * lib/progname.c: Don't undefine set_program_name; instead, undefine
41257 ENABLE_RELOCATABLE early.
41259 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
41261 Port to Tandem NSK OSS, which has 64-bit signed int but at most
41262 32-bit unsigned int. Problem reported by Matthew Woehlke in:
41263 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
41264 More generally, don't assume that 64-bit signed int is available
41265 if unsigned int is, and vice versa.
41266 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
41267 unsigned symbols, not on their signed counterparts.
41268 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
41269 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
41270 (UINT64_C, UINTMAX_C):
41272 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
41273 unsigned counterparts.
41274 (Have_long_long, Unsigned): New macros.
41275 (Int): Renamed from INT.
41276 (strtoimax): Use the new macros.
41277 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
41278 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
41279 * modules/inttypes (inttypes.h): Substitute
41280 HAVE_UNSIGNED_LONG_LONG_INT.
41281 * modules/stdint (stdint.h): Likewise.
41282 (Files): Add m4/ulonglong.m4.
41284 2006-10-10 Bruno Haible <bruno@clisp.org>
41286 Fix a gcc -Wshadow warning.
41287 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
41289 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
41290 gl_linked_indexof_from_to): Likewise.
41291 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
41293 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
41295 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
41296 Reported by Eric Blake.
41298 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
41300 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
41301 for NetBSD. Problem reported by Bruno Haible.
41303 2006-10-09 Jim Meyering <jim@meyering.net>
41305 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
41306 Patch from Bruno Haible.
41308 2006-10-09 Jim Meyering <jim@meyering.net>
41310 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
41311 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
41312 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
41314 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
41316 Don't include <config.h> twice; this doesn't work in some cases,
41317 e.g., when config.h has "#define intmax_t long long int" and
41318 we include <config.h>, <inttypes.h>, <config.h> in that order.
41319 Problem reported by Matthew Woehlke in:
41320 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
41321 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
41322 * lib/fts-cycle.c: Don't include config.h.
41323 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
41324 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
41325 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
41326 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
41328 * lib/xstrtoumax.c: Likewise.
41329 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
41330 __strtol and the like, so that this module is more like its siblings.
41331 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
41332 Remove; no longer needed now that we assume gnulib inttypes.h.
41334 2006-10-08 Bruno Haible <bruno@clisp.org>
41336 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
41339 2006-10-07 Jim Meyering <jim@meyering.net>
41341 * modules/inttypes (inttypes.h): Revert what seems to have been
41342 an inadvertent part of today's change: use "|", not "/" in the
41343 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
41345 2006-10-07 Bruno Haible <bruno@clisp.org>
41347 * modules/sublist: New file.
41349 2006-10-07 Bruno Haible <bruno@clisp.org>
41351 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
41352 * modules/argz (argz.h): Likewise.
41353 * modules/arpa_inet (arpa/inet.h): Likewise.
41354 * modules/byteswap (byteswap.h): Likewise.
41355 * modules/configmake (configmake.h): Likewise.
41356 * modules/fcntl (fcntl.h): Likewise.
41357 * modules/fnmatch (fnmatch.h): Likewise.
41358 * modules/getopt (getopt.h): Likewise.
41359 * modules/glob (glob.h): Likewise.
41360 * modules/inttypes (inttypes.h): Likewise.
41361 * modules/netinet_in (netinet/in.h): Likewise.
41362 * modules/poll (poll.h): Likewise.
41363 * modules/stdbool (stdbool.h): Likewise.
41364 * modules/stdint (stdint.h): Likewise.
41365 * modules/sys_select (sys/select.h): Likewise.
41366 * modules/sys_socket (sys/socket.h): Likewise.
41367 * modules/sys_stat (sys/stat.h): Likewise.
41368 * modules/sysexits (sysexits.h): Likewise.
41369 * modules/unistd (unistd.h): Likewise.
41370 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41371 Add a "DO NOT EDIT" comment to the generated file.
41372 (func_import): Likewise for gnulib-comp.m4.
41374 2006-10-07 Bruno Haible <bruno@clisp.org>
41376 * lib/gl_sublist.h: New file.
41377 * lib/gl_sublist.c: New file.
41379 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
41381 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
41382 name (relative to the original working directory) and the file
41383 name component (relative to the temporary working directory). All
41385 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
41386 * lib/mkdir-p.c (make_dir_parents): Likewise.
41387 * lib/mkdir-p.h (make_dir_parents): Likewise.
41389 2006-10-06 Eric Blake <ebb9@byu.net>
41391 Define several macros for use by the clean-temp module.
41392 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
41393 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
41394 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
41396 * lib/clean-temp.h (close_stream_temp): New declaration.
41397 * lib/clean-temp.c (includes): Pull in headers according to what
41398 other modules are in use.
41399 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
41401 2006-10-06 Bruno Haible <bruno@clisp.org>
41403 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
41404 instead of fopen, fwriteerror.
41406 2006-10-06 Bruno Haible <bruno@clisp.org>
41408 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
41409 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
41411 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
41412 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
41413 Return an error indicator.
41414 Suggested by Eric Blake.
41416 2006-10-06 Bruno Haible <bruno@clisp.org>
41418 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
41419 Reported by Eric Blake.
41421 2006-10-06 Bruno Haible <bruno@clisp.org>
41423 * modules/closeout (Description): Mention stderr too.
41425 2006-10-06 Bruno Haible <bruno@clisp.org>
41426 and Paul Eggert <eggert@cs.ucla.edu>
41428 * lib/closeout.c (close_stdout): Also close stderr.
41429 * lib/closeout.h: Update comment.
41431 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
41433 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
41434 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
41435 * lib/dirchownmod.c: Include lchown.h.
41436 * lib/lchown.c: Don't include files that lchown.h now includes.
41437 Don't declare chown, since lchown.h now does that.
41438 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
41439 (lchown): Define to rpl_chown if lchown is declared but
41440 does not exist. Declare using a prototype if lchown is not
41441 declared. Add a copyright notice.
41442 * lib/mkstemp.h: Include <unistd.h>.
41443 * lib/openat.c: Include lchown.h.
41445 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
41446 we now test for that separately.
41447 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
41448 rather than O_NOFOLLOW, when testing whether it's possible to
41449 avoid a race condition reliably.
41450 * lib/savewd.c (savewd_chdir): Likewise.
41452 Remove macros that are no longer needed now that stdint.h is
41454 * lib/fsusage.c (UINTMAX_MAX): Remove.
41455 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
41456 * lib/utimecmp.c (SIZE_MAX): Remove.
41458 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
41460 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
41461 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
41464 2006-10-05 Bruno Haible <bruno@clisp.org>
41466 * lib/gl_list.h (gl_sortedlist_search_from_to,
41467 gl_sortedlist_indexof_from_to): New declarations.
41468 (gl_list_implementation): New fields sortedlist_search_from_to,
41469 sortedlist_indexof_from_to.
41470 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
41472 * lib/gl_list.c (gl_sortedlist_search_from_to,
41473 gl_sortedlist_indexof_from_to): New functions.
41474 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
41476 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
41477 (gl_array_sortedlist_search_from_to): New function.
41478 (gl_array_list_implementation): Update.
41479 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
41481 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
41482 (gl_carray_sortedlist_search_from_to): New function.
41483 (gl_carray_list_implementation): Update.
41484 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
41485 gl_linked_sortedlist_indexof_from_to): New functions.
41486 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41487 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41488 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
41489 gl_tree_sortedlist_indexof_from_to): New functions.
41490 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41491 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41493 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41494 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
41497 2006-10-05 Bruno Haible <bruno@clisp.org>
41499 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
41500 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
41501 (struct gl_list_implementation): Add fields search_from_to,
41502 indexof_from_to. Remove fields search, indexof.
41503 (gl_list_search): Use the search_from_to method.
41504 (gl_list_search_from, gl_list_search_from_to): New functions.
41505 (gl_list_indexof): Use the indexof_from_to method.
41506 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
41507 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
41508 (gl_list_search_from, gl_list_search_from_to): New functions.
41509 (gl_list_indexof): Use the indexof_from_to method.
41510 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
41511 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
41512 gl_array_indexof. Add start_index, end_index arguments.
41513 (gl_array_search_from_to): Renamed from gl_array_search. Add
41514 start_index, end_index arguments.
41515 (gl_array_remove, gl_array_list_implementation): Update.
41516 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
41517 gl_carray_indexof. Add start_index, end_index arguments.
41518 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
41519 start_index, end_index arguments.
41520 (gl_carray_remove, gl_carray_list_implementation): Update.
41521 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
41522 gl_linked_search. Add start_index, end_index arguments.
41523 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
41524 start_index, end_index arguments.
41525 (gl_linked_remove): Update.
41526 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41527 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41528 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
41530 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
41531 gl_tree_search. Add start_index, end_index arguments.
41532 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
41533 start_index, end_index arguments.
41534 (gl_tree_remove): Update.
41535 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41536 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41537 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
41539 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
41540 gl_tree_search. Add start_index, end_index arguments.
41541 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
41542 start_index, end_index arguments.
41543 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41545 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
41547 2006-10-05 Bruno Haible <bruno@clisp.org>
41549 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
41551 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
41552 fwriteerror_temp): New declarations.
41553 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
41554 (descriptors): New variable.
41555 (cleanup): First, close the descriptors.
41556 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
41557 fclose_temp, fwriteerror_temp): New functions.
41559 2006-10-04 Jim Meyering <jim@meyering.net>
41561 * lib/fts.c (fts_open): Tiny comment change.
41563 2006-10-04 Bruno Haible <bruno@clisp.org>
41565 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
41566 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
41568 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
41569 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
41570 gl_LOCK_EARLY_BODY.
41571 (gl_LOCK): Require gl_LOCK_BODY.
41573 2006-10-04 Bruno Haible <bruno@clisp.org>
41575 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
41576 (gl_oset_search_atleast): New declaration.
41577 (struct gl_oset_implementation): Add field 'search_atleast'.
41578 (gl_oset_search_atleast): New inline function.
41579 * lib/gl_oset.c (gl_oset_search_atleast): New function.
41580 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
41581 (gl_array_oset_implementation): Update.
41582 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
41583 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
41584 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
41586 2006-10-04 Bruno Haible <bruno@clisp.org>
41588 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
41590 2006-10-03 Bruno Haible <bruno@clisp.org>
41592 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
41593 from gl_avltreehash_list_implementation.
41595 2006-10-03 Bruno Haible <bruno@clisp.org>
41597 * lib/gl_oset.c (gl_oset_add): Fix return type.
41599 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
41601 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
41603 2006-10-02 Eric Blake <ebb9@byu.net>
41605 * modules/strnlen (Depends-on): Add extensions.
41607 2006-10-02 Eric Blake <ebb9@byu.net>
41609 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
41610 definition in 2.60+.
41612 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
41614 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
41617 2006-10-02 Bruno Haible <bruno@clisp.org>
41619 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
41620 to the AUTOMAKE_OPTIONS.
41621 Reported by Jim Meyering.
41623 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
41625 Work around bug in Solaris 10 /proc file system:
41626 /proc/self/fd/NNN/.. isn't the parent directory of
41627 the directory whose file descriptor is NNN. This needs to
41628 be worked around at run time, not compile time, since a
41629 program might be built on Solaris 8, where things work, and
41631 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
41632 to use the following interface instead:
41633 (OPENAT_BUFFER_SIZE): New macro.
41634 (openat_proc_name): New function.
41635 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
41636 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
41638 * lib/openat-proc.c: New file.
41639 * modules/openat (Files): Add lib/openat-proc.c.
41640 (Depends-on): Add same-inode, stdbool.
41641 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
41643 2006-09-29 Bruno Haible <bruno@clisp.org>
41645 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
41646 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
41647 argument. Set stdout_closed before testing for ferror, not after.
41648 (fwriteerror, fwriteerror_no_ebadf): New functions.
41650 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41652 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
41654 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
41656 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
41657 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
41659 2006-09-28 Jim Meyering <jim@meyering.net>
41661 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
41662 Include <unistd.h>.
41664 2006-09-28 Bruno Haible <bruno@clisp.org>
41666 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
41667 * modules/linkedhash-list (Depends-on): Likewise.
41668 * modules/rbtreehash-list (Depends-on): Likewise.
41670 2006-09-28 Bruno Haible <bruno@clisp.org>
41672 * lib/strndup.h: Simplify the redefinition of strndup.
41673 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
41674 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
41676 2006-09-28 Bruno Haible <bruno@clisp.org>
41678 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
41679 * lib/gl_linkedhash_list.c: Likewise.
41680 * lib/gl_rbtreehash_list.c: Likewise.
41682 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
41684 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
41687 * lib/__fpending.h: Don't include <stdio_ext.h> unless
41688 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
41689 it causes <stdio_ext.h> to cause a compile-time error.
41690 Problem reported by Nelson H. F. Beebe.
41691 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
41692 of HAVE_DECL___PENDING.
41694 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
41695 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
41698 2006-09-27 Jim Meyering <jim@meyering.net>
41700 This file could end up with a definition for a function
41701 named __strndup, rather than rpl_strndup on a system with
41702 incomplete weak_alias support.
41703 * lib/strndup.c (strndup): Rename from __strndup.
41704 Remove #defines that used to map __strndup to strndup.
41705 Don't use K&R prototypes.
41706 Remove LIBC-related code, since this file is not sync'd with glibc.
41707 * lib/strndup.h: Revamp, accordingly.
41708 * m4/strndup.m4: Modernize.
41710 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
41712 * modules/savewd (Depends-on): Add 'raise'.
41713 * lib/savewd.c: Include <signal.h>, for 'raise'.
41715 2006-09-26 Jim Meyering <jim@meyering.net>
41717 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
41718 when we detect Darwin 8.7.0's acl_get_file bug.
41719 Rearrange to perform the new (below) run-test while $LIBS
41720 contains any acl-related library. Set USE_ACL at the end.
41721 (gl_ACL_GET_FILE): New function.
41723 2006-09-26 Eric Blake <ebb9@byu.net>
41725 * lib/verror.c: Include <config.h> unconditionally.
41727 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
41729 * modules/clock-time (Maintainer): Add self.
41730 * modules/getlogin_r (Depends-on): Add extensions.
41732 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41734 * modules/clock-time: New module.
41735 * modules/nanosleep (Depends-on): Add clock-time.
41736 * modules/gethrxtime (Depends-on): Likewise.
41737 * modules/gettime (Depends-on): Likewise.
41738 * modules/settime (Depends-on): Likewise.
41740 * modules/fts-lgpl: Depend on openat.
41741 * modules/mkancesdirs: Depend on savewd.
41742 * modules/mkdir-p: Likewise.
41744 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41746 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
41748 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
41749 `gl_have_arbitrary_file_name_length_limit' to
41750 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
41751 actually works between configure runs.
41753 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41754 Bruno Haible <bruno@clisp.org>
41756 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
41758 2006-09-25 Jim Meyering <jim@meyering.net>
41760 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
41761 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
41763 2006-09-25 Eric Blake <ebb9@byu.net>
41765 * gnulib-tool (func_import, func_create_testdir): Fix typos in
41766 exec's in 2006-09-18 patch when shuffling fds.
41768 2006-09-25 Bruno Haible <bruno@clisp.org>
41770 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
41771 Reported by Jim Meyering.
41773 2006-09-24 Jim Meyering <jim@meyering.net>
41775 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
41776 compare a pointer against a literal "0". That caused failures with
41777 at least HP-UX's hpcc.
41779 2006-09-22 Simon Josefsson <jas@extundo.com>
41783 * modules/gc-hmac-sha1:
41784 * modules/gc-hmac-md5:
41786 * modules/gc-arcfour: Distribute more files.
41788 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41790 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
41791 (gl_linked_iterator_from_to): Initialize struct completely.
41792 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
41793 (gl_tree_iterator_from_to): Likewise
41794 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
41795 * lib/gl_array_list.c [lint] (gl_array_iterator)
41796 (gl_array_iterator_from_to): Likewise.
41797 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
41798 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
41799 (gl_carray_iterator_from_to): Likewise.
41801 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
41802 * lib/md4.c (md4_process_block): Remove unused variable.
41803 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
41804 parentheses for clarity.
41806 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41808 * modules/bison-i18n (Depends-on): Add gettext.
41810 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41812 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
41813 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41814 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
41815 also add missing comma that caused broken test.
41816 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
41817 stdlib.h, for `abort'.
41818 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
41820 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
41821 include unistd.h if present, for `rmdir'.
41822 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
41824 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
41825 in the process include standard headers for prototypes.
41826 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
41827 gets declared on GNU/Linux.
41828 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
41829 unistd.h, for `rmdir'.
41830 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
41832 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
41834 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
41836 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
41838 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41840 * gnulib-tool (func_version): Create output all at once. This
41841 may help avoid triggering unnecessary SIGPIPEs, and at any
41842 rate it doesn't hurt.
41844 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41845 Bruno Haible <bruno@clisp.org>
41847 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
41848 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
41849 * m4/signed.m4 (bh_C_SIGNED): Likewise.
41851 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
41852 (gl_FUNC_VASPRINTF): Invoke it.
41854 2006-09-22 Bruno Haible <bruno@clisp.org>
41856 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
41857 getloadavg.c as first argument.
41859 2006-09-22 Bruno Haible <bruno@clisp.org>
41861 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
41862 at the beginning of the gl_INIT macro.
41863 * modules/getloadavg (configure.ac): Pass $gl_source_base to
41866 2006-09-22 Bruno Haible <bruno@clisp.org>
41868 * gnulib-tool (func_create_megatestdir): Don't include the config-h
41870 Suggested by Ralf Wildenhues.
41872 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
41874 Import this patch from libc:
41876 2006-09-06 Jakub Jelinek <jakub@redhat.com>
41878 * lib/regex_internal.c (re_string_reconstruct): Handle
41879 offset < pstr->valid_raw_len && pstr->offsets_needed case.
41880 Ensure no bytes read before raw_mbs array. Pass a saved copy of
41881 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
41882 re_string_context_at.
41884 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
41886 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
41887 gl_REGEX now does it for us.
41888 (gl_REGEX): Add test taken from
41889 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
41891 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
41892 Check that large offsets work. Modernize Autoconf usages.
41893 Prefer "yes" to mean a good thing rather than a bad.
41894 Don't put "#define mkstemp" in config.h, as this might interfere
41895 with standard system headers that "#define mkstemp mkstemp64".
41897 * modules/mkstemp (Depends-on): Add extensions, so that
41898 mkstemp is visible on some platforms.
41899 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
41900 (Include): Change to "mkstemp.h" from <stdlib.h>.
41901 (Files): Add mkstemp.h.
41903 * lib/mkstemp.h: New file, since some standard headers
41905 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
41906 Include "mkstemp.h".
41907 Make the _LIBC code resemble glibc original more,
41908 e.g., use K&R style.
41909 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
41910 (mkstemp): Remove, since mkstemp.h does this for us.
41911 * lib/stdlib--.h: Include mkstemp.h.
41913 Import this patch from libc:
41915 2006-04-07 Ulrich Drepper <drepper@redhat.com>
41917 * lib/tempname.c (__gen_tempname): Change attempts_min
41918 into a macro. Use preprocessor to decide how to initialize
41919 attempts [Coverity CID 67].
41921 2006-09-20 Bruno Haible <bruno@clisp.org>
41923 * lib/mkdtemp.c: Import from libc.
41924 2006-04-07 Ulrich Drepper <drepper@redhat.com>
41925 * sysdeps/posix/tempname.c (__gen_tempname): Change
41926 attempts_min into a macro. Use preprocessor to decide how to
41927 initialize attempts [Coverity CID 67].
41928 2001-11-27 Paul Eggert <eggert@twinsun.com>
41929 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
41930 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
41932 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41934 * gnulib-tool (func_exit): New function, to allow to pass the
41935 exit status portably through the trap. Use everywhere.
41936 (--help, --version): Signal a write error.
41937 (trap): catch SIGPIPE, for write errors.
41938 Exit at the end of the trap, with the correct exit status.
41940 2006-09-19 Karl Berry <karl@gnu.org>
41942 * doc/gnulib.texi: note about the license texinfo files.
41944 2006-09-19 Eric Blake <ebb9@byu.net>
41946 * gnulib-tool: Avoid space-tab.
41948 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
41950 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
41951 that prevented coreutils 6.1 from building. Problem reported
41952 by Petter Reinholdtsen.
41954 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
41956 * gnulib-tool (avoidlist): Fix typo that broke options like
41957 --avoid=lock that are used by coreutils bootstrap.
41959 2006-09-18 Mark D. Baushke <mdb@gnu.org>
41961 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
41962 more systematically.
41964 2006-09-18 Jim Meyering <jim@meyering.net>
41966 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
41968 2006-09-18 Bruno Haible <bruno@clisp.org>
41970 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
41972 2006-09-18 Bruno Haible <bruno@clisp.org>
41974 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
41975 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
41976 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
41977 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
41978 * m4/gettext.m4: Require autoconf >= 2.52.
41979 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
41980 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
41981 of gl_cv_header_inttypes_h.
41983 2006-09-18 Bruno Haible <bruno@clisp.org>
41985 * lib/javaversion.c: Include configmake.h.
41987 2006-09-18 Bruno Haible <bruno@clisp.org>
41989 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
41990 avoid that the while loops be executed in a subshell.
41992 2006-09-18 Bruno Haible <bruno@clisp.org>
41994 * MODULES.html.sh (func_module): Break long lines.
41995 Suggested by Bruce Korb <bkorb@gnu.org>.
41997 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41999 Speed up by a factor of 1.12.
42000 * gnulib-tool (nl): New variable.
42001 (func_import): Rewrite include directive extraction to only read each
42004 2006-09-17 Bruno Haible <bruno@clisp.org>
42006 * modules/javaversion (Makefile.am): Remove DEFS setting.
42007 (Depends-on): Add configmake, for PKGDATADIR definition.
42009 2006-09-17 Bruno Haible <bruno@clisp.org>
42011 * gnulib-tool (func_create_testdir): Rewrite all files at once.
42013 2006-09-17 Bruno Haible <bruno@clisp.org>
42015 * gnulib-tool (func_append): New function, stolen from libtool.m4.
42016 (func_modules_transitive_closure, func_modules_add_dummy,
42017 func_modules_to_filelist, func_import, func_create_testdir,
42018 func_create_megatestdir, ...): Use it wherever possible.
42019 Suggested by Ralf Wildenhues.
42021 2006-09-16 Karl Berry <karl@gnu.org>
42023 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
42024 to avoid sectioning errors.
42025 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
42026 [ifinfo]: blank line after @center-ed titles.
42027 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
42028 Spell FSF address consistently with others.
42029 (These changes approved by rms.)
42031 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42033 Speed up by a factor of 1.61.
42034 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
42035 already checked module names again.
42037 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42039 Speed up by a factor of 1.13.
42040 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
42041 for new_files, and the input to func_add_or_update.
42043 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42045 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
42046 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
42048 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
42050 * modules/mkancesdirs (Depends-on): Add fcntl.
42051 * modules/savewd: New file.
42052 * MODULES.html.sh (File system functions): Add savewd.
42054 * modules/configmake (Makefile.am): Add support for the
42055 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
42057 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
42059 * m4/savewd.m4: New file.
42061 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
42063 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
42064 (dirchownmod): New arg FD. All callers changed.
42065 Use FD rather than opening the directory ourself, as opening is
42066 now the caller's responsibility.
42067 * lib/dirchownmod.h: Likewise.
42068 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
42069 hosts that require <sys/types.h> before <sys/stat.h>. Include
42070 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
42071 (test_dir): Remove.
42072 (mkancesdirs): Return length of prefix of FILE that has already
42073 been made, or -2 if there is a child doing the work. Redo
42074 algorithm so that it is O(N) rather than O(N**2). Optimize away
42075 ".", and treat ".." specially since it might stray back into
42076 already-created areas. Use a subprocess if necessary. New arg
42077 WD; all users changed. MAKE_DIR function should now return 1
42078 if it creates a directory that is not readable. Return -2 if
42079 a child process is spun off.
42080 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
42081 Adjust signature to match code.
42082 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
42083 (make_dir_parents): Use a subprocess if necessary. New arg WD;
42085 * lib/savewd.c, lib/savewd.h: New files.
42087 2006-09-15 Jim Meyering <jim@meyering.net>
42089 * modules/rename-dest-slash: New module.
42090 * MODULES.html.sh (posix_compat): Add it here.
42092 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
42094 2006-09-15 Jim Meyering <jim@meyering.net>
42096 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
42099 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
42101 2006-09-15 Jim Meyering <jim@meyering.net>
42103 * lib/rename-dest-slash.c (has_trailing_slash): Use
42104 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
42105 (rpl_rename_dest_slash): Perform the cheaper trailing slash
42106 test before testing whether SRC is a directory.
42107 Suggestions from Bruno Haible.
42109 Avoid a warning about an unused variable.
42110 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
42111 into the #ifdef block where it's used.
42113 * lib/rename-dest-slash.c: New file.
42115 2006-09-14 Bruno Haible <bruno@clisp.org>
42117 * lib/allocsa.c: Include <config.h> unconditionally.
42118 * lib/asnprintf.c: Likewise.
42119 * lib/asprintf.c: Likewise.
42120 * lib/c-strcasecmp.c: Likewise.
42121 * lib/c-strcasestr.c: Likewise.
42122 * lib/c-strncasecmp.c: Likewise.
42123 * lib/c-strstr.c: Likewise.
42124 * lib/classpath.c: Likewise.
42125 * lib/clean-temp.c: Likewise.
42126 * lib/concatpath.c: Likewise.
42127 * lib/copy-file.c: Likewise.
42128 * lib/csharpcomp.c: Likewise.
42129 * lib/csharpexec.c: Likewise.
42130 * lib/execute.c: Likewise.
42131 * lib/fatal-signal.c: Likewise.
42132 * lib/findprog.c: Likewise.
42133 * lib/fwriteerror.c: Likewise.
42134 * lib/gl_array_list.c: Likewise.
42135 * lib/gl_array_oset.c: Likewise.
42136 * lib/gl_avltree_list.c: Likewise.
42137 * lib/gl_avltree_oset.c: Likewise.
42138 * lib/gl_avltreehash_list.c: Likewise.
42139 * lib/gl_carray_list.c: Likewise.
42140 * lib/gl_linked_list.c: Likewise.
42141 * lib/gl_linkedhash_list.c: Likewise.
42142 * lib/gl_list.c: Likewise.
42143 * lib/gl_oset.c: Likewise.
42144 * lib/gl_rbtree_list.c: Likewise.
42145 * lib/gl_rbtree_oset.c: Likewise.
42146 * lib/gl_rbtreehash_list.c: Likewise.
42147 * lib/imaxabs.c: Likewise.
42148 * lib/imaxdiv.c: Likewise.
42149 * lib/javacomp.c: Likewise.
42150 * lib/javaexec.c: Likewise.
42151 * lib/javaversion.c: Likewise.
42152 * lib/linebreak.c: Likewise.
42153 * lib/localcharset.c: Likewise.
42154 * lib/lock.c: Likewise.
42155 * lib/mbchar.c: Likewise.
42156 * lib/mbswidth.c: Likewise.
42157 * lib/mkdtemp.c: Likewise.
42158 * lib/pipe.c: Likewise.
42159 * lib/printf-args.c: Likewise.
42160 * lib/printf-parse.c: Likewise.
42161 * lib/progname.c: Likewise.
42162 * lib/progreloc.c: Likewise.
42163 * lib/readlink.c: Likewise.
42164 * lib/sh-quote.c: Likewise.
42165 * lib/stpcpy.c: Likewise.
42166 * lib/stpncpy.c: Likewise.
42167 * lib/strcasecmp.c: Likewise.
42168 * lib/strcasestr.c: Likewise.
42169 * lib/strcspn.c: Likewise.
42170 * lib/striconv.c: Likewise.
42171 * lib/strncasecmp.c: Likewise.
42172 * lib/strnlen1.c: Likewise.
42173 * lib/strstr.c: Likewise.
42174 * lib/strtok_r.c: Likewise.
42175 * lib/tls.c: Likewise.
42176 * lib/tmpdir.c: Likewise.
42177 * lib/unicodeio.c: Likewise.
42178 * lib/unsetenv.c: Likewise.
42179 * lib/vasnprintf.c: Likewise.
42180 * lib/vasprintf.c: Likewise.
42181 * lib/wait-process.c: Likewise.
42182 * lib/xallocsa.c: Likewise.
42183 * lib/xsetenv.c: Likewise.
42184 * lib/xstriconv.c: Likewise.
42186 2006-09-13 Simon Josefsson <jas@extundo.com>
42188 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
42189 that internally, suggested by Ralf Wildenhues
42190 <Ralf.Wildenhues@gmx.de>.
42192 2006-09-13 Simon Josefsson <jas@extundo.com>
42194 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
42196 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42198 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
42200 * lib/_fpending.c: Include <config.h> unconditionally, since we no
42201 longer worry about uses that don't define HAVE_CONFIG_H.
42202 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
42203 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
42204 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
42205 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
42206 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
42207 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
42208 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
42209 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
42210 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
42211 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
42212 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
42213 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
42214 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
42215 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
42216 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
42217 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
42218 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
42219 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
42220 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
42221 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
42222 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
42223 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
42224 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
42225 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
42226 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
42227 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
42228 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
42229 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
42230 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
42231 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
42232 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
42233 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
42234 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
42235 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
42236 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
42237 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
42238 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
42239 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
42240 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
42241 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
42242 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
42245 2006-09-13 Eric Blake <ebb9@byu.net>
42247 * lib/getopt.c: Fix typo in last commit.
42249 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
42251 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
42254 2006-09-12 Jim Meyering <jim@meyering.net>
42256 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
42257 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
42258 Reported by Nelson H. F. Beebe.
42260 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
42262 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
42263 program_invocation_name and program_invocation_short_name are
42265 * lib/argp-namefrob.h: Move declarations of program_invocation_name
42266 and program_invocation_short_name to argp.h, so they are visible
42268 * lib/argp.h: Likewise
42270 2006-09-10 Bruno Haible <bruno@clisp.org>
42272 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
42273 m4/inttypes_h.m4, m4/uintmax_t.m4.
42275 2006-09-10 Bruno Haible <bruno@clisp.org>
42277 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
42278 gl_AC_TYPE_UINTMAX_T.
42280 2006-09-10 Bruno Haible <bruno@clisp.org>
42282 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
42284 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
42286 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
42287 convention. Text proposed by Bruno Haible.
42288 (struct argp_option): Document the use of N_() wrappers.
42290 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
42291 '\v', and translate the two parts separately, instead of feeding
42292 the whole string to gettext. This allows to exclude
42293 '\v' from the strings visible to the translator by writing doc
42294 strings as N_("..") "\v" N_("..").
42296 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
42298 * config/srclist.txt: Undo latest change; the bug was fixed.
42300 2006-09-09 Bruno Haible <bruno@clisp.org>
42302 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
42303 assignments if building a library without libtool.
42304 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
42305 in func_emit_lib_Makefile_am.
42306 (func_import): When building a static library libfoo.a, arrange to
42307 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
42308 (func_create_testdir): Likewise.
42309 * modules/gc (configure.ac, Makefile.am): If building statically,
42310 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
42311 * modules/iconvme (configure.ac, Makefile.am): Likewise.
42312 * modules/striconv (configure.ac, Makefile.am): Likewise.
42313 Based on a suggestion by Ralf Wildenhues.
42315 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
42317 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
42318 Check for unistd.h too, since Autoconf doesn't assume POSIX.
42321 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
42322 Add year_2050_test to catch glibc bug 2821
42323 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
42325 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
42326 Prefer #ifdef to #if.
42328 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
42329 Return from 'main' instead of calling 'exit'.
42331 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
42333 * lib/mktime.c (guess_time_tm): Fix bug where mktime
42334 returned the maximum time_t value rather than (time_t) -1.
42335 Problem originally reported by William Bardwell
42336 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
42338 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
42340 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
42343 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
42345 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
42348 2006-09-08 Jim Meyering <jim@meyering.net>
42350 Don't make generated files read-only. That would bother too many
42351 people. However, do retain the ability to work when targets are
42352 read-only: remove the destination and temporary files before writing
42353 them (when generated via sed or echo), or by using the -f option for
42354 both cp and mv commands. Suggestion to use -f from Paul Eggert.
42355 * modules/alloca-opt, modules/argz, modules/arpa_inet:
42356 * modules/byteswap, modules/configmake, modules/fcntl:
42357 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
42358 * modules/localcharset, modules/netinet_in, modules/poll:
42359 * modules/stdbool, modules/stdint, modules/sys_select:
42360 * modules/sys_socket, modules/sys_stat, modules/sysexits:
42362 2006-09-08 Jim Meyering <jim@meyering.net>
42364 Avoid new build failure on FreeBSD 6.0.
42365 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
42366 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
42367 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
42369 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42371 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
42373 2006-09-07 Jim Meyering <jim@meyering.net>
42375 Fix global typo in last change: use chmod u-w, not chmod u-x.
42376 Spotted by Paul Eggert and Bruce Korb.
42377 * modules/alloca-opt, modules/argz, modules/arpa_inet:
42378 * modules/byteswap, modules/configmake, modules/fcntl:
42379 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
42380 * modules/localcharset, modules/netinet_in, modules/poll:
42381 * modules/stdbool, modules/stdint, modules/sys_select:
42382 * modules/sys_socket, modules/sys_stat, modules/sysexits:
42384 2006-09-06 Jim Meyering <jim@meyering.net>
42386 Make generated files be read-only.
42387 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
42388 Ensure that each generated file is now read-only.
42389 * modules/argz: Likewise.
42390 * modules/arpa_inet: Likewise.
42391 * modules/byteswap: Likewise.
42392 * modules/configmake: Likewise.
42393 * modules/fcntl: Likewise.
42394 * modules/fnmatch: Likewise.
42395 * modules/getopt: Likewise.
42396 * modules/glob: Likewise.
42397 * modules/inttypes: Likewise.
42398 * modules/netinet_in: Likewise.
42399 * modules/poll: Likewise.
42400 * modules/stdbool: Likewise.
42401 * modules/stdint: Likewise.
42402 * modules/sys_select: Likewise.
42403 * modules/sys_socket: Likewise.
42404 * modules/sys_stat: Likewise.
42405 * modules/sysexits: Likewise.
42406 * modules/localcharset: Same as above, but continue using temporary
42407 file named "t-$@" (why different?) rather than the "$@-t" used
42410 * modules/sysexits (Makefile.am): Replace literal occurrences
42411 of "sysexit.h" more readable, and more consistent, "$@".
42413 2006-09-06 Bruno Haible <bruno@clisp.org>
42415 * modules/striconv: New file.
42416 * modules/xstriconv: New file.
42417 * MODULES.html.sh (Internationalization functions): Add striconv,
42420 2006-09-06 Bruno Haible <bruno@clisp.org>
42422 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
42423 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
42424 not using libtool correctly.
42426 2006-09-06 Bruno Haible <bruno@clisp.org>
42428 * lib/striconv.h: New file.
42429 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
42431 * lib/xstriconv.h: New file.
42432 * lib/xstriconv.c: New file.
42434 2006-09-06 Bruno Haible <bruno@clisp.org>
42436 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
42439 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42441 * lib/argz_.h: Sync from Libtool.
42443 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
42444 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42446 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
42448 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
42450 * modules/trim: New file.
42452 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
42454 * lib/trim.h: New file.
42455 * lib/trim.c: New file.
42457 2006-09-05 Bruno Haible <bruno@clisp.org>
42459 * MODULES.html.sh (String handling): Add trim.
42461 2006-09-04 Karl Berry <karl@gnu.org>
42463 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
42464 until next release.
42466 2006-09-03 Bruno Haible <bruno@clisp.org>
42468 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
42471 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
42473 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
42474 not gl_GETLOADAVG. Omit unneeded semicolons.
42475 Problems reported by Ralf Wildenhues in
42476 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
42477 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
42478 at the end, which is the usual gnulib style.
42480 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
42481 of doing all the work ourselves.
42482 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
42483 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
42485 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
42487 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
42488 Problem reported by Ralf Wildenhues in
42489 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
42491 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
42492 HAVE_STRUCT_STATFS_F_FSTYPENAME.
42494 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
42496 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
42497 yesterday's patch by changing test -n to test -z.
42499 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
42501 * modules/getloadavg (Files): Add m4/getloadavg.m4.
42502 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
42503 the former is now obsolescent.
42505 * modules/chdir-long (Depends-on): Add fcntl.
42507 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
42509 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
42510 obsolescent, and programs should use gnulib instead.
42511 * m4/getloadavg.m4: New file, with contents taken from Autoconf
42512 but with prefixes changed.
42514 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
42516 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
42517 or stdbool.h, because they might not exist while configuring.
42519 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
42520 Don't include unistd.h or limits.h; not needed, since chdir-long.h
42522 (O_DIRECTORY): Remove.
42524 2006-08-31 Eric Blake <ebb9@byu.net>
42526 * gnulib-tool: Don't let emacs change spaces to TAB.
42528 2006-08-31 Bruno Haible <bruno@clisp.org>
42530 * gnulib-tool: When calling func_import more than once, do it in a
42532 Reported by Eric Blake <ebb9@byu.net>.
42534 2006-08-31 Bruno Haible <bruno@clisp.org>
42536 * gnulib-tool (nl): Remove variable.
42537 (sed_transform_lib_file): Use more robust test for config-h module.
42538 (func_import): Fix typo in 2006-08-25 patch.
42540 2006-08-31 Bruno Haible <bruno@clisp.org>
42542 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
42543 specified, augment Makefile.am variables instead of assigning them.
42545 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42547 Work around a bug in both the Linux and SunOS 64-bit kernels:
42548 nanosleep mishandles sleeps for longer than 2**31 seconds.
42549 Problem reported by Frank v Waveren in
42550 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
42551 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
42552 Check for nanosleep bug.
42553 (LIB_NANOSLEEP): Append clock_gettime library if needed.
42555 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42557 Work around a bug in both the Linux and SunOS 64-bit kernels:
42558 nanosleep mishandles sleeps for longer than 2**31 seconds.
42559 Problem reported by Frank v Waveren in
42560 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
42561 * lib/nanosleep.c (BILLION): New constant.
42562 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
42563 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
42566 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42568 * modules/nanosleep (Depends-on): Add gettime.
42570 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42571 and Simon Josefsson <jas@extundo.com>
42572 and Oskar Liljeblad <oskar@osk.mine.nu>
42574 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
42575 * gnulib-tool (func_import): New license type 'unmodifiable license
42577 * modules/fdl: Use it. Longer description.
42578 * module/gpl, module/lgpl: New files.
42580 2006-08-30 Jim Meyering <jim@meyering.net>
42582 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
42583 shadowing the parameter.
42585 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42589 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42591 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
42592 sharing with gnulib. Report by Eric Blake.
42594 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
42596 * modules/isapipe: New file.
42597 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
42599 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
42601 * modules/configmake (Makefile.am): Add a comment, and omit
42602 the CONFIGMAKE_ prefix from generated macro names. Suggested
42605 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
42607 * m4/isapipe.m4: New file.
42609 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
42611 * lib/isapipe.c, lib/isapipe.h: New files.
42613 2006-08-29 Jim Meyering <jim@meyering.net>
42615 * modules/configmake (Makefile.am): Make configmake.h depend on
42616 Makefile. Otherwise, a stale configmake.h could hang around.
42618 2006-08-29 Eric Blake <ebb9@byu.net>
42620 * lib/error.c (error_at_line, print_errno_message): Match libc, after
42621 resolution of upstream bug 3044.
42623 2006-08-29 Bruno Haible <bruno@clisp.org>
42625 * modules/localcharset (Depends-on): Add configmake.
42626 (Makefile.am): Remove setting of LIBDIR through DEFS.
42628 2006-08-29 Bruno Haible <bruno@clisp.org>
42630 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
42633 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
42635 * modules/fcntl: New file.
42636 * modules/chdir-safer (Depends-on): Add fcntl.
42637 * modules/fts: Likewise.
42638 * modules/mkdir-p: Likewise.
42640 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
42641 This undoes the most recent change, since we're now addressing the
42642 problem in a different way.
42644 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
42645 into output, since the output might be called Makefile.am even
42646 if $makefile_name is something different.
42647 (func_import): Use $makefile_am rather than
42648 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
42651 * modules/inttypes (Files): Add m4/inttypes-h.m4.
42653 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
42655 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
42656 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
42657 recent change to stdint.m4, since we're now addressing the problem in a
42660 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
42662 * m4/fcntl_h.m4: New file.
42664 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
42666 * lib/fcntl_.h: New file.
42667 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
42669 * lib/dirchownmod.c: Likewise.
42670 * lib/fts.c: Likewise.
42672 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
42673 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
42674 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
42675 just before including <inttypes.h>, to avoid circular inclusion.
42677 2006-08-28 Jim Meyering <jim@meyering.net>
42679 * doc/visibility.texi: Actually read and correct the grammar of the
42680 sentence affected by yesterday's change.
42682 2006-08-28 Eric Blake <ebb9@byu.net>
42684 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
42687 2006-08-28 Eric Blake <ebb9@byu.net>
42689 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
42691 2006-08-28 Eric Blake <ebb9@byu.net>
42693 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
42695 2006-08-28 Bruno Haible <bruno@clisp.org>
42697 * modules/c-strstr: New file, from GNU gettext.
42698 * MODULES.html.sh (String handling): Add c-strstr.
42700 2006-08-28 Bruno Haible <bruno@clisp.org>
42702 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
42704 Reported by Eric Blake.
42706 2006-08-28 Bruno Haible <bruno@clisp.org>
42708 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
42709 (VASNPRINTF): Return a string of length > INT_MAX without failing.
42710 * lib/vasprintf.c: Include errno.h, limits.h.
42711 (EOVERFLOW): New fallback definition.
42712 (vasprintf): Test here whether the string length is > INT_MAX.
42713 * lib/vsnprintf.c: Include errno.h, limits.h.
42714 (EOVERFLOW): New fallback definition.
42715 (vsnprintf): Fix bug when generated string was too long for the buffer.
42716 Test here whether the string length is > INT_MAX.
42718 2006-08-28 Bruno Haible <bruno@clisp.org>
42720 * lib/inttypes_.h (SCNX*): Remove definitions.
42721 Reported by Eric Blake.
42723 2006-08-28 Bruno Haible <bruno@clisp.org>
42725 * lib/c-strstr.h: New file, from GNU gettext.
42726 * lib/c-strstr.c: New file, from GNU gettext.
42728 2006-08-28 Bruno Haible <bruno@clisp.org>
42730 * gnulib-tool: Reorder some statements.
42732 2006-08-28 Bruno Haible <bruno@clisp.org>
42734 * gnulib-tool: New option --makefile-name.
42735 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
42737 (func_import): Write $makefile_name to the cache file, and read it from
42738 there unless explicitly specified. Use $makefile_name as file name
42739 instead of Makefile.am. Adjust the recommendations accordingly.
42741 2006-08-28 Bruno Haible <bruno@clisp.org>
42743 * gnulib-tool (func_verify_module): Check against misapplying patch.
42745 2006-08-28 Bruno Haible <bruno@clisp.org>
42747 * gnulib-tool (func_relativize, func_relconcat): New functions.
42748 Give an error if --local-dir is given with --update.
42749 Remove trailing slashes from $local_gnulib_dir.
42750 (func_import): Store the relativized $local_gnulib_dir in
42751 gnulib-cache.m4, and read it from there if not specified explicitly.
42753 2006-08-28 Bruno Haible <bruno@clisp.org>
42755 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
42756 is the current directory. Respect also $local_gnulib_dir.
42758 2006-08-28 Bruno Haible <bruno@clisp.org>
42759 Simon Josefsson <jas@extundo.com>
42762 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
42764 2006-08-27 Jim Meyering <jim@meyering.net>
42766 * doc/visibility.texi: Remove duplicate word: "pointer".
42768 2006-08-26 Bruno Haible <bruno@clisp.org>
42770 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
42771 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
42772 (Makefile.am): Create inttypes.h from inttypes_.h.
42773 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
42775 * modules/imaxabs: New file.
42777 * modules/imaxdiv: New file.
42779 2006-08-26 Bruno Haible <bruno@clisp.org>
42781 * m4/inttypes.m4: New file.
42782 * m4/_inttypes_h.m4: Remove file.
42783 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
42785 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
42787 * m4/imaxabs.m4: New file.
42789 * m4/imaxdiv.m4: New file.
42791 2006-08-26 Bruno Haible <bruno@clisp.org>
42793 * lib/inttypes_.h: New file.
42794 * lib/inttypes.h: Remove file.
42795 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
42797 * lib/imaxabs.c: New file.
42799 * lib/imaxdiv.c: New file.
42801 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
42803 New config-h module, so that "make" output needn't be cluttered
42804 by -DHAVE_CONFIG_H.
42805 * MODULES.html.sh (Support for building libraries and executables):
42807 * modules/config-h: New file.
42808 * gnulib-tool (nl, sed_transform_lib_file): New vars.
42809 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
42810 the config-h module is used.
42812 New configmake module, so that "make" output needn't be cluttered
42813 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
42814 * MODULES.html.sh (Support for building libraries and executables):
42816 * modules/configmake: New file.
42818 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
42820 * m4/config-h.m4: New file.
42822 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
42824 * config/srclist.txt: Add elisp-comp.
42826 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
42828 * MODULES.html.sh (Support for building libraries and executables):
42830 * build-aux/elisp-comp: New file.
42831 * modules/elisp-comp: New file.
42833 2006-08-24 Bruno Haible <bruno@clisp.org>
42835 * gnulib-tool (func_create_testdir): Use non-default values of
42836 sourcebase and m4base.
42838 2006-08-24 Bruno Haible <bruno@clisp.org>
42840 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
42843 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
42845 * modules/openat (Depends-on): Add lchown.
42847 2006-08-23 Bruno Haible <bruno@clisp.org>
42849 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
42850 of gl_LOCK_EARLY instead of gl_LOCK.
42852 2006-08-23 Bruno Haible <bruno@clisp.org>
42854 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
42856 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
42858 2006-08-23 Bruno Haible <bruno@clisp.org>
42860 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
42863 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
42864 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
42865 (gl_LOCK): New macro.
42867 2006-08-22 Simon Josefsson <jas@extundo.com>
42869 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
42872 2006-08-22 Simon Josefsson <jas@extundo.com>
42874 * MODULES.html.sh: Add "Support for maintaining and release
42877 * build-aux/gnupload: New file, from coreutils.
42879 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
42881 Avoid the need for AC_LIBSOURCES in m4 macros.
42882 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
42883 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
42884 * modules/check-version (EXTRA_DIST): Add check-version.h.
42885 * modules/crc (EXTRA_DIST): Add crc.h.
42886 * modules/des (EXTRA_DIST): Add des.h.
42887 * modules/gc (EXTRA_DIST): Add gc.h.
42888 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
42889 * modules/getline (EXTRA_DIST): Add getline.h.
42890 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
42891 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
42892 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
42893 * modules/md2 (EXTRA_DIST): Add md2.h.
42894 * modules/md4 (EXTRA_DIST): Add md4.h.
42895 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
42896 * modules/read-file (EXTRA_DIST): Add read-file.h.
42897 * modules/readline (EXTRA_DIST): Add readline.h.
42898 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
42899 rijndael-api-fst.h.
42901 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
42903 * m4/rijndael.m4 (gl_ARCFOUR):
42904 * m4/arctwo.m4 (gl_ARCTWO):
42905 * m4/check-version.m4 (gl_CHECK_VERSION):
42906 * m4/crc.m4 (gl_CRC):
42907 * m4/des.m4 (gl_DES):
42908 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
42909 * m4/gc.m4 (gl_GC):
42910 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
42911 * m4/getline.m4 (gl_FUNC_GETLINE):
42912 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
42913 * m4/hmac-md5.m4 (gl_HMAC_MD5):
42914 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
42915 * m4/md2.m4 (gl_MD2):
42916 * m4/md4.m4 (gl_MD4):
42917 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
42918 * m4/read-file.m4 (gl_FUNC_READ_FILE):
42919 * m4/readline.m4 (gl_FUNC_READLINE):
42920 * m4/rijndael.m4 (gl_RIJNDAEL):
42921 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
42922 to get the necessary .h files and whatnot.
42924 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
42926 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
42927 gnulib rather than the other way around.
42928 * config/srclistvars.sh (COREUTILS): Remove.
42930 2006-08-22 Jim Meyering <jim@meyering.net>
42932 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
42934 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
42936 2006-08-22 Eric Blake <ebb9@byu.net>
42938 * modules/regexprops-generic: New file.
42939 * MODULES.html.sh (Support for building documentation): List it.
42941 2006-08-22 Eric Blake <ebb9@byu.net>
42943 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
42944 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42945 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
42946 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
42948 2006-08-22 Bruno Haible <bruno@clisp.org>
42950 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
42951 and lib_LTLIBRARIES like the other lib_* variables.
42953 2006-08-22 Bruno Haible <bruno@clisp.org>
42955 * build-aux/x-to-1.in: New file, from GNU gettext.
42957 2006-08-22 Bruno Haible <bruno@clisp.org>
42959 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
42962 2006-08-22 Bruno Haible <bruno@clisp.org>
42964 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
42967 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
42970 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
42972 Problem reported by Bruno Haible.
42974 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
42976 Avoid the need for AC_LIBSOURCES in m4 macros.
42977 * modules/acl (EXTRA_DIST): Add acl.h.
42978 * modules/argmatch (Files): Add m4/argmatch.m4.
42979 (configure.ac): Add gl_ARGMATCH.
42980 (EXTRA_DIST): Renamed from lib_SOURCES, for
42981 consistency with the other modules. Remove argmatch.c.
42982 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
42983 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
42984 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
42985 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
42986 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
42987 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
42988 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
42989 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
42990 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
42991 * modules/closeout (EXTRA_DIST): Add closeout.h.
42992 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
42993 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
42994 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
42995 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
42996 dirname.h; remove basename.c and stripslash.c.
42997 * modules/exclude (EXTRA_DIST): Add exclude.h.
42998 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
42999 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
43000 * modules/file-type (EXTRA_DIST): Add file-type.h.
43001 * modules/filemode (EXTRA_DIST): Add filemode.h.
43002 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
43003 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43004 * modules/fpending (EXTRA_DIST): Add __fpending.h.
43005 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
43006 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
43007 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
43008 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
43009 * modules/getdate (EXTRA_DIST): Add getdate.c.
43010 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
43011 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
43012 * modules/getpass (EXTRA_DIST): Add getpass.h.
43013 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
43014 * modules/group-member (EXTRA_DIST): Add group-member.h.
43015 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
43016 * modules/hash (EXTRA_DIST): Add hash.h.
43017 * modules/human (EXTRA_DIST): Add human.h.
43018 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
43019 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
43020 * modules/lchown (EXTRA_DIST): Add lchown.h.
43021 * modules/long-options (EXTRA_DIST): Add long-options.h.
43022 * modules/lstat (EXTRA_DIST): Add lstat.h.
43023 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
43024 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
43025 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
43026 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
43027 * modules/memxor (EXTRA_DIST): Add memxor.h.
43028 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
43029 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
43030 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
43031 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
43032 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
43033 * modules/physmem (EXTRA_DIST): Add physmem.h.
43034 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
43035 * modules/posixver (EXTRA_DIST): Add posixver.h.
43036 * modules/quote (EXTRA_DIST): Add quote.h.
43037 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
43038 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
43039 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
43040 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
43041 regex_internal.h regexec.c.
43042 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
43043 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
43044 * modules/same (EXTRA_DIST): Add same.h.
43045 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
43046 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
43047 * modules/savedir (EXTRA_DIST): Add savedir.h.
43048 * modules/sha1 (EXTRA_DIST): Add sha1.h.
43049 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
43050 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
43051 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
43052 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
43053 * modules/strdup (EXTRA_DIST): Add strdup.h.
43054 * modules/strftime (EXTRA_DIST): Add strftime.h.
43055 * modules/strndup (EXTRA_DIST): Add strndup.h.
43056 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
43057 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
43058 * modules/time_r (EXTRA_DIST): Add time_r.h.
43059 * modules/timespec (EXTRA_DIST): Add timespec.h.
43060 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43061 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
43062 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
43063 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
43064 * modules/userspec (EXTRA_DIST): Add userspec.h.
43065 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
43066 * modules/utimens (EXTRA_DIST): Add utimens.h.
43067 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
43068 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
43069 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
43070 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
43071 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
43072 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
43073 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
43074 * modules/yesno (EXTRA_DIST): Add yesno.h.
43076 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
43078 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
43080 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
43081 * m4/dev-ino.m4, same-inode.m4: Remove.
43083 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
43084 * m4/acl.m4 (AC_FUNC_ACL):
43085 * m4/backupfile.m4 (gl_BACKUPFILE):
43086 * m4/c-strtod.m4 (gl_C99_STRTOLD):
43087 * m4/canon-host.m4 (gl_CANON_HOST):
43088 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
43089 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
43090 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
43091 * m4/cloexec.m4 (gl_CLOEXEC):
43092 * m4/close-stream.m4 (gl_CLOSE_STREAM):
43093 * m4/closeout.m4 (gl_CLOSEOUT):
43094 * m4/dirfd.m4 (gl_FUNC_DIRFD):
43095 * m4/dirname.m4 (gl_DIRNAME):
43096 * m4/exclude.m4 (gl_EXCLUDE):
43097 * m4/exitfail.m4 (gl_EXITFAIL):
43098 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
43099 * m4/file-type.m4 (gl_FILE_TYPE):
43100 * m4/filemode.m4 (gl_FILEMODE):
43101 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
43102 * m4/fpending.m4 (gl_FUNC_FPENDING):
43103 * m4/fprintftime.m4 (gl_FPRINTFTIME):
43104 * m4/fts.m4 (gl_FUNC_FTS):
43105 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
43106 * m4/getdate.m4 (gl_GETDATE):
43107 * m4/gethrxtime.m4 (gl_GETHRXTIME):
43108 * m4/getpagesize.m4 (gl_GETPAGESIZE):
43109 * m4/getpass.m4 (gl_FUNC_GETPASS):
43110 * m4/gettime.m4 (gl_GETTIME):
43111 * m4/getugroups.m4 (gl_GETUGROUPS):
43112 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
43113 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
43114 * m4/hard-locale.m4 (gl_HARD_LOCALE):
43115 * m4/hash.m4 (gl_HASH):
43116 * m4/idcache.m4 (gl_IDCACHE):
43117 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
43118 * m4/lchown.m4 (gl_FUNC_LCHOWN):
43119 * m4/long-options.m4 (gl_LONG_OPTIONS):
43120 * m4/lstat.m4 (gl_FUNC_LSTAT):
43121 * m4/md5.m4 (gl_MD5):
43122 * m4/memcasecmp.m4 (gl_MEMCASECMP):
43123 * m4/memcoll.m4 (gl_MEMCOLL):
43124 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
43125 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
43126 * m4/memxor.m4 (gl_MEMXOR):
43127 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
43128 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
43129 * m4/modechange.m4 (gl_MODECHANGE):
43130 * m4/mountlist.m4 (gl_MOUNTLIST):
43131 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
43132 * m4/openat.m4 (gl_FUNC_OPENAT):
43133 * m4/pathmax.m4 (gl_PATHMAX):
43134 * m4/physmem.m4 (gl_PHYSMEM):
43135 * m4/posixtm.m4 (gl_POSIXTM):
43136 * m4/posixver.m4 (gl_POSIXVER):
43137 * m4/quote.m4 (gl_QUOTE):
43138 * m4/quotearg.m4 (gl_QUOTEARG):
43139 * m4/readtokens.m4 (gl_READTOKENS):
43140 * m4/readutmp.m4 (gl_READUTMP):
43141 * m4/regex.m4 (gl_REGEX):
43142 * m4/safe-read.m4 (gl_SAFE_READ):
43143 * m4/safe-write.m4 (gl_SAFE_WRITE):
43144 * m4/same.m4 (gl_SAME):
43145 * m4/save-cwd.m4 (gl_SAVE_CWD):
43146 * m4/savedir.m4 (gl_SAVEDIR):
43147 * m4/settime.m4 (gl_SETTIME):
43148 * m4/sha1.m4 (gl_SHA1):
43149 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
43150 * m4/stat-macros.m4 (gl_STAT_MACROS):
43151 * m4/stat-time.m4 (gl_STAT_TIME):
43152 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
43153 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
43154 * m4/strdup.m4 (gl_FUNC_STRDUP):
43155 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
43156 * m4/strndup.m4 (gl_FUNC_STRNDUP):
43157 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
43158 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
43159 * m4/time_r.m4 (gl_TIME_R):
43160 * m4/timespec.m4 (gl_TIMESPEC):
43161 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
43162 * m4/unlinkdir.m4 (gl_UNLINKDIR):
43163 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
43164 * m4/userspec.m4 (gl_USERSPEC):
43165 * m4/utimecmp.m4 (gl_UTIMECMP):
43166 * m4/utimens.m4 (gl_UTIMENS):
43167 * m4/xalloc.m4 (gl_XALLOC):
43168 * m4/xgetcwd.m4 (gl_XGETCWD):
43169 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
43170 * m4/xreadlink.m4 (gl_XREADLINK):
43171 * m4/xstrtod.m4 (gl_XSTRTOD):
43172 * m4/yesno.m4 (gl_YESNO):
43173 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43174 to get the necessary .h files and whatnot.
43176 2006-08-21 Mark D. Baushke <mdb@gnu.org>
43177 Bruno Haible <bruno@clisp.org>
43179 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
43180 /bin/sh understanding of '!' conditional negation.
43182 2006-08-21 Jim Meyering <jim@meyering.net>
43184 * modules/openat (Depends-on): Really alphabetize.
43186 * modules/acl (Depends-on): Add error and quote.
43188 * check-module (find_included_lib_files): Add at-func.c to the
43189 ok-to-include-more-than-once white list.
43191 * modules/openat (Depends-on): Add lstat. Alphabetize.
43193 2006-08-21 Bruno Haible <bruno@clisp.org>
43195 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43196 Emit a pkgdata_DATA variable only if some snippets add contents to it.
43197 Reported by Martin Lambers <marlam@marlam.de>.
43199 2006-08-21 Bruno Haible <bruno@clisp.org>
43201 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
43202 specify an installation location, don't emit a noinst_LIBRARIES or
43203 noinst_LTLIBRARIES assignment.
43205 2006-08-21 Bruno Haible <bruno@clisp.org>
43208 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
43209 BeOS has mbrtowc() but no <wctype.h>.
43211 2006-08-21 Bruno Haible <bruno@clisp.org>
43214 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
43217 2006-08-21 Bruno Haible <bruno@clisp.org>
43220 * lib/mbchar.h: Include <wctype.h> only if it exists.
43222 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
43224 Remove files that are no longer needed by their respective modules.
43225 * m4/obstack.m4: Remove.
43226 * m4/strerror_r.m4: Remove.
43227 * m4/uint32_t.m4: Remove.
43228 * m4/uintptr_t.m4: Remove.
43229 * m4/ullong_max.m4: Remove.
43230 * m4/xstrtoimax.m4: Remove.
43231 * m4/xstrtoumax.m4: Remove.
43233 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
43234 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
43235 dependencies now capture this.
43237 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
43238 Do not use AC_LIBSOURCES, since gnulib modules now do this.
43239 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
43240 * m4/human.m4 (gl_HUMAN): Likewise.
43241 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
43242 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
43244 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
43246 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
43247 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
43249 * m4/human.m4 (gl_HUMAN): Likewise.
43250 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
43251 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
43252 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
43253 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
43254 * m4/xstrtol (gl_XSTRTOL): Likewise.
43256 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
43257 AC_TYPE_LONG_LONG_INT.
43258 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
43259 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
43260 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
43261 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
43263 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
43266 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
43267 (gl_PREREQ_XSTRTOUL): Remove.
43269 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
43271 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
43274 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
43276 Add and change modules to make it easier for coreutils to use
43278 * modules/backupfile (Files): Remove m4/d-ino.m4.
43279 (Depends-on): Add d-ino.
43280 * modules/cycle-check (Depends-on): Add stdint.
43281 (lib_SOURCES): Add cycle-check.h.
43282 * modules/d-ino: New module.
43283 * modules/d-type: New module.
43284 * modules/error (Files): Remove m4/strerror_r.m4.
43285 * modules/filemode (Files): Add m4/st_dm_mode.m4.
43286 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43287 m4/inttypes_h.m4, m4/uintmax_t.m4.
43288 (Depends-on): Add stdint.
43289 (lib_SOURCES): Add fsusage.h.
43290 * modules/getcwd (Files): Remove d-ino.m4.
43291 (Depends-on): Add d-ino.
43292 * modules/getndelim2 (Depends-on): Add stdint.
43293 * modules/glob (Files): Remove m4/d-type.m4.
43294 (Depends-on): Add d-type.
43295 * modules/host-os: New module.
43296 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43297 m4/inttypes_h.m4, m4/uintmax_t.m4.
43298 * Depends-on: Add stdint.
43299 (lib_SOURCES): Add human.h.
43300 * modules/inttostr (Files): Remove m4/intmax_t.m4,
43301 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
43302 m4/uintmax_t.m4, m4/ulonglong.m4.
43303 (Depends-on): Add stdint.
43304 (EXTRA_DIST): Add inttostr.h.
43305 * modules/lchmod: New module.
43306 * modules/link-follow: New module.
43307 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
43308 (Depends-on): Add lchmod.
43309 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
43310 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
43311 (Depends-on): Add stdint.
43312 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
43313 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
43314 (Depends-on): Add stdint.
43315 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
43316 * modules/perl: New module.
43317 * modules/regex (Depends-on): Add stdint.
43318 * modules/rmdir-errno: New module.
43319 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
43321 (Depends-on): Add stdint.
43322 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
43324 (Depends-on): Add stdint.
43325 * modules/unlink-busy: New module.
43326 * modules/utimecmp (Depends-on): Add stdint.
43327 * modules/uptime: New module.
43328 * modules/winsz-ioctl: New module.
43329 * modules/winsz-termios: New module.
43330 * modules/xnanosleep (Depends-on): Add nanosleep.
43331 * modules/ullong_max: Remove.
43332 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
43333 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
43334 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
43335 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
43336 (Depends-on): Add inttypes.
43337 (lib_SOURCES): Add xstrtol.h.
43338 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
43339 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
43340 * MODULES.html.sh: Move 'assert' into the assert section.
43341 Move 'dummy' into the linking section.
43343 Add section for compatibility checks for POSIX:2001 functions,
43344 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
43345 winsz-ioctl, and winsz-termios into it.
43347 Add top-level Misc section and put host-os, perl, and uptime
43350 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
43352 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
43353 now assume the stdint module. Do not include inttypes.h.
43354 * lib/fsusage.h: Likewise.
43355 * lib/getndelim2.c: Likewise.
43356 * lib/human.h: Likewise.
43357 * lib/inttostr.h: Likewise.
43358 * lib/obstack.c: Likewise.
43359 * lib/regex_internal.h: Likewise.
43360 * lib/tempname.c: Likewise.
43361 * lib/utimecmp.c: Likewise.
43362 * lib/xstrtol.h: Likewise.
43364 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
43366 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
43367 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
43368 * lib/xtime.h: Likewise.
43370 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
43372 * modules/openat (Files): Add lib/fchmodat.c.
43373 Fixes problem reported by Jay Youngman.
43375 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
43377 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
43378 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
43380 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
43381 Bruno Haible <bruno@clisp.org>
43383 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
43384 and is a script that invokes bison. Tighten the code. Add comments.
43386 2006-08-18 Jim Meyering <jim@meyering.net>
43388 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
43389 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
43390 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
43391 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
43393 2006-08-18 Bruno Haible <bruno@clisp.org>
43395 * modules/bison-i18n: New file.
43396 * MODULES.html.sh (Internationalization functions): Add it.
43398 2006-08-18 Bruno Haible <bruno@clisp.org>
43400 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
43401 sys/statvfs.h. When getmntinfo was found, check its declaration and
43402 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
43404 2006-08-18 Bruno Haible <bruno@clisp.org>
43406 * m4/bison-i18n.m4: New file, from bison.
43408 2006-08-18 Bruno Haible <bruno@clisp.org>
43410 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
43411 (ME_DUMMY): Treat "kernfs" as a dummy.
43412 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
43414 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
43416 Update from coreutils.
43418 2006-08-15 Jim Meyering <jim@meyering.net>
43420 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
43422 2006-01-17 Jim Meyering <jim@meyering.net>
43424 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
43426 2006-01-11 Jim Meyering <jim@meyering.net>
43428 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
43429 Check for the lchmod function.
43431 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
43433 Update from coreutils.
43435 * lib/__fpending.h: Add copyright notice.
43436 * lib/fprintftime.h: Likewise.
43437 * lib/savedir.c: Use (C) in copyright notice.
43438 * lib/savedir.h: Likewise.
43440 2006-08-15 Jim Meyering <jim@meyering.net>
43442 * lib/at-func.c: New file, with the logic of all emulated at-functions.
43443 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
43444 in support of the EXPECTED_ERRNO macro.
43445 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
43446 definitions. Instead, define the appropriate symbols and include
43448 * lib/mkdirat.c (mkdirat): Likewise.
43449 * lib/fchmodat.c (fchmodat): Likewise.
43450 (ENOSYS): Remove definition.
43451 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
43452 it. Don't include "unistd--.h" -- it wasn't ever used.
43454 2006-01-17 Jim Meyering <jim@meyering.net>
43456 Rewrite fts.c not to change the current working directory,
43457 by using openat, fstatat, fdopendir, etc..
43459 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
43460 (HAVE_OPENAT_SUPPORT): Define.
43461 [_LIBC] (fchdir): Don't undef or define; no longer used.
43462 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
43463 Now, this `function' always succeeds, and consumes its file descriptor
43464 parameter -- so callers must not close such FDs. Update callers.
43465 (diropen_fd, opendirat, cwd_advance_fd): New functions.
43466 (diropen): Add parameter, SP. Adjust all callers.
43467 Implement using diropen_fd, rather than open.
43468 (fts_open): Initialize new member, fts_cwd_fd.
43469 Remove fts_rft-setting code.
43470 (fts_close): Close fts_cwd_fd, if necessary.
43471 (__opendir2): Define in terms of opendir or opendirat,
43472 depending on whether the FST_NOCHDIR flag is set.
43473 (fts_build): Since fts_safe_changedir consumes its FD, and since
43474 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
43475 and close the dup'd file descriptor upon failure.
43476 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
43477 (fts_safe_changedir): Tweak semantics to reflect that this function
43478 now calls cwd_advance_fd and hence consumes its FD argument.
43479 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
43480 [struct FTS] (fts_rft): Remove now-unused member.
43481 [struct FTS] (fts_cycle.state): Improve comment.
43483 * lib/openat.c (openat_needs_fchdir): New function.
43484 * lib/openat.h (openat_needs_fchdir): Declare it.
43486 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
43488 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
43489 Problem and fix reported by Pádraig Brady in
43490 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
43492 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
43494 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
43496 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
43498 * lib/memcoll.c (memcoll): Optimize for the common case where the
43499 arguments are bytewise equal.
43501 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
43503 * doc/regexprops-generic.texi: Add a copyright notice.
43505 2006-08-15 Bruno Haible <bruno@clisp.org>
43507 * modules/tmpdir (License): Change to LGPL.
43509 2006-08-15 Bruno Haible <bruno@clisp.org>
43511 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
43514 2006-08-14 Simon Josefsson <jas@extundo.com>
43516 * config/srclist.txt: Add gnupload.
43518 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43520 Change copyright notice from LGPL 2 to GPL 2, since that's the
43521 standard form used in the gnulib repository.
43522 * tests/test-lock.c: Likewise.
43523 * tests/test-stdint.c: Likewise.
43524 * tests/test-tls.c: Likewise.
43526 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
43527 prelude-manager. User shorter URLs for GNU projects, without '?'.
43528 Add copyright notice.
43530 * check-module: Add copyright notice. Output a copyright
43531 notice if "--version" is specified.
43532 * modules/COPYING: New file.
43533 * tests/test-getaddrinfo.c: Add copyright notice.
43534 * tests/test-verify.c: Likewise.
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 * lib/lock.c: LGPL -> GPL.
43541 * lib/lock.h: Likewise.
43542 * lib/strnlen1.c: Likewise.
43543 * lib/strnlen1.h: Likewise.
43544 * lib/tls.c: Likewise.
43545 * lib/tls.h: Likewise.
43546 * lib/tmpdir.c: Likewise.
43548 * lib/TODO: Remove; this belongs only in coreutils.
43550 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43552 Add copyright notices to long-enough files that lack them, since
43553 otherwise the files aren't clearly free. Use the same notice that
43554 getdate.texi already uses.
43555 * doc/alloca-opt.texi: Add copyright notice.
43556 * doc/alloca.texi: Likewise.
43557 * doc/ctime.texi: Likewise.
43558 * doc/functions.texi: Likewise.
43559 * doc/gcd.texi: Likewise.
43560 * doc/gnulib-tool.texi: Likewise.
43561 * doc/inet_ntoa.texi: Likewise.
43562 * doc/visibility.texi: Likewise.
43564 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
43565 * doc/quote.texi: Add copyright notice.
43567 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
43568 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
43569 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
43570 Mention SunOS 5.11. Mention that everything before SunOS 5.7
43571 is now obsolete, and give a pointer to the Sun list.
43572 Add copyright notice.
43574 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43576 * config/srclistvars.sh: Add copyright notice.
43578 2006-08-14 Eric Blake <ebb9@byu.net>
43580 Import the following change from libc:
43582 2006-08-12 Ulrich Drepper <drepper@redhat.com>
43585 * lib/misc/error.c: Add space between program name and message if file
43588 2006-08-12 Karl Berry <karl@gnu.org>
43590 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
43591 remove, these originate in gnulib now.
43593 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43595 * doc/Makefile (standards.info standards.html standards.dvi):
43596 Also depend on make-stds.texi.
43598 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
43600 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
43601 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
43603 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
43604 in wchar_t. Problem reported by Eric Blake.
43606 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
43607 LEN is smaller than SIZE. Suggested by Bruno Haible.
43608 Also, help the compiler to keep LEN in a register.
43610 2006-08-11 Eric Blake <ebb9@byu.net>
43612 * users.txt: Sort. Add tar.
43614 2006-08-11 Bruno Haible <bruno@clisp.org>
43616 * users.txt: New file.
43618 2006-08-11 Bruno Haible <bruno@clisp.org>
43620 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
43621 before <wchar.h>. Needed for OSF/1 and BSD/OS.
43623 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
43625 * modules/snprintf (Depends-on): Remove minmax.
43626 (Maintainer): Add self and Bruno.
43628 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
43630 * lib/.cppi-disable: Add snprintf.h, socket_.h.
43631 * lib/snprintf.c: Include <errno.h> and <limits.h>.
43632 (EOVERFLOW): Define if the system does not.
43633 Do not include "minmax.h"; it wasn't used.
43634 (snprintf): Don't assume size_t promotes to an unsigned type.
43635 Fix bug when generated string was too long for the buffer: the
43636 buffer's contents are supposed to be the initial prefix of the
43637 output. Don't assume vasnprintf returns EOVERFLOW if the size
43638 exceeds INT_MAX; do the check ourselves.
43640 Import the following changes from libc:
43642 2006-06-02 Jakub Jelinek <jakub@redhat.com>
43644 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
43645 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
43646 set wc to the byte which couldn't be converted.
43647 (re_string_reconstruct): Don't clear valid_raw_len before calling
43648 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
43649 tip_context using re_string_context_at.
43651 2006-05-02 Ulrich Drepper <drepper@redhat.com>
43653 * lib/posix/regex.h: g++ still cannot handled [restrict].
43655 2006-04-21 Ulrich Drepper <drepper@redhat.com>
43657 * lib/posix/regex.h: Remove special handling for VMS.
43659 2006-08-10 Jim Meyering <jim@meyering.net>
43661 * modules/same-inode: New module.
43662 * modules/dev-ino: New module.
43663 * modules/cycle-check: Depend on these modules, rather than simply
43664 including their .h files.
43665 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
43666 required via m4/cycle-check.m4.
43667 * modules/same: Depend on new same-inode module, rather than
43668 including same-inode.h.
43669 * modules/chdir-safer: New file.
43671 * modules/chown (Depends-on): Add stat-macros.
43673 2006-08-10 Jim Meyering <jim@meyering.net>
43675 * m4/cycle-check.m4: New file.
43676 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
43677 * m4/dev-ino.m4, m4/same-inode.m4: New files.
43679 2006-08-10 Eric Blake <ebb9@byu.net>
43681 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
43682 in from original proposal.
43684 2006-08-10 Eric Blake <ebb9@byu.net>
43685 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43687 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
43690 2006-08-10 Bruno Haible <bruno@clisp.org>
43692 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
43695 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
43697 Sync from coreutils.
43699 2006-07-19 Mike Frysinger <vapier@gentoo.org>
43701 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
43702 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
43704 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
43706 * modules/restrict: Remove; no longer needed now that we assume
43707 Autoconf 2.59 or later.
43708 * MODULES.html.sh: Remove 'restrict'.
43709 * modules/argp (Depends-on): Remove 'restrict'.
43710 * modules/base64 (Depends-on): Likewise.
43711 * modules/gc (Depends-on): Likewise.
43712 * modules/getaddrinfo (Depends-on): Likewise.
43713 * modules/glob (Depends-on): Likewise.
43714 * modules/inet_ntop (Depends-on): Likewise.
43715 * modules/inet_pton (Depends-on): Likewise.
43716 * modules/memxor (Depends-on): Likewise.
43717 * modules/regex (Depends-on): Likewise.
43718 * modules/strtok_r (Depends-on): Likewise.
43719 * modules/time_r (Depends-on): Likewise.
43721 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
43723 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
43724 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
43725 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
43726 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
43727 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
43728 * m4/memxor.m4 (gl_MEMXOR): Likewise.
43729 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
43730 gl_C_RESTRICT replaced by AC_C_RESTRICT.
43732 Merge from coreutils.
43733 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
43734 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
43735 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
43736 * m4/time_r.m4 (gl_TIME_R): Likewise.
43738 2006-08-09 Karl Berry <karl@gnu.org>
43740 * config/srclist.txt: no more gettext-tools, per Bruno.
43742 2006-08-08 Eric Blake <ebb9@byu.net>
43744 * modules/verror: New module.
43745 * MODULES.html.sh: Document it.
43747 2006-08-08 Eric Blake <ebb9@byu.net>
43749 * lib/verror.h, lib/verror.c: New files.
43751 2006-08-08 Eric Blake <ebb9@byu.net>
43753 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
43754 verror_at_line output complies with GNU Coding Standards even when
43757 2006-08-07 Bruno Haible <bruno@clisp.org>
43759 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
43761 Reported by Ralf Wildenhues.
43763 2006-08-07 Bruno Haible <bruno@clisp.org>
43765 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
43766 in an AC_DEFUN. Needed so that the autoconf snippets can use
43769 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43771 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43772 Initialize pkgdata_DATA.
43773 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
43776 2006-08-06 Eric Blake <ebb9@byu.net>
43778 * lib/error.h: Fold in some upstream changes from glibc.
43779 * lib/error.c: Likewise.
43781 2006-08-04 Bruno Haible <bruno@clisp.org>
43783 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43784 Make the mostlyclean-local rule depend on mostlyclean-generic.
43785 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
43787 2006-07-31 Bruno Haible <bruno@clisp.org>
43789 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
43790 <stdlib.h>, <string.h>.
43792 2006-07-30 Bruno Haible <bruno@clisp.org>
43794 * modules/readlink (License): Change to LGPL.
43796 2006-07-30 Bruno Haible <bruno@clisp.org>
43798 * modules/javaversion (Makefile.am): Distribute javaversion.java and
43799 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
43800 set PKGDATADIR to point to it.
43802 2006-07-30 Bruno Haible <bruno@clisp.org>
43804 * modules/csharpexec (configure.ac): Comment out macro invocation.
43805 * modules/javaexec (configure.ac): Likewise.
43806 * modules/javacomp-script (configure.ac): Likewise.
43808 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
43810 2006-07-30 Bruno Haible <bruno@clisp.org>
43812 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
43815 2006-07-30 Bruno Haible <bruno@clisp.org>
43817 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
43819 2006-07-30 Bruno Haible <bruno@clisp.org>
43821 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43822 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
43825 2006-07-29 Bruno Haible <bruno@clisp.org>
43827 Make it possible for gnulib-tool to work with locally modified or
43828 augmented gnulib repositories.
43829 * gnulib-tool (func_usage): Document --local-dir option.
43830 (local_gnulib_dir): New variable.
43831 Handle --local-dir option.
43832 (func_lookup_file): New function.
43833 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
43834 (func_get_description, func_get_filelist, func_get_description,
43835 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
43836 func_get_automake_snippet, func_get_include_directive,
43837 func_get_license, func_get_maintainer): Use func_lookup_file.
43838 (func_import, func_create_testdir): Use func_lookup_file.
43840 2006-07-29 Bruno Haible <bruno@clisp.org>
43842 * modules/setenv (Depends-on): Add unistd.
43844 2006-07-29 Bruno Haible <bruno@clisp.org>
43846 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
43848 2006-07-29 Bruno Haible <bruno@clisp.org>
43850 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
43852 2006-07-29 Bruno Haible <bruno@clisp.org>
43854 * gnulib-tool (import, update): If there is no Makefile.am, look at
43855 aclocal.m4, instead of bailing out.
43857 2006-07-29 Bruno Haible <bruno@clisp.org>
43859 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
43860 Categorize the options by when they are useful.
43862 2006-07-29 Bruno Haible <bruno@clisp.org>
43864 * gnulib-tool (func_usage): Document option --no-libtool.
43865 Handle option --no-libtool.
43866 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
43867 for changed semantics of $libtool variable.
43868 (func_import): Likewise. If libtool is not used, show this through
43869 an option --no-libtool.
43870 (func_create_testdir): Update.
43872 2006-07-29 Bruno Haible <bruno@clisp.org>
43874 * gnulib-tool (func_import): Extend error message about missing
43877 2006-07-29 Bruno Haible <bruno@clisp.org>
43879 * gnulib-tool (func_import): Don't create the $docbase directory if
43880 there is no file to store there.
43882 2006-07-29 Bruno Haible <bruno@clisp.org>
43884 * gnulib-tool (autoconf_minversion): If a --dir option is given and
43885 relevant, look for configure.ac there, not in the current directory.
43886 Also use a simple search for AC_PREREQ, not "autoconf --trace".
43888 2006-07-29 Bruno Haible <bruno@clisp.org>
43890 * gnulib-tool (SORT): New variable.
43891 (func_usage): Undocument --assume-autoconf option.
43892 Remove --assume-autoconf option handling.
43893 (autoconf_minversion): Determine from the contents of configure.ac.
43894 (func_import): Remove autoconf_minversion handling.
43895 Suggested by Eric Blake.
43897 2006-07-29 Bruno Haible <bruno@clisp.org>
43899 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
43901 2006-07-29 Bruno Haible <bruno@clisp.org>
43903 * config/srclist.txt (*setenv.[ch]): Remove rules.
43905 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
43907 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
43909 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
43911 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
43914 2006-07-28 Simon Josefsson <jas@extundo.com>
43916 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
43917 * modules/inet_pton (Depends-on): Likewise.
43919 2006-07-28 Simon Josefsson <jas@extundo.com>
43921 * m4/netinet_in_h.m4: New file.
43923 2006-07-28 Simon Josefsson <jas@extundo.com>
43925 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
43928 2006-07-28 Simon Josefsson <jas@extundo.com>
43930 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
43933 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
43935 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
43936 setgid on directories only if they set these bits.
43937 * lib/modechange.h: Remove obsolete comment about masks.
43939 2006-07-28 Eric Blake <ebb9@byu.net>
43941 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
43944 2006-07-28 Bruno Haible <bruno@clisp.org>
43946 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
43948 2006-07-28 Bruno Haible <bruno@clisp.org>
43950 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
43952 2006-07-28 Bruno Haible <bruno@clisp.org>
43954 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
43955 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
43957 Avoids link error on FreeBSD 4.x.
43958 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43960 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
43962 * lib/mbswidth.c (iswcntrl): Likewise.
43964 2006-07-27 Bruno Haible <bruno@clisp.org>
43966 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
43969 2006-07-27 Bruno Haible <bruno@clisp.org>
43971 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
43972 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
43975 2006-07-26 Eric Blake <ebb9@byu.net>
43977 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
43979 2006-07-26 Eric Blake <ebb9@byu.net>
43981 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
43982 like mingw that lack mkstemp.
43983 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
43984 avoid compilation warning on mingw.
43986 2006-07-26 Bruno Haible <bruno@clisp.org>
43988 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
43989 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
43990 INT_FAST*_MIN, INTPTR_MIN.
43992 2006-07-25 Bruno Haible <bruno@clisp.org>
43994 * modules/version-etc (Depends-on): Add stdarg.
43996 2006-07-25 Bruno Haible <bruno@clisp.org>
43998 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
44001 2006-07-25 Bruno Haible <bruno@clisp.org>
44003 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
44004 defined in <stdarg.h> or config.h.
44006 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
44008 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
44009 (gl_STDIO_SAFER): Remove.
44011 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
44013 * MODULES.html.sh (File stream based Input/Output):
44014 Add fopen-safer, tmpfile-safer; remove stdio-safer.
44015 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
44016 * modules/fopen-safer, modules/tmpfile-safer: New files.
44017 * modules/stdio-safer: Remove.
44019 2006-07-24 Bruno Haible <bruno@clisp.org>
44021 * modules/tmpdir: New file.
44022 * MODULES.html.sh (File system functions): Add it.
44024 2006-07-24 Bruno Haible <bruno@clisp.org>
44026 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
44027 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
44029 2006-07-24 Bruno Haible <bruno@clisp.org>
44031 * modules/clean-temp: New file.
44033 2006-07-24 Bruno Haible <bruno@clisp.org>
44035 * m4/tmpdir.m4: New file, from GNU gettext.
44037 2006-07-24 Bruno Haible <bruno@clisp.org>
44039 * lib/tmpdir.h: New file, from GNU gettext.
44040 * lib/tmpdir.c: New file, from GNU gettext.
44042 2006-07-24 Bruno Haible <bruno@clisp.org>
44044 * lib/clean-temp.h: New file, from GNU gettext.
44045 * lib/clean-temp.c: New file, from GNU gettext.
44047 2006-07-23 Eric Blake <ebb9@byu.net>
44049 * modules/stdio-safer (Files): Add tmpfile-safer.c.
44050 (Depends-on): Add binary-io.
44052 2006-07-23 Eric Blake <ebb9@byu.net>
44054 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
44056 2006-07-23 Eric Blake <ebb9@byu.net>
44058 * lib/tmpfile-safer.c: New file.
44059 * lib/stdio-safer.h (fopen_safer): Add prototype.
44060 * lib/stdio--.h (tmpfile): Make safer.
44062 2006-07-23 Bruno Haible <bruno@clisp.org>
44064 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
44065 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
44066 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
44067 gl_linked_remove_at): Use it.
44069 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44070 and Simon Josefsson <jas@extundo.com>
44072 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
44074 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
44076 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
44078 * modules/close-stream: New file.
44079 * modules/closeout (Description): Make it clear that it exits
44080 with a diagnostic on error.
44081 (Depends-on): Add close-stream. Remove fpending, stdbool.
44082 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
44084 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
44086 * m4/close-stream.m4: New file.
44088 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
44090 * lib/close-stream.c, lib/close-stream.h: New files.
44092 2006-07-22 Bruno Haible <bruno@clisp.org>
44094 Merge from GNU gettext 0.15.
44096 2006-05-01 Bruno Haible <bruno@clisp.org>
44098 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
44100 2006-07-22 Bruno Haible <bruno@clisp.org>
44102 * modules/javaversion: New file.
44103 * MODULES.html.sh (Java): Add javaversion.
44105 2006-03-12 Bruno Haible <bruno@clisp.org>
44107 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
44109 2005-12-04 Bruno Haible <bruno@clisp.org>
44111 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
44114 2006-06-21 Bruno Haible <bruno@clisp.org>
44116 Avoid warnings from recent versions of mcs.
44117 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
44118 -o, -L, -r any more. Use options documented since mcs-1.0
44119 instead. Similarly for -g.
44121 2005-12-04 Bruno Haible <bruno@clisp.org>
44123 * build-aux/csharpcomp.sh.in: Suffix for resources is
44124 .resources, not .resource.
44126 2005-07-09 Bruno Haible <bruno@clisp.org>
44128 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
44130 Reported by Mark Junker <mjscod@gmx.de>.
44132 2006-07-22 Bruno Haible <bruno@clisp.org>
44134 * modules/gettext: Upgrade to gettext-0.15.
44135 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
44137 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
44139 2006-07-22 Bruno Haible <bruno@clisp.org>
44141 Merge from GNU gettext 0.15.
44143 2006-03-25 Bruno Haible <bruno@clisp.org>
44145 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
44147 2006-07-21 Bruno Haible <bruno@clisp.org>
44149 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
44152 2006-05-09 Bruno Haible <bruno@clisp.org>
44154 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
44155 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
44156 for the conftestver execution.
44158 2006-05-01 Bruno Haible <bruno@clisp.org>
44160 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
44161 optional target-version argument. Verify that the compiler
44162 groks source of the specified source-version, or add -source
44163 option as necessary. Verify that the compiler produces
44164 bytecode in the specified target-version, or add -target and
44165 -source options as necessary. Make the result of the test
44166 available as variable CONF_JAVAC. Also log error output in
44169 2006-03-11 Bruno Haible <bruno@clisp.org>
44171 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
44173 2006-05-09 Bruno Haible <bruno@clisp.org>
44175 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
44176 CLASSPATH_SEPARATOR to a semicolon.
44178 2006-03-12 Bruno Haible <bruno@clisp.org>
44180 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
44181 available as variable CONF_JAVA, for subsequent autoconf
44182 tests. Also log error output in config.log.
44184 2006-07-19 Bruno Haible <bruno@clisp.org>
44186 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
44187 that getline works on glibc2 systems. Needed to avoid trouble
44189 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
44191 2005-12-04 Bruno Haible <bruno@clisp.org>
44193 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
44194 launcher (untested).
44196 2005-12-04 Bruno Haible <bruno@clisp.org>
44198 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
44200 2006-07-22 Bruno Haible <bruno@clisp.org>
44202 * gettext.m4: Update from GNU gettext-0.15.
44203 * nls.m4: Likewise.
44205 * inttypes-pri.m4: Likewise.
44206 * inttypes-h.m4: Renamed from inttypes.m4.
44207 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
44209 2006-07-22 Bruno Haible <bruno@clisp.org>
44211 Merge from GNU gettext 0.15.
44213 2005-07-05 Bruno Haible <bruno@clisp.org>
44215 * printf-args.c (printf_fetchargs): Work around broken
44216 definition of wint_t on mingw.
44218 2005-02-12 Bruno Haible <bruno@clisp.org>
44220 * xallocsa.h: Add extern "C" for C++.
44222 2006-05-17 Bruno Haible <bruno@clisp.org>
44224 Cygwin portability.
44225 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
44227 2006-04-30 Bruno Haible <bruno@clisp.org>
44229 * progreloc.c: Include <mach-o/dyld.h> if available.
44230 (find_executable): Use _NSGetExecutablePath when possible.
44232 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
44234 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
44237 2005-12-29 Bruno Haible <bruno@clisp.org>
44239 * progreloc.c (set_program_name_and_installdir): Fix
44242 2005-12-04 Bruno Haible <bruno@clisp.org>
44244 Cygwin portability.
44245 * progreloc.c: Include <windows.h> also on Cygwin.
44246 (find_executable): Add support for Cygwin.
44247 (set_program_name_and_installdir): Handle also platforms with
44250 2006-07-11 Bruno Haible <bruno@clisp.org>
44252 * javacomp.c: Fix a comment.
44253 Reported by Jim Meyering.
44255 2006-04-30 Bruno Haible <bruno@clisp.org>
44257 * javacomp.h (compile_java_class): Add source_version,
44258 target_version arguments.
44259 * javacomp.c: Rewritten to choose only a compiler that
44260 respects the specified source_version and target_version.
44262 2006-06-27 Bruno Haible <bruno@clisp.org>
44264 Assume correct S_ISDIR macro.
44265 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
44267 2006-07-22 Bruno Haible <bruno@clisp.org>
44269 * javaversion.h: New file, from GNU gettext.
44270 * javaversion.c: New file, from GNU gettext.
44271 * javaversion.java: New file, from GNU gettext.
44272 * javaversion.class: New file, from GNU gettext.
44274 2006-05-17 Bruno Haible <bruno@clisp.org>
44276 Cygwin portability.
44277 * javaexec.c (execute_java_class): Test for jview program
44280 2006-04-09 Bruno Haible <bruno@clisp.org>
44282 * fatal-signal.c: Don't include string.h.
44283 (at_fatal_signal): Use a copying loop instead of memcpy.
44285 2005-12-04 Bruno Haible <bruno@clisp.org>
44287 * csharpexec.c: Add support for 'clix' launcher (untested).
44288 (execute_csharp_using_sscli): New function.
44289 (execute_csharp_program): Call it.
44291 2006-06-21 Bruno Haible <bruno@clisp.org>
44293 Avoid warnings from recent versions of mcs.
44294 * csharpcomp.c (compile_csharp_using_mono): Don't use options
44295 -o, -L, -r any more. Use options documented since mcs-1.0
44296 instead. Similarly for -g.
44298 2005-07-09 Bruno Haible <bruno@clisp.org>
44300 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
44302 Reported by Mark Junker <mjscod@gmx.de>.
44304 2006-06-17 Bruno Haible <bruno@clisp.org>
44306 * config.charset: Update for NetBSD 3.0.
44308 2006-05-17 Bruno Haible <bruno@clisp.org>
44310 Cygwin portability.
44311 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
44313 2006-05-16 Bruno Haible <bruno@clisp.org>
44315 * localcharset.c [CYGWIN]: Include <windows.h>.
44316 (get_charset_aliases): For Cygwin, return the same CPxxx
44317 aliases list as under WIN32.
44318 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
44319 the environment variables. Fall back to GetACP().
44321 2006-04-05 Bruno Haible <bruno@clisp.org>
44323 * config.charset: Update Juan Manuel Guerrero's address.
44325 2005-02-12 Bruno Haible <bruno@clisp.org>
44327 * allocsa.h: Add extern "C" for C++.
44329 2005-02-10 Bruno Haible <bruno@clisp.org>
44331 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
44332 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
44334 2006-07-22 Bruno Haible <bruno@clisp.org>
44336 * gettext.h: Update to GNU gettext-0.15.
44338 2006-07-22 Bruno Haible <bruno@clisp.org>
44340 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
44341 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
44342 lib-prefix.m4, longdouble.m4, ssize_t.m4.
44344 2006-07-21 Eric Blake <ebb9@byu.net>
44346 * modules/stdlib-safer: New file.
44347 * MODULES.html.sh (File stream based Input/Output): Add
44350 2006-07-21 Eric Blake <ebb9@byu.net>
44352 * lib/stdlib-safer.h: New file from coreutils, required by
44355 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
44357 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
44359 2006-07-20 Bruno Haible <bruno@clisp.org>
44361 * gnulib-tool: Recognize new option --assume-autoconf.
44362 (autoconf_minversion): New variable.
44363 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
44365 2006-07-20 Bruno Haible <bruno@clisp.org>
44367 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
44369 2006-07-19 Derek R. Price <derek@ximbiot.com>
44371 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
44372 Reindent and repaginate.
44374 2006-07-19 Derek Price <derek@ximbiot.com>
44376 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
44379 2006-07-17 Bruno Haible <bruno@clisp.org>
44381 * modules/list: New file.
44382 * modules/array-list: New file.
44383 * modules/carray-list, modules/carray-list-tests: New files.
44384 * modules/linked-list, modules/linked-list-tests: New files.
44385 * modules/avltree-list, modules/avltree-list-tests: New files.
44386 * modules/rbtree-list, modules/rbtree-list-tests: New files.
44387 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
44388 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
44389 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
44390 * modules/oset: New file.
44391 * modules/array-oset: New file.
44392 * modules/avltree-oset, modules/avltree-oset-tests: New files.
44393 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
44394 * tests/test-carray_list.c: New file.
44395 * tests/test-linked_list.c: New file.
44396 * tests/test-avltree_list.c: New file.
44397 * tests/test-rbtree_list.c: New file.
44398 * tests/test-linkedhash_list.c: New file.
44399 * tests/test-avltreehash_list.c: New file.
44400 * tests/test-rbtreehash_list.c: New file.
44401 * tests/test-avltree_oset.c: New file.
44402 * tests/test-rbtree_oset.c: New file.
44403 * MODULES.html.sh (Container data structures): New section.
44405 2006-07-17 Bruno Haible <bruno@clisp.org>
44407 * m4/gl_list.m4: New file.
44409 2006-07-17 Bruno Haible <bruno@clisp.org>
44411 * lib/gl_list.h: New file.
44412 * lib/gl_list.c: New file.
44413 * lib/gl_array_list.h: New file.
44414 * lib/gl_array_list.c: New file.
44415 * lib/gl_carray_list.h: New file.
44416 * lib/gl_carray_list.c: New file.
44417 * lib/gl_linked_list.h: New file.
44418 * lib/gl_linked_list.c: New file.
44419 * lib/gl_anylinked_list1.h: New file.
44420 * lib/gl_anylinked_list2.h: New file.
44421 * lib/gl_avltree_list.h: New file.
44422 * lib/gl_avltree_list.c: New file.
44423 * lib/gl_anyavltree_list1.h: New file.
44424 * lib/gl_anyavltree_list2.h: New file.
44425 * lib/gl_rbtree_list.h: New file.
44426 * lib/gl_rbtree_list.c: New file.
44427 * lib/gl_anyrbtree_list1.h: New file.
44428 * lib/gl_anyrbtree_list2.h: New file.
44429 * lib/gl_anytree_list1.h: New file.
44430 * lib/gl_anytree_list2.h: New file.
44431 * lib/gl_linkedhash_list.h: New file.
44432 * lib/gl_linkedhash_list.c: New file.
44433 * lib/gl_anyhash_list1.h: New file.
44434 * lib/gl_anyhash_list2.h: New file.
44435 * lib/gl_avltreehash_list.h: New file.
44436 * lib/gl_avltreehash_list.c: New file.
44437 * lib/gl_rbtreehash_list.h: New file.
44438 * lib/gl_rbtreehash_list.c: New file.
44439 * lib/gl_anytreehash_list1.h: New file.
44440 * lib/gl_anytreehash_list2.h: New file.
44442 * lib/gl_oset.h: New file.
44443 * lib/gl_oset.c: New file.
44444 * lib/gl_array_oset.h: New file.
44445 * lib/gl_array_oset.c: New file.
44446 * lib/gl_avltree_oset.h: New file.
44447 * lib/gl_avltree_oset.c: New file.
44448 * lib/gl_rbtree_oset.h: New file.
44449 * lib/gl_rbtree_oset.c: New file.
44450 * lib/gl_anytree_oset.h: New file.
44452 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
44454 * m4/mkancesdirs.m4: New file.
44455 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
44456 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
44457 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
44460 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
44462 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
44463 * lib/mkancesdirs.h: New files.
44464 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
44465 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
44466 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
44467 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
44468 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
44469 callers changed. Revamp internals significantly, by not
44470 attempting to create directories that are temporarily more
44471 permissive than the final results. Do not attempt to use
44472 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
44473 This removes some race conditions, fixes some bugs, and simplifies
44474 things. Use new dirchownmod function to do owner and mode changes.
44475 * lib/mkdir-p.h: Likewise.
44476 * lib/modechange.c (octal_to_mode): New function.
44477 (struct mode_change): New member mentioned.
44478 (make_node_op_equals): New arg mentioned. All callers changed.
44479 (mode_compile): Keep track of which mode bits the user has explicitly
44481 (mode_adjust): New arg DIR, so that we implement the X op correctly.
44482 New arg PMODE_BITS, to keep track of which mode bits the user
44483 mentioned; it treats S_ISUID and S_ISGID speciall.
44484 All callers changed.
44485 * lib/modechange.h: Likewise.
44487 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
44489 * MODULES.html.sh: Add mkancestors.
44490 * modules/mkancesdirs: New module.
44491 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
44492 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
44493 The chdir-safer and afs files are now orphans; I'll remove them
44494 unless someone speaks up.
44495 Add lib/dirchownmod.c, lib/dirchownmod.h.
44496 (Depends-on): Remove alloca, chown, save-cwd, dirname.
44497 Add lchown, mkancesdirs.
44498 (Maintainer): Add self.
44500 2006-07-15 Karl Berry <karl@gnu.org>
44502 * gnulib-tool: help message wording/arrangement.
44504 2006-07-14 Simon Josefsson <jas@extundo.com>
44506 * doc/gnulib.texi (Libtool and Windows): New section.
44508 2006-07-12 Simon Josefsson <jas@extundo.com>
44510 * modules/gendocs (License): Fix license, approved by Karl.
44512 2006-07-12 Eric Blake <ebb9@byu.net>
44514 * MODULES.html.sh: Add gendocs.
44516 2006-07-11 Eric Blake <ebb9@byu.net>
44518 * modules/fdl: New module, to install doc/fdl.texi.
44519 * MODULES.html.sh: Add new section for documentation modules.
44520 * gnulib-tool: Avoid space-tab.
44521 (--doc-base): New option, to manage files from doc.
44523 2006-07-11 Eric Blake <ebb9@byu.net>
44525 * m4/absolute-header.m4: Fix comments to match recent change.
44527 2006-07-11 Eric Blake <ebb9@byu.net>
44529 * gnulib-tool: List --doc-base before --tests-base.
44531 2006-07-11 Derek R. Price <derek@ximbiot.com>
44533 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
44535 2006-07-11 Bruno Haible <bruno@clisp.org>
44537 * README: Mention where to put documentation.
44539 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44541 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
44543 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
44545 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
44548 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
44550 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
44551 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
44552 "no/such/file/stdint.h" when there is no such file, so that
44553 the resulting C code can be parsed by dodgy compilers.
44554 Problems reported by Bob Proulx.
44556 2006-07-10 Derek R. Price <derek@ximbiot.com>
44558 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
44559 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
44560 macros into the GNU _D_EXACT_NAMLEN.
44561 * lib/savedir.c: Likewise.
44562 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
44564 2006-07-10 Derek R. Price <derek@ximbiot.com>
44565 and Paul Eggert <eggert@cs.ucla.edu>
44567 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
44569 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
44570 macros into the GNU _D_EXACT_NAMLEN.
44572 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
44574 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
44575 around the absolute name, to work around a problem with the HP-UX
44576 11.23 native C compiler, reported by Bob Proulx.
44578 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
44580 * doc/maintain.texi, make-stds.texi: Sync from
44581 <http://savannah.gnu.org/projects/gnustandards>.
44583 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
44585 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
44587 2006-07-09 Jim Meyering <jim@meyering.net>
44589 * m4/glob.m4: Remove a doubled word in a comment.
44591 2006-07-09 Jim Meyering <jim@meyering.net>
44593 * lib/argp-pv.c: Remove a doubled word in a comment.
44594 * lib/check-version.c (check_version): Likewise.
44595 * lib/javacomp.c (compile_java_class): Likewise.
44597 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
44599 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
44600 for the benefit of people using Autoconf 2.60. If you want to
44601 support older Autoconf versions you can copy m4/onceonly_2_57.m4
44602 (or m4/onceonly.m4, if pre-2.57) manually.
44604 2006-07-08 Jim Meyering <jim@meyering.net>
44606 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
44608 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
44609 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
44612 2006-07-08 Jim Meyering <jim@meyering.net>
44614 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
44616 2006-07-07 Simon Josefsson <jas@extundo.com>
44618 * tests/test-crc.c: Change expected crc value, the test vector
44619 were probably computed using the old broken crc.c?
44621 2006-07-06 Simon Josefsson <jas@extundo.com>
44623 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
44624 now the canonical place for the M4 file).
44626 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
44627 from the sys_socket dependency now.
44629 * modules/inet_pton (Files): Ditto.
44631 * modules/inet_ntop (Files): Ditto.
44633 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
44635 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
44636 not gl_PREREQ_GETUSERSHELL.
44638 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44640 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
44641 with only one argument, for Autoconf 2.60.
44642 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
44643 expand to nothing, so add a shell command to avoid syntax error.
44644 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
44646 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44648 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
44650 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
44652 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
44653 no longer needed. Check for isblank decl.
44654 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
44655 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
44658 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
44660 * lib/getloadavg.c: Use __VMS, not VMS.
44661 * lib/getopt.c: Likewise.
44662 * lib/getpagesize.h: Likewise.
44663 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
44664 and probably does not work.
44666 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
44668 * lib/.cppi-disable: Add wcwidth.
44669 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
44670 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
44671 (ISGRAPH): Remove. All uses changed to isgraph.
44672 (FOLD) [!defined _LIBC]: Remove special case.
44673 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
44674 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
44676 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
44679 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
44681 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
44682 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
44683 brackets. Other minor changes to suppress some compiler
44686 2006-07-06 Derek R. Price <derek@ximbiot.com>
44687 and Paul Eggert <eggert@cs.ucla.edu>
44689 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
44690 of invoking obsolescent AC_HEADER_DIRENT macro.
44691 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
44692 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
44693 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44694 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
44695 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
44696 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44697 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
44698 * m4/readdir.m4: Remove; no longer needed.
44700 2006-07-06 Derek R. Price <derek@ximbiot.com>
44701 and Paul Eggert <eggert@cs.ucla.edu>
44703 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
44704 Don't worry about this obsolete case any more.
44705 (HAVE_DIR): Remove. All uses removed; we now assume you can read
44707 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
44708 worry about this obsolete case any more.
44709 * lib/fts.c: Likewise.
44710 * lib/getcwd.c: Likewise.
44711 * lib/glob.h: Likewise.
44712 * lib/savedir.c: Likewise.
44714 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
44716 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
44717 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
44718 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
44721 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44722 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
44723 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
44725 * m4/getdate.m4 (gl_GETDATE): Likewise.
44726 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
44727 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
44728 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
44729 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44730 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
44731 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44732 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
44735 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
44737 * lib/memcasecmp.c: Include <limits.h>.
44738 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
44739 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
44740 Don't assume isdigit succeeds only on '0' through '9'.
44742 2006-07-05 Eric Blake <ebb9@byu.net>
44744 * modules/getaddrinfo (Depends-on): Add snprintf.
44746 2006-07-05 Eric Blake <ebb9@byu.net>
44748 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
44749 to avoid 'header present but could not be compiled' on cygwin.
44751 2006-07-05 Eric Blake <ebb9@byu.net>
44753 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
44754 missing from netdb.h.
44755 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
44757 2006-07-05 Derek R. Price <derek@ximbiot.com>
44759 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
44761 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
44762 * m4/getdate.m4 (gl_GETDATE): Likewise.
44763 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
44764 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
44765 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
44766 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44767 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44769 2006-07-05 Derek R. Price <derek@ximbiot.com>
44771 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
44772 All uses of is_space replaced by isspace.
44773 * lib/exit.h: Don't talk about STDC_HEADERS.
44774 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
44775 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
44776 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
44777 replaced by isprint etc.
44778 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
44779 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
44780 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
44781 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
44782 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
44783 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
44785 2006-07-05 Bruno Haible <bruno@clisp.org>
44787 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
44788 the function exists, before testing against AIX.
44789 Reported by Martin Lambers <marlam@marlam.de>.
44791 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
44793 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
44794 From Mark D. Baushke.
44796 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
44798 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
44799 to the absolute name, not just one, to bypass Sun C 5.8's
44800 "warning: #include of /usr/include/... may be non-portable".
44802 2006-07-04 Eric Blake <ebb9@byu.net>
44804 * modules/dirname-tests: New test module.
44805 * tests/test-dirname.c: New file, replacing dirname.c
44806 TEST_DIRNAME section that was recently deleted.
44808 2006-07-04 Bruno Haible <bruno@clisp.org>
44810 Assume ANSI C header files and <ctype.h> functions.
44811 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
44812 (mbsnwidth): Use isprint, iscntrl instead.
44814 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
44816 Merge from coreutils.
44817 * MODULES.html.sh: Add xstrtold.
44818 * modules/xstrtold: New file.
44819 * modules/cycle-check (Files): Add lib/same-inode.h.
44820 * modules/dirname (Files): Add m4/double-slash-root.m4.
44821 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
44822 * modules/mkdir-p (Files): Add lib/same-inode.h.
44823 * modules/same (Files): Add lib/same-inode.h.
44825 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
44827 * m4/absolute-header.m4: Renamed from full-header-path.m4.
44828 This is to keep the terminology clean; POSIX talks about
44829 "absolute pathnames", not "full pathnames", but the GNU
44830 Coding Standards say to use "path" for something else;
44831 so use "absolute" to keep both sides happy.
44832 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
44833 Set gl_absolute_header, not gl_full_header_path.
44834 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
44835 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
44838 Merge from coreutils.
44840 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
44842 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
44843 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
44844 want to require the building of c-strtod.o.
44845 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
44846 needs -lm directly.
44847 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
44849 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
44851 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
44852 --as-needed option if available. Problem reported by Albert Chin in
44853 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
44854 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
44855 cc merely issues a bunch of annoying warnings for --as-needed
44856 (this problem was reported by Bob Proulx). Also, try linking with
44857 -lm to detect a bug in binutils 2.16 (this problem was reported
44858 by Ralf Wildenhues).
44860 2006-06-18 Jim Meyering <jim@meyering.net>
44862 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
44863 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
44865 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
44866 also check for glibc-2.4's abort-inducing bug.
44868 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
44869 Low-probability clean-up should be to use rmdir to get rid of
44870 the just-created directory, not unlink.
44872 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
44873 configure fail, and request a bug report to inform us about it.
44874 Add a comment that, barring reports to the contrary, in 2007 we'll
44875 assume ftruncate is universally available.
44877 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
44879 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
44881 2006-03-12 Jim Meyering <jim@meyering.net>
44883 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
44884 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
44885 * m4/same.m4 (gl_SAME): Likewise.
44886 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
44888 2006-03-11 Eric Blake <ebb9@byu.net>
44890 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
44891 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
44892 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
44893 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
44895 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
44897 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
44898 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
44899 reported by Mark D. Baushke, one in
44900 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
44902 Merge from coreutils.
44904 * lib/.cppi-disable: Add stdint_.h.
44905 * lib/.cvsignore: Add stdint.h.
44907 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
44909 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
44910 both double and long double versions.
44911 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
44912 * lib/xstrtold.c: New file.
44913 * lib/xstrtod.h (xstrtold): New decl.
44915 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
44917 * lib/filemode.c (setst): Remove.
44918 (strmode): Rewrite to avoid setst. This makes the code shorter,
44919 (arguably) clearer, and the generated code is a bit smaller on my
44920 Debian GNU/Linux stable x86 host.
44922 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
44924 * lib/filemode.c: Include "filemode.h" first, to test the interface.
44925 Assume that filemode.h includes sys/types.h and sys/stat.h.
44926 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
44927 (ftypelet): Reorder to put common cases first, for efficiency.
44928 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
44930 (strmode): Renamed from mode_string, and now stores 12 bytes instead
44931 of 10, for compatibility with FreeBSD. All callers changed.
44932 (filemodestring): Now stores 12 bytes instead of 10, and sets file
44933 types that can't be deduced solely from st_mode. First arg is now a
44935 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
44936 (strmode): Renamed from mode_string.
44937 (filemodestring): New decl.
44938 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
44939 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
44941 (S_ISPORT, S_ISWHT): New macros, if not already defined.
44943 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
44945 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
44946 fsusage.h now does that. Include fsusage.h first, to test interface.
44947 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
44948 at most one method (the old code could have generated decls that
44949 didn't conform to C89, not that this was ever exercised).
44950 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
44952 2006-03-19 Jim Meyering <jim@meyering.net>
44954 Work even in a chroot where d_ino values for entries in "/"
44955 don't match the stat.st_ino values for the same names.
44956 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
44957 number, iterate through all entries again, using lstat instead.
44958 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
44959 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
44961 * lib/getcwd.c (__getcwd): Clarify a comment.
44962 Use memcpy in place of a call to strcpy.
44964 2006-03-12 Jim Meyering <jim@meyering.net>
44966 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
44967 matches that of the current directory (which we're about to chdir ".."
44968 out of), then save the dev-ino of the parent, instead.
44970 * lib/same-inode.h (SAME_INODE): New file/macro.
44971 * lib/chdir-safer.c (SAME_INODE): Remove definition.
44972 Include "same-inode.h", instead.
44973 * lib/same.c: Likewise.
44974 * lib/cycle-check.h: Include "same-inode.h".
44975 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
44976 * lib/cycle-check.c (SAME_INODE): Remove definition.
44977 * lib/root-dev-ino.h: Include "same-inode.h".
44979 2006-03-11 Eric Blake <ebb9@byu.net>
44981 * lib/same.c (same_name): s/base_name/last_component/
44982 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
44983 * lib/filenamecat.c (file_name_concat): Likewise.
44985 2006-03-11 Eric Blake <ebb9@byu.net>,
44986 Paul Eggert <eggert@cs.ucla.edu>
44988 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
44989 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
44991 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
44992 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
44993 (last_component): New method.
44994 * lib/dirname.c (dir_len): Determine when drive letters need a
44995 subsequent slash. Preserve // when it is special.
44996 (dir_name): Don't append dot when drive letter is absolute.
44997 [TEST_DIRNAME]: Move into a full-blown gnulib test.
44998 * lib/basename.c (base_name): New semantics - malloc the result.
44999 Preserve // when it is special. Preserve relative files that look
45000 like drive letters.
45001 (base_len): Preserve // when it is special.
45002 (last_component): New method, similar to old base_name semantics.
45003 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
45004 base_name. Strip redundant slashes from ///.
45006 2006-07-03 Jim Meyering <jim@meyering.net>
45008 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
45009 macro is used before the first cycle_check call.
45011 2006-07-03 Eric Blake <ebb9@byu.net>
45013 * modules/dirname (Depends-on): Add xstrndup.
45015 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
45017 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
45018 test cases, so that config.log is a bit easier to follow.
45020 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
45022 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
45023 both are 64 bits, since this seems to be the tradition, and this
45024 prevents gcc -Wformat from warning about usages with PRIuMAX. If
45025 we ever run into a host that prefers long long to long in this
45026 case, we'll need another configure-time test. Problem reported by
45029 2006-07-02 Eric Blake <ebb9@byu.net>
45031 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
45033 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
45035 * modules/inttypes (Depends-on): No longer depends on stdint.
45036 * modules/stdint (Description): Say more about assumptions.
45037 Say that the fast types might differ. Say macros are used.
45038 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
45039 (Makefile.am): Revise list of substituted symbols to match
45041 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
45042 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
45043 * tests/test-stdint.c (verify_same_types)
45044 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
45045 the code conforms to C99/C89.
45046 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
45047 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
45049 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
45051 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
45052 but fix a bug, by requiring at least 64 bits.
45053 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
45054 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
45055 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
45056 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
45058 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
45059 changes. Make 2.59 a prerequisite. Check and substitute for
45060 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
45061 inttypes.h. Do not use special include files; just use the
45062 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
45063 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
45064 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
45065 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
45066 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
45067 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
45068 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
45069 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
45070 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
45071 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
45072 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
45073 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
45074 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
45075 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
45076 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
45077 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
45078 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
45079 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
45080 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
45081 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
45082 WINT_MAX. Check for C99 conformance more strictly, by detecting
45083 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
45084 not check for things that C99 does not require, e.g., int8_t. If
45085 a test isn't needed unless <stdint.h> isn't working, and is
45086 unlikely to be needed for any other reason, then don't do it
45087 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
45088 size_t, since we assume C89 freestanding at least. Do not check
45089 for sig_atomic_t, wchar_t, or wint_t, since the code now does
45090 the right thing even if the types are not defined. Instead use:
45091 (gl_STDINT_TYPE_PROPERTIES): New macro.
45092 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
45093 testing whether <sys/types.h> clashes, as Autoconf does this for
45094 us now. All uses removed.
45095 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
45096 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
45097 (gl_CHECK_TYPE_SAME):
45098 Remove; no longer needed.
45099 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
45100 exists, since we'll return 0 anyway in that case.
45101 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
45103 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
45105 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
45106 possible collision with system files.
45107 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
45108 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
45109 WCHAR_MIN and WCHAR_MAX in this case.
45110 (<stddef.h>): Do not include; no longer needed.
45111 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
45112 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
45113 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
45114 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
45115 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
45116 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
45117 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
45118 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
45119 !defined(__c99))]: Include in this case too, since it's harmless
45121 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
45122 dangerous to do so.
45123 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
45124 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
45125 (_STDINT_MIN, _STDINT_MAX): New macros.
45126 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
45127 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
45128 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
45129 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
45130 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
45131 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
45132 macros, not typedefs; this simplifies things quite a bit.
45133 Use long int for all types narrower than int64_t.
45134 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
45135 Define in terms of long long int or int64_t or long int,
45136 not int64_t or int32_t. This saves some compile-time testing.
45137 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
45138 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
45139 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
45140 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
45141 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
45142 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
45143 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
45144 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
45145 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
45146 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
45147 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
45148 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
45149 undef any previous version and define our own version, for
45150 simplicity and consistency with the new macros for types.
45151 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
45152 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
45153 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
45154 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
45155 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
45156 @WINT_T_SUFFIX@ to keep things simple here.
45157 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
45158 Simplify by assuming typical 8/16/32/64 host, since we're
45159 already doing that elsewhere anyway.
45160 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
45161 and assume long long int is 64 bits if available. This
45162 speeds up 'configure'.
45164 2006-07-01 Eric Blake <ebb9@byu.net>
45166 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
45167 Reported by Andreas Buening.
45169 2006-07-01 Eric Blake <ebb9@byu.net>
45171 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
45173 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
45175 * lib/getaddrinfo.c: fixed typo
45177 2006-06-29 Jim Meyering <jim@meyering.net>
45179 * modules/strftime (Maintainer): Add my name, since with the
45180 FPRINTFTIME changes strftime.c has forked from glibc.
45182 2006-06-29 Eric Blake <ebb9@byu.net>
45184 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
45186 2006-06-29 Eric Blake <ebb9@byu.net>
45188 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
45190 2006-06-29 Eric Blake <ebb9@byu.net>
45192 * lib/stat_.h: New file.
45194 2006-06-29 Eric Blake <ebb9@byu.net>
45196 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
45197 unused static function.
45199 2006-06-29 Eric Blake <ebb9@byu.net>
45201 * doc/functions.texi (Function Portability): Document missing lstat
45204 2006-06-29 Eric Blake <ebb9@byu.net>
45206 * MODULES.html.sh: Add sys_stat.
45207 * modules/sys_stat: New module.
45208 * modules/mkstemp (Depends-on): Add sys_stat.
45210 2006-06-29 Derek R. Price <derek@ximbiot.com>
45212 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
45214 2006-06-29 Derek R. Price <derek@ximbiot.com>
45216 * m4/c-bs-a.m4: Removed.
45218 2006-06-29 Derek R. Price <derek@ximbiot.com>
45220 * lib/strftime.c: Assume strftime() exists.
45222 2006-06-29 Derek Price <derek@ximbiot.com>
45224 * modules/c-bs-a: Removed - \a is C89.
45225 * MODULES.html.sh: Remove c-bs-a.
45227 2006-06-29 Bruno Haible <bruno@clisp.org>
45229 * modules/wcwidth (License): Change to LGPL.
45231 2006-06-28 Simon Josefsson <jas@extundo.com>
45233 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
45236 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
45239 2006-06-28 Simon Josefsson <jas@extundo.com>
45241 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
45243 2006-06-28 Simon Josefsson <jas@extundo.com>
45245 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
45246 functions there. It will succeed on Windows XP, but on Windows
45247 2000 and (presumably) earlier, it will fail, and use the internal
45249 (use_win32_p): New function.
45250 (getaddrinfo): Use strtoul on servname, to support numeric ports.
45251 Support AI_NUMERICSERV to disable getservbyname.
45252 (getnameinfo): New function, only supports
45253 NI_NUMERICHOST|NI_NUMERICSERV for now.
45255 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
45256 only have some of them. Add AI_NUMERICSERV. Add prototype for
45259 2006-06-28 Eric Blake <ebb9@byu.net>
45261 * modules/wcwidth: New file.
45262 * modules/mbchar (Depends-on): Add wcwidth.
45263 * modules/mbswidth (Depends-on): Add wcwidth.
45264 * MODULES.html.sh: Add wcwidth.
45266 2006-06-28 Eric Blake <ebb9@byu.net>
45268 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
45269 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
45271 2006-06-28 Eric Blake <ebb9@byu.net>
45273 * lib/xvasprintf.h: Fix comments.
45275 2006-06-28 Eric Blake <ebb9@byu.net>
45277 * lib/mbchar.h (wcwidth): Include wcwidth.h.
45278 * lib/mbswidth.c (wcwidth): Move from here...
45279 * lib/wcwidth.h: ...to this new file.
45281 2006-06-28 Derek R. Price <derek@ximbiot.com>
45283 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
45285 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
45287 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
45289 2006-06-28 Derek R. Price <derek@ximbiot.com>
45291 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
45292 Autoconf 2.60 says this stuff was obsolete.
45294 2006-06-28 Bruno Haible <bruno@clisp.org>
45296 * modules/wcwidth (Files): Add m4/wchar_t.m4.
45298 2006-06-28 Bruno Haible <bruno@clisp.org>
45300 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
45303 2006-06-28 Bruno Haible <bruno@clisp.org>
45305 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
45306 declaration for wcwidth.
45307 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
45309 2006-06-28 Bruno Haible <bruno@clisp.org>
45311 * lib/mkdtemp.c [MINGW]: Include <io.h>.
45312 (mkdir): Define using _mkdir.
45314 2006-06-28 Bruno Haible <bruno@clisp.org>
45316 * lib/getaddrinfo.h: Fix POSIX URL.
45317 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
45319 (use_win32_p): Make static.
45320 (getaddrinfo): Reject service name if it is empty or does not consist
45321 solely of decimal digits, or if its value is > 65535.
45322 (getnameinfo): Remove useless casts.
45324 2006-06-27 Simon Josefsson <jas@extundo.com>
45326 * modules/sys_select: New file, suggested by Bruno Haible, Paul
45327 Eggert and Martin Lambers.
45329 2006-06-27 Simon Josefsson <jas@extundo.com>
45331 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
45332 Eggert and Martin Lambers.
45334 2006-06-27 Bruno Haible <bruno@clisp.org>
45336 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
45337 result to 0, not to empty.
45338 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
45340 2006-06-27 Bruno Haible <bruno@clisp.org>
45342 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
45344 2006-06-26 Simon Josefsson <jas@extundo.com>
45346 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
45349 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
45351 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
45352 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
45353 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
45355 2006-06-26 Mark D. Baushke <mdb@gnu.org>
45357 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
45359 2006-06-26 Bruno Haible <bruno@clisp.org>
45361 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
45363 2006-06-26 Bruno Haible <bruno@clisp.org>
45365 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
45367 2006-06-26 Bruno Haible <bruno@clisp.org>
45369 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
45370 SGI C compiler in pre-C99 mode.
45371 Suggested by Mark D. Baushke and Larry Jones.
45373 2006-06-26 Bruno Haible <bruno@clisp.org>
45375 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
45377 Reported by Mark D. Baushke and Larry Jones.
45379 2006-06-26 Bruno Haible <bruno@clisp.org>
45381 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
45383 Suggested by Mark D. Baushke and Larry Jones.
45385 2006-06-23 Simon Josefsson <jas@extundo.com>
45386 Bruno Haible <bruno@clisp.org>
45388 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
45389 Emit mostlyclean-local rule.
45390 (func_emit_tests_Makefile_am): Likewise.
45391 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
45393 2006-06-23 Mark D. Baushke <mdb@gnu.org>
45395 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
45397 2006-06-23 Bruno Haible <bruno@clisp.org>
45399 * tests/test-stdint.c: Update to match ISO C 99 Technical
45402 2006-06-23 Bruno Haible <bruno@clisp.org>
45404 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
45406 2006-06-23 Bruno Haible <bruno@clisp.org>
45408 * lib/stdint_.h: Treat IRIX like OpenBSD.
45410 2006-06-23 Bruno Haible <bruno@clisp.org>
45412 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
45413 ISO C 99 Technical Corrigendum 1.
45415 2006-06-22 Simon Josefsson <jas@extundo.com>
45417 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
45420 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
45422 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
45423 needed. Some compiler complained about some of them. Problem reported
45425 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
45427 2006-06-21 Simon Josefsson <jas@extundo.com>
45429 * tests/test-getaddrinfo.c: New file.
45431 * modules/getaddrinfo-tests: New file.
45433 * MODULES.html.sh: Add inet_pton.
45435 * modules/inet_pton: New file.
45437 2006-06-21 Simon Josefsson <jas@extundo.com>
45439 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
45440 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
45441 of using the (limited) gnulib implementation on Windows XP.
45443 * m4/inet_pton.m4: New file.
45445 2006-06-21 Simon Josefsson <jas@extundo.com>
45447 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
45450 * lib/socket_.h: Don't define WINVER.
45452 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
45453 slightly modified to work in gnulib.
45455 2006-06-21 Simon Josefsson <jas@extundo.com>
45457 * doc/gnulib.texi (Windows sockets): Add.
45459 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
45461 * lib/read-file.c (fread_file): Start with buffer allocation of
45462 0 bytes rather than 1 byte; this simplifies the code.
45463 Don't invoke feof; it's not needed. Refactor to avoid duplicate
45464 code to free buffer and save/restore errno.
45465 (internal_read_file): Remove unused local.
45467 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
45469 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
45470 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
45471 Problem reported by Denis Excoffier in
45472 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
45474 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
45476 * modules/sys_socket, modules/socklen: Include sys/types since
45477 FreeBSD 4.x's sys/socket.h needs it.
45479 2006-06-19 Simon Josefsson <jas@extundo.com>
45481 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
45483 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
45485 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
45487 2006-06-19 Bruno Haible <bruno@clisp.org>
45489 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
45490 and FULL_PATH_INTTYPES_H in angle brackets.
45491 Reported by Mark D. Baushke <mdb@gnu.org>.
45493 2006-06-17 Eric Blake <ebb9@byu.net>
45495 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
45498 2006-06-17 Bruno Haible <bruno@clisp.org>
45500 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
45503 2006-06-17 Bruno Haible <bruno@clisp.org>
45505 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
45506 whether errno is declared. Assume <errno.h> declares errno.
45508 2006-06-17 Bruno Haible <bruno@clisp.org>
45510 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
45512 2006-06-17 Bruno Haible <bruno@clisp.org>
45514 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
45515 problem on Solaris 2.5.1.
45517 2006-06-16 Eric Blake <ebb9@byu.net>
45519 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
45520 * lib/unicodeio.c [!defined errno]: Likewise.
45521 * lib/strtol.c [!defined errno]: Likewise.
45522 * lib/strtod.c [!defined errno]: Likewise.
45524 2006-06-15 Eric Blake <ebb9@byu.net>
45526 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
45528 2006-06-15 Eric Blake <ebb9@byu.net>
45530 * config/srclist.txt (ssize_t.m4): Lose sync.
45532 2006-06-15 Bruno Haible <bruno@clisp.org>
45534 * modules/stdint (Files): Include m4/full-header-path.m4,
45535 m4/size_max.m4, m4/wchar_t.m4.
45536 (Makefile.am): Many more substitutions.
45537 * modules/stdint-tests: New file.
45538 * tests/test-stdint.c: New file.
45540 2006-06-15 Bruno Haible <bruno@clisp.org>
45542 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
45543 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
45544 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
45545 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
45546 gl_CHECK_TYPE_SAME): New macros.
45548 2006-06-15 Bruno Haible <bruno@clisp.org>
45550 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
45552 2006-06-15 Bruno Haible <bruno@clisp.org>
45554 * lib/stdint_.h: Rewritten to be fully auto-configured.
45555 Fixes bug on HP-UX/IA64.
45557 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
45559 * lib/getdate.y (__attribute__): Don't define if already defined.
45560 Problem reported by Larry Jones.
45561 * lib/utimens.c (__attribute__): Likewise.
45563 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
45565 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
45566 reported by Andreas Schwab.
45568 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45569 Bruno Haible <bruno@clisp.org>
45571 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
45572 check for the declaration of strnlen and a run test that exposes the
45573 AIX 5.1 strnlen bug. In the failure case, #define strndup to
45576 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45577 Bruno Haible <bruno@clisp.org>
45579 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
45581 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45583 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
45584 compile test, for Tru64 4.0D.
45586 2006-05-28 Karl Berry <karl@gnu.org>
45588 * config/srclist.txt (printf-args.c): lose sync.
45590 2006-05-26 Martin Lambers <marlam@marlam.de>
45592 * lib/getpass.c: Updates the test for the native W32 API, and adds
45593 missing includes, thus fixing compilation warnings.
45595 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
45597 * lib/exclude.c (exclude_fnmatch): New function.
45598 (excluded_file_name): Call exclude_fnmatch.
45599 * lib/exclude.h (excluded_file_name): New prototype
45601 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
45603 * lib/tempname.c (small_open, large_open): New macros.
45604 (__open, __open64) [!_LIBC]: Remove.
45605 (__gen_tempname): Use small_open and large_open instead of __open
45606 and __open64. This fixes a portability bug on HP-UX 11.11i
45607 reported by Simon Wing-Tang in
45608 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
45610 2006-05-24 Bruno Haible <bruno@clisp.org>
45612 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
45613 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
45614 Reported by Thorsten Maerz <torte@netztorte.de> via
45615 Aaron Stone <aaron@serendipity.cx>.
45617 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
45619 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
45620 gl_ rather than jm_. Link, don't run, so that cross-compiles are
45621 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
45622 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
45623 not really conditional on the cache.
45624 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
45626 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
45628 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
45629 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
45630 (my_usleep): Don't mishandle maximum value.
45632 2006-05-19 Jim Meyering <jim@meyering.net>
45634 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
45636 2006-05-17 Bruno Haible <bruno@clisp.org>
45638 Cygwin portability.
45639 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
45641 2006-05-17 Bruno Haible <bruno@clisp.org>
45643 * lib/stdint_.h: Fix recognition of Cygwin.
45645 2006-05-15 Bruno Haible <bruno@clisp.org>
45647 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
45648 on libtool patch by Ralf Wildenhues.
45650 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
45652 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
45653 test for C99 conformance; (bool) 0.5 is an integer constant
45654 expression, but (bool) -0.5 is not. Problem reported by Fedor
45655 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
45657 2006-05-11 Simon Josefsson <jas@extundo.com>
45659 * m4/xvasprintf.m4: Fix obvious typo.
45661 2006-05-11 Jim Meyering <jim@meyering.net>
45663 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
45666 2006-05-10 Simon Josefsson <jas@extundo.com>
45668 * lib/md4.c: Typo fix, update copyright years.
45669 (K1, K2): Don't use L because it turn computations into 64-bit on
45672 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
45674 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
45675 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
45676 unwanted sign propagation, e.g., on hosts with 64-bit int.
45677 There still are some problems with reeelly weird theoretical hosts
45678 (e.g., 33-bit int) but it's not worth worrying about now.
45679 * lib/sha1.c (rol): Likewise.
45680 (K1, K2, K3, K4): Remove unnecessary L suffix.
45682 2006-05-10 Bruno Haible <bruno@clisp.org>
45684 * lib/des.c: Cast to avoid warnings.
45686 2006-05-09 Bruno Haible <bruno@clisp.org>
45688 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
45689 (Depends-on): Depend also on xsize, stdarg.
45690 (configure.ac): Add gl_XVASPRINTF.
45692 2006-05-09 Bruno Haible <bruno@clisp.org>
45694 * m4/xvasprintf.m4: New file.
45696 2006-05-09 Bruno Haible <bruno@clisp.org>
45698 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
45699 (EOVERFLOW): Define fallback value.
45700 (xstrcat): New function.
45701 (xvasprintf): Recognize the special case of a string concatenation.
45703 2006-05-08 Eric Blake <ebb9@byu.net>
45705 * gnulib-tool (func_version): Base copyright year on CVS date.
45706 (func_emit_copyright_notice): New function.
45707 (func_emit_lib_Makefile_am): Use it.
45708 (func_emit_tests_Makefile_am): Likewise.
45709 (func_import): Likewise.
45711 2006-05-08 Bruno Haible <bruno@clisp.org>
45713 * modules/stdarg: New file.
45714 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
45716 2006-05-08 Bruno Haible <bruno@clisp.org>
45718 * m4/stdarg.m4: New file, from GNU gettext.
45720 2006-05-08 Bruno Haible <bruno@clisp.org>
45722 * config/srclist.txt (build-aux/config.rpath): different from latest
45725 2006-05-08 Bruno Haible <bruno@clisp.org>
45727 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
45729 2006-05-05 Jim Meyering <jim@meyering.net>
45731 * m4/warning.m4: New file, derived from bison's file by the same name.
45733 2006-05-03 Bruno Haible <bruno@clisp.org>
45735 * lib/stdint_.h: Shorter URL.
45736 * lib/inttypes.h: Likewise.
45738 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
45740 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
45742 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
45744 * lib/verify.h: Document the internals better. Most of this change
45745 was written by Bruno Haible.
45747 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
45749 * doc/verify.texi: New file, partly based on a proposal by
45752 2006-05-02 Bruno Haible <bruno@clisp.org>
45754 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
45756 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
45758 2006-04-29 Bruno Haible <bruno@clisp.org>
45760 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
45761 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
45763 2006-04-29 Bruno Haible <bruno@clisp.org>
45765 * gnulib-tool: Make --update option actually work.
45767 2006-04-29 Bruno Haible <bruno@clisp.org>
45769 * doc/gcd.texi: New file.
45770 * doc/gnulib.texi: Include it.
45772 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
45774 * lib/getdate.y (get_date): When adding relative date, start with the
45775 initial time, not with the result of the first mktime call.
45777 2006-04-25 Bruno Haible <bruno@clisp.org>
45779 * gnulib-tool (func_import): Output the include directives in three
45780 blocks, sorted separately.
45781 Reported by Ben Pfaff <blp@cs.stanford.edu>.
45783 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
45785 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
45786 to define main with arguments, for C++. Reported by Eric Blake.
45787 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
45788 Prefer 'int main ()' to 'int main (void)', for C++.
45789 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
45790 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
45791 for 'main', for C99 and C++.
45793 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
45795 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
45796 Don't assume that exit status -1 is valid.
45797 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45798 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
45799 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
45800 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
45801 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
45802 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
45803 not AC_TRY_RUN. Use return, not exit. Don't assume that
45804 functions can be used without declaring them, or that you can
45805 exit with status -1.
45806 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
45808 2006-04-24 Karl Berry <karl@gnu.org>
45810 * config/srclist.txt (longdouble.m4): sync lost.
45812 2006-04-24 Eric Blake <ebb9@byu.net>
45814 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
45816 2006-04-24 Bruno Haible <bruno@clisp.org>
45818 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
45819 poll() implementation in AIX.
45820 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45822 2006-04-24 Bruno Haible <bruno@clisp.org>
45824 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
45825 assigned exactly once.
45827 2006-04-23 Claudio Fontana <claudio@gnu.org>
45828 Bruno Haible <bruno@clisp.org>
45830 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
45831 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
45834 2006-04-23 Bruno Haible <bruno@clisp.org>
45836 * modules/copy-file: Depend on unistd.
45837 * modules/execute: Likewise.
45838 * modules/fatal-signal: Likewise.
45839 * modules/findprog: Likewise.
45840 * modules/mkdtemp : Likewise.
45841 * modules/pipe: Likewise.
45842 * modules/wait-process: Likewise.
45844 2006-04-23 Bruno Haible <bruno@clisp.org>
45846 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
45847 condition was already detected.
45848 Reported by Ben Pfaff <blp@cs.stanford.edu>.
45850 2006-04-23 Bruno Haible <bruno@clisp.org>
45852 * lib/copy-file.c: Include <unistd.h> unconditionally.
45853 * lib/execute.c: Likewise.
45854 * lib/fatal-signal.c: Likewise.
45855 * lib/findprog.c: Likewise.
45856 * lib/mkdtemp.c: Likewise.
45857 * lib/pipe.h: Likewise.
45858 * lib/pipe.c: Likewise.
45859 * lib/wait-process.h: Likewise.
45861 2006-04-23 Bruno Haible <bruno@clisp.org>
45863 * gnulib-tool (func_usage): Fix --import description. Document
45865 (func_import): Create temporary file in a temporary directory, if
45866 --dry-run is specified. Silence errors from 'grep' when there are no
45867 m4 files in $m4dir.
45868 (func_create_testdir): Silence errors from 'grep' when there are no
45869 m4 files in $m4dir.
45870 Reported by Karl Berry <karl@freefriends.org>.
45872 2006-04-20 Bruno Haible <bruno@clisp.org>
45874 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
45875 one argument, so that the code will be portable to Autoconf 2.60.
45876 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
45877 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45878 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
45880 2006-04-19 Derek Price <derek@ximbiot.com>
45881 Eric Blake <ebb9@byu.net>
45883 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
45884 rather than "/full/path.h". Update comment to match. Shorten &
45885 generalize m4_translit call via AS_TR_CPP.
45887 2006-04-19 Derek Price <derek@ximbiot.com>
45888 Eric Blake <ebb9@byu.net>
45890 * lib/inttypes.h: Correct grammar in comment.
45892 2006-04-18 Derek Price <derek@ximbiot.com>
45893 Paul Eggert <eggert@cs.ucla.edu>
45895 * modules/inttypes: New file.
45896 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
45898 2006-04-18 Derek Price <derek@ximbiot.com>
45899 Paul Eggert <eggert@cs.ucla.edu>
45901 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
45904 2006-04-18 Derek Price <derek@ximbiot.com>
45905 Paul Eggert <eggert@cs.ucla.edu>
45907 * lib/inttypes.h: New file.
45908 * lib/strtoimax.c: Assume <inttypes.h>.
45910 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
45912 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
45913 isn't mounted. Problem reported by Kir Kolyshkin.
45915 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
45917 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
45918 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
45920 * lib/regex.h (RE_DUP_MAX): Update comment to match current
45923 2006-04-12 Eric Blake <ebb9@byu.net>
45925 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
45926 is now done automatically by the corresponding Autoconf macro.
45928 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
45930 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
45933 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
45935 Merge regex changes from libc, removing some of our
45936 POSIX-conformance changes that were rejected and redoing them in a
45937 less-intrusive way.
45939 * lib/regcomp.c (re_compile_internal, init_dfa):
45940 Length arg is now size_t, not Idx. All uses changed.
45941 (peek_token): Forward decl now says internal_function.
45942 (__re_error_msgid, __re_error_msgid_idx):
45943 Now static rather than extern with attribute_hidden.
45944 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
45945 For some reason libc prefers K&R style defns for external functions.
45946 (regerror) [!defined _LIBC]: Likewise.
45947 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
45948 (seek_collating_symbol_entry, lookup_collation_sequence_value):
45949 (build_range_exp, build_collating_symbol):
45950 Use K&R-style defn.
45951 (re_compile_fastmap): Use '\0' to memset, not 0.
45952 (utf8_sb_map): Make the calculations more obvious.
45953 (init_dfa, parse_bracket_exp, build_charclass_op):
45954 Call calloc and cast result, as glibc does.
45955 (init_word_char, fetch_token, peek_token, peek_token_bracket):
45956 (build_range_exp, build_collating_symbol):
45957 Now internal functions.
45959 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
45961 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
45962 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
45963 Don't depend on VMS; depend on __VMS instead, for POSIX
45964 namespace cleanness.
45965 (regoff_t): Define to ssize_t, not long int.
45967 Remove the REG_ macros named below. Instead, make the old names
45968 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
45970 (REG_BACKSLASH_ESCAPE_IN_LISTS):
45971 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
45972 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
45973 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
45974 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
45975 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
45976 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
45977 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
45978 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
45979 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
45980 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
45981 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
45982 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
45983 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
45984 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
45985 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
45986 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
45988 Remove. All uses replaced by the old RE_* names.
45989 (RE_BACKSLASH_ESCAPE_IN_LISTS):
45990 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
45991 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
45992 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
45993 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
45994 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
45995 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
45996 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
45997 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
45998 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
45999 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
46000 Don't bother having these macros be independent of each others'
46001 values, since they no longer exist in the POSIX name space.
46003 Rename the following member names back to their old names,
46004 unless !__USE_GNU_REGEX. All uses changed back.
46005 (buffer): Renamed from re_buffer.
46006 (allocated): Renamed from re_allocated.
46007 (used): Renamed from re_used.
46008 (syntax): Renamed from re_syntax.
46009 (fastmap): Renamed from re_fastmap.
46010 (translate): Renamed from re_translate.
46011 (can_be_null): Renamed from re_can_be_null.
46012 (regs_allocated): Renamed from re_regs_allocated.
46013 (fastmap_accurate): Renamed from re_fastmap_accurate.
46014 (no_sub): Renamed from re_no_sub.
46015 (not_bol): Renamed from re_not_bol.
46016 (not_eol): Renamed from re_not_eol.
46017 (newline_anchor): Renamed from re_newline_anchor.
46018 (num_regs): Renamed from rm_num_regs.
46019 (start): Renamed from rm_start.
46020 (end): Renamed from rm_end.
46022 (free_state): Move up a bit.
46024 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
46025 #define to be empty.
46026 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
46027 when that is what is intended.
46028 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
46029 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
46031 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
46032 All uses changed back to re_malloc, etc. It's now the caller's
46033 responsibility to check for overflow; all callers changed.
46034 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
46035 (re_x2nrealloc): Remove.
46036 (free_state): Remove decl.
46038 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
46039 (re_set_registers, re_exec):
46040 Use K&R-style defn.
46042 2006-01-31 Roland McGrath <roland@redhat.com>
46044 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
46045 Reported by Mike Frysinger <vapier@gentoo.org>.
46047 2006-01-15 Andreas Jaeger <aj@suse.de>
46050 * lib/regex_internal.c (re_string_reconstruct): Adjust for
46051 build_wcs_upper_buffer change.
46052 (build_wcs_upper_buffer): Change return type.
46054 2005-12-10 Ulrich Drepper <drepper@redhat.com>
46056 * lib/regex_internal.h: Include <stdint.h> if available.
46058 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
46060 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
46062 2005-10-14 Ulrich Drepper <drepper@redhat.com>
46064 * lib/regcomp.c: Adjust for changed secondary hash function.
46066 2005-09-30 Ulrich Drepper <drepper@redhat.com>
46068 * lib/regex.h: Pretty printing.
46069 Clean up namespace a bit.
46071 2005-09-30 Jakub Jelinek <jakub@redhat.com>
46073 * lib/regexec.c (update_cur_sifted_state, check_arrival,
46074 check_arrival_add_next_nodes): Avoid using uninitialized variable.
46076 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
46077 Ulrich Drepper <drepper@redhat.com>
46080 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
46082 (bitset_word_t): Renamed from bitset_word. All uses changed.
46084 2005-09-22 Ulrich Drepper <drepper@redhat.com>
46087 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
46088 * lib/regcomp.c: Remove unnecessary uses of
46089 unsigned RE_TRANSLATE_TYPE.
46090 * lib/regex_internal.h: Likewise.
46091 * lib/regex_internal.c: Likewise.
46092 * lib/regexec.c: Likewise.
46093 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
46095 2005-09-07 Ulrich Drepper <drepper@redhat.com>
46097 * lib/regexec.c (find_recover_state): Remove unnecessary
46099 (transit_state_bkref): Make DFA a const pointer.
46100 (get_subexp): Likewise.
46101 (check_arrival): Likewise.
46102 (update_cur_sifted_state): Likewise.
46103 (re_search_internal): Likewise.
46104 (prune_impossible_nodes): Likewise.
46105 (acquire_init_state_context): Likewise.
46106 (proceed_next_node): Likewise.
46107 (set_regs): Likewise.
46108 (free_fail_stack_return): Likewise.
46109 (check_arrival_expand_ecl): Mark DFA parameter as const.
46110 (check_arrival_expand_ecl_sub): Likewise.
46111 (check_subexp_limits): Likewise.
46112 (sub_epsilon_src_nodes): Likewise.
46113 (add_epsilon_src_nodes): Likewise.
46114 (merge_state_array): Likewise.
46115 (update_regs): Likewise.
46116 (build_trtable): Likewise.
46117 (sift_states_backward): Mark MCTX parameter as const.
46118 (build_sifted_states): Likewise.
46119 (update_cur_sifted_state): Likewise.
46120 (sift_states_mkref): Likewise.
46121 (check_arrival_expand_ecl): Mark eclosure as const.
46122 (check_dst_limits_calc_pos_1): Likewise.
46123 * lib/regex_internal.h (re_match_context_t): Make dfa a const
46126 2005-09-06 Ulrich Drepper <drepper@redhat.com>
46128 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
46129 (transit_state_sb): Likewise.
46130 (transit_state_mb): Likewise.
46131 (sift_states_iter_mb): Likewise.
46132 (check_arrival_add_next_nodes): Likewise.
46133 (check_node_accept_bytes): Change first parameter to pointer-to-const.
46134 [_LIBC] (re_search_2_stub): Use mempcpy.
46136 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
46137 mbrtowc for very simple UTF-8 case.
46139 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
46140 a pointer-to-const.
46141 (re_acquire_state_context): Likewise.
46142 * lib/regex_internal.h: Adjust prototypes.
46144 * lib/regex.c: Prevent using C++ compilers.
46146 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
46147 (re_acquire_state_context): Likewise.
46149 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
46151 * modules/regex (Depends-on): Add ssize_t.
46153 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
46155 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
46158 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
46160 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
46162 2006-03-29 Mark D. Baushke <mdb@gnu.org>
46163 Bruno Haible <bruno@clisp.org>
46165 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
46166 <sys/types.h> and <inttypes.h>.
46168 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46170 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
46171 `__error_t_defined', so argp.h will not typedef the former.
46173 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
46175 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
46176 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
46177 glibc names. Even if glibc is changed to conform to POSIX, the
46178 traditional names will be available anyway, since regex depends on
46179 the extensions module. Also, fix a longstanding typo in the
46180 implementation of Spencer ERE test #75 from grep 2.3. Problems
46181 reported by Emanuele Giaquinta. Also, change sense of cached
46182 variable, so that the message makes sense.
46184 2006-03-24 Simon Josefsson <jas@extundo.com>
46186 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
46187 including some doc fixes.
46188 (base64_encode_alloc): Fix +1 bug on allocation failures.
46190 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46192 * lib/base64.c (base64_encode): Do not read past end of array with
46193 unsanitized input on systems with CHAR_BIT > 8.
46195 2006-03-24 Eric Blake <ebb9@byu.net>
46197 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
46199 2006-03-22 Karl Berry <karl@gnu.org>
46201 * config/srclist.txt (*setenv.[ch]): get from coreutils.
46202 * config/srclistvars.sh (COREUTILS): new var.
46204 2006-03-17 Jim Meyering <jim@meyering.net>
46206 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
46207 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
46209 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
46211 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
46212 no longer needs it. Instead, check that regoff_t is as least
46213 as wide as ptrdiff_t.
46215 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
46216 so that our regex.h stays compatible with the installed regex.
46217 This is helpful for installers who configure --without-included-regex.
46218 Problem reported by Emanuele Giaquinta.
46220 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
46222 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
46223 Typedef to long int, not to off_, as POSIX will likely change
46226 2006-03-15 Eric Blake <ebb9@byu.net>
46228 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
46230 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
46232 * lib/argp-help.c (validate_uparams): Fix typo
46233 * lib/argp-parse.c (argp_default_options): Consistently begin help
46234 messages with a lowercase letter.
46236 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
46238 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
46239 overrun buffers and shouldn't be used (much as gets shouldn't be
46241 * lib/time_r.c (asctime_r, ctime_r): Likewise.
46243 2006-03-08 Simon Josefsson <jas@extundo.com>
46245 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
46246 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46248 2006-03-08 Simon Josefsson <jas@extundo.com>
46250 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
46251 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46253 2006-03-08 Simon Josefsson <jas@extundo.com>
46255 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
46256 signal that configure disabled the device.
46258 2006-03-08 Simon Josefsson <jas@extundo.com>
46260 * build-aux/maint.mk: Fix refresh-po, to handle no translated
46263 2006-03-07 Simon Josefsson <jas@extundo.com>
46265 * modules/getopt (Depends-on): Add unistd.
46267 * modules/unistd: New file.
46269 2006-03-07 Simon Josefsson <jas@extundo.com>
46271 * modules/gc-random: New file.
46273 2006-03-07 Simon Josefsson <jas@extundo.com>
46275 * m4/unistd_h.m4: New file.
46277 2006-03-07 Simon Josefsson <jas@extundo.com>
46279 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
46280 test to be side-effect free by storing the result in the cache
46281 variable gl_cv_lib_readline, and moving the assignment of
46282 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
46283 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46285 2006-03-07 Simon Josefsson <jas@extundo.com>
46287 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
46288 error on missing devices (the functions will return an error).
46290 * m4/gc.m4: Move random stuff to gc-random.m4
46292 2006-03-07 Simon Josefsson <jas@extundo.com>
46294 * lib/unistd_.h: New file.
46296 2006-03-07 Simon Josefsson <jas@extundo.com>
46298 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
46300 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
46302 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
46303 Problem reported by Juan Manuel Guerrero.
46305 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
46307 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
46309 * lib/getlogin_r.c: Likewise.
46310 * lib/getlogin_r.h: Likewise.
46311 * lib/glob.c: Likewise.
46312 * lib/pagealign_alloc.c: Likewise.
46313 * lib/unistd_.h: Remove; no longer needed.
46315 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
46317 * MODULES.html.sh (Support for systems lacking POSIX:2001):
46319 * modules/c-stack (Depends-on): Add unistd.
46320 * modules/getlogin_r: Likewise.
46321 * modules/glob: Likewise.
46322 * modules/pagealign_alloc: Likewise.
46323 * modules/unistd (Files): Remove lib/unistd_.h.
46324 (EXTRA_DIST): Remove.
46325 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
46327 (MOSTLYCLEANFILES): Remove unistd.h-t.
46329 2006-03-03 Simon Josefsson <jas@extundo.com>
46331 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
46333 2006-03-03 Simon Josefsson <jas@extundo.com>
46335 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
46338 2006-03-03 Simon Josefsson <jas@extundo.com>
46340 * build-aux/maint.mk: Add indent target.
46342 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
46344 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
46345 our replacement poll.h in any case, to avoid a differing
46346 declaration from a system header. Seen on AIX.
46348 2006-03-01 Simon Josefsson <jas@extundo.com>
46350 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
46353 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
46355 * modules/gettime (Depends-on): Add extensions module.
46356 * modules/nanosleep (Depends-on): Likewise.
46357 * modules/settime (Depends-on): Likewise.
46359 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
46361 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
46362 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
46364 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46365 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
46367 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
46368 not "==". Reported by Ralf Wildenhues.
46370 2006-03-01 Karl Berry <karl@gnu.org>
46372 * doc/Copyright/request-*: new files, synced from gnuorg.
46374 2006-03-01 Karl Berry <karl@gnu.org>
46376 * config/srclist.txt (Copyright/*): new entries.
46378 2006-02-28 Simon Josefsson <jas@extundo.com>
46380 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
46382 2006-02-27 Simon Josefsson <jas@extundo.com>
46384 * lib/base64.h: Indent #define's. From Jim Meyering
46385 <jim@meyering.net>.
46387 2006-02-27 Jim Meyering <jim@meyering.net>
46389 Revert the change of 2006-02-24, so these files can continue
46390 to be sync'd from gettext.
46391 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
46394 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
46396 * modules/intprops: New file.
46397 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
46399 * modules/getloadavg (Files): Remove lib/intprops.h.
46400 (Depends-on): Add intprops.
46401 * modules/human: Likewise.
46402 * modules/inttostr: Likewise.
46403 * modules/openat: Likewise.
46404 * modules/sig2str: Likewise.
46405 * modules/userspec: Likewise.
46406 * modules/utimecmp: Likewise.
46407 * modules/xnanosleep: Likewise.
46408 * modules/xstrtol: Likewise.
46410 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
46412 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
46413 * modules/lock-tests (TESTS): Use $(EXEEXT).
46414 * modules/tls-tests: Likewise.
46415 * modules/argp-tests: Likewise.
46416 (check_PROGRAMS): New var, replacing...
46417 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
46419 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46421 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
46424 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
46426 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
46428 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46430 Sync from coreutils.
46431 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
46434 2006-02-22 Jim Meyering <jim@meyering.net>
46436 Sync from coreutils.
46437 * m4/chdir-safer.m4: New file.
46439 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
46441 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
46442 AT_FDCWD exceeds INT_MAX.
46443 * lib/openat.h (AT_FDCWD): Likewise.
46445 2006-02-17 Eric Blake <address@hidden>
46447 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
46449 2006-02-16 Simon Josefsson <jas@extundo.com>
46451 * modules/getaddrinfo (Depends-on): Add sys_socket.
46453 2006-02-15 Simon Josefsson <jas@extundo.com>
46455 * build-aux/maint.mk: Add dsyntax-check rule.
46457 2006-02-15 Eric Blake <ebb9@byu.net>
46459 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
46460 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
46461 'present but cannot compile' warnings on cygwin.
46462 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
46463 use ws2tcpip.h if sys/socket.h works.
46464 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
46465 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
46467 2006-02-14 Simon Josefsson <jas@extundo.com>
46469 * modules/maintainer-makefile (Files): Rename.
46471 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
46472 and (the local) Makefile.cfg to maint-cfg.mk.
46474 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
46477 * modules/maintainer-makefile: New module.
46479 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
46480 severaly stripped to make it possible to build it up from scratch
46481 with reliable tests.
46483 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
46484 fixes to permit overriding the default actions when configure and
46485 makefile are not available.
46487 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
46489 Sync from coreutils.
46490 * modules/lstat (Depends-on): Don't depend on xalloc.
46491 (License): Change from GPL to LGPL, since this is now simply a
46492 replacement for a libc function.
46494 2006-02-14 Jim Meyering <jim@meyering.net>
46496 Sync from coreutils.
46498 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
46499 failure on deficient systems, and simplify gnulib lgpl dependencies.
46500 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
46501 xmalloc/lstat combination. Based on a patch from Bruno Haible.
46503 * lib/xalloc-die.c: Remove unused definition of N_.
46505 2006-02-14 Jim Meyering <jim@meyering.net>
46507 Sync from coreutils.
46508 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
46509 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
46510 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
46511 double-quote uses of that variable, to accommodate the rare case in
46512 which getmntent is available in none of the libraries checked. This
46513 happens at least on FreeBSD 5.0.
46515 2006-02-13 Simon Josefsson <jas@extundo.com>
46517 * gnulib-tool (Usage): Fix --import, from
46518 karl@freefriends.org (Karl Berry).
46520 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
46522 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
46524 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
46526 * lib/argp-namefrob.h: Restore changes accidentally lost during the
46527 "autoupdate" on 2005-12-12.
46529 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
46531 * modules/closeout (Depends-on): Remove atexit.
46533 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
46535 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
46536 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
46538 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
46540 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
46541 __EXTENSIONS__ if this causes compilation to fail. Problem
46542 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
46543 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
46545 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
46547 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
46548 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
46549 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
46552 2006-01-26 Simon Josefsson <jas@extundo.com>
46554 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
46555 prototype is visible on mingw32.
46557 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
46560 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
46563 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
46565 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
46566 attempt to open for write; this always fails, at least on POSIX
46567 hosts. This reinstates the 2006-01-09 change, which was
46568 inadvertently removed.
46570 2006-01-26 Bruno Haible <bruno@clisp.org>
46572 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
46573 Reported by Paul Eggert.
46575 2006-01-26 Bruno Haible <bruno@clisp.org>
46576 Paul Eggert <eggert@cs.ucla.edu>
46578 * lib/stdbool_.h (_Bool)
46579 [(! (defined __cplusplus || defined __BEOS__)
46580 && !defined __GNUC__
46581 && !(defined __HP_cc || defined __xlc__
46582 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
46583 || defined __sgi))]:
46584 #define to signed char in these cases too; this simplifies
46585 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
46586 etc., separately) and makes it more conservative.
46588 2006-01-25 Simon Josefsson <jas@extundo.com>
46590 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
46591 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
46592 ws2tcpip.h with WINVER=0x0501. All for mingw32.
46594 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
46596 * lib/argp-namefrob.h: Bugfix. Remove stray #
46598 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
46600 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
46601 so that we test the test.
46602 Check for yet another HP-UX cc bug involving *bool |= bool.
46604 2006-01-25 Karl Berry <karl@gnu.org>
46606 * config/srclist.txt (vasnprintf.c): sync lost.
46608 2006-01-25 Jim Meyering <jim@meyering.net>
46610 Sync from the stable (b5) branch of coreutils:
46612 * lib/fts.c (fts_children): Don't let close() clobber errno from
46615 * lib/fts.c (fts_stat): When following a symlink-to-directory,
46616 don't necessarily interpret stat-fails+lstat-succeeds as indicating
46617 a dangling symlink. That can also happen at least for ELOOP.
46618 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
46619 FYI, this bug predates the inclusion of fts.c in coreutils.
46621 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
46622 in their own block, so pre-c99 compilers don't object.
46624 Avoid the double-free (first in fts_read, second in fts_close) that
46625 would occur when an `active' directory is made inaccessible (e.g.,
46626 via chmod a-x) during a traversal.
46627 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
46628 before returning. Reproduce this failure by
46629 mkdir -p a/b; cd a; chmod a-x . b
46630 Reported by Stavros Passas.
46632 2006-01-25 Jim Meyering <jim@meyering.net>
46634 * lib/fileblocks.c: Remove more useless parentheses.
46635 * lib/readutmp.h: Likewise.
46637 2006-01-25 Bruno Haible <bruno@clisp.org>
46639 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
46641 Reported by Paul Eggert.
46643 2006-01-25 Bruno Haible <bruno@clisp.org>
46645 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
46646 rid of a trap command. For Solaris sh.
46647 Reported by Mark D. Baushke <mdb@gnu.org>.
46649 2006-01-24 Simon Josefsson <jas@extundo.com>
46651 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
46654 2006-01-24 Karl Berry <karl@gnu.org>
46656 * config/srclist.txt (argp-namefrob.h): sync lost.
46658 2006-01-24 Jim Meyering <jim@meyering.net>
46660 * modules/openat (Files): Add lib/intprops.h.
46661 From Mark D. Baushke.
46663 2006-01-24 Jim Meyering <jim@meyering.net>
46665 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
46666 Reported by Mark D. Baushke.
46668 2006-01-24 Jim Meyering <jim@meyering.net>
46670 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
46672 2006-01-24 Bruno Haible <bruno@clisp.org>
46674 * modules/strnlen (Maintainer): Change from glibc to all.
46676 2006-01-24 Bruno Haible <bruno@clisp.org>
46678 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
46679 Patch by Paul Eggert.
46681 2006-01-24 Bruno Haible <bruno@clisp.org>
46683 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
46685 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
46688 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
46689 'signed char' to avoid problems with the built-in _Bool type.
46690 Reported by Paul Eggert on 2005-11-26.
46692 2006-01-24 Bruno Haible <bruno@clisp.org>
46694 * gnulib-tool (func_import): Avoid constructing complicated sed
46695 expressions inside backquote.
46696 Report and solution by Mark D. Baushke <mdb@gnu.org>.
46698 2006-01-23 Ulrich Drepper <drepper@redhat.com>
46700 These changes imported from libc.
46701 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
46702 test and two separate function calls.
46703 * lib/strndup.c (__strndup): Add libc_hidden_def.
46705 2006-01-23 Simon Josefsson <jas@extundo.com>
46707 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
46708 Remove the test_*_SOURCES variable: automake infers it by default.
46709 * modules/tls-tests: Likewise.
46711 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
46713 Work around porting bugs reported by Dieter in
46714 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
46715 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
46716 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
46717 Include "getopt.h" first, to check interface.
46718 (getenv): Declare only if defined HAVE_DECL_GETENV &&
46720 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
46721 (__strndup): Revert to K&R-style function dfns, the glibc style.
46722 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
46723 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
46724 Include strnlen.h first, to get prototype properly.
46725 (strnlen): Renamed from __strnlen.
46728 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
46730 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
46732 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
46734 * config/srclist.txt: Adjust to reflect glibc reorganization.
46735 This affects only comments.
46737 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
46739 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
46740 Reported by Bruce Korb <bkorb@gnu.org>.
46742 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
46744 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
46745 to pacify gcc -Wswitch-default.
46747 2006-01-22 Bruno Haible <bruno@clisp.org>
46749 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
46750 temporary buffer for sprintf, take into account the precision also
46751 for 'd', 'i', 'u', 'o', 'x', 'X'.
46753 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
46755 * modules/argp-tests: New module
46756 * tests/test-argp.c: New file
46757 * tests/test-argp-2.sh: New file
46759 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
46761 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
46762 (__argp_base_name): Removed
46763 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
46765 (__argp_base_name): Provide macro definition or extern declaration
46766 depending on the configuration
46768 2006-01-20 Simon Josefsson <jas@extundo.com>
46770 * modules/inet_ntop (Depends-on): Depend on sys_socket.
46772 2006-01-20 Simon Josefsson <jas@extundo.com>
46774 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
46776 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
46778 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
46779 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
46780 Suggested by Bruno Haible.
46782 2006-01-20 Karl Berry <karl@gnu.org>
46784 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
46785 until changes propagate, I guess.
46787 2006-01-19 Simon Josefsson <jas@extundo.com>
46789 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
46791 2006-01-19 Simon Josefsson <jas@extundo.com>
46793 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
46795 2006-01-19 Simon Josefsson <jas@extundo.com>
46797 * gnulib-tool: Set check_PROGRAMS.
46799 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
46800 modules/des-tests, modules/gc-arcfour-tests,
46801 modules/gc-arctwo-tests, modules/gc-des-tests,
46802 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
46803 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
46804 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
46805 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
46806 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
46807 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
46808 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
46811 2006-01-18 Simon Josefsson <jas@extundo.com>
46813 * modules/socklen (Depends-on): Depend on sys_socket.
46815 2006-01-18 Simon Josefsson <jas@extundo.com>
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: Add
46826 $(EXEEXT) to automake TESTS variable, for mingw32.
46828 2006-01-17 Simon Josefsson <jas@extundo.com>
46830 * modules/socklen (Include): Need sys/socket.h.
46832 2006-01-17 Bruno Haible <bruno@clisp.org>
46834 * modules/ssize_t (Include): Add <sys/types.h>.
46836 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
46838 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
46839 it's not portable and it doesn't work with cross-compiles.
46840 Problem reported by Bruno Haible. Fix missing-$ typo in
46841 'test "gl_cv_ignore_unused_libraries" ...' that prevented
46842 -zignore from being used with Sun's C compiler.
46844 2006-01-12 Simon Josefsson <jas@extundo.com>
46846 * lib/base64.c: Fix warning, reported by Bruno Haible
46847 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
46849 2006-01-12 Bruno Haible <bruno@clisp.org>
46851 * modules/ldd: New file.
46852 * build-aux/ldd.sh.in: New file.
46853 * MODULES.html.sh (Support for building libraries and executables): Add
46856 2006-01-12 Bruno Haible <bruno@clisp.org>
46858 * m4/ldd.m4: New file.
46860 2006-01-12 Bruno Haible <bruno@clisp.org>
46862 * gnulib-tool (func_import, func_create_testdir): Don't go into an
46863 endless loop while replacing $auxdir with build-aux.
46865 2006-01-11 Simon Josefsson <jas@extundo.com>
46867 * lib/stdint_.h (SIZE_MAX): Add missing (.
46869 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
46871 Sync from coreutils.
46872 * lib/md5.c: Fix commentary typos.
46873 (alignof, UNALIGNED_P): No need for a GCC-specific version.
46874 * lib/md5.h (__attribute__): Remove; unused.
46875 * lib/sha1.c: Fix commentary to match md5 better.
46876 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
46877 so that we don't need to worry about alignment. All uses changed.
46878 This merges the 2005-10-28 md5 change into sha1.
46880 2006-01-11 Jim Meyering <jim@meyering.net>
46882 Sync from coreutils.
46883 * lib/md5.c (OP): Fix spacing.
46885 2006-01-11 Bruno Haible <bruno@clisp.org>
46887 Ensure automatic ordering between gl_LOCK and gl_ARGP.
46888 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
46889 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
46891 2006-01-11 Bruno Haible <bruno@clisp.org>
46893 Ensure automatic ordering between gl_LOCK and gl_ARGP.
46894 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
46895 the "early" section as well.
46897 2006-01-11 Bruno Haible <bruno@clisp.org>
46899 Avoid "ar: no archive members specified" error on MacOS X.
46900 * gnulib-tool (func_modules_add_dummy): New function.
46901 (func_import, func_create_testdir): Invoke it.
46903 2006-01-11 Bruno Haible <bruno@clisp.org>
46905 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
46906 with $auxdir in AC_CONFIG_FILES statements.
46908 2006-01-11 Bruno Haible <bruno@clisp.org>
46910 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46911 Initialize also noinst_HEADERS to empty.
46913 2006-01-11 Bruno Haible <bruno@clisp.org>
46915 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
46917 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
46920 2006-01-11 Bruno Haible <bruno@clisp.org>
46922 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
46923 overridable by the user.
46924 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46926 2006-01-10 Simon Josefsson <jas@extundo.com>
46928 * modules/sys_socket: New file.
46930 2006-01-10 Simon Josefsson <jas@extundo.com>
46932 * m4/sys_socket_h.m4: New file.
46934 2006-01-10 Simon Josefsson <jas@extundo.com>
46936 * lib/socket_.h: New file.
46938 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
46940 * modules/readutmp (Maintainer): Add myself.
46942 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
46944 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
46945 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
46946 People who are still concerned with buggy memcmp implementations
46947 can invoke gl_FUNC_MEMCMP themselves.
46949 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
46951 * lib/regex_internal.h (BITSET_WORD_BITS):
46952 Work around a bug in 64-bit PGC (before version 6.1-2), where the
46953 preprocessor mishandles large unsigned values as if they were signed.
46954 Problem reported by Claudio Fontana in
46955 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
46957 2006-01-10 Jim Meyering <jim@meyering.net>
46959 Avoid the double-free (first in fts_read, second in fts_close) that
46960 would occur when an `active' directory is made inaccessible (e.g.,
46961 via chmod a-x) during a traversal.
46962 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
46963 before returning. Reproduce this failure by
46964 mkdir -p a/b; cd a; chmod a-x . b
46965 Reported by Stavros Passas.
46967 Sync from coreutils.
46968 * lib/sha1.c: Tweak grammar in a comment.
46970 2006-01-10 Jim Meyering <jim@meyering.net>
46972 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
46973 Patch by Joerg Sonnenberger.
46975 2006-01-10 Bruno Haible <bruno@clisp.org>
46977 * modules/readutmp: Depend on module free.
46978 * modules/strtok_r: Depend on module restrict.
46980 2006-01-10 Bruno Haible <bruno@clisp.org>
46982 * modules/gettext (configure.ac): Add an invocation of
46983 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
46985 2006-01-10 Bruno Haible <bruno@clisp.org>
46987 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
46988 Reported by Werner Lemberg <wl@gnu.org>.
46990 2006-01-10 Bruno Haible <bruno@clisp.org>
46992 * lib/localcharset.c: Update from GNU gettext.
46994 2006-01-10 Bruno Haible <bruno@clisp.org>
46996 * lib/argp.h (__const): Remove macro. Use const instead.
46997 * lib/argp-fmtstream.h (__const): Likewise.
46998 * lib/glob_.h (__const): Remove macro.
46999 * lib/glob-libc.h: Use const instead of __const.
47001 2006-01-10 Bruno Haible <bruno@clisp.org>
47003 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
47005 Needed to avoid an automake error regarding the 'gettext' module.
47007 2006-01-09 Simon Josefsson <jas@extundo.com>
47009 * modules/inet_ntop (Depends-on): Add restrict.
47011 2006-01-09 Simon Josefsson <jas@extundo.com>
47013 * modules/gc-rijndael-tests (License): Put under LGPL.
47015 * modules/gc-des-tests (License): Likewise.
47017 * modules/gc-arcfour-tests (License): Likewise.
47019 * modules/gc-arctwo-tests (License): Likewise.
47021 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
47023 * modules/gc-hmac-sha1-tests (Files): Likewise.
47025 * modules/gc-hmac-md5-tests (License): Likewise.
47027 * modules/gc-sha1-tests (License): Likewise.
47029 * modules/gc-md5-tests (License): Likewise.
47031 * modules/gc-md4-tests (License): Likewise.
47033 * modules/gc-md2-tests (License): Likewise.
47035 * modules/gc-tests (License): Likewise.
47037 * modules/des-tests (License): Likewise.
47039 * modules/md4-tests (License): Likewise.
47041 * modules/md2-tests (License): Likewise.
47043 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47045 Sync from coreutils:
47047 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
47048 * modules/lib-ignore: New file.
47049 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
47050 chdir-safer.m4, lchmod.m4.
47051 * modules/openat: Add mkdirat.c, openat-priv.h.
47053 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47055 Sync from coreutils.
47056 * m4/lib-ignore.m4: New file.
47057 * m4/lchmod.m4: New file.
47059 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47061 Sync from coreutils.
47062 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
47063 for write access: POSIX says that must fail.
47064 * lib/fts.c (diropen): Likewise.
47065 * lib/save-cwd.c (save_cwd): Likewise.
47066 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
47067 well, for minor improvements on hosts that lack O_DIRECTORY.
47068 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
47069 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
47070 Fall back on chown if open failed with EACCES.
47072 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
47073 Report an error at compile-time if only a 1-second nominal clock
47074 resolution is found.
47076 * lib/lchmod.h: New file.
47077 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
47078 (make_dir_parents): Use lchown rather than chown, and
47079 lchmod rather than chmod.
47081 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
47082 dummies too. Problem with "none" reported by Bob Proulx. Problem with
47083 "proc" reported by n0dalus.
47085 * lib/mountlist.c: Include <limits.h>.
47086 (dev_from_mount_options)
47087 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
47088 New function. It no longer assumes "dev=" has the System V meaning
47089 on Linux (since it doesn't). It also parses "dev=" more carefully.
47090 (read_file_system_list)
47091 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
47092 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
47095 * lib/posixtm.h (PDS_PRE_2000): New macro.
47096 * lib/posixtm.c (year): Arg is now syntax_bits rather than
47097 allow_century. All usages changed. Reject dates outside the range
47098 1969-1999 if PDS_PRE_2000 is used.
47100 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
47102 Sync from coreutils.
47103 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
47104 (Time of day items): Mention the possibility of leap seconds.
47105 Problem reported by Dr. David Alan Gilbert.
47107 2006-01-09 Jim Meyering <jim@meyering.net>
47109 Sync from coreutils.
47111 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
47113 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
47115 * lib/modechange.c (mode_compile): Reject an invalid mode string
47116 that starts with an octal digit. From Andreas Gruenbacher.
47118 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
47119 and dup to open_safer and dup_safer, respectively.
47120 (openat_permissive): Fix typo in comment.
47122 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
47123 "gettext.h"; either no longer needed or are guaranteed by openat.h.
47124 (_): Remove; no longer needed.
47125 (openat): Renamed from rpl_openat; no need for rpl_openat
47126 since openat.h renames openat for us.
47127 Replace most of the body with a call to openat_permissive,
47128 to avoid duplicate code.
47129 Port to (probably hypothetical) environments were mode_t is
47131 (openat_permissive): Require mode arg, so that we can check
47132 types better. Put it just after flags. Change cwd failure
47133 indicator from pointer-to-bool to pointer-to-errno-value.
47134 All callers changed.
47135 Invoke openat_save_fail and/or openat_restore_fail if
47136 cwd_errno is null, so that openat can call us.
47137 (openat_permissive, fdopendir, fstatat, unlinkat):
47138 Simplify errno handling to avoid some duplicate code,
47139 as it's OK to set errno on success.
47140 * lib/openat.h: Revamp code so that function macros depend on
47141 __OPENAT_PREFIX only, not also on AT_FDCWD.
47142 (openat_ro): Remove. Caller changed to use openat_permissive.
47143 (openat_permissive): Now a macro, if not a function.
47144 (openat_restore_fail, openat_save_fail): Now always functions,
47145 since mkdirat needs them even if __OPENAT_PREFIX is defined.
47147 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
47149 * lib/mkdirat.c: Include openat-priv.h.
47150 Remove definitions of macros defined therein.
47151 * lib/openat.c: Likewise.
47153 * lib/mkdirat.c (mkdirat): New file and function.
47154 * lib/openat.h (mkdirat): Declare.
47156 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
47158 * lib/openat.h (openat_permissive): Declare.
47159 (openat_ro): Define.
47161 * lib/openat.c (EXPECTED_ERRNO): New macro.
47162 (openat_permissive): New function -- used in remove.c rewrite.
47163 (all functions): Set errno just before returning, only if there
47164 was an actual failure.
47165 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
47167 Emulate openat-family functions using Linux's procfs, if possible.
47168 Idea and some code based on Ulrich Drepper's glibc changes.
47170 * lib/openat.c: (BUILD_PROC_NAME): New macro.
47171 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
47172 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
47173 before falling back on save_cwd and restore_cwd.
47174 (fdopendir, fstatat, unlinkat): Likewise.
47176 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
47177 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
47179 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
47180 as second argument to va_arg. Otherwise, some versions of gcc
47181 warn that `if this code is reached, the program will abort'.
47183 2006-01-09 Jim Meyering <jim@meyering.net>
47185 Sync from coreutils.
47186 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
47187 Require openat-priv.h.
47189 2006-01-09 Bruno Haible <bruno@clisp.org>
47191 * modules/strnlen (Include): Use strnlen.h.
47193 2006-01-09 Bruno Haible <bruno@clisp.org>
47195 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
47197 2006-01-09 Bruno Haible <bruno@clisp.org>
47199 * lib/sysexit_.h (EX_OK): New macro.
47200 Suggested by Martin Lambers <marlam@marlam.de>.
47202 2006-01-09 Bruno Haible <bruno@clisp.org>
47204 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
47205 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
47207 2006-01-09 Bruno Haible <bruno@clisp.org>
47209 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
47212 2006-01-09 Bruno Haible <bruno@clisp.org>
47214 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
47215 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
47216 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
47217 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
47219 2006-01-09 Bruno Haible <bruno@clisp.org>
47221 * build-aux/javacomp.sh.in: New file, moved from lib/.
47222 * modules/javacomp-script (Files): Update.
47223 (configure.ac): Add AC_CONFIG_FILES invocation.
47224 (EXTRA_DIST): Remove variable.
47226 * build-aux/javaexec.sh.in: New file, moved from lib/.
47227 * modules/javaexec (Files): Update.
47228 (configure.ac): Add AC_CONFIG_FILES invocation.
47229 (EXTRA_DIST): Remove javaexec.sh.in.
47231 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
47232 * modules/csharpcomp-script (Files): Update.
47233 (configure.ac): Add AC_CONFIG_FILES invocation.
47234 (EXTRA_DIST): Remove variable.
47236 * build-aux/csharpexec.sh.in: New file, moved from lib/.
47237 * modules/csharpexec (Files): Update.
47238 (configure.ac): Add AC_CONFIG_FILES invocation.
47239 (EXTRA_DIST): Remove csharpexec.sh.in.
47241 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
47243 Sync from coreutils.
47245 Add POSIX ACL support
47246 * lib/acl.h (copy_acl, set_acl): Add declarations.
47247 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
47248 systems other than Linux.
47249 (chmod_or_fchmod): New function: use fchmod when possible,
47250 and chmod otherwise.
47251 (file_has_acl): Add a POSIX ACL implementation, with a
47252 Linux-specific subcase.
47253 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
47254 S_ISVTX from one file to another. Fall back to fchmod/chmod when
47255 acls are unsupported.
47256 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
47257 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
47260 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
47262 Sync from coreutils.
47263 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
47265 2006-01-07 Bruno Haible <bruno@clisp.org>
47267 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
47270 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
47272 * lib/strftime.c (tzname): Don't declare if it is already #defined.
47273 Problem reported for Mingw by Mark Junker.
47275 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
47277 * README: Gnulib normally doesn't generate a tarball.
47279 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
47281 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
47282 long int, not int, for nanosecond counts, so that people who are
47283 used to POSIX struct timespec won't be surprised. Reported by Jim
47286 2005-12-28 Bruno Haible <bruno@clisp.org>
47288 * build-aux/config.rpath: Update from GNU gettext.
47290 2005-12-16 Jim Meyering <jim@meyering.net>
47292 * modules/fprintftime: New module.
47293 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
47295 2005-12-16 Jim Meyering <jim@meyering.net>
47297 * m4/fprintftime.m4: New file.
47299 2005-12-16 Jim Meyering <jim@meyering.net>
47301 * lib/fprintftime.c, lib/fprintftime.h: New files.
47303 2005-12-15 Simon Josefsson <jas@extundo.com>
47305 * modules/socklen (configure.ac): Fix M4 macro name, to align with
47308 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
47310 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
47311 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
47313 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
47315 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
47316 * lib/argp-help.c (fill_in_uparams): Check if the constructed
47317 struct uparams is valid. Fall back to the default values if it is
47320 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
47322 * modules/argp (Files): Add argp-pin.c
47323 (Depends-on): dirname
47324 (lib_SOURCES): Add argp-pin.c
47326 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
47328 * m4/argp.m4: Check if program_invocation_name and
47329 program_invocation_short_name are declared and define appropriate
47330 macros if they are not.
47332 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
47334 * lib/argp-help.c (__argp_base_name): New function
47335 (__argp_short_program_name): Rewrite using __argp_base_name
47336 * lib/argp-namefrob.h: Define program_invocation_name and
47337 program_invocation_short_name if requested
47338 (__argp_base_name): Add prototype
47339 * lib/argp-parse.c (argp_def): Use gettext wrappers
47340 (argp_default_parser): Use __argp_base_name
47341 * lib/argp-pin.c: New file. Defines program_invocation_name and
47342 program_invocation_short_name on systems that lack them.
47344 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
47346 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
47347 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
47348 porting problem reported by Georg Schwarz in
47349 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
47351 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
47353 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
47354 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
47355 porting problem reported by Georg Schwarz in
47356 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
47358 2005-12-05 Bruno Haible <bruno@clisp.org>
47360 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
47361 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
47362 Reported by Mark Junker <mjscod@gmx.de>.
47364 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
47366 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
47367 Use implementation from Albert Chin, with some
47368 comments/corrections by Stepan Kasal and myself.
47370 2005-12-02 Bruno Haible <bruno@clisp.org>
47372 * gnulib-tool (func_import): Accept GPLed build tool modules when
47374 * modules/csharpcomp-script: New file.
47375 * modules/csharpcomp: Depend on it.
47376 * modules/javacomp-script: New file.
47377 * modules/javacomp: Depend on it.
47378 Suggested by Simon Josefsson.
47380 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
47382 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
47383 statement, to work around an HP-UX 10.20 compiler bug reported by
47386 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
47388 * modules/savedir (Depends-on): Add openat.
47390 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
47392 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
47393 (uintmax_t) [defined uintmax_t]: Do not declare.
47394 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
47395 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
47396 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
47397 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
47398 sake of portability to weird hosts that C allows (though we don't
47399 know of any practical examples).
47401 * lib/savedir.h (fdsavedir): New decl.
47402 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
47403 contains most of the former guts of savedir.
47404 (savedir): Use savedirstream.
47405 Include "openat.h".
47407 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
47409 * modules/obstack (Files): Add m4/ulonglong.m4.
47410 Problem reported by Davide Angelocola.
47412 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
47414 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
47415 coreutils no longer futzes with rounding modes.
47417 2005-11-14 Jim Meyering <jim@meyering.net>
47419 * lib/mkstemp-safer.c: Include <config.h>, required for possible
47420 replacement of mkstemp.
47422 2005-11-10 Simon Josefsson <jas@extundo.com>
47424 * lib/readline.c: Remove EOL.
47426 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
47428 * modules/gethrxtime (Depends-on): Add gettime.
47430 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
47432 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
47433 or gettimeofday; no longer needed.
47435 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
47437 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
47439 (gethrxtime) [! (HAVE_NANOUPTIME
47440 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
47441 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
47442 our own approximation.
47444 2005-11-08 Eric Blake <ebb9@byu.net>
47446 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
47448 2005-11-08 Eric Blake <ebb9@byu.net>
47450 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
47452 2005-11-04 Bruno Haible <bruno@clisp.org>
47454 * gnulib-tool: Implement --update mode.
47456 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
47458 Fix porting problem reported by Theodoros V. Kalamatianos.
47459 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
47460 Don't assume that futimes failing means we must fail.
47462 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
47464 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
47465 variables to suggest the intended function of the PATH_MAX check.
47467 2005-10-30 Kean Johnston <jkj@sco.com>
47469 Trivial changes to support SCO systems.
47470 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
47472 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
47473 where __ptr is null when no I/O is pending.
47475 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
47477 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
47478 leave errno alone. Problem reported by Dmitry V. Levin.
47480 2005-10-28 Simon Josefsson <jas@extundo.com>
47482 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
47485 * tests/test-gc-md2.c, tests/test-md2.c: New files.
47487 * modules/md2, modules/md2-tests: New files.
47489 2005-10-28 Simon Josefsson <jas@extundo.com>
47491 * m4/inet_ntop.m4: More tests.
47493 * m4/gc-md2.m4, md2.m4: New file.
47495 2005-10-28 Simon Josefsson <jas@extundo.com>
47497 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
47498 "restrict" keywords, as per POSIX. Protect the function
47499 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
47500 Don't use K&R prototypes. Check the sprintf return values.
47501 Re-define EAFNOSUPPORT if not present. Indent.
47503 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
47504 suggested by Bruno Haible <bruno@clisp.org>.
47506 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
47508 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
47510 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
47513 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
47515 * lib/md2.h, lib/md2.c: New files.
47517 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
47519 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
47520 errno alone. Problem reported by Frederic Jolliton.
47522 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
47524 * modules/verify (License): Change from GPL to LGPL. This is a
47525 tiny module and there are apparently near-equivalents that are
47526 under the BSD license.
47528 2005-10-24 Simon Josefsson <jas@extundo.com>
47530 * modules/sha1: Relicense to LGPL.
47532 2005-10-24 Simon Josefsson <jas@extundo.com>
47534 * lib/md4.h: Shrink buffer size, now that we changed the type.
47536 2005-10-23 Simon Josefsson <jas@extundo.com>
47538 * gnulib-tool (func_import): Fix --tests-base.
47540 2005-10-22 Simon Josefsson <jas@extundo.com>
47542 * modules/arcfour (Depends-on): Need stdint.
47544 2005-10-22 Simon Josefsson <jas@extundo.com>
47546 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
47547 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
47549 2005-10-22 Simon Josefsson <jas@extundo.com>
47551 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
47552 suggested by Bruno Haible <bruno@clisp.org>.
47554 2005-10-22 Simon Josefsson <jas@extundo.com>
47556 * lib/crc.h: Include stddef.h, for size_t.
47558 2005-10-22 Simon Josefsson <jas@extundo.com>
47560 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
47561 arcfour_context struct (simplify test vector testing in GNU
47564 2005-10-21 Simon Josefsson <jas@extundo.com>
47566 * modules/des, modules/des-tests: New files.
47568 * modules/gc-des, modules/gc-des-tests: New files.
47570 * tests/test-des.c, tests/test-gc-des.c: New file.
47572 2005-10-21 Simon Josefsson <jas@extundo.com>
47574 * modules/arctwo, modules/arctwo-tests: New files.
47576 * tests/test-arctwo.c: New file.
47578 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
47580 * tests/test-gc-arctwo.c: New file.
47582 2005-10-21 Simon Josefsson <jas@extundo.com>
47584 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
47585 Bruno Haible <bruno@clisp.org>.
47587 * m4/gc-des.m4: New file.
47589 2005-10-21 Simon Josefsson <jas@extundo.com>
47591 * m4/arctwo.m4: New file.
47593 * m4/gc-arctwo.m4: New file.
47595 2005-10-21 Simon Josefsson <jas@extundo.com>
47597 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
47600 2005-10-21 Simon Josefsson <jas@extundo.com>
47602 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
47605 * lib/hmac-sha1.c (hmac_sha1): Likewise.
47607 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
47608 Bruno Haible <bruno@clisp.org>.
47610 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
47613 2005-10-21 Simon Josefsson <jas@extundo.com>
47615 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
47617 2005-10-21 Simon Josefsson <jas@extundo.com>
47619 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
47621 2005-10-21 Simon Josefsson <jas@extundo.com>
47623 * lib/des.h, lib/des.c: New files.
47625 * lib/gc-gnulib.c: Support DES.c
47627 2005-10-21 Simon Josefsson <jas@extundo.com>
47629 * lib/arctwo.h, lib/arctwo.c: New files.
47631 * lib/gc-gnulib.c: Support ARCTWO.
47633 2005-10-21 Simon Josefsson <jas@extundo.com>
47635 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
47636 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47638 2005-10-21 Simon Josefsson <jas@extundo.com>
47640 * gnulib-tool (func_import, func_create_testdir): Define automake
47641 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
47642 Makefile.am snippet),
47643 suggested by Bruno Haible <bruno@clisp.org>.
47645 * modules/gc (Makefile.am): Use it.
47647 2005-10-21 Bruno Haible <bruno@clisp.org>
47649 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
47652 2005-10-19 Simon Josefsson <jas@extundo.com>
47654 * tests/test-gc-rijndael.c: New file.
47656 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
47658 2005-10-19 Simon Josefsson <jas@extundo.com>
47660 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
47663 2005-10-19 Simon Josefsson <jas@extundo.com>
47665 * tests/test-gc-arcfour.c: New file.
47667 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
47669 2005-10-19 Simon Josefsson <jas@extundo.com>
47671 * modules/gc-md4, modules/gc-md4-tests: New file.
47673 * tests/test-gc-md4.c: New file.
47675 2005-10-19 Simon Josefsson <jas@extundo.com>
47677 * m4/gc-md4.m4: New file.
47679 2005-10-19 Simon Josefsson <jas@extundo.com>
47681 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
47682 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
47685 2005-10-19 Simon Josefsson <jas@extundo.com>
47687 * m4/gc-arcfour.m4: New file.
47689 * m4/gc-rijndael.m4: New file.
47691 2005-10-19 Simon Josefsson <jas@extundo.com>
47693 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
47695 2005-10-19 Simon Josefsson <jas@extundo.com>
47697 * lib/gc-gnulib.c: Support ARCFOUR.
47699 2005-10-19 Simon Josefsson <jas@extundo.com>
47701 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
47704 * lib/gc.h: Add ECB enum type.
47706 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
47708 2005-10-18 Simon Josefsson <jas@extundo.com>
47710 * tests/test-md5.c: New file.
47712 * modules/md5-tests: New file.
47714 2005-10-18 Simon Josefsson <jas@extundo.com>
47716 * tests/test-md4.c: New file.
47718 * modules/md4, modules/md4-tests: New files.
47720 2005-10-18 Simon Josefsson <jas@extundo.com>
47722 * m4/md4.m4: New file.
47724 2005-10-18 Simon Josefsson <jas@extundo.com>
47726 * lib/md4.h, lib/md4.c: New files, based on md5.?.
47728 2005-10-17 Stepan Kasal <kasal@ucw.cz>
47730 * gnulib-tool (func_create_testdir): Omit the second check whether
47731 BUILT_SOURCES in nonempty.
47733 2005-10-17 Simon Josefsson <jas@extundo.com>
47735 * tests/test-rijndael.c: New file.
47737 2005-10-17 Simon Josefsson <jas@extundo.com>
47739 * modules/sha1: Depend on stdint instead of md5.
47741 * modules/md5: Depend on stdint, remove uint32_t.
47743 2005-10-17 Simon Josefsson <jas@extundo.com>
47745 * modules/gc-sha1-tests: New file.
47747 * tests/test-gc-sha1.c: New file.
47749 2005-10-17 Simon Josefsson <jas@extundo.com>
47751 * m4/md5.m4: Remove call to uint32_t.m4.
47753 2005-10-17 Simon Josefsson <jas@extundo.com>
47755 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
47757 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
47760 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
47762 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
47764 2005-10-17 Simon Josefsson <jas@extundo.com>
47766 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
47768 2005-10-17 Simon Josefsson <jas@extundo.com>
47770 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
47772 2005-10-17 Simon Josefsson <jas@extundo.com>
47774 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
47776 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
47778 2005-10-17 Bruno Haible <bruno@clisp.org>
47780 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
47781 that it can also be used in a test.
47783 2005-10-16 Bruno Haible <bruno@clisp.org>
47785 * gnulib-tool (func_emit_tests_Makefile_am): Also define
47786 TESTS_ENVIRONMENT, so that individual tests can augment it.
47788 * gnulib-tool (func_create_testdir): Use an intermediate target for
47789 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
47790 macros, like $(ALLOCA_H), which cannot be passed through the command
47793 2005-10-15 Simon Josefsson <jas@extundo.com>
47795 * modules/rijndael-tests: New file.
47797 * modules/rijndael: New file.
47799 2005-10-15 Simon Josefsson <jas@extundo.com>
47801 * m4/rijndael.m4: New file.
47803 2005-10-15 Simon Josefsson <jas@extundo.com>
47805 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
47807 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
47809 2005-10-14 Simon Josefsson <jas@extundo.com>
47811 * tests/test-arcfour.c: New file.
47813 * modules/arcfour, modules/arcfour-tests: New files.
47815 2005-10-14 Simon Josefsson <jas@extundo.com>
47817 * m4/arcfour.m4: New file.
47819 2005-10-14 Simon Josefsson <jas@extundo.com>
47821 * lib/arcfour.h, lib/arcfour.c: New files.
47823 2005-10-14 Roland McGrath <roland@redhat.com>
47825 Import from libc. [BZ #1331]
47826 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
47828 Reported by Matej Vela <vela@debian.org>.
47830 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
47832 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
47833 include <wchar.h>; no longer needed.
47835 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
47837 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
47839 2005-10-14 Jakub Jelinek <jakub@redhat.com>
47840 and Ulrich Drepper <drepper@redhat.com>
47843 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
47844 instead of inline stream orientation test and two separate
47845 function calls. Pay no attention to USE_IN_LIBIO.
47847 2005-10-13 Simon Josefsson <jas@extundo.com>
47849 * modules/gc-hmac-md5-tests: New file.
47851 * tests/test-gc-hmac-sha1.c: New file.
47853 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
47855 * modules/gc-hmac-md5-tests: New file.
47857 * tests/test-gc-md5.c: New file.
47859 * modules/gc-md5-tests: New file.
47861 2005-10-13 Simon Josefsson <jas@extundo.com>
47863 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
47864 Move memory allocation outside of loop.
47866 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
47868 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
47869 intermediate directory is in a read-only file system. Problem
47870 reported by Eric Blake.
47872 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
47874 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
47876 2005-10-12 Simon Josefsson <jas@extundo.com>
47878 * tests/test-hmac-sha1.c: New file.
47880 * modules/hmac-sha1-tests: New file.
47882 * modules/hmac-sha1: New file.
47884 2005-10-12 Simon Josefsson <jas@extundo.com>
47886 * modules/gc-sha1: New file.
47888 2005-10-12 Simon Josefsson <jas@extundo.com>
47890 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
47892 * tests/test-gc-pbkdf2-sha1.c: New file.
47894 2005-10-12 Simon Josefsson <jas@extundo.com>
47896 * modules/gc-md5, modules/gc-hmac-md5: New files.
47898 * modules/gc (Files): Remove md5, memxor and hmac files.
47900 2005-10-12 Simon Josefsson <jas@extundo.com>
47902 * m4/gc-pbkdf2-sha1.m4: New file.
47904 * m4/gc-hmac-sha1.m4: New file.
47906 * m4/gc-sha1: New file.
47908 * m4/hmac-sha1.m4: New file.
47910 2005-10-12 Simon Josefsson <jas@extundo.com>
47912 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
47914 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
47916 2005-10-12 Simon Josefsson <jas@extundo.com>
47918 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
47919 suggested by Bruno Haible <bruno@clisp.org>.
47921 2005-10-12 Simon Josefsson <jas@extundo.com>
47923 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
47925 2005-10-12 Simon Josefsson <jas@extundo.com>
47927 * lib/gc-pbkdf2-sha1.c: New file.
47929 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
47931 2005-10-12 Simon Josefsson <jas@extundo.com>
47933 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
47935 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
47937 2005-10-12 Simon Josefsson <jas@extundo.com>
47939 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
47940 GC_USE_HMAC_MD5, respectively.
47942 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
47943 (gc_md5): Fix typo.
47945 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
47947 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
47949 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
47951 2005-10-12 Bruno Haible <bruno@clisp.org>
47953 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
47954 Reported by Stepan Kasal <kasal@ucw.cz>.
47956 2005-10-11 Simon Josefsson <jas@extundo.com>
47958 * tests/test-crc.c: New file.
47960 * modules/crc, modules/crc-tests: New files.
47962 2005-10-11 Simon Josefsson <jas@extundo.com>
47964 * m4/crc.m4: New file.
47966 2005-10-11 Simon Josefsson <jas@extundo.com>
47968 * lib/gc.h: Add gc_hash and gc_hash_buffer.
47970 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
47972 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
47974 2005-10-11 Simon Josefsson <jas@extundo.com>
47976 * lib/crc.h, lib/crc.c: New files.
47978 * lib/gc.h (gc_hash_buffer): Add doc.
47980 2005-10-11 Bruno Haible <bruno@clisp.org>
47982 * modules/c-strcasestr: New file.
47983 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
47985 2005-10-11 Bruno Haible <bruno@clisp.org>
47987 * modules/c-strcase: New file.
47988 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
47990 2005-10-11 Bruno Haible <bruno@clisp.org>
47992 * lib/strcasecmp.c: Include limits.h.
47993 (strcasecmp): Avoid integer overflow on exotic platforms.
47994 * lib/strncasecmp.c: Include limits.h.
47995 (strncasecmp): Avoid integer overflow on exotic platforms.
47996 Reported by Paul Eggert.
47998 2005-10-11 Bruno Haible <bruno@clisp.org>
48000 * lib/c-strcasestr.h: New file, from GNU gettext.
48001 * lib/c-strcasestr.c: New file, from GNU gettext.
48003 2005-10-11 Bruno Haible <bruno@clisp.org>
48005 * lib/c-strcase.h: New file, from GNU gettext.
48006 * lib/c-strcasecmp.c: New file, from GNU gettext.
48007 * lib/c-strncasecmp.c: New file, from GNU gettext.
48009 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
48011 * modules/mempcpy (License): GPL -> LGPL.
48012 * modules/strchrnul (License): Likewise.
48013 * modules/sysexits (License): Likewise.
48015 2005-10-08 Simon Josefsson <jas@extundo.com>
48017 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
48019 2005-10-07 Simon Josefsson <jas@extundo.com>
48021 * m4/memxor.m4: Remove gl_C_RESTRICT call.
48023 2005-10-06 Simon Josefsson <jas@extundo.com>
48025 * tests/test-hmac-md5.c: New file.
48027 * modules/hmac-md5-tests: New file.
48029 * modules/hmac-md5: New file.
48031 2005-10-06 Simon Josefsson <jas@extundo.com>
48033 * m4/hmac-md5.m4: New file.
48035 * m4/memxor.m4: Require gl_C_RESTRICT.
48037 2005-10-06 Simon Josefsson <jas@extundo.com>
48039 * lib/memxor.c (memxor): Avoid casts and warnings.
48041 2005-10-06 Simon Josefsson <jas@extundo.com>
48043 * lib/hmac-md5.c: New file.
48045 * lib/hmac.h: New file.
48047 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
48049 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
48050 promotes to int, not unsigned int, to catch the AIX 5.3
48053 2005-10-05 Simon Josefsson <jas@extundo.com>
48055 * modules/memxor: New file.
48057 * modules/iconv (Files): Move config.rpath to havelib, it is used
48060 * modules/havelib (Files): Add config.rpath.
48062 2005-10-05 Simon Josefsson <jas@extundo.com>
48064 * m4/memxor.m4: New file.
48066 2005-10-05 Simon Josefsson <jas@extundo.com>
48068 * lib/memxor.c (memxor): Fix compiler error.
48070 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
48071 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
48073 * lib/memxor.h, lib/memxor.c: New files.
48075 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
48076 we assume all systems have it, suggested by Jim Meyering
48077 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
48078 any systems lack sys/socket.h; mingw32 is known to lack it, but we
48079 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
48082 2005-10-05 Simon Josefsson <jas@extundo.com>
48084 * config/srclist.txt: Add glibc bug 1423 for md5.h.
48086 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
48088 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
48089 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
48090 needed, since the source code now assumes these .h files.
48092 2005-10-05 Derek Price <derek@ximbiot.com>
48094 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
48096 2005-10-05 Bruno Haible <bruno@clisp.org>
48098 * modules/stdint (License): Change to LGPL.
48100 2005-10-04 Simon Josefsson <jas@extundo.com>
48102 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
48103 D. Baushke" <mdb@gnu.org>.
48105 2005-10-04 Bruno Haible <bruno@clisp.org>
48107 * lib/verify.h (verify_true): Provide alternative definition for C++.
48109 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
48111 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
48112 (SSIZE_MAX): New macro, if not already defined.
48113 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
48116 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
48118 Sync from coreutils.
48119 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
48120 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
48121 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
48122 ULLONG_MAX doesn't work with 2.7.2.1.
48124 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
48126 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
48129 * modules/exclude (Depends-on): Depend on verify.
48130 * modules/strtoimax (Depends-on): Likewise.
48131 * modules/utimecmp (Depends-on): Likewise.
48133 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
48135 * lib/exclude.c: Include verify.h.
48136 (verify): Remove. All callers changed to use verify.h's version.
48137 * lib/strtoimax.c: Likewise.
48138 * lib/utimecmp.c: Likewis.e
48140 Sync from coreutils.
48141 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
48142 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
48143 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
48144 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
48145 bother returning ENOSYS if settimeofday or stime fails; just let
48146 them return whatever errno they want to return.
48147 * lib/utimens.c: Include unistd.h, for dup2.
48148 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
48149 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
48151 2005-10-02 Jim Meyering <jim@meyering.net>
48153 Sync from coreutils.
48154 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
48155 from glibc-2.2.5 that fails for read-only files.
48157 2005-10-02 Jim Meyering <jim@meyering.net>
48159 Sync from coreutils.
48160 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
48161 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
48162 `#if HAVE_CONFIG_H'.
48163 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
48164 Remove AT_FDCWD test.
48165 Do not consume the fd unless successful.
48166 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
48167 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
48168 block, so that we don't even try to compile it if settimeofday is
48169 available. This works around a compilation failure on OSF1 V5.1,
48170 due to stime requiring a `long int*' while tv_sec is `int'.
48172 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
48174 Sync from coreutils.
48175 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
48176 against `yes', rather than just testing for nonempty.
48178 2005-10-01 Simon Josefsson <jas@extundo.com>
48180 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
48183 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
48184 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
48185 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
48186 freeaddrinfo and gai_strerror are declared by the POSIX headers.
48187 Check if struct addrinfo is declared.
48189 2005-10-01 Simon Josefsson <jas@extundo.com>
48191 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
48192 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
48193 AI_* and EAI_* definitions. Protect function declarations.
48195 2005-10-01 Jim Meyering <jim@meyering.net>
48197 Sync from coreutils.
48199 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
48200 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
48201 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
48202 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48203 in the inet and nsl libraries. Required on Solaris 5.7.
48205 2005-10-01 Jim Meyering <jim@meyering.net>
48207 Sync from coreutils.
48208 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48209 in the inet and nsl libraries. Required on Solaris 5.7.
48211 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
48213 * lib/getdelim.c (getdelim): Remove unused variables.
48215 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
48217 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
48218 so that the code works even with ancient cpp. Portability problem
48219 with GCC 2.7.2.1 reported by Thomas M.Ott.
48221 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
48223 * modules/regex (Depends-on): Add strcase.
48225 * modules/gethostname (Licence): Change from GPL to LGPL, since
48226 gethostname.c is a trivial implementation of a standard library
48228 * modules/poll (License): Change from GPL to LGPL, since it's
48229 derived from LGPL code.
48231 2005-09-27 Jim Meyering <jim@meyering.net>
48233 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
48236 * lib/intprops.h (signed_type_or_expr__): Define.
48237 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
48238 for unsigned types.
48240 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
48242 * lib/verify.h (verify_expr): Remove, replacing with:
48243 (verify_true): New macro that returns true instead of void.
48244 (verify_type__): Remove.
48245 (verify): Use verify_true rather than verify_type__.
48247 2005-09-26 Bruno Haible <bruno@clisp.org>
48249 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
48251 (lib_SOURCES): Remove mbchar.c.
48252 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
48253 (Files): Add m4/mbrtowc.m4.
48254 * modules/mbiter: Likewise.
48255 * modules/mbuiter: Likewise.
48257 2005-09-26 Bruno Haible <bruno@clisp.org>
48259 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
48260 compile mbchar.c if they are not both present.
48261 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
48262 * m4/mbiter.m4 (gl_MBITER): Likewise.
48263 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
48264 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
48265 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
48267 2005-09-25 Jim Meyering <jim@meyering.net>
48269 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
48270 also uses socklen_t.
48272 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
48274 * lib/utimens.c (ENOSYS): Define if not already defined.
48275 (futimens): Support having a null PATH if the file descriptor
48278 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
48280 (__attribute): Define to empty unless GCC 3.1 or later.
48281 This works around a core dump on OpenBSD 3.4, which has GCC
48282 2.95.3, which dumps core when given __attribute__(()). It also
48283 simplifies other tests, since we really don't want to bother with
48284 worrying about which ancient version of GCC supported what.
48285 Original problem reported by Yoann Vandoorselaere, with part of
48286 the fix suggested by Derek Price.
48288 2005-09-24 Jim Meyering <jim@meyering.net>
48290 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
48291 so we can once again use a positive bitfield width of 1 -- now we
48292 don't have to explain why we were using a bitfield width of 2.
48294 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
48296 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
48297 and similarly for the other external symbols. Problem reported
48300 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
48301 bug reported by Jim Meyering.
48303 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
48304 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
48305 not needed, since socklen is a prerequisite module.
48307 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
48309 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
48310 Problem reported by Eric Blake.
48311 (getaddrinfo): Initialize se so that it's not garbage.
48312 Redo internal storage allocation so that it doesn't make unportable
48313 assumptions about alignment.
48316 * lib/utimens.c (futimens): Use futimesat if available.
48317 Prefer it to futimes since it doesn't have the futimes bug.
48319 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
48320 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
48321 Instead, declare a function that returns a pointer to an array,
48322 and use verify_type__ to declare the size of the array.
48323 Problem and germ of a solution reported by Bruno Haible.
48324 (verify_type__): Use 2, not 1, for bitfield size, to avoid
48325 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
48327 2005-09-23 Jim Meyering <jim@meyering.net>
48329 Sync from coreutils.
48330 Correct build failure (socklen_t not defined) on at least
48331 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
48332 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
48334 2005-09-23 Jim Meyering <jim@meyering.net>
48336 * modules/getaddrinfo (Depends-on): Add socklen.
48338 2005-09-23 Bruno Haible <bruno@clisp.org>
48340 * tests/test-verify.c: New file.
48342 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
48344 Sync from coreutils.
48346 * modules/argmatch (Depends-on): Add verify.
48347 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
48349 * modules/save-cwd (Depends-on): Likewise.
48351 * modules/openat (Files): Add lib/openat-die.c.
48352 (Depends-on): Remove error, exitfail.
48355 * modules/verify: New file.
48356 * MODULES.html.sh (Diagnostics <assert.h>): New section,
48357 with "verify" module.
48359 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
48361 Sync from coreutils.
48363 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
48364 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
48365 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
48366 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
48367 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
48368 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
48369 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
48370 Don't bother checking for string.h, stdlib.h, unistd.h.
48371 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
48372 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
48374 * m4/jm-macros.m4 (gl_MACROS): Likewise.
48375 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
48377 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
48378 (gl_GETDATE): Use it.
48380 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
48382 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
48384 Sync from coreutils.
48386 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
48388 * lib/argmatch.h: Include verify.h
48389 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
48390 (ARGMATCH_ASSERT): Remove; unused.
48391 * lib/canonicalize.c: Assume STDC_HEADERS.
48392 * lib/exclude.c: Include "strcase.h".
48393 * lib/regex_internal.h [!defined _LIBC]: Likewise.
48394 * lib/getusershell.c: Include stdio--.h rather than stdio.h
48396 (getusershell): Call fopen, not fopen_safer.
48397 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
48398 Do not include unistd-safer.h.
48399 (save_cwd): Don't call fd_safer; no longer needed
48400 now that we include fcntl--.h.
48402 * lib/getdate.y (relative_time): New type.
48403 (RELATIVE_TIME_0): New constant.
48404 (parser_control): Use relative_time instead of doing it ourselves.
48405 (%union): Add new relative_time rel member.
48406 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
48408 (relunit, relunit_snumber): Now of type rel.
48409 (zone, rel, relunit, get_date): Adjust to above changes.
48411 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
48412 Do not include unistd-safer.h.
48413 (getloadavg): Don't call fd_safer; no longer needed
48414 now that we include fcntl--.h.
48416 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
48417 (make_dir_parents): Treat ENOSYS like EEXIST.
48419 Improve quality of diagnostics on restore_cwd failure.
48420 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
48421 (make_dir_parents): Last arg is now int * (for errno), not bool *.
48422 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
48423 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
48424 each time through the loop. Do not diagnose restore_cwd failure;
48425 that is the caller's job (and perhaps the caller does not care).
48427 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
48428 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
48429 If the file already exists but is not a directory, don't bother
48430 to try to make its parents.
48431 Close potential file descriptor leak if we can't chdir("/") (!).
48432 Don't always return true if chdir($PWD) fails; return true only
48433 if the requested action was done successfully (except for the
48435 Don't log final directory unless we actually made it.
48436 Refactor to avoid duplicate code to fix up permissions.
48437 Don't attempt to fix up parent permissions if chdir($PWD) fails.
48439 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
48440 to make it a bit faster and (I hope) clearer.
48441 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
48442 Fix bug in formats like %2N.
48444 * lib/verify.h: New file.
48446 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
48448 Sync from coreutils.
48449 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
48451 2005-09-22 Jim Meyering <jim@meyering.net>
48453 Sync from coreutils.
48455 * m4/lstat.m4 (gl_FUNC_LSTAT):
48456 Use AC_LIBSOURCES to require lstat.c and lstat.h.
48457 Remove obsolete comment.
48458 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
48459 * m4/xstrtod.m4: Likewise.
48461 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
48463 2005-09-22 Jim Meyering <jim@meyering.net>
48465 Sync from coreutils.
48467 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
48469 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
48470 the .tm_year member, since otherwise gcc-4.0 would now warn about
48471 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
48473 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
48474 order to avoid an unsuppressible warning from gcc on 64-bit systems.
48476 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
48477 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
48478 when run in a time zone for which daylight savings time is in effect
48479 for the starting date.
48481 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
48482 stop us from restricting permissions of just-created absolute-named
48484 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
48485 to restore initial working directory.
48486 * lib/mkdir-p.c (make_dir_parents): New parameter:
48487 different_working_dir, to tell caller if/when we change the working
48488 directory and are unable to return to the initial one.
48489 * lib/mkdir-p.h (make_dir_parents): Update prototype.
48490 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
48491 `return false'. This fixes a bug introduced on 2004-07-30.
48493 * lib/openat.c (fdopendir): Be sure to close the supplied
48494 file descriptor before returning. This makes our replacement
48495 implementation a little closer to Solaris's, where fdopendir
48496 ties the file descriptor to the returned DIR* pointer.
48497 * lib/openat.c (unlinkat): New function.
48498 * lib/openat.h (unlinkat): Add prototype.
48499 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
48500 (openat_restore_fail): Rename from openat_restore_die.
48501 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
48503 Provide an alternative to exiting immediately upon save_cwd or
48504 restore_cwd failure. Now, an application can arrange e.g.,
48505 to perform a longjump in that case.
48506 * lib/openat.c: Include dirname.h.
48507 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
48508 (rpl_openat, fdopendir, fstatat): Call openat_save_die
48509 and openat_restore_die rather than calling error directly.
48510 Don't include "error.h" or "exitfail.h"; they're no longer needed.
48512 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
48513 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
48516 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
48517 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
48518 int utc, int nanoseconds);
48520 date should not have to allocate a megabyte of virtual memory to
48521 handle a format argument like +%1048575T. When implemented with
48522 strftime, it must allocate such a buffer, use strftime to fill it
48523 in, print it, then free it.
48524 With fprintftime, it simply prints everything and exits.
48525 With no need for memory allocation, that's one fewer way to fail.
48526 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
48527 optional field width, not before, so we accept %9:z, not %:9z.
48528 (my_strftime): Be sure to use L_('x') for literals.
48530 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
48531 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
48532 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
48533 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
48534 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
48535 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
48536 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
48537 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
48538 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
48539 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
48540 * lib/xgethostname.c, lib/xreadlink.c:
48541 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
48543 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
48544 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
48545 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
48546 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
48547 and don't include <sys/file.h>).
48549 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
48551 Sync from coreutils.
48553 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
48554 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
48555 [!LDAV_DONE]: Avoid unused variable warning.
48557 2005-09-21 Bruno Haible <bruno@clisp.org>
48559 * lib/unicodeio.h (unicode_to_mb): New declaration.
48561 2005-09-20 Derek Price <derek@ximbiot.com>
48563 * lib/getaddrinfo.c: Don't include <netdb.h> included from
48566 2005-09-20 Bruno Haible <bruno@clisp.org>
48568 * gnulib-tool: Remove trailing slashes from the values specified for
48569 --source-base, --m4-base, --tests-base, --aux-dir.
48570 Suggested by Simon Josefsson <jas@extundo.com>.
48572 2005-09-20 Bruno Haible <bruno@clisp.org>
48574 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
48575 func_modules_to_filelist, func_import, func_create_testdir): Make all
48576 sorting results locale-independent, so that gnulib-cache.m4 doesn't
48577 change when gnulib-tool is invoked in a different locale.
48579 2005-09-19 Simon Josefsson <jas@extundo.com>
48581 * m4/socklen.m4: Fix typo.
48583 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
48585 Use a consistent style for including <config.h>.
48586 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
48587 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
48588 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
48589 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
48590 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
48591 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
48592 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
48593 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
48594 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
48595 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
48596 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
48597 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
48598 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
48599 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
48600 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
48601 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
48602 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
48603 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
48604 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
48605 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
48606 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
48607 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
48608 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
48609 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
48610 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
48611 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
48612 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
48613 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
48614 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
48615 lib/xstrtoumax.c, lib/yesno.c:
48616 Standardize inclusion of config.h.
48617 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
48618 lib/inttostr.h: Removed inclusion of config.h from header files.
48619 * lib/inttostr.c: Adjusted in-tree users.
48620 * lib/timespec.h: Remove superfluous warning to include config.h.
48621 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
48622 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
48623 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
48624 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
48625 config.h with HAVE_CONFIG_H.
48627 2005-09-19 Jim Meyering <jim@meyering.net>
48629 * modules/pathmax (License): Change to LGPL.
48631 2005-09-19 Derek Price <derek@ximbiot.com>
48633 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
48635 2005-09-19 Bruno Haible <bruno@clisp.org>
48637 * gnulib-tool (import): Provide default for --tests-base.
48639 2005-09-19 Bruno Haible <bruno@clisp.org>
48641 * doc/quote.texi: New file, extracted from gnulib.texi.
48642 * doc/ctime.texi: New file, extracted from gnulib.texi.
48643 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
48644 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
48645 * doc/gnulib.texi: Include them.
48647 2005-09-18 Bruno Haible <bruno@clisp.org>
48650 * gnulib-tool (func_readlink): New function.
48651 (func_ln_if_changed): Use it.
48653 2005-09-18 Bruno Haible <bruno@clisp.org>
48655 * gnulib-tool: Support --with-tests also with --import.
48656 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
48657 (func_import): Use variables $testsbase and $inctests. Emit a
48658 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
48659 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
48660 SUBDIRS += $testsdir.
48661 (func_create_testdir): Update.
48663 2005-09-18 Bruno Haible <bruno@clisp.org>
48665 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
48666 instead of $dry_run.
48667 (func_cp_if_changed, func_mv_if_changed): Remove functions.
48668 (func_ln_if_changed): Don't handle dry-run here.
48669 (func_import): In dry-run mode, detect more precisely which actions
48670 would be performed, and don't use "...ing" verbs.
48672 2005-09-18 Bruno Haible <bruno@clisp.org>
48674 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
48675 (func_import): Use join on two temporary files instead of three nested
48676 loops, in order to determine which files are new or old.
48678 2005-09-18 Bruno Haible <bruno@clisp.org>
48680 * gnulib-tool (func_import): Comment out code that spits out the
48681 new files with --dry-run.
48683 2005-09-18 Bruno Haible <bruno@clisp.org>
48685 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
48687 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
48689 * lib/stat-time.h: New file.
48690 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
48691 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
48692 in a different way.
48693 (timespec_cmp): New function.
48694 * lib/utimecmp.c: Include stat-time.h.
48695 (SYSCALL_RESOLUTION): Depend on whether various struct stat
48696 members exist, not on the obsolescent ST_MTIM_NSEC.
48697 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
48699 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
48701 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
48703 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
48705 * MODULES.html.sh (File system functions): Add stat-time.
48706 * modules/stat-time: New file.
48707 * modules/timespec (Files): Remove m4/st_mtim.m4; this
48708 is now done in a different way, by the stat-time module.
48709 * modules/utimecmp (Depends-on): Add stat-time.
48711 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
48713 * m4/st_mtim.m4: Remove. Superseded by...
48714 * m4/stat-time.m4: New file.
48715 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
48716 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
48718 2005-09-15 Derek Price <derek@ximbiot.com>
48720 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
48722 2005-09-15 Derek Price <derek@ximbiot.com>
48724 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
48725 * lib/regex_internal.c: Ditto, using this...
48726 (__GNUC_PREREQ): ...new macro.
48727 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
48729 (__GNUC_PREREQ): ...this new macro.
48731 * lib/strstr.h: Include string.h. Define strstr as a macro here.
48733 2005-09-15 Derek Price <derek@ximbiot.com>
48734 Paul Eggert <eggert@cs.ucla.edu>
48736 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
48737 changes, consolidating in...
48738 * lib/regex_internal.h: ...this file.
48740 2005-09-13 Jim Meyering <jim@meyering.net>
48742 * lib/canon-host.c: Filter through gnu indent and reword comments
48744 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
48746 2005-09-13 Derek Price <derek@ximbiot.com>
48748 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
48750 Reported by Jim Meyering <jim@meyering.net>.
48752 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
48754 * lib/base64.c: Typo.
48755 (base64_encode): Put b64str in initialized data section.
48757 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
48759 Merge glibc and coreutils changes into gnulib, plus a few
48761 * lib/md5.c: Use #error rather than a string.
48762 (CYCLIC): New macro, from glibc source. Use it instead of rol.
48763 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
48764 (__attribute__): Define to empty for non recent-GCC.
48765 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
48766 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
48767 Renamed from their non-__ counterparts, with new macros replacing
48768 them if not _LIBC. Add __THROW attribute.
48770 (struct md5_ctx): Align buffer if using GCC.
48771 * lib/sha1.h (struct sha1_ctx): Likewise.
48772 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
48773 The old name was backwards.
48774 (NOTSWAP): Remove; not used.
48775 (rol): New macro, moved here from md5.h.
48776 (sha1_process_block): Remove a FIXME that doesn't make sense.
48778 2005-09-12 Derek Price <derek@ximbiot.com>
48780 Return usable errors from canon-host.
48781 * lib/canon-host.h: New file.
48782 * lib/canon-host.c (canon_host): Wrap...
48783 (canon_host_r): ...this new function, which now relies exclusively on
48785 (ch_strerror): New function.
48786 (last_cherror): New global.
48787 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
48789 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
48791 (freeaddrinfo): Free ai->ai_canonname when set.
48793 2005-09-12 Derek Price <derek@ximbiot.com>
48795 Make canon-host require getaddrinfo.
48796 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
48797 AC_LIBSOURCE canon-host.h. Call...
48798 (gl_PREREQ_CANON_HOST): ...this new function, which requires
48800 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
48802 2005-09-12 Derek Price <derek@ximbiot.com>
48804 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
48806 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
48808 2005-09-12 Derek Price <derek@ximbiot.com>
48810 * lib/gai_strerror.c: Include config.h when available. Include
48811 getaddrinfo.h before other headers to test interface.
48812 Reported by Larry Jones <lawrence.jones@ugs.com>.
48814 2005-09-12 Derek Price <derek@ximbiot.com>
48815 Paul Eggert <eggert@cs.ucla.edu>
48817 * modules/glob (Files): Add glob-libc.h.
48819 2005-09-12 Derek Price <derek@ximbiot.com>
48820 Paul Eggert <eggert@cs.ucla.edu>
48822 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
48823 glob_.h, glob-libc.h.
48824 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
48826 2005-09-12 Derek Price <derek@ximbiot.com>
48827 Paul Eggert <eggert@cs.ucla.edu>
48829 * lib/glob-libc.h: Renamed from glob_.h. The new version is
48830 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
48831 protecting things that should be done only in gnulib contexts.
48832 * lib/glob_.h: New file, containing only the glob things needed for
48834 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
48835 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
48836 (glob, globfree, glob_pattern_p): Now defined simply in terms of
48837 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
48838 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
48839 and to respect the namespace rules better.
48841 2005-09-08 Simon Josefsson <jas@extundo.com>
48843 * modules/socklen: New file.
48845 2005-09-08 Simon Josefsson <jas@extundo.com>
48847 * m4/socklen.m4: New file.
48849 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
48851 * modules/utimens (Files): Add m4/utimbuf.m4, since
48852 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
48853 Reported by Sergey Poznyakoff.
48855 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
48857 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
48858 definitions, since that's the preferred style in glibc.
48859 Fix a minor spacing issue, and update copyright notice to match
48862 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
48864 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
48866 2005-09-06 Simon Josefsson <jas@extundo.com>
48868 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
48869 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
48871 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
48873 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
48876 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
48878 * config/srclist.txt: Add glibc bug 1302.
48880 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
48882 Change bitset word type from unsigned int to unsigned long int,
48883 as this has better performance on typical 64-bit hosts.
48884 Port bitset code to hosts with unusual word sizes.
48885 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
48886 (build_collating_symbol):
48887 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
48888 argument is a bitset. This is merely a style issue, but it makes
48889 it clearer that an entire array is expected.
48890 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
48891 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
48892 Port to the case where bitset_word is not the same as unsigned int.
48893 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
48894 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
48896 * lib/regexec.c (check_dst_limits_calc_pos_1,
48897 check_subexp_matching_top):
48898 (build_trtable, group_nodes_into_DFAstates):
48900 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
48901 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
48902 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
48903 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
48904 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
48905 * lib/regcomp.c (optimize_subexps, lower_subexp):
48906 Work even if bitset_word has holes in its bitwise representation.
48907 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
48908 * lib/regexec.c (check_dst_limits_calc_pos_1,
48909 check_subexp_matching_top):
48911 * lib/regex_internal.c (re_string_reconstruct):
48912 Don't assume UCHAR_MAX == 255.
48913 * lib/regex_internal.h (bitset_set_all): Likewise.
48914 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
48916 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
48917 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
48919 (BITSET_WORD_MAX): New macro.
48920 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
48921 (bitset_set_all, bitset_copy): Now inline functions, not macros.
48922 (bitset_empty, bitset_copy):
48923 Prefer sizeof (bitset) to multiplying it out ourselves.
48924 (bitset_not_merge): Remove; unused.
48925 (bitset_contain): Return bool, not unsigned int with one bit on.
48926 All callers changed.
48927 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
48928 alignment than re_node_set; do this by defining a new internal
48929 type struct dests_alloc and using it to allocate memory.
48931 2005-09-05 Bruno Haible <bruno@clisp.org>
48933 * gnulib-tool (func_import): Fix comparison in handling of symbolic
48936 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
48938 * modules/size_max (Makefile.am): Add size_max.h
48940 2005-09-04 Derek Price <derek@ximbiot.com>
48942 * gnulib-tool (func_import): Fix reversed $symbolic logic.
48944 2005-09-03 Simon Josefsson <jas@extundo.com>
48946 * gnulib-tool: Fix typo.
48948 2005-09-03 Simon Josefsson <jas@extundo.com>
48950 * config/srclist.txt: Add glibc bug 1293.
48952 2005-09-03 Derek Price <derek@ximbiot.com>
48954 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
48955 From Larry Jones <lawrence.jones@ugs.com>.
48957 2005-09-02 Simon Josefsson <jas@extundo.com>
48959 * modules/socklen: New file.
48961 2005-09-02 Simon Josefsson <jas@extundo.com>
48963 * modules/havelib: New module.
48965 * modules/gettext, modules/iconv, modules/lock, modules/readline:
48968 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
48970 Check for arithmetic overflow when calculating sizes, to prevent
48971 some buffer-overflow issues. These patches are conservative, in the
48972 sense that when I couldn't determine whether an overflow was possible,
48973 I inserted a run-time check.
48974 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
48976 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
48977 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
48978 (re_xnrealloc, re_x2nrealloc): New inline functions.
48979 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
48980 parse_bracket_exp):
48981 (build_equiv_class, build_charclass): Check for arithmetic overflow
48982 in size expression calculations.
48983 * lib/regex_internal.c (re_string_realloc_buffers):
48984 (build_wcs_upper_buffer, re_node_set_add_intersect):
48985 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
48986 (re_dfa_add_node, register_state): Likewise.
48987 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
48988 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
48989 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
48990 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
48992 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
48994 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
48995 m4/ulonglong.m4. Problem reported by Martin Lambers.
48997 2005-09-02 Bruno Haible <bruno@clisp.org>
48999 Support for lib vs. lib64 distinction on biarch platforms.
49000 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
49001 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
49002 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
49004 2005-09-02 Bruno Haible <bruno@clisp.org>
49006 * gnulib-tool (import): In the other first-use case, provide defaults
49009 2005-09-02 Bruno Haible <bruno@clisp.org>
49011 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
49012 patches not yet found in the latest gettext release.
49014 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
49016 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
49017 to avoid a collision with bits/local_lim.h in glibc.
49018 All uses changed. Problem reported by Dmitry V. Levin in
49019 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
49021 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
49022 bugs in int versus size_t comparisons.
49023 (re_string_context_at): Fix bug where the code assumed that
49026 Use bool where appropriate.
49027 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
49028 All callers changed.
49029 (calc_eclosure_iter): Likewise, for ROOT arg.
49030 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
49031 (build_charclass_op): Likewise, for NON_MATCH arg.
49032 * lib/regex_internal.c (re_string_allocate, re_string_construct):
49033 (re_string_construct_common): Likewise, for ICASE arg.
49034 * lib/regexec.c (re_search_2_stub, re_search_stub):
49035 Likewise, for RET_LEN arg.
49036 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
49037 (set_regs): Likewise, for FL_BACKTRACK arg.
49038 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
49039 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
49040 (calc_eclosure_iter, parse_bracket_exp):
49041 Use bool for internal variables that are booleans.
49042 * lib/regexec.c (re_search_internal, check_matching,
49043 proceed_next_node):
49044 (set_regs, build_sifted_states, sift_states_bkref):
49045 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
49046 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
49047 (find_collation_sequence_value):
49049 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
49050 (re_node_set_compare):
49051 Return bool, not int. All callers changed.
49052 * lib/regexec.c (check_halt_node_context, check_dst_limits):
49053 (build_trtable, check_node_accept): Likewise.
49054 * lib/regex_internal.h: Include stdbool.h.
49056 Fix bugs uncovered when converting to bool.
49057 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
49058 failure instead of charging ahead blindly.
49059 * lib/regex_internal.c (register_state): Likewise.
49060 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
49061 for freeing internal storage.
49062 (group_nodes_into_DFA_states): Use unsigned int, not int, for
49063 bitset pieces used as boolean, to avoid undefined behavior
49064 on hosts that do int overflow checking.
49066 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
49068 * config/srclist.txt: Add glibc bugs 1285-1287.
49070 2005-09-01 Jim Meyering <jim@meyering.net>
49072 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
49073 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
49074 Require gl_STAT_MACROS, too.
49076 2005-09-01 Bruno Haible <bruno@clisp.org>
49078 * gnulib-tool (import): In the first-use case, provide defaults.
49080 2005-09-01 Bruno Haible <bruno@clisp.org>
49082 * gnulib-tool (func_import): Remove the .tmp files.
49084 2005-09-01 Bruno Haible <bruno@clisp.org>
49086 * gnulib-tool (func_import): Fix handling of symbolic links.
49088 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49090 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
49091 old glibc regex code mishandles strings longer than 2**31 bytes.
49092 This patch fixes this when the regex code is used in gnulib
49093 (i.e., outside glibc).
49095 This patch should not affect the use of the regex code inside
49096 glibc. No doubt this problem also needs to be handled for glibc
49097 as well, but the result will be an incompatible change to the
49098 glibc ABI, and the old ABI will have to be supported too. That
49099 can be the the subject for another patch.
49101 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
49102 governing whether the rest of this patch is active. By default,
49103 the macro is disabled and the patch has no effect.
49104 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
49105 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
49106 (struct re_pattern_buffer, re_search, re_search_2, re_match):
49107 (re_match_2, re_set_registers): Use the new types.
49108 * lib/regex_internal.h (Idx, re_hashval_t): New types.
49109 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
49111 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
49112 (re_string_context_at, bin_tree_t, re_dfastate_t):
49113 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
49114 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
49115 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
49116 (re_string_char_size_at, re_string_wchar_at):
49117 (re_string_elem_size_at):
49118 Use the new types and macros to port to 64-bit hosts.
49119 Use unsigned types for internal values, so that the code
49120 mostly works even for arrays larger than SSIZE_MAX.
49121 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
49122 (search_duplicated_node, calc_eclosure_iter, fetch_number):
49123 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
49124 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
49125 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
49126 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
49127 (calc_inveclosure, parse_dup_op, build_range_exp):
49128 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
49129 (fetch_number, create_token_tree, mark_opt_subexp):
49131 * lib/regex_internal.c (re_string_construct_common,
49132 create_ci_newstate):
49133 (create_cd_newstate, re_string_allocate, re_string_construct):
49134 (re_string_realloc_buffers, build_wcs_upper_buffer):
49135 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
49136 (re_string_reconstruct, re_string_peek_byte_case):
49137 (re_string_fetch_byte_case, re_string_context_at):
49138 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
49139 (re_node_set_init_copy, re_node_set_add_intersect):
49140 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49141 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49142 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
49143 (re_acquire_state, re_acquire_state_context, register_state):
49145 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
49146 search_cur_bkref_entry):
49147 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
49148 (re_search_internal, re_search_2_stub, re_search_stub)
49149 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
49150 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
49151 (update_cur_sifted_state, check_dst_limits):
49152 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
49153 (check_subexp_limits, sift_states_bkref, merge_state_array):
49154 (check_subexp_matching_top, get_subexp, get_subexp_sub):
49155 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
49156 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
49157 (expand_bkref_cache, check_node_accept_bytes):
49158 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
49159 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
49160 (acquire_init_state_context, check_halt_node_context):
49161 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
49162 (sift_states_backward, clean_state_log_if_needed):
49163 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
49164 (find_recover_state, transit_state_sb, transit_state_mb):
49165 (transit_state_bkref, build_trtable, match_ctx_clean):
49167 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
49168 to work around an assumption that REG_MISSING is negative.
49170 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
49171 (seek_collating_symbol_entry) [defined _LIBC]:
49172 (lookup_collation_sequence_value) [defined _LIBC]:
49173 (build_range_exp, build_collating_symbol) [defined _LIBC]:
49174 Use prototypes rather than old-style function definitions.
49175 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
49176 (transit_state_sb) [0]:
49177 (find_collation_sequence_value) [defined _LIBC]: Likewise.
49179 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
49182 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
49183 (optimize_subexps, lower_subexp):
49184 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
49185 since the signed shift might overflow. Use 1u<<31 instead.
49186 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49188 * lib/regexec.c (check_dst_limits_calc_pos_1,
49189 check_subexp_matching_top): Likewise.
49191 * lib/regcomp.c (optimize_subexps, lower_subexp):
49192 Use CHAR_BIT rather than 8, for clarity.
49193 * lib/regexec.c (check_dst_limits_calc_pos_1):
49194 (check_subexp_matching_top): Likewise.
49195 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
49196 have to worry about portability issues when shifting it left.
49197 Remove no-longer-needed test for table_size > 0.
49198 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
49199 in a word, as the resulting behavior is undefined.
49200 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
49201 in one case, a <= should have been an <, and in another case the
49202 whole test was missing.
49203 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
49204 the standard name CHAR_BIT.
49205 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
49206 this is not true on one's complement and signed-magnitude hosts.
49208 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
49210 (struct re_dfa_t): Remove unused member states_alloc.
49211 * lib/regcomp.c (init_dfa): Don't initialize unused members.
49213 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49215 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
49216 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
49217 and large-file glibc and in 32-bit large-file Solaris.
49219 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49221 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
49222 lengths fit in regoff_t; this isn't true if regoff_t is the same
49224 * lib/regex.c (re_search_internal): 5th arg is LAST_START
49225 (= START + RANGE) instead of RANGE. This avoids overflow
49226 problems when regoff_t is the same width as size_t.
49227 All callers changed.
49228 (re_search_2_stub): Check for overflow when adding the
49229 sizes of the two strings.
49230 (re_search_stub): Check for overflow when adding START
49231 to RANGE; if it occurs, substitute the extreme value.
49233 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
49235 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
49237 2005-08-31 Jim Meyering <jim@meyering.net>
49239 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
49240 a pointer-to-const.
49241 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
49242 (register_state): Likewise.
49243 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
49244 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
49245 (group_nodes_into_DFAstates): Likewise.
49247 2005-08-31 Jim Meyering <jim@meyering.net>
49249 * check-module: Add a FIXME comment.
49251 2005-08-31 Eric Blake <ebb9@byu.net>
49253 * modules/unistd-safer (Files): Add unistd--.h.
49254 * modules/stdio-safer (Files): Add stdio--.h.
49256 2005-08-31 Derek Price <derek@ximbiot.com>
49258 * lib/getdelim.c (getdelim): Return EOF on EOF.
49259 Reported by Larry Jones <lawrence.jones@ugs.com>.
49261 2005-08-31 Bruno Haible <bruno@clisp.org>
49263 Avoid unnecessary diffs in the generated lib/Makefile.am.
49264 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
49265 the generated files.
49266 (func_import): Don't set cmd.
49268 2005-08-31 Bruno Haible <bruno@clisp.org>
49270 * lib/strstr.c: Include <stddef.h>, for NULL.
49271 * lib/strcasestr.c: Likewise.
49272 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49274 2005-08-31 Bruno Haible <bruno@clisp.org>
49276 * gnulib-tool: New option --macro-prefix.
49277 (func_import): Use macro_prefix.
49278 (import): Handle option --macro-prefix.
49280 2005-08-31 Bruno Haible <bruno@clisp.org>
49282 * gnulib-tool (import): Rename most ac_* variables to cached_*.
49283 Also use new variables cached_lgpl, cached_libtool.
49285 2005-08-31 Bruno Haible <bruno@clisp.org>
49287 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
49288 always instantiating them.
49290 2005-08-31 Bruno Haible <bruno@clisp.org>
49292 * gnulib-tool (func_import): Read the previous cached settings
49293 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
49294 earlier added by gnulib but are now dropped. Warn when a gnulib file
49295 overwrites a non-gnulib file.
49297 2005-08-31 Bruno Haible <bruno@clisp.org>
49299 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
49300 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
49301 projects that don't keep autogenerated files in CVS. Put into
49302 actioncmd only the specified modules, not the transitive closure.
49304 2005-08-31 Bruno Haible <bruno@clisp.org>
49306 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
49307 Create directories that shall be filled.
49308 (import): Don't look for gl_* macros in configure.ac. Recurse across
49309 all directories containing a gnulib-cache.m4 files, if meaningful.
49311 2005-08-31 Bruno Haible <bruno@clisp.org>
49313 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
49314 (import): Set seen_libtool when we see gl_LIBTOOL.
49316 2005-08-31 Bruno Haible <bruno@clisp.org>
49318 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
49319 declaration macro definitions from generated gnulib.m4.
49321 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
49323 * lib/iconvme.h: Add prototype for iconv_alloc.
49325 2005-08-29 Simon Josefsson <jas@extundo.com>
49327 * lib/iconvme.c: Fix errno.
49329 2005-08-29 Bruno Haible <bruno@clisp.org>
49331 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
49332 that it works when the directory contains spaces.
49334 2005-08-29 Bruno Haible <bruno@clisp.org>
49336 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
49338 2005-08-29 Bruno Haible <bruno@clisp.org>
49340 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
49343 2005-08-29 Bruno Haible <bruno@clisp.org>
49344 and Stepan Kasal <kasal@ucw.cz>
49346 * check-module: If more parameters are given, check each of them
49347 separately; add more exceptions, as noted by Jim Meyering.
49348 (check_module): New procedure.
49349 (%exempt_header): Now contains all exceptions.
49351 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
49353 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
49355 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
49357 * lib/iconvme.c: Split iconv_string into iconv_alloc.
49359 2005-08-28 Bruno Haible <bruno@clisp.org>
49361 * m4/gnulib-tool.m4: New file.
49363 2005-08-27 Jim Meyering <jim@meyering.net>
49365 * modules/unistd-safer (Files): Add pipe-safer.c.
49366 * modules/fcntl-safer (Files): Add creat-safer.c.
49368 2005-08-27 Jim Meyering <jim@meyering.net>
49370 * m4/stdlib-safer.m4: New file. From coreutils.
49371 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
49372 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
49373 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
49374 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
49375 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
49377 2005-08-27 Jim Meyering <jim@meyering.net>
49379 * lib/fopen-safer.c: Merge minor changes from coreutils.
49380 * lib/dup-safer.c: Likewise.
49381 * lib/fd-safer.c: Likewise.
49383 Merge from coreutils.
49384 * lib/stdio--.h: New file.
49385 * lib/stdlib--.h: New file.
49386 * lib/mkstemp-safer.c: New file.
49388 GNU tar needs these.
49389 * lib/pipe-safer.c: New file.
49390 * lib/creat-safer.c: New file.
49391 * lib/fcntl--.h (creat): Define to creat_safer.
49392 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
49393 * lib/unistd--.h (pipe): Define to pipe_safer.
49394 * lib/unistd-safer.h: Declare pipe_safer.
49396 2005-08-26 Simon Josefsson <jas@extundo.com>
49398 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
49399 Haible <bruno@clisp.org>.
49401 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
49403 * lib/regex_internal.h: Remove all references to
49404 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
49406 (bitset_not, bitset_merge, bitset_not_merge):
49407 (bitset_mask, re_string_allocate, re_string_construct):
49408 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
49409 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
49410 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
49411 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
49412 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49413 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49414 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
49415 (re_acquire_state_context):
49416 Remove unnecessary forward decls.
49417 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
49418 Put __attribute at function definition,
49419 now that the function decl has been removed.
49420 * lib/regex_internal.c (re_string_peek_byte_case):
49421 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
49424 2005-08-25 Stepan Kasal <kasal@ucw.cz>
49426 * m4/regex.m4: Add AC_PREREQ(2.50).
49427 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
49429 2005-08-25 Simon Josefsson <jas@extundo.com>
49431 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
49434 2005-08-25 Simon Josefsson <jas@extundo.com>
49436 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
49437 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
49438 GLIBC specific code.
49440 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
49442 Make regex safe for g++. This fixes one real bug (an "err"
49443 that should have been "*err"). g++ problem reported by
49445 * lib/regex_internal.h (re_calloc): New macro, consistent with
49446 re_malloc etc. All callers of calloc changed to use re_calloc.
49447 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
49448 not int. All callers changed.
49449 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
49450 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
49451 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
49452 (find_recover_state): Change "err" to "*err"; this fixes what
49453 appears to be a real bug.
49454 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
49457 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
49459 * modules/regex (Depends-on): Add malloc, since the code
49460 assumes that !malloc(0) means failure.
49462 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
49464 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
49466 alloca modernization/simplification for regex.
49467 * lib/regex.c: Remove portability cruft for alloca. This no longer
49468 needs to be at the start of the file, and can be moved into
49469 regex_internal.h and simplified.
49470 * lib/regex_internal.h: Include <alloca.h>.
49471 (__libc_use_alloca) [!defined _LIBC]: New macro.
49472 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
49473 now works outside glibc.
49475 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
49477 * config/srclist.txt: Add glibc bugs 1241, 1245.
49479 2005-08-25 Jim Meyering <jim@meyering.net>
49481 * lib/open-safer.c: Include <config.h>.
49482 Otherwise, we'd lose LARGEFILE support in any file using
49485 2005-08-25 Bruno Haible <bruno@clisp.org>
49487 * m4/minmax.m4: Require autoconf 2.52.
49488 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
49489 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
49490 alternatives of translit over the alphabet.
49491 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
49493 2005-08-24 Simon Josefsson <jas@extundo.com>
49495 * tests/test-getpass.c: New file.
49497 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
49499 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
49500 for GNU regex features.
49502 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
49504 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
49505 * lib/regex.h (regerror): Likewise.
49507 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
49508 requires this. (The code never needed it.)
49510 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
49511 All uses of recently-renamed identifiers changed to use the new,
49512 POSIX-compliant names. The code will build and run just fine
49513 without these changes, but it's better to eat our own dog food
49514 and use the standard-conforming names.
49516 * lib/regex.h: Fix a multitude of POSIX name space violations.
49517 These changes have an effect only for programs that define
49518 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
49519 do not change anything for programs compiled in the normal way.
49520 Also, there is no effect on the ABI.
49522 (_REGEX_SOURCE): New macro.
49523 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
49524 defined and _GNU_SOURCE is not; this fixes a name space violation.
49526 Rename the following macros to obey POSIX requirements.
49527 The old names are still visible as macros if _REGEX_SOURCE is defined.
49528 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
49529 RE_BACKSLASH_ESCAPE_IN_LISTS.
49530 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
49531 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
49532 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
49533 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
49534 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
49535 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
49536 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
49537 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
49538 (REG_INTERVALS): renamed from RE_INTERVALS.
49539 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
49540 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
49541 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
49542 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
49543 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
49544 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
49545 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
49546 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
49547 RE_UNMATCHED_RIGHT_PAREN_ORD.
49548 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
49549 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
49550 (REG_DEBUG): renamed from RE_DEBUG.
49551 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
49552 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
49553 unusual, since we can't clash with the POSIX REG_ICASE.
49554 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
49555 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
49556 (REG_NO_SUB): renamed from RE_NO_SUB.
49557 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
49558 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
49559 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
49560 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
49561 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
49562 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
49563 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
49564 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
49565 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
49566 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
49567 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
49568 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
49569 RE_SYNTAX_POSIX_MINIMAL_BASIC.
49570 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
49571 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
49572 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
49573 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
49574 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
49575 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
49576 (REG_FIXED): Renamed from REGS_FIXED.
49577 (REG_NREGS): Renamed from RE_NREGS.
49579 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
49580 of other REG_* macros, since POSIX says the user is allowed to
49581 #undef these macros selectively.
49583 (reg_errcode_t): Update comment stating what other tables need
49586 Rename the following enum values to obey POSIX requirements.
49587 The old names are still visible as macros.
49588 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
49589 is not defined, since GNU is supposed to be a superset of POSIX as
49590 much as possible, and since we want reg_errcode_t to be a signed
49591 type for implementation consistency.
49592 (_REG_NOERROR): Renamed from REG_NOERROR.
49593 (_REG_NOMATCH): Renamed from REG_NOMATCH.
49594 (_REG_BADPAT): Renamed from REG_BADPAT.
49595 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
49596 (_REG_ECTYPE): Renamed from REG_ECTYPE.
49597 (_REG_EESCAPE): Renamed from REG_EESCAPE.
49598 (_REG_ESUBREG): Renamed from REG_ESUBREG.
49599 (_REG_EBRACK): Renamed from REG_EBRACK.
49600 (_REG_EPAREN): Renamed from REG_EPAREN.
49601 (_REG_EBRACE): Renamed from REG_EBRACE.
49602 (_REG_BADBR): Renamed from REG_BADBR.
49603 (_REG_ERANGE): Renamed from REG_ERANGE.
49604 (_REG_ESPACE): Renamed from REG_ESPACE.
49605 (_REG_BADRPT): Renamed from REG_BADRPT.
49606 (_REG_EEND): Renamed from REG_EEND.
49607 (_REG_ESIZE): Renamed from REG_ESIZE.
49608 (_REG_ERPAREN): Renamed from REG_ERPAREN.
49609 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
49610 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
49611 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
49612 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
49614 (_REG_RE_NAME, _REG_RM_NAME): New macros.
49615 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
49616 changed. But support the old name if the new one is not defined
49617 and if _REGEX_SOURCE.
49619 Change the following member names in struct re_pattern_buffer.
49620 The old names are still supported if !_REGEX_SOURCE.
49621 The new names are always supported, regardless of _REGEX_SOURCE.
49622 (re_buffer): Renamed from buffer.
49623 (re_allocated): Renamed from allocated.
49624 (re_used): Renamed from used.
49625 (re_syntax): Renamed from syntax.
49626 (re_fastmap): Renamed from fastmap.
49627 (re_translate): Renamed from translate.
49628 (re_can_be_null): Renamed from can_be_null.
49629 (re_regs_allocated): Renamed from regs_allocated.
49630 (re_fastmap_accurate): Renamed from fastmap_accurate.
49631 (re_no_sub): Renamed from no_sub.
49632 (re_not_bol): Renamed from not_bol.
49633 (re_not_eol): Renamed from not_eol.
49634 (re_newline_anchor): Renamed from newline_anchor.
49636 Change the following member names in struct re_registers.
49637 The old names are still supported if !_REGEX_SOURCE.
49638 The new names are always supported, regardless of _REGEX_SOURCE.
49639 (rm_num_regs): Renamed from num_regs.
49640 (rm_start): Renamed from start.
49641 (rm_end): Renamed from end.
49643 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
49644 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
49645 Prepend __ to parameter names.
49647 Undo yesterday's changes.
49649 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
49651 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
49652 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
49655 2005-08-24 Jim Meyering <jim@meyering.net>
49657 Sync from coreutils.
49658 * m4/fcntl-safer.m4: New file.
49660 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
49661 and object files for this module.
49663 2005-08-24 Jim Meyering <jim@meyering.net>
49665 Sync from coreutils.
49666 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
49668 2005-08-24 Jim Meyering <jim@meyering.net>
49670 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
49671 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
49673 2005-08-24 Jim Meyering <jim@meyering.net>
49675 * modules/fcntl-safer: New module.
49676 * modules/fts (Depends-on): Add fcntl-safer.
49677 * MODULES.html.sh (File descriptor based Input/Output):
49680 2005-08-24 Bruno Haible <bruno@clisp.org>
49682 Support for unit test modules.
49683 * modules/README: Mention tests modules.
49684 * modules/TEMPLATE-TESTS: New file.
49685 * gnulib-tool: New options --extract-tests-module, --with-tests and
49686 --tests-base (unused for the moment).
49687 (testsbase, inctests): New variables.
49688 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
49689 (func_verify_module): Exclude TEMPLATE-TESTS.
49690 (func_verify_nontests_module, func_verify_tests_module): New functions.
49691 (func_get_dependencies): Add implicit dependency for tests modules.
49692 (func_get_tests_module): New function.
49693 (func_modules_transitive_closure): When --with-tests was specified,
49694 include the unit tests as well, unless explicitly avoided.
49695 (func_emit_lib_Makefile_am): Ignore the tests modules here.
49696 (func_emit_tests_Makefile_am): New function.
49697 (func_create_testdir): When --with-tests was specified, emit a
49699 * MODULES.html.sh (Future developments): Update.
49701 2005-08-24 Bruno Haible <bruno@clisp.org>
49703 * modules/tls-tests: New file.
49704 * tests/test-tls.c: New file, from GNU gettext.
49706 2005-08-24 Bruno Haible <bruno@clisp.org>
49708 * modules/lock-tests: New file.
49709 * tests/test-lock.c: New file, from GNU gettext.
49711 2005-08-24 Bruno Haible <bruno@clisp.org>
49713 * lib/lock.h: Add multiple inclusion guard.
49714 * lib/tls.h: Add multiple inclusion guard.
49716 2005-08-24 Bruno Haible <bruno@clisp.org>
49718 * gnulib-tool: Add support for the --aux-dir option to
49719 --create-testdir, --create-megatestdir, --test, --megatest.
49720 (func_create_testdir, func_create_megatestdir): Optionally emit a
49721 AC_CONFIG_AUX_DIR directive.
49722 (create-testdir, create-megatestdir, test, megatest): Provide a
49723 default value for $auxdir.
49725 2005-08-24 Bruno Haible <bruno@clisp.org>
49727 * gnulib-tool (import): Use compound statement instead of subshell
49730 2005-08-24 Bruno Haible <bruno@clisp.org>
49732 * gnulib-tool (import): Change --aux-dir default to "build-aux".
49734 2005-08-24 Bruno Haible <bruno@clisp.org>
49736 * gnulib-tool (func_version): Update.
49738 2005-08-24 Bruno Haible <bruno@clisp.org>
49740 * gnulib-tool (func_import, func_create_testdir,
49741 func_create_megatestdir): Quote all autoconf macro arguments.
49743 2005-08-24 Bruno Haible <bruno@clisp.org>
49745 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
49746 option --force, because --force causes the aclocal.m4 of each
49747 subdirectory to be newer than the corresponding config.h.in.
49749 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
49751 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
49752 All contents moved to gl_REGEX.
49753 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
49754 assume that it does.
49756 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
49758 * lib/regex.h (REG_NOSYS)
49759 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
49760 Define, since POSIX requires it as of 2001.
49762 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
49763 New private symbol, used to keep the enum signed in all cases.
49764 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
49766 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
49768 * lib/regex_internal.c (re_string_skip_chars, register_state):
49770 Remove forward decls; no longer needed now that we use prototypes.
49771 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
49772 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
49773 (clean_state_log_if_needed): Likewise.
49775 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
49777 * config/srclist.txt: Add glibc bugs 1231-1233.
49779 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
49781 Fix problems reported by Sam Steingold in
49782 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
49783 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
49784 assumed that reg_errcode_t is a signed type, which is not
49785 necessarily true if _XOPEN_SOURCE is not defined.
49786 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
49787 since some compilers warn about it otherwise.
49789 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
49791 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
49792 (init_word_char, create_initial_state, duplicate_node_closure):
49793 (fetch_token, peek_token_bracket, build_range_exp):
49794 (build_collating_symbol): Remove forward decls; no longer needed
49795 now that we use prototypes.
49798 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
49799 (re_compile_fastmap_iter, regcomp, regerror, regfree):
49800 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
49801 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
49802 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
49803 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
49804 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
49805 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
49806 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
49807 (build_range_exp, build_collating_symbol, parse_bracket_exp):
49808 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
49809 (build_charclass, build_charclass_op, fetch_number, create_tree):
49810 (create_token_tree, mark_opt_subexp, duplicate_tree):
49811 Use prototypes rather than old-style definitions.
49813 * lib/regex_internal.c:
49814 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
49815 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
49816 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
49817 (re_string_reconstruct, re_string_peek_byte_case):
49818 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
49819 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
49820 (re_node_set_init_copy, re_node_set_add_intersect):
49821 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49822 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49823 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
49824 (re_acquire_state, re_acquire_state_context, register_state):
49825 (create_ci_newstate, create_cd_newstate, free_state):
49827 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
49829 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
49830 (re_search_internal, prune_impossible_nodes):
49831 (acquire_init_state_context, check_matching, static):
49832 (check_halt_node_context, check_halt_state_context, proceed_next_node):
49833 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
49834 (update_regs, sift_states_backward, build_sifted_states):
49835 (clean_state_log_if_needed, merge_state_array):
49836 (update_cur_sifted_state, add_epsilon_src_nodes):
49837 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
49838 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
49839 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
49840 (find_recover_state, check_subexp_matching_top, transit_state_mb):
49841 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
49842 (check_arrival, check_arrival_add_next_nodes):
49843 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
49844 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
49845 (check_node_accept_bytes, check_node_accept, extend_buffers):
49846 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
49847 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
49851 * lib/regex_internal.h:
49852 (re_string_allocate, re_string_construct, re_string_reconstruct):
49853 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
49854 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
49855 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
49856 (re_string_context_at, re_string_peek_byte_case):
49857 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
49858 is defined, since we now use prototypes always.
49860 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
49861 C89 or better. All uses removed.
49863 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
49865 * config/srclist.txt: Add glibc bugs 1220-1227.
49867 2005-08-20 Jim Meyering <jim@meyering.net>
49869 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
49870 of unused local, dfa.
49872 2005-08-20 Bruno Haible <bruno@clisp.org>
49874 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
49876 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
49878 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
49879 (re_node_set_insert_last, re_dfa_add_node):
49880 Rename local variables to avoid GCC shadowing warnings.
49882 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
49884 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
49885 [defined lint]: Suppress bogus uninitialized-variable warnings.
49887 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
49888 and let the caller return REG_ESPACE if out of space. This
49889 removes an uninitialied-variable warning with GCC 4.0.1, and also
49890 avoids taking the address of a local variable. All callers
49893 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
49895 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
49896 $LIBCSRC/posix/regexec.c.
49897 Add glibc bug 1217 for regcomp.c.
49899 2005-08-19 Jim Meyering <jim@meyering.net>
49901 * lib/regexec.c (proceed_next_node): Redo local variables to
49902 avoid GCC shadowing warnings.
49904 2005-08-18 Bruno Haible <bruno@clisp.org>
49906 * lib/strstr.c (strstr): Fix return value in multibyte case.
49907 * lib/strcasestr.c (strcasestr): Likewise.
49909 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
49911 * lib/regex.h: Remove useless space-before-tab. From coreutils.
49913 2005-08-17 Jim Meyering <jim@meyering.net>
49915 Make the %s format (seconds since the epoch) work for a negative
49916 number and when used with a zero-padded field width, e.g. %015s.
49918 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
49919 label so that it precedes the code to set `digits'. Otherwise,
49920 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
49921 print `00-22'. Now, it prints `-0022', as it should.
49923 2005-08-17 Bruno Haible <bruno@clisp.org>
49925 * modules/strstr (Files): Add m4/mbrtowc.m4.
49926 (Depends-on): Add mbuiter.
49928 2005-08-17 Bruno Haible <bruno@clisp.org>
49930 * modules/strcasestr: New file.
49931 * MODULES.html.sh (String handling, based on ANSI C 89): Add
49934 2005-08-17 Bruno Haible <bruno@clisp.org>
49936 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
49938 2005-08-17 Bruno Haible <bruno@clisp.org>
49940 * modules/mbuiter: New file.
49941 * MODULES.html.sh (Extended multibyte and wide character utilities):
49944 2005-08-17 Bruno Haible <bruno@clisp.org>
49946 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
49947 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
49949 2005-08-17 Bruno Haible <bruno@clisp.org>
49951 * m4/strcasestr.m4: New file.
49953 2005-08-17 Bruno Haible <bruno@clisp.org>
49955 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
49956 * lib/strstr.c: Completely rewritten, with multibyte locale support.
49958 2005-08-17 Bruno Haible <bruno@clisp.org>
49960 * lib/strcasestr.h: New file.
49961 * lib/strcasestr.c: New file.
49963 2005-08-17 Bruno Haible <bruno@clisp.org>
49965 * lib/strcasecmp.c: Use mbuiter.h.
49967 2005-08-17 Bruno Haible <bruno@clisp.org>
49969 * lib/mbuiter.h: New file.
49971 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
49973 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
49974 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
49975 and gl_GETOPT are both invoked via different paths (as happens
49976 with GNU tar CVS because it uses both argp and getopt), the former
49979 2005-08-16 Bruno Haible <bruno@clisp.org>
49981 * modules/tls: New file.
49982 * MODULES.html.sh (Multithreading): Add tls.
49984 2005-08-16 Bruno Haible <bruno@clisp.org>
49986 * modules/strnlen1: New file.
49987 * MODULES.html.sh (String handling): Add strnlen1.
49989 2005-08-16 Bruno Haible <bruno@clisp.org>
49991 * modules/strcase (Files): Add m4/mbrtowc.m4.
49992 (Depends-on): Add strnlen1, mbchar.
49994 2005-08-16 Bruno Haible <bruno@clisp.org>
49996 * modules/mbiter: New file.
49997 * MODULES.html.sh (Extended multibyte and wide character utilities):
50000 2005-08-16 Bruno Haible <bruno@clisp.org>
50002 * modules/mbfile: New file.
50003 * MODULES.html.sh (Extended multibyte and wide character utilities):
50006 2005-08-16 Bruno Haible <bruno@clisp.org>
50008 * modules/mbchar: New file.
50009 * MODULES.html.sh (Extended multibyte and wide character utilities):
50012 2005-08-16 Bruno Haible <bruno@clisp.org>
50014 * m4/tls.m4: New file, from GNU gettext.
50016 2005-08-16 Bruno Haible <bruno@clisp.org>
50018 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
50020 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
50022 2005-08-16 Bruno Haible <bruno@clisp.org>
50024 * m4/mbiter.m4: New file.
50026 2005-08-16 Bruno Haible <bruno@clisp.org>
50028 * m4/mbfile.m4: New file.
50030 2005-08-16 Bruno Haible <bruno@clisp.org>
50032 * m4/mbchar.m4: New file.
50034 2005-08-16 Bruno Haible <bruno@clisp.org>
50036 * lib/tls.h: New file, from GNU gettext.
50037 * lib/tls.c: New file, from GNU gettext.
50039 2005-08-16 Bruno Haible <bruno@clisp.org>
50041 * lib/strnlen1.h: New file.
50042 * lib/strnlen1.c: New file.
50044 2005-08-16 Bruno Haible <bruno@clisp.org>
50046 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
50047 (mbi_init): Update.
50048 (mbi_avail, mbi_advance): Let the iteration end before the terminating
50049 NUL byte, not after it.
50051 2005-08-16 Bruno Haible <bruno@clisp.org>
50053 * lib/strcase.h (strcasecmp): Add note in comments.
50054 * lib/strncasecmp.c: Use code from strcasecmp.c.
50055 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
50056 (strcasecmp): Work correctly in multibyte locales.
50058 2005-08-16 Bruno Haible <bruno@clisp.org>
50060 * lib/mbiter.h: New file.
50062 2005-08-16 Bruno Haible <bruno@clisp.org>
50064 * lib/mbfile.h: New file.
50066 2005-08-16 Bruno Haible <bruno@clisp.org>
50068 * lib/mbchar.h: New file.
50069 * lib/mbchar.c: New file.
50071 2005-08-16 Bruno Haible <bruno@clisp.org>
50073 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
50074 the valid ones. Makes the comparison operations transitive:
50075 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
50076 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
50078 2005-08-15 Simon Josefsson <jas@extundo.com>
50080 * modules/ssize_t (License): Change to 'unlimited'.
50082 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
50084 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
50086 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
50087 Add comments for each pending glibc patch.
50089 2005-08-15 Bruno Haible <bruno@clisp.org>
50091 * lib/regex.h (__restrict_arr): Don't define to __restrict if
50092 __cplusplus is defined.
50094 2005-08-14 Jim Meyering <jim@meyering.net>
50096 Sync from coreutils.
50098 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
50099 Use the hash-table-based cycle-detection code not just when
50100 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
50101 Reported by James Youngman in
50102 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
50103 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
50104 FTS_TIGHT_CYCLE_CHECK.
50105 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
50106 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
50108 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
50109 * lib/fts.c (fd_safer): Remove decl.
50110 Include fcntl--.h rather than unistd-safer.h
50111 (fts_safe_changedir): Don't call fd_safer; no longer needed
50112 now that we include fcntl--.h.
50114 2005-08-12 Simon Josefsson <jas@extundo.com>
50116 * modules/getndelim2: Use ssize_t module.
50117 * modules/getnline: Likewise.
50118 * modules/safe-read: Likewise.
50119 * modules/xreadlink: Likewise.
50121 * modules/ssize_t: New file.
50123 2005-08-12 Simon Josefsson <jas@extundo.com>
50125 * m4/readline.m4: Look for termcap, curses or ncurses if required.
50127 2005-08-12 Simon Josefsson <jas@extundo.com>
50129 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50132 2005-08-12 Simon Josefsson <jas@extundo.com>
50134 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
50135 readline, getdelim and check_version.
50136 (Support for systems lacking ISO C 99: Sizes of integer types):
50139 2005-08-12 Bruno Haible <bruno@clisp.org>
50141 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
50143 2005-08-11 Simon Josefsson <jas@extundo.com>
50145 * modules/readline: New file.
50147 * modules/strnlen (Files): Add strnlen.h.
50149 2005-08-11 Simon Josefsson <jas@extundo.com>
50151 * m4/readline.m4: New file.
50153 2005-08-11 Simon Josefsson <jas@extundo.com>
50155 * lib/readline.h, readline.c: New file.
50157 2005-08-11 Simon Josefsson <jas@extundo.com>
50159 * doc/gnulib.texi (Initial import, Finishing touches): Mention
50162 2005-08-11 Bruno Haible <bruno@clisp.org>
50164 * lib/strnlen.h (strnlen): Change parameter name to match comment.
50166 2005-08-10 Stepan Kasal <kasal@ucw.cz>
50168 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
50170 2005-08-10 Simon Josefsson <jas@extundo.com>
50172 * tests/test-iconvme.c: New file.
50174 2005-08-10 Simon Josefsson <jas@extundo.com>
50176 * m4/strnlen.m4: New file.
50178 * m4/strndup.m4: Don't check for strnlen declaration, done in
50181 2005-08-10 Simon Josefsson <jas@extundo.com>
50183 * lib/strndup.c: Use strnlen.h.
50185 * lib/strnlen.h: New file.
50187 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
50191 2005-08-02 Simon Josefsson <jas@extundo.com>
50193 * modules/readline: New file.
50195 2005-08-02 Simon Josefsson <jas@extundo.com>
50197 * modules/getdelim: New file.
50199 * modules/getline: Rewrite, don't use getndelim2.
50201 2005-08-02 Simon Josefsson <jas@extundo.com>
50203 * m4/getline.m4: Separate out getdelim stuff into separate module.
50205 * m4/getdelim.m4: New file.
50207 2005-08-02 Simon Josefsson <jas@extundo.com>
50209 * lib/getline.h, getline.c: Rewrite.
50211 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
50213 2005-07-31 Bruno Haible <bruno@clisp.org>
50215 * lib/lock.h (gl_lock_initializer): New macro.
50216 (gl_lock_define_initialized): Use it.
50217 (gl_rwlock_initializer): New macro.
50218 (gl_rwlock_define_initialized): Use it.
50219 (gl_recursive_lock_initializer): New macro.
50220 (gl_recursive_lock_define_initialized): Use it.
50222 2005-07-30 Karl Berry <karl@gnu.org>
50224 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
50225 Report from Ben Pfaff, regarding getopt.
50227 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
50229 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
50231 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
50232 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
50233 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
50234 (gl_GETOPT): Use the new macros. Most of the implementation
50235 is moved to the new macros. This is for programs like Emacs
50236 that don't want all the functionality of gl_GETOPT.
50238 2005-07-26 Bruno Haible <bruno@clisp.org>
50240 * m4/lock.m4: Update from GNU gettext.
50242 2005-07-26 Bruno Haible <bruno@clisp.org>
50244 * lib/lock.h: Update from GNU gettext.
50245 * lib/lock.c: Update from GNU gettext.
50247 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
50249 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
50250 obsolescent AC_TRY_RUN. Include the default includes files, for
50253 2005-07-24 Bruno Haible <bruno@clisp.org>
50255 * modules/visibility: New file.
50256 * MODULES.html.sh (Misc): Add visibility.
50258 2005-07-24 Bruno Haible <bruno@clisp.org>
50260 * m4/visibility.m4: New file.
50262 2005-07-24 Bruno Haible <bruno@clisp.org>
50264 * doc/visibility.texi: New file.
50266 2005-07-22 Bruno Haible <bruno@clisp.org>
50268 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
50269 $(ALLOCA_H), redundant through BUILT_SOURCES.
50270 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
50271 redundant through BUILT_SOURCES.
50272 * modules/byteswap (Makefile.am): Remove explicit dependency on
50273 $(BYTESWAP_H), redundant through BUILT_SOURCES.
50274 * modules/fnmatch (Makefile.am): Remove explicit dependency on
50275 $(FNMATCH_H), redundant through BUILT_SOURCES.
50276 * modules/getopt (Makefile.am): Remove explicit dependency on
50277 $(GETOPT_H), redundant through BUILT_SOURCES.
50278 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
50279 redundant through BUILT_SOURCES.
50280 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
50281 redundant through BUILT_SOURCES.
50282 * modules/stdbool (Makefile.am): Remove explicit dependency on
50283 $(STDBOOL_H), redundant through BUILT_SOURCES.
50284 * modules/stdint (Makefile.am): Remove explicit dependency on
50285 $(STDINT_H), redundant through BUILT_SOURCES.
50286 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
50287 Remove explicit dependency on $(SYSEXITS_H).
50288 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
50290 2005-07-18 Simon Josefsson <jas@extundo.com>
50292 * lib/check-version.c (check_version): Accept identical versions too.
50294 2005-07-18 Bruno Haible <bruno@clisp.org>
50296 * modules/lock: New file.
50297 * MODULES.html.sh (Multithreading): New section.
50299 2005-07-18 Bruno Haible <bruno@clisp.org>
50301 * m4/lock.m4: New file, from GNU gettext.
50303 2005-07-18 Bruno Haible <bruno@clisp.org>
50305 * lib/lock.h: New file, from GNU gettext.
50306 * lib/lock.c: New file, from GNU gettext.
50308 2005-07-18 Bruno Haible <bruno@clisp.org>
50310 * lib/lock.h (gl_once_t): New type.
50311 (gl_once_define, gl_once): New macros.
50312 * lib/lock.c (fresh_once): New variable.
50313 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
50316 2005-07-16 Simon Josefsson <jas@extundo.com>
50318 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
50319 workaround, suggested by Bruno.
50321 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
50323 * modules/xalloc (Depends-on): Add xalloc-die.
50324 * modules/xvasprintf (Depends-on): Add xalloc-die.
50326 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
50328 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
50329 with a minor change.
50331 2005-07-15 Bruno Haible <bruno@clisp.org>
50333 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
50334 When using lib/poll.c, define poll as rpl_poll.
50336 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
50338 * modules/argp (Depends-on): Remove unlocked-io.
50340 2005-07-14 Derek Price <derek@ximbiot.com>
50342 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
50343 for glob symlink bug.
50345 2005-07-14 Bruno Haible <bruno@clisp.org>
50347 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
50348 Instead, test for *_unlocked function declarations directly.
50350 2005-07-11 Simon Josefsson <jas@extundo.com>
50352 * modules/size_max: New file.
50354 * modules/xsize: Depend on size_max module for size_max.m4.
50356 2005-07-11 Simon Josefsson <jas@extundo.com>
50358 * lib/size_max.h: New file.
50360 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
50362 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
50363 copyright symbol and the year.
50364 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
50365 (version_etc_va): Use parameterized copyright notice.
50366 Reword to conform to the current GNU coding standards.
50368 2005-07-11 Karl Berry <karl@gnu.org>
50370 * doc/gnulib.texi (Quoting): new node.
50371 (Initial import): more info, from Patrice.
50373 2005-07-11 Bruno Haible <bruno@clisp.org>
50375 * gnulib-tool (func_usage): Document option --avoid.
50376 (Command line options): Handle --avoid.
50377 (func_acceptable): New function.
50378 (func_modules_transitive_closure): Use it.
50380 2005-07-11 Bruno Haible <bruno@clisp.org>
50382 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
50383 Reported by Jim Meyering.
50385 2005-07-10 Bruno Haible <bruno@clisp.org>
50387 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
50388 Needed when size_t is smaller than 'unsigned int'.
50389 Reported by Paul Eggert.
50391 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
50393 * modules/argp (Depends-on): Add unlocked-io
50395 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
50397 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
50400 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
50402 * config/srclist.txt: Comment out regcomp.c, since we have a porting
50405 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
50406 and Paul Eggert <eggert@cs.ucla.edu>
50408 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
50409 in wint_t, not wchar_t. Remove now-unnecessary cast.
50411 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
50413 * modules/regex (Files): Add lib/regex_internal.c,
50414 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
50415 (Depends-on): Add extensions.
50416 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
50418 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
50420 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
50422 * m4/same.m4 (gl_SAME): Likewise.
50423 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
50425 * m4/regex.m4: Adjust to new libc regex implementation.
50426 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
50427 all the .c and .h parts of (the new) regex.
50428 Quote the m4 stuff better.
50429 Check for RE_ICASE bug of old gnulib.
50430 Check for REG_STARTEND of recent libc.
50431 Rename local variables from jm_* to gl_*.
50432 Quote operand of "test -f".
50433 Say "recent enough" version of libc, not "version 2".
50434 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
50435 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
50436 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
50437 Remove check for btowc, isascii.
50438 Require AM_LANGINFO_CODESET.
50440 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
50442 * lib/regex.c, regex.h: Sync from libc.
50443 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
50445 New files, synced from libc, except that regex_internal.h
50446 currently has a small porting fix.
50448 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
50450 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
50451 regex_internal.c, regexec.c.
50452 Add regex_internal.h too, but as a comment, since the libc version
50453 is currently broken in gnulib mode.
50455 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
50457 Support programs like Emacs that use gnulib but not gettext.
50458 * MODULES.html.sh (Internationalization functions): Add gettext-h.
50459 * modules/gettext-h: New file.
50460 * modules/gettext (Files): Remove lib/gettext.h.
50461 (Depends-on): Add gettext-h.
50462 (Makefile.am): Remove lib_SOURCES.
50463 * modules/argmatch, modules/c-stack, modules/closeout:
50464 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
50465 * modules/execute, modules/file-type, modules/getaddrinfo:
50466 * modules/getopt, modules/human, modules/javacomp:
50467 * modules/javaexec, modules/mkdir-p, modules/obstack:
50468 * modules/openat, modules/pagealign_alloc, modules/pipe:
50469 * modules/quotearg, modules/regex, modules/rpmatch:
50470 * modules/unicodeio, modules/userspec, modules/version-etc:
50471 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
50473 Depend on gettext-h, not gettext.
50475 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
50477 * gnulib-tool (func_import): Add support for 'public domain' license.
50478 * modules/alloca, modules/atexit, modules/memmove:
50479 Now public domain, not GPL.
50480 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
50481 * modules/realloc, modules/strerror, modules/strtod:
50484 2005-07-05 Bruno Haible <bruno@clisp.org>
50486 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
50487 autoconf CVS. Needed for mingw.
50489 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
50491 Remove the dependency of the strftime module on the tzset module.
50492 * modules/strftime (Depends-on): Remove dependency on tzset.
50494 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
50496 Remove the dependency of the strftime module on the tzset module.
50497 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
50498 gl_FUNC_TZSET_CLOBBER.
50500 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
50502 Remove the dependency of the strftime module on the tzset module.
50503 * lib/strftime.c (my_strftime)
50504 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
50505 Copy the input structure, to work around some of the bug with
50506 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
50507 Solaris releases, you should also use the tzset module, but we won't
50508 require it as a dependency any more since we don't want LGPLed code
50509 to depend on GPLed code.
50511 2005-07-02 Jim Meyering <jim@meyering.net>
50513 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
50514 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
50515 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
50516 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
50518 2005-07-02 Jim Meyering <jim@meyering.net>
50520 * lib/backupfile.c (backup_args): Change a `0' to NULL.
50522 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
50524 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
50525 declares only 'struct timespec;' (!).
50527 2005-07-01 Jim Meyering <jim@meyering.net>
50529 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
50530 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
50531 * lib/save-cwd.c, tempname.c:
50532 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
50533 and don't include <sys/file.h>).
50535 2005-06-29 Jim Meyering <jim@meyering.net>
50537 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
50538 type name. Use the variable name instead.
50539 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
50542 2005-06-28 Simon Josefsson <jas@extundo.com>
50544 * modules/check-version (Files): Add check-version.m4.
50546 2005-06-28 Simon Josefsson <jas@extundo.com>
50548 * m4/check-version.m4: New file, suggested by Jim Meyering
50549 <jim@meyering.net>.
50551 2005-06-28 Simon Josefsson <jas@extundo.com>
50553 * lib/check-version.h, lib/check-version.c: New files.
50555 2005-06-28 Simon Josefsson <jas@extundo.com>
50557 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
50558 collision with global variable. Better indentation. Don't
50559 increment buffer pointer beyond buffer end. Based on comments
50560 from Paul Eggert <eggert@cs.ucla.edu>.
50562 * lib/base64.h: Indent.
50564 2005-06-28 Simon Josefsson <jas@extundo.com>
50566 * doc/gnulib.texi (Library version handling): New section.
50568 2005-06-28 Jim Meyering <jim@meyering.net>
50570 * check-module (find_included_lib_files): Hard-code another
50571 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
50572 but modules/fts-lgpl (correctly) does not list those files.
50574 * modules/canonicalize (Files): Add lib/pathmax.h.
50576 2005-06-25 Simon Josefsson <jas@extundo.com>
50578 * modules/check-version: New file.
50580 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
50582 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
50583 initializer of struct addrinfo, as an indication that we don't
50584 care how many members the structure has.
50586 2005-06-24 Derek Price <derek@ximbiot.com>
50587 and Bruno Haible <bruno@clisp.org>
50589 Remove stat module & update lstat.
50590 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
50591 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
50592 * m4/stat.m4: Remove this file.
50594 2005-06-24 Derek Price <derek@ximbiot.com>
50595 and Bruno Haible <bruno@clisp.org>
50597 Remove stat module & update lstat.
50598 * lib/stat.c: Remove this file...
50599 (slash_aware_lstat): ...moving this content and its support...
50600 * lib/lstat.c (rpl_lstat): ...into here.
50601 * lib/lstat.h: New file.
50603 2005-06-24 Derek Price <derek@ximbiot.com>
50604 and Bruno Haible <bruno@clisp.org>
50606 Remove stat module & update lstat.
50607 * config/srclist.txt (libc sources): Remove stat.
50609 2005-06-24 Derek Price <derek@ximbiot.com>
50610 and Bruno Haible <bruno@clisp.org>
50612 Remove stat module & update lstat.
50613 * MODULES.html.sh (stat): Remove.
50614 * MODULES.html: Regenerated.
50615 * modules/lstat (Description): Correct function name.
50616 (Files): Add "lstat.h".
50617 (Depends-on): Remove stat, add xalloc, stat-macros.
50618 * modules/stat: Remove this file.
50619 (Include): Add "lstat.h", remove <sys/stat.h>.
50621 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
50623 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
50624 (ranged_convert): Don't save conversion in a temporary struct.
50625 This causes a warning with GCC 4.0.0, and anyway in the typical
50626 case it's not worth the extra 100 bytes or so of code.
50627 (ranged_convert, __mktime_internal): When calling a function via a
50628 pointer P, use P () rather than (*P) (), as we now assume C89 or
50631 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
50633 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
50634 "who -r" failed to give output. Problem reported by Tim Waugh.
50636 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
50637 (xcalloc): Use it to avoid needless tests.
50638 Problem reported by Jim Meyering.
50640 2005-06-20 Derek Price <derek@ximbiot.com>
50642 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
50643 unnecessary for Autoconfs > 2.59c.
50645 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
50647 * lib/argp.h (__option_is_short): Check upper limit of
50648 __key. Isprint() requires its argument to have the value
50649 of an unsigned char or EOF.
50651 2005-06-16 Jim Meyering <jim@meyering.net>
50653 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
50654 when either N or S is zero.
50656 2005-06-16 Derek Price <derek@ximbiot.com>
50658 * m4/bison.m4: Declare YACC & YFLAGS precious.
50660 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
50662 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
50663 multibyte string or pattern, fall back on unibyte matching.
50664 Problem reported by James Youngman.
50666 2005-06-08 Bruno Haible <bruno@clisp.org>
50668 * modules/csharpcomp: New file.
50669 * MODULES.html.sh (C#): Add csharpcomp.
50671 2005-06-08 Bruno Haible <bruno@clisp.org>
50673 * m4/csharpcomp.m4: New file, from GNU gettext.
50675 2005-06-08 Bruno Haible <bruno@clisp.org>
50677 * lib/csharpcomp.h: New file, from GNU gettext.
50678 * lib/csharpcomp.c: New file, from GNU gettext.
50679 * lib/csharpcomp.sh.in: New file, from GNU gettext.
50681 2005-06-08 Bruno Haible <bruno@clisp.org>
50683 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
50686 2005-06-07 Derek Price <derek@ximbiot.com>
50689 * lib/glob_.h: Indent nested #ifdef.
50691 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
50693 Sync from coreutils.
50694 Use "file name" when talking about file names, instead of "filename"
50695 or "path", as per the GNU coding standards.
50696 * lib/mkdir-p.c: Renamed from makepath.c.
50697 (make_dir_parents): Renamed from make_path. All callers changed.
50698 * lib/mkdir-p.h: Likewise. All includers changed.
50699 * lib/filenamecat.c: Renamed from path-concat.c.
50700 (file_name_concat): Renamed from path_concat. All callers changed.
50701 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
50702 * lib/filenamecat.h: Likewise. All includers changed.
50703 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
50704 in comments or local variable names.
50705 * lib/basename.c: Likewise.
50706 * lib/canonicalize.c, canonicalize.h: Likewise.
50707 * lib/dirname.c, dirname.h: Likewise.
50708 * lib/euidaccess.c: Likewise.
50709 * lib/exclude.c: Likewise
50710 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
50711 * lib/fsusage.c, fsuage.h: Likewise.
50712 * lib/fts.c, fts_.h: Likewise.
50713 * lib/getcwd.c: Likewise.
50714 * lib/getloadavg.c: Likewise.
50715 * lib/mkstemp.c: Likewise.
50716 * lib/mountlist.c, mountlist.h: Likewise.
50717 * lib/openat.c, openat.h: Likewise.
50718 * lib/readlink-stub.c: Likewise.
50719 * lib/readutmp.c, readutmp.h: Likewise.
50720 * lib/rename.c: Likewise.
50721 * lib/rmdir.c: Likewise.
50722 * lib/same.c: Likewise.
50723 * lib/savedir.c: Likewise.
50724 * lib/stripslash.c: Likewise.
50725 * lib/tempname.c: Likewise.
50726 * lib/xreadlink.c: Likewise.
50727 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
50729 * lib/exclude.h: Likewise.
50731 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
50732 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50733 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
50734 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50735 * lib/pathmax.h: Include <limits.h> unconditionally, since other
50736 files have been getting away with it for years (MORE/BSD 4.3
50738 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
50739 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50741 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
50742 Define to 256, not 255, as per modern POSIX.
50744 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
50746 Sync from coreutils.
50747 Use "file name" when talking about file names, instead of "filename"
50748 or "path", as per the GNU coding standards.
50749 * MODULES.html.sh: mkdir-p renamed from makepath.
50750 filenamecat renamed from path-concat.
50751 * modules/filenamecat: Renamed from modules/path-concat.
50752 (Files): filenamecat.h and filenamecat.c renamed from
50753 path-concat.h and path-concat.c.
50754 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
50755 (Include): filenamecat.h, not path-concat.h.
50756 * modules/mkdir-p: Renamed from modules/makepath.
50757 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
50759 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
50760 (Include): mkdir-p.h, not makepath.h.
50762 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
50764 Sync from coreutils.
50765 * m4/mkdir-p.m4: Renamed from makepath.m4.
50766 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
50767 Rename files from makepath.c to mkdir-p.c, and from
50768 makepath.h to mkdir-p.h.
50769 * m4/filenamecat.m4: Renamed from path-concat.m4.
50770 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
50771 Rename files from path-concat.c to filenamecat.c,
50772 and from path-concat.h to filenamecat.h.
50773 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
50774 "file name" in local variables or comments.
50775 * m4/rename.m4: Likewise.
50777 2005-06-01 Bruno Haible <bruno@clisp.org>
50779 * modules/csharpexec: New file.
50780 * MODULES.html.sh (C#): New section.
50782 2005-06-01 Bruno Haible <bruno@clisp.org>
50784 * m4/csharp.m4: New file, from GNU gettext.
50785 * m4/csharpexec.m4: New file, from GNU gettext.
50787 2005-06-01 Bruno Haible <bruno@clisp.org>
50789 * lib/csharpexec.h: New file, from GNU gettext.
50790 * lib/csharpexec.c: New file, from GNU gettext.
50791 * lib/csharpexec.sh.in: New file, from GNU gettext.
50793 2005-05-31 Derek Price <derek@ximbiot.com>
50794 Paul Eggert <eggert@cs.ucla.edu>
50797 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
50799 2005-05-31 Derek Price <derek@ximbiot.com>
50800 Paul Eggert <eggert@cs.ucla.edu>
50803 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
50805 2005-05-29 Derek Price <derek@ximbiot.com>
50807 * config/srclist.txt (glob_.h, glob.c): Add these files.
50809 2005-05-29 Derek Price <derek@ximbiot.com>
50811 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
50812 * modules/glob: New file.
50813 * modules/getlogin_r: Add link to POSIX spec in description.
50815 2005-05-29 Derek Price <derek@ximbiot.com>
50816 Paul Eggert <eggert@cs.ucla.edu>
50818 * m4/glob.m4: New file.
50820 2005-05-29 Derek Price <derek@ximbiot.com>
50821 Paul Eggert <eggert@cs.ucla.edu>
50823 * lib/glob_.h, lib/glob.c: New files.
50825 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
50827 * modules/fts (Files): Remove m4/inttypes-pri.m4.
50828 * modules/fts-lgpl (Depends-on): Remove gettext.
50830 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
50832 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
50833 and don't require gt_INTTYPES_PRI.
50835 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
50837 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
50839 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
50840 the configuration hassle isn't worth it.
50841 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
50842 (LONGEST_MODIFIER, PRIuMAX): Remove.
50844 2005-05-27 Bruno Haible <bruno@clisp.org>
50846 * lib/getlogin_r.h: Remove second include of <stddef.h>.
50848 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
50850 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
50851 _POSIX_PTHREAD_SEMANTICS for Solaris.
50853 2005-05-25 Derek Price <derek@ximbiot.com>
50855 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
50857 2005-05-25 Derek Price <derek@ximbiot.com>
50858 Paul Eggert <eggert@cs.ucla.edu>
50860 * modules/getlogin_r, m4/getlogin_r.m4: New files.
50861 * lib/getlogin_r.c, getlogin_r.h: New files.
50863 2005-05-25 Bruno Haible <bruno@clisp.org>
50864 Derek Price <derek@ximbiot.com>
50866 * lib/getlogin_r.h: Simplify API documentation.
50868 2005-05-23 Derek Price <derek@ximbiot.com>
50870 * modules/minmax (Files): Add m4/minmax.m4.
50871 (configure.ac): Add gl_MINMAX.
50873 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
50875 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
50876 so that unistd-safer.h (GPL'ed code) need not be included.
50878 2005-05-22 Bruno Haible <bruno@clisp.org>
50880 * m4/minmax.m4: New file.
50881 Based on a patch by Derek Price <derek@ximbiot.com>.
50883 2005-05-22 Bruno Haible <bruno@clisp.org>
50885 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
50886 (INT64_MIN): Fix definition.
50887 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
50889 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
50890 NEED_SIGNED_INT_TYPES.
50892 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
50893 HAVE_SYSTEM_INTTYPES.
50895 2005-05-22 Bruno Haible <bruno@clisp.org>
50897 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
50898 Also include <sys/param.h> if it defines MIN, MAX.
50899 Based on a patch by Derek Price <derek@ximbiot.com>.
50901 2005-05-21 Jim Meyering <jim@meyering.net>
50903 * modules/fts (Files): Add m4/inttypes-pri.m4.
50904 (Depends-on): Add lstat and remove gettext. Alphabetize.
50906 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
50909 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
50910 (setup_dir, free_dir): New functions.
50911 (enter_dir, leave_dir): Define trivial
50912 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
50913 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
50914 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
50915 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
50916 Move to fts-cycle.c.
50917 (fts_open): Use setup_dir.
50918 (fts_close): Use free_dir.
50919 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
50920 This adds a label and some gotos, but the alternatives were messier.
50921 Check for memory allocation failure when entering a dir.
50922 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
50923 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
50924 (FTS): New member fts_cycle, that is a union that contains the
50925 old active_dir_ht and cycle_state. All uses changed to mention
50926 fts_cycle.ht and fts_cycle.state.
50927 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
50928 fts.c, with the following changes:
50929 (setup_dir, free_dir): New functions.
50930 (enter_dir): Now returns bool. Return true if successful, false
50931 if memory exhausted. All callers changed.
50932 Do not bother partly cleaning up on
50933 memory allocation failure; that is free_dir's job.
50934 However, free ad if hash_insert fails, to avoid memory leak.
50935 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
50936 fts->fts_options to see which union member to use.
50938 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
50940 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
50941 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
50943 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
50945 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
50947 2005-05-20 Jim Meyering <jim@meyering.net>
50949 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
50950 Now a macro, to pacify GCC.
50952 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
50954 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
50957 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
50959 * lib/chown.c (rpl_chown): Return -1 on failure.
50961 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
50963 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
50964 Don't check for stddef.h.
50965 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
50966 don't use its results.
50967 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
50968 since we include them unconditionally. Don't require
50969 AM_STDBOOL_H, since stdbool is a prerequisite.
50970 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
50971 since we assume C89 or better.
50972 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
50973 as we don't use their results.
50974 Don't check for fchdir, memmove, memset, strrchr, as we use
50975 them unconditionally.
50976 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
50977 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
50979 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
50981 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
50982 Include <stddef.h> unconditionally, since we assume C89 now.
50983 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
50984 * lib/fts.c: Include fts_.h first, to check interface.
50985 Do not include intprops.h; no longer needed.
50986 Include cycle-check.h and hash.h, since fts_.h no longer does.
50987 Remove unnecessary casts of closedir to void.
50988 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
50989 decide whether to decrement nlinks.
50990 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
50991 (FTS): Use struct hash_table * instead of Hash_table, so that
50992 we no longer need to include hash.h here.
50994 2005-05-18 Jim Meyering <jim@meyering.net>
50996 * modules/dirfd (License): Change to LGPL. Most of the code
50997 is already in the public domain.
50999 2005-05-18 Jim Meyering <jim@meyering.net>
51001 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
51002 Reported by Yoann Vandoorselaere.
51004 2005-05-17 Jim Meyering <jim@meyering.net>
51006 * m4/fts.m4: New file, from coreutils.
51008 2005-05-17 Jim Meyering <jim@meyering.net>
51010 * lib/fts.c, lib/fts_.h: New files, from coreutils.
51012 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
51014 Sync from coreutils.
51015 * m4/unlinkdir.m4: New file.
51017 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
51019 Sync from coreutils.
51020 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
51021 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
51022 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
51023 White space changes only.
51024 * lib/makepath.c (make_path): Port to hosts where leading "//" is
51026 * lib/yesno.c: Include getline.h, not ctype.h.
51027 (yesno): Don't remove leading white space; POSIX doesn't allow it.
51028 Use getline to remove arbitrary restriction on response length.
51030 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
51032 * config/srclist-update: Spell out "Street" in FSF postal
51033 mail address; this is the style the FSF seems to prefer.
51035 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
51036 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
51037 this updates FSF postal mail address.
51039 Sync from coreutils.
51040 * modules/unlinkdir: New file.
51041 * modules/yesno (Depends-on): Add getline.
51042 * MODULES.html.sh (File system functions): Add unlinkdir.
51044 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
51046 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
51048 Change the initial comment to refer to GPL, not LGPL.
51049 gnulib-tool will change it to LGPL as needed.
51051 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
51052 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
51053 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
51054 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
51055 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
51056 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
51057 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
51058 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
51059 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
51060 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
51061 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
51062 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
51063 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
51064 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
51065 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
51066 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
51067 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
51068 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
51069 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
51070 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
51071 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
51072 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
51073 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
51074 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
51075 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
51076 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
51077 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
51078 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
51079 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
51080 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
51081 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
51082 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
51083 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
51084 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
51085 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
51086 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
51087 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
51088 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
51089 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
51090 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
51091 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
51092 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
51093 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
51094 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
51095 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
51096 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
51097 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
51098 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
51099 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
51100 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
51101 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
51102 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
51103 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
51104 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
51105 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
51106 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
51107 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
51108 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
51109 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
51110 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
51111 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
51112 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
51113 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
51114 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
51115 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
51116 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
51117 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
51118 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
51119 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
51120 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
51121 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
51122 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
51123 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
51124 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
51125 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
51126 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
51127 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
51128 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
51129 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
51130 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
51131 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
51132 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
51133 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
51134 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
51135 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
51136 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
51137 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
51138 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
51139 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
51140 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
51141 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
51142 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
51143 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
51144 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
51145 lib/yesno.c, lib/yesno.h:
51146 Update FSF postal mail address.
51148 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
51150 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
51151 tests/test-memmem.c, tests/test-stpncpy.c:
51152 Update FSF postal mail address.
51154 2005-05-13 Bruno Haible <bruno@clisp.org>
51156 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
51157 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
51158 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
51159 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
51160 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
51161 Add support for 64-bit integers in the MSVC compiler.
51163 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51165 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
51167 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
51169 * gnulib-tool (func_import): Sort and uniquify recommended includes.
51171 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
51173 * doc/getdate.texi (General date syntax): Don't say that date
51174 date --iso-8601=ns generates acceptable dates; it doesn't yet.
51175 Problem reported by Nic Ferrier.
51177 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51179 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
51180 specified in ai_socktype. Fix invalid ai_protocol
51181 check. ai_protocol is usually set to 0 or depending on
51182 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
51183 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
51184 ai_socktype / ai_protocol in the returned addrinfo structure.
51186 2005-05-10 Simon Josefsson <jas@extundo.com>
51188 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
51189 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51191 2005-05-10 Karl Berry <karl@gnu.org>
51193 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
51194 (from http://www.gnu.org/licenses).
51195 * doc/COPYING.LIB: also rename to COPYING.LESSER.
51196 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
51199 2005-05-10 Karl Berry <karl@gnu.org>
51201 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
51202 (COPYING.DOC): remove.
51204 * config/srclist-update: new FSF address.
51206 2005-05-10 Derek Price <derek@ximbiot.com>
51208 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
51211 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51212 Bruno Haible <bruno@clisp.org>
51214 * modules/inet_ntop: New file.
51215 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51218 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51219 Bruno Haible <bruno@clisp.org>
51221 * m4/inet_ntop.m4: New file.
51223 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
51224 Bruno Haible <bruno@clisp.org>
51226 * lib/inet_ntop.h: New file.
51227 * lib/inet_ntop.c: New file, from glibc with modifications.
51229 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
51231 * modules/time_r (License): Change to LGPL.
51232 * modules/extensions (License): Change to LGPL. Actually,
51233 the license is more permissive than that, but currently gnulib-tool
51234 doesn't know how to handle more-permissive licenses.
51236 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
51237 Problem reported by Dave Love.
51239 2005-05-08 Jim Meyering <jim@meyering.net>
51241 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
51244 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
51246 * modules/argmatch (Depends-on): Add stdbool.
51247 * modules/backupfile (Depends-on): Likewise.
51248 * modules/chdir-long (Depends-on): Likewise.
51249 * modules/closeout (Depends-on): Likewise.
51250 * modules/cycle-check (Depends-on): Likewise.
51251 * modules/dirname (Depends-on): Likewise.
51252 * modules/fnmatch (Depends-on): Likewise.
51253 * modules/fsusage (Depends-on): Likewise.
51254 * modules/fwriteerror (Depends-on): Likewise.
51255 * modules/getcwd (Depends-on): Likewise.
51256 * modules/getloadavg (Depends-on): Likewise.
51257 * modules/hard-locale (Depends-on): Likewise.
51258 * modules/makepath (Depends-on): Likewise.
51259 * modules/mountlist (Depends-on): Likewise.
51260 * modules/nanosleep (Depends-on): Likewise.
51261 * modules/posixtm (Depends-on): Likewise.
51262 * modules/quotearg (Depends-on): Likewise.
51263 * modules/readtokens (Depends-on): Likewise.
51264 * modules/readtokens0 (Depends-on): Likewise.
51265 * modules/readutmp (Depends-on): Likewise.
51266 * modules/save-cwd (Depends-on): Likewise.
51267 * modules/strftime (Depends-on): Likewise.
51268 * modules/userspec (Depends-on): Likewise.
51269 * modules/utimecmp (Depends-on): Likewise.
51270 * modules/xgetcwd (Depends-on): Likewise.
51271 * modules/xnanosleep (Depends-on): Likewise.
51272 * modules/xstrtod (Depends-on): Likewise.
51273 * modules/yesno (Depends-on): Likewise.
51275 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
51277 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
51280 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
51282 Merge from coreutils. Among other things,
51283 add bulletproofing for cases where stdin, stdout, or stderr are closed.
51284 * lib/fd-safer.c: New file.
51285 * lib/fcntl-safer.h, open-safer.c: Remove.
51286 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
51287 * lib/dup-safer.c: Include unistd-safer.h first.
51288 Don't include errno.h.
51289 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
51290 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
51291 * lib/file-type.c: Rely on file-type.h change.
51292 * lib/getloadavg.c: Include unistd-safer.h.
51293 (getloadavg): Use safer open.
51294 * lib/getusershell.c: Include "stdio-safer.h".
51295 (getusershell): Use safer fopen.
51296 * lib/long-options.c (long_options): Use NULL rather than 0.
51297 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
51299 * lib/modechange.c: Likewise.
51300 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
51301 (MODE_DONE): New constant.
51302 (struct mode_change): Remove 'next' member.
51303 (make_node_op_equals): New function; like the old one of the
51304 same name, except it allocates an array.
51305 (mode_compile, mode_create_from_ref): Use it.
51306 (mode_compile): Allocate result as an array, not a linked list.
51307 Parse octal string ourself, so that we catch mistakes like "+0".
51308 (mode_adjust): Arg is an array, not a linked list.
51309 * lib/modechange.c: Include stat-macros.h, xalloc.h.
51310 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
51311 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
51312 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
51313 Remove. This is now stat-macros.h's job.
51314 (talloc): Remove. All callers replaced by xalloc, so that
51315 our invokers don't have to worry about reporting memory failures.
51316 (make_node_op_equals): Remove.
51317 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
51319 (struct mode_change): Moved here from modechange.h.
51320 (mode_append_entry): Remove.
51321 (mode_compile): Remove MASKED_OPS arg, since it encouraged
51322 apps to have incorrect behavior. Use simpler algorithm for head
51323 and tail. Don't futz with umask; that's now the job of mode_adjust.
51324 Detect more invalid usages rather than having somewhat-random behavior.
51325 Don't insert an "a=" action, as that leads to incorrect behavior.
51326 (mode_compile, mode_create_from_ref): Return NULL on error instead
51327 of an enum, since now there's only one way to have an error. All
51329 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
51330 at the correct time. Simplify calculation of "+u" and its ilk.
51331 Don't mishandle "+X".
51332 (mode_free): Remove "register" and localize decls.
51333 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
51334 (struct mode_change): Move to modechange.c; callers don't
51335 need to see this stuff.
51336 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
51337 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
51338 (mode_change, mode_adjust): Reflect the new signatures noted above.
51339 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
51340 that might redefine system include files.
51341 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
51342 (my_usleep): Use NULL rather than (void *) 0.
51343 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
51344 Use siginterrupt to specify that system calls should be interrupted.
51345 (rpl_nanosleep): Move initialization of suspended closer to call of
51347 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
51348 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
51349 (desirable_utmp_entry): New function.
51350 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
51351 using x2nrealloc, to simplify logic.
51352 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
51353 size calculation. Do not assume utmp file is a regular file.
51354 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
51355 (READ_UTMP_CHECK_PIDS): New constant.
51356 * lib/save-cwd.c: Include unistd-safer.h.
51357 (save_cwd): Use fd_safer.
51358 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
51359 [!_LIBC] Include "stat-macros.h" instead.
51360 * lib/unistd-safer.h (fd_safer): New decl.
51362 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
51364 * modules/getloadavg (Depends-on): Add unistd-safer.
51365 * modules/getusershell (Depends-on): Add stdio-safer.
51366 * modules/lstat (Depends-on): Remove xalloc.
51367 * modules/mkstemp (Depends-on): Add stat-macros.
51368 * modules/modechange (Depends-on): Remove xstrtol.
51369 Add stat-macros, xalloc.
51370 * modules/save-cwd (Depends-on): Add unistd-safer.
51371 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
51372 * modules/unistd-safer (Files): Add lib/fd-safer.c
51373 (Makefile.am): Remove lib_SOURCES.
51375 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
51376 Remove fcntl-safer; unistd-safer supersedes it.
51378 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
51380 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
51382 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
51383 (gl_PREREQ_CHOWN): Remove.
51384 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
51385 it. Don't require AC_HEADER_STAT.
51386 (gl_PREREQ_LSTAT): Remove.
51387 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
51388 Don't require AC_HEADER_STAT.
51389 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
51390 (gl_PREREQ_RMDIR): Remove.
51391 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
51392 mention stat-macros.h or AC_HEADER_STAT, since we'll make
51393 the stat-macros module a prerequisite.
51394 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
51395 * m4/filemode.m4 (gl_FILEMODE): Likewise.
51396 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
51397 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
51398 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
51400 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
51401 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
51403 * m4/fcntl-safer.m4: Remove.
51404 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
51405 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
51406 Invoke gl_PREREQ_FD_SAFER.
51407 (gl_PREREQ_FD_SAFER): New macro.
51408 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
51409 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
51410 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
51411 Remove duplicate call to AC_LIBOBJ(readutmp).
51412 (gl_PREREQ_READUTMP): Remove. All uses inlined.
51414 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
51415 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
51417 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
51419 * MODULES.html.sh (Misc): Add byteswap.
51421 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
51423 * modules/getcwd (Depends-on): Add extensions.
51424 * modules/openat (Depends-on): Likewise.
51426 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
51428 * modules/byteswap: New file.
51430 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
51432 * m4/byteswap.m4: New file.
51434 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
51436 * lib/byteswap_.h: New file.
51438 2005-04-25 Karl Berry <karl@gnu.org>
51440 * m4/gettext.m4: Update from GNU gettext 0.14.4.
51442 2005-04-25 Albert Chin <china@thewrittenword.com>
51444 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
51447 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
51449 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
51450 (func_ln_if_changed) Remove forcibly for no error message
51451 in case file does not exist.
51453 2005-04-19 Simon Josefsson <jas@extundo.com>
51455 * gnulib-tool (Options): Make --symlink mean --symbolic.
51457 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
51459 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
51461 2005-04-16 Simon Josefsson <jas@extundo.com>
51463 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
51465 2005-04-15 Simon Josefsson <jas@extundo.com>
51467 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
51469 2005-04-15 Simon Josefsson <jas@extundo.com>
51471 * gnulib-tool: Rename --symlink to --symbolic.
51473 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
51475 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
51476 symbolic links to files instead of copying/moving. Add --aux-dir,
51477 specifying directory relative --dir where auxiliary build tools
51480 2005-04-14 Bruno Haible <bruno@clisp.org>
51482 * modules/allocsa (License): Change to LGPL.
51483 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51485 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
51487 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
51488 that "UTC +1 second" continues to work. Problem reported
51489 by Dmitry V. Levin.
51490 (relunit_snumber): New rule.
51493 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
51495 * lib/getdate.y (universal_time_zone_table): New constant.
51496 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
51497 universal_time_zone_table.
51498 (lookup_zone): Prefer universal_time_zone_table to
51499 local_time_zone_table, so that "GMT" time stamps are allowed in
51500 London during the summer. Problem reported by Ian Abbott.
51502 2005-04-12 Jim Meyering <jim@meyering.net>
51504 * lib/human.c (humblock): Set *options even when returning due to
51505 xstrtoumax conversion failure. Thanks to a used-uninitialized
51506 warning from gcc-4.
51508 2005-04-09 Jim Meyering <jim@meyering.net>
51510 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
51511 -Wuninitialized: initialize tm0.tm_year.
51513 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
51515 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
51516 count, since there's no maximum. All uses changed.
51517 Add member dsts_seen.
51518 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
51520 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
51521 Use pc_rels_seen to decide whther a date is absolute.
51523 * lib/getdate.y (number): Don't overwrite year.
51524 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
51527 2005-04-02 Simon Josefsson <jas@extundo.com>
51529 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
51530 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
51532 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
51534 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
51535 where no absolute path name can be longer than PATH_MAX.
51537 2005-03-27 Jim Meyering <jim@meyering.net>
51539 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
51541 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
51543 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
51544 "one's complement" -> "ones' complement" in comment, as per Knuth.
51545 "value of type" -> "type or expression" in comment.
51546 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
51548 2005-03-26 Jim Meyering <jim@meyering.net>
51551 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
51552 Correct typos: s/or/of/.
51554 2005-03-26 Jim Meyering <jim@meyering.net>
51556 * modules/check-include-files: Move to ../ and rename to...
51557 * check-module: ...this.
51559 2005-03-25 Jim Meyering <jim@meyering.net>
51561 * modules/xvasprintf (Files): Add xalloc.h.
51563 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
51565 * modules/gettext (Files): config/config.rpath ->
51566 build-aux/config.rpath
51567 * modules/iconv (Files): Likewise.
51568 Problem reported by Oskar Liljeblad.
51570 2005-03-23 Jim Meyering <jim@meyering.net>
51572 * modules/check-include-files: New script to check for
51573 missing dependencies, multiple includes, etc.
51575 * modules/c-strtold (Depends-on): Add xalloc.
51576 * modules/c-strtod (Depends-on): Add xalloc.
51577 * modules/hash (Depends-on): Add xalloc.
51578 (Files): Remove lib/xalloc.h.
51580 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
51581 * modules/userspec (Files): Add lib/inttostr.h.
51583 2005-03-23 Jim Meyering <jim@meyering.net>
51585 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
51587 2005-03-22 Jim Meyering <jim@meyering.net>
51589 * modules/stat-macros: New module.
51590 * modules/canonicalize, modules/euidaccess, modules/file-type,
51591 * modules/filemode, modules/lchown, modules/makepath,
51592 * modules/rmdir, modules/stat: Depend on new stat-macros module
51593 rather than listing lib/stat-macros.h manually.
51594 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
51596 2005-03-22 Jim Meyering <jim@meyering.net>
51598 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
51600 2005-03-22 Bruno Haible <bruno@clisp.org>
51602 * config/srclist.txt: Replace target directory 'config' with
51604 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
51605 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
51608 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
51610 * modules/chdir-long (Depends-on): Add mempcpy.
51612 * modules/acl, modules/backupfile, modules/c-strtod,
51613 modules/c-strtold, modules/canon-host, modules/canonicalize,
51614 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
51615 modules/exclude, modules/exitfail, modules/file-type,
51616 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
51617 modules/getdate, modules/getline, modules/getpagesize,
51618 modules/getpass, modules/getugroups, modules/group-member,
51619 modules/hard-locale, modules/hash, modules/human, modules/idcache,
51620 modules/inttostr, modules/long-options, modules/makepath,
51621 modules/md5, modules/memcasecmp, modules/memcoll,
51622 modules/modechange, modules/mountlist, modules/path-concat,
51623 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
51624 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
51625 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
51626 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
51627 modules/strftime, modules/strndup, modules/strverscmp,
51628 modules/timespec, modules/unlocked-io, modules/userspec,
51629 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
51631 Remove lib_SOURCES line from Makefile.am section, as this is now
51632 done automatically by the corresponding Autoconf macro.
51634 2005-03-21 Jim Meyering <jim@meyering.net>
51636 Changes imported from coreutils.
51638 * lib/cycle-check.c: Don't include xalloc.h.
51640 * lib/path-concat.c: Don't include assert.h.
51641 (path_concat): Remove assertion that would have triggered
51642 for ABASE starting with more than one slash.
51643 Reported by Andreas Schwab.
51645 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
51646 properly when ABASE is an absolute file name.
51647 Correct the description of this function.
51648 Include <assert.h>.
51649 Add an assertion and a test driver.
51650 This fixes a bug introduced on 2004-07-02.
51651 Andreas Schwab reported the resulting failure of cp --parents:
51652 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
51654 2005-03-21 Jim Meyering <jim@meyering.net>
51656 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
51657 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
51659 2005-03-21 Jim Meyering <jim@meyering.net>
51660 and Paul Eggert <eggert@cs.ucla.edu>
51662 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
51663 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
51664 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
51665 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
51666 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
51667 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
51668 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
51669 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
51670 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
51671 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
51672 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
51673 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
51674 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
51675 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
51676 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
51677 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
51678 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
51681 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
51683 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
51684 (which shouldn't happen), generate nothing instead of returning 0
51685 immediately, so that nstrftime (NULL, ...) doesn't return 0.
51687 2005-03-16 Bruno Haible <bruno@clisp.org>
51689 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
51690 HAVE_LONGLONG_64BIT.
51692 2005-03-16 Bruno Haible <bruno@clisp.org>
51694 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
51695 HAVE_LONGLONG_64BIT.
51697 2005-03-16 Bruno Haible <bruno@clisp.org>
51699 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
51700 HAVE_LONGLONG_64BIT.
51702 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
51704 * lib/strftime.c (my_strftime): Prepend space to format so that we can
51705 reliably distinguish strftime failure from empty output on POSIX
51708 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
51710 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
51711 (iconv_string): Don't guess a size-zero buffer, as that might cause
51712 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
51713 result would be 'too large', where 'too large' is (heuristically)
51714 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
51715 overflow concerns. This will prevent some unwanted malloc failures
51716 when the inputs are very large.
51718 2005-03-15 Karl Berry <karl@gnu.org>
51720 * config/srclist.txt (config.rpath): from gettext.
51721 * config/config.rpath: update.
51723 2005-03-15 Bruno Haible <bruno@clisp.org>
51725 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
51728 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
51731 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
51734 2005-03-14 Simon Josefsson <jas@extundo.com>
51736 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
51739 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
51741 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
51742 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
51744 * lib/strtol.c: Likewise.
51746 2005-03-14 Jim Meyering <jim@meyering.net>
51748 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
51749 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
51750 to be nonzero so that we (and caller) can detect the difference
51751 between a valid zero-length expansion and an error return, even
51752 when the underlying strftime fails before writing anything into
51755 2005-03-14 Bruno Haible <bruno@clisp.org>
51757 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
51758 Update from GNU gettext 0.14.3.
51760 2005-03-10 Jim Meyering <jim@meyering.net>
51762 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
51764 2005-03-10 Jim Meyering <jim@meyering.net>
51766 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
51767 so that this module works on systems without fchdir.
51769 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
51771 Factor int-properties macros into a single file, except for
51772 glibc-related files.
51773 * lib/intprops.h: New file.
51774 * lib/getloadavg.c: Include it instead of limits.h.
51775 (INT_STRLEN_BOUND): Remove.
51776 * lib/human.c: Include intprops.h.
51777 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
51778 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
51780 * lib/inttostr.h: Include intprops.h instead of limits.h.
51781 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
51782 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
51783 for consistency with intprops.h.
51784 (time_t_is_integer, twos_complement_arithmetic): Use them.
51785 * lib/sig2str.h: Include <signal.h>, intprops.h.
51786 (INT_STRLEN_BOUND): Remove.
51787 * lib/strftime.c (TYPE_SIGNED): Remove.
51788 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
51789 * lib/strtol.c: Adjust comments to match intprops.h.
51790 * lib/userspec.c: Include intprops.h.
51791 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
51792 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
51793 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
51794 instead of rolling our own expressions.
51795 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
51797 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
51799 (my_strftime): Do not mishandle years close to INT_MAX, by doing
51800 the right thing even if adding 1900 would overflow. Similarly
51801 for tm_mon + 1 and tm_yday + 1.
51802 Make %Y always equivalent to %C%y, and similarly for %G and %g.
51803 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
51804 (DO_SIGNED_NUMBER): New macro.
51805 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
51807 2005-03-07 Bruno Haible <bruno@clisp.org>
51809 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
51811 2005-03-07 Bruno Haible <bruno@clisp.org>
51813 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
51815 2005-03-04 Derek R. Price <derek@ximbiot.com>
51817 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
51818 (func_import): Only replace files via --import when they have actually
51821 2005-03-03 Derek R. Price <derek@ximbiot.com>
51823 * m4/mmap-anon.m4: New file.
51824 * m4/pagealign_alloc.m4: New file.
51826 2005-03-03 Derek R. Price <derek@ximbiot.com>
51827 Bruno Haible <bruno@clisp.org>
51829 * modules/pagealign_alloc: New file.
51830 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
51832 2005-03-03 Derek R. Price <derek@ximbiot.com>
51833 Bruno Haible <bruno@clisp.org>
51835 * lib/pagealign_alloc.h: New file.
51836 * lib/pagealign_alloc.c: New file.
51838 2005-03-03 Bruno Haible <bruno@clisp.org>
51840 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
51841 Use an all-permissive copyright notice, recommended by RMS.
51843 2005-03-02 Bruno Haible <bruno@clisp.org>
51845 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
51846 of AIX, the replacement has to be done only after <string.h> is
51847 included, therefore not in config.h. stpncpy.h does the replacement,
51848 and stpncpy.c uses it.
51850 2005-03-02 Bruno Haible <bruno@clisp.org>
51852 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
51855 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
51857 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
51858 The workaround isn't strictly needed for POSIX conformance, and
51859 it's too much of a pain to configure and maintain. We'll ask
51860 people to fix their kernels instead.
51861 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
51862 (NANOSLEEP_BUG_WORKAROUND): Remove.
51863 (xnanosleep): Remove the workaround.
51865 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
51867 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
51868 Reported by Derek Price.
51869 (Include): Add "timespec.h".
51871 * modules/xnanosleep (Depends-on): Remove gethrxtime.
51873 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
51875 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
51876 to detect nanosleep bug.
51878 2005-03-01 Bruno Haible <bruno@clisp.org>
51880 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
51882 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
51884 * modules/gethrxtime: New file.
51885 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
51886 (Depends-on): Add gethrxtime.
51887 (configure.ac): Add gl_XNANOSLEEP.
51888 (Makefile.am): Remove lib_SOURCES line.
51890 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
51892 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
51893 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
51895 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
51897 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
51898 * lib/timespec.h (gettime): Return void, since it always
51899 succeeds now. All uses changed.
51900 * lib/gettime.c (gettime) Likewise.
51901 [HAVE_NANOTIME]: Prefer nanotime.
51902 Assume gettimeofday succeeds, as POSIX requires.
51903 Assime time () succeeds, since other code already does.
51904 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
51905 (timespec_subtract): Remove.
51906 (NANOSLEEP_BUG_WORKAROUND): New constant.
51907 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
51908 things considerably. Use it only on GNU/Linux hosts, since the
51909 workaround shouldn't be needed elsewhere.
51911 2005-02-24 Bruno Haible <bruno@clisp.org>
51913 * modules/gettext (Files): Add m4/glibc2.m4.
51915 2005-02-24 Bruno Haible <bruno@clisp.org>
51917 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
51918 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
51920 Update from GNU gettext 0.14.2.
51921 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
51923 2005-02-24 Bruno Haible <bruno@clisp.org>
51925 * lib/localcharset.c: Update from GNU gettext 0.14.2.
51926 * lib/config.charset: Update from GNU gettext 0.14.2.
51928 2005-02-24 Bruno Haible <bruno@clisp.org>
51930 * lib/gettext.h: Update from GNU gettext 0.14.2.
51932 2005-02-23 Simon Josefsson <jas@extundo.com>
51934 * m4/iconvme.m4: New file.
51936 2005-02-23 Jim Meyering <jim@meyering.net>
51938 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
51940 Thanks to Bruno Haible for catching it.
51942 2005-02-22 Simon Josefsson <jas@extundo.com>
51944 * modules/iconvme: New file.
51946 * MODULES.html.sh: Add iconvme.
51948 2005-02-22 Simon Josefsson <jas@extundo.com>
51950 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
51952 2005-02-22 Simon Josefsson <jas@extundo.com>
51954 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
51956 2005-02-22 Jim Meyering <jim@meyering.net>
51958 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
51961 2005-02-20 Neil Conway <neilc@samurai.com>
51963 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
51964 returned by OSX/Darwin if the specified buffer is not large
51965 enough for the hostname.
51967 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51969 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
51970 pass it to _help, otherwise the latter coredumps trying to
51971 dereference state.root_argp.
51973 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
51975 * modules/chdir-long (Depends-on): Add memrchr.
51976 * modules/memrchr (Files): Add lib/memrchr.h.
51977 (Include): "memrchr.h".
51979 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
51981 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
51983 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
51985 * lib/memrchr.h: New file.
51986 * lib/chdir-long.c: Include it.
51987 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
51988 Don't bother including stddef.h.
51990 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
51992 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
51994 Include <sys/types.h>, for dev_t.
51995 (ME_DUMMY, ME_REMOTE): Move from here....
51996 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
51997 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
51999 Include mountlist.h first, to test the interface.
52001 2005-01-29 Bruno Haible <bruno@clisp.org>
52003 * lib/progname.c (program_name): Initialize.
52004 Needed when linking statically on MacOS X.
52006 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
52008 Sync from coreutils.
52009 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
52010 (Depends-on): Add c-strtod.
52011 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
52013 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
52015 Sync from coreutils.
52016 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
52018 Remove files that are specific to coreutils.
52019 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
52021 2005-01-28 Bruno Haible <bruno@clisp.org>
52023 * modules/javacomp: New file.
52024 * MODULES.html.sh (Java): Add javacomp.
52026 2005-01-28 Bruno Haible <bruno@clisp.org>
52028 * m4/javacomp.m4: New file, from GNU gettext.
52030 2005-01-28 Bruno Haible <bruno@clisp.org>
52032 * lib/javacomp.sh.in: New file, from GNU gettext.
52033 * lib/javacomp.h: New file, from GNU gettext.
52034 * lib/javacomp.c: New file, from GNU gettext.
52036 2005-01-26 Simon Josefsson <jas@extundo.com>
52038 * lib/gai_strerror.c: Use GPL in header.
52040 2005-01-26 Bruno Haible <bruno@clisp.org>
52042 * modules/javaexec: New file.
52043 * MODULES.html.sh (Java): Add javaexec.
52045 2005-01-26 Bruno Haible <bruno@clisp.org>
52047 * m4/javaexec.m4: New file, from GNU gettext.
52049 2005-01-26 Bruno Haible <bruno@clisp.org>
52051 * lib/javaexec.sh.in: New file, from GNU gettext.
52052 * lib/javaexec.h: New file, from GNU gettext.
52053 * lib/javaexec.c: New file, from GNU gettext.
52055 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52057 * modules/lchown (Depends-on): Remove lchown.h
52059 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52061 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
52062 must be defined if the header file was not found, in order
52063 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
52065 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52067 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
52068 initializers for struct pentry_state.
52069 (__argp_error): Check return value of __asprintf
52070 (__argp_failure): Translate error message
52072 * lib/argp-parse.c: Removed braces around the expansion of N_()
52074 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
52076 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
52077 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
52078 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
52079 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
52080 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
52081 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
52082 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
52083 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
52084 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
52085 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
52086 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
52087 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
52088 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
52089 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
52090 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
52091 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
52092 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
52093 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
52094 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
52095 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
52096 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
52097 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
52098 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
52099 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
52100 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
52101 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
52102 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
52103 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
52104 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
52105 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
52106 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
52107 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
52108 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
52109 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
52110 xstrtol.m4, xstrtoumax.m4, yesno.m4:
52111 Use an all-permissive copyright notice, recommended by RMS.
52113 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
52115 * modules/chdir-long (Depends-on): Remove mempcpy.
52117 2005-01-21 Jim Meyering <jim@meyering.net>
52119 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
52120 same value as for Solaris 9.
52122 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
52123 component length. This included changing the parameter to be
52124 of type `char *' rather than `char const *'.
52125 * lib/chdir-long.h (chdir_long): Update prototype.
52127 * lib/openat.c (fdopendir, fstatat): New functions.
52128 * lib/openat.h: Include headers required for use of DIR and struct
52130 [AT_SYMLINK_NOFOLLOW]: Define.
52131 (fdopendir, fstatat): Add prototypes.
52133 2005-01-21 Bruno Haible <bruno@clisp.org>
52135 * modules/classpath: New file.
52136 * MODULES.html.sh (Java): Add classpath.
52138 2005-01-21 Bruno Haible <bruno@clisp.org>
52140 * lib/classpath.h: New file, from GNU gettext.
52141 * lib/classpath.c: New file, from GNU gettext.
52143 2005-01-20 Simon Josefsson <jas@extundo.com>
52145 * modules/version-etc-fsf: New file.
52147 2005-01-20 Simon Josefsson <jas@extundo.com>
52149 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
52150 * lib/version-etc.c: Remove version_etc_copyright.
52151 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
52152 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
52154 2005-01-20 Simon Josefsson <jas@extundo.com>
52156 * lib/base64.h (isbase64): Add.
52158 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
52159 using a unsigned prototype, don't inline.
52160 (base64_decode): Use it.
52162 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
52164 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
52167 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
52169 * lib/save-cwd.c (save_cwd): Remove code to support the case
52170 where fchdir is missing or flaky.
52172 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
52174 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
52176 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
52178 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
52179 AC_LIBSOURCES now does this.
52180 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
52181 with new ullong_max module.
52183 2005-01-19 Bruno Haible <bruno@clisp.org>
52185 * modules/sh-quote: New file.
52186 * MODULES.html.sh (Executing programs): Add sh-quote.
52188 2005-01-19 Bruno Haible <bruno@clisp.org>
52190 * lib/sh-quote.h: New file, from GNU gettext.
52191 * lib/sh-quote.c: New file, from GNU gettext.
52193 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
52195 Merge from coreutils.
52196 * m4/ullong_max.m4: New file.
52197 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
52198 (gl_MACROS): Assume localeconv exists.
52200 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
52202 Merge changes from coreutils, as described below in several
52203 changelogs dated today.
52205 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
52206 (O_DIRECTORY): Remove; not needed here, since "." must be
52207 a directory. All uses removed.
52208 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
52209 universal on Suns, and we also need to test for IRIX.
52210 Revamp code to use 'if' rather than '#if'.
52211 Avoid unnecessary comparison of cwd->desc to 0.
52213 * lib/utimens.c (futimens): Robustify the previous patch, by checking
52214 for known valid error numbers rather than observed invalid ones.
52216 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
52218 * modules/ullong_max: New file.
52220 * modules/chdir-long, modules/openat: New files.
52221 * modules/save-cwd (Depends-on): Depend on chdir-long.
52222 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
52224 2005-01-18 Jim Meyering <jim@meyering.net>
52226 Merge from coreutils.
52227 * m4/chdir-long.m4, m4/openat.m4: New files.
52228 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
52229 save-cwd.h. Add AC_LIBOBJ for save-cwd.
52230 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
52231 is sane and DOES follow symlinks. Besides, testing 20 different
52232 systems found no broken chown implementations.
52233 Prompted by a change in rsync's copy of this macro.
52234 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
52236 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
52238 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
52239 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
52240 NULL-means-set-to-current-time semantics.
52241 Remove temporary file immediately, rather than waiting
52242 for configure's at-exit trap code to do it.
52244 2005-01-18 Jim Meyering <jim@meyering.net>
52246 * lib/version-etc.c (version_etc_copyright): Update copyright date.
52248 * lib/utimens.c (futimens): Account for the fact that futimes
52249 can also fail with errno == ENOSYS or errno == ENOENT.
52250 Patch from Dmitry V. Levin.
52252 Change the name of the robust chdir function from chdir to chdir_long.
52253 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
52254 (restore_cwd): Use chdir_long, not chdir.
52255 * lib/chdir-long.c: Renamed from chdir.c.
52256 * lib/chdir-long.h: Renamed from chdir.h.
52257 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
52260 2005-01-18 Bruno Haible <bruno@clisp.org>
52262 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
52263 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
52264 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
52265 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
52266 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
52267 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
52268 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
52269 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
52270 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
52271 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
52272 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
52273 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
52274 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
52275 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
52276 Use an all-permissive copyright notice, recommended by RMS.
52278 2005-01-18 Bob Proulx <bob@proulx.com>
52280 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
52281 simplify offsetof() macro construct to avoid compile failure with
52282 native HP-UX 11.0 ANSI C compiler.
52284 2005-01-17 Bruno Haible <bruno@clisp.org>
52286 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
52287 redundant because stpncpy.m4 takes care of it.
52289 2005-01-17 Bruno Haible <bruno@clisp.org>
52291 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
52293 2005-01-17 Bruno Haible <bruno@clisp.org>
52295 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
52298 2005-01-17 Bruno Haible <bruno@clisp.org>
52300 * lib/fwriteerror.h (fwriteerror): Change specification to include
52302 * lib/fwriteerror.c: Include <stdbool.h>.
52303 (fwriteerror): At the end, close the file stream. Record whether
52304 stdout was already closed.
52306 2005-01-17 Bruno Haible <bruno@clisp.org>
52308 * lib/execute.c (environ): Declare if needed.
52309 * lib/pipe.c (environ): Likewise.
52310 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
52312 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52314 * modules/argp: Depend on vsnprintf
52316 2005-01-10 Jim Meyering <jim@meyering.net>
52318 * modules/closeout (Depends-on): Add atexit.
52320 2005-01-06 Bruno Haible <bruno@clisp.org>
52322 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
52324 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
52326 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
52327 definitions to be after all include files, to avoid collisions.
52328 Problem reported by Bob Proulx.
52330 2005-01-04 Jim Meyering <jim@meyering.net>
52332 Changes imported from coreutils.
52333 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
52334 as the mkstemp template, use a temporary directory and an
52335 8.3-friendly template to avoid trouble on systems like DJGPP.
52336 Reported by Juan M. Guerrero via Stepan Kasal.
52337 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
52338 close. Remove the temporary directory right away, rather than waiting
52339 for configure's at-exit trap code to do it.
52340 Suggestion from Stepan Kasal.
52342 2005-01-01 Simon Josefsson <jas@extundo.com>
52344 * gnulib-tool: Print #include directives when --import'ing.
52346 2004-12-28 Simon Josefsson <jas@extundo.com>
52348 * tests/test-base64.c: Include required header files. Remove
52351 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
52353 * modules/error (Depends-on): Remove gettext.
52355 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
52357 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
52358 not needed. This removes a dependency on the gettext module.
52359 [defined _LIBC]: Do not include <libintl.h>; not needed.
52361 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
52363 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
52364 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
52366 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
52368 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
52371 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
52373 * modules/getdate (Depends-on): Remove alloca-opt.
52375 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
52377 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
52379 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
52381 * lib/argp-parse.c: Include <stddef.h>.
52382 (alignof, alignto): New macros.
52383 (parser_init): Don't assume that void * is aligned sufficiently
52386 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
52387 need to extend the stack.
52388 (YYINITDEPTH): New macro, so that the initial stack isn't overly
52391 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52393 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
52395 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
52397 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
52398 (2004-10-24) change. Apparently this was a false alarm.
52400 * modules/getdate: Depend on alloca-opt, not alloca.
52402 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
52404 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
52405 Remove now-obsolete comment about AIX.
52406 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
52407 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
52408 (YYMAXDEPTH): New macro.
52410 2004-12-18 Simon Josefsson <jas@extundo.com>
52412 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
52414 2004-12-18 Bruno Haible <bruno@clisp.org>
52416 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
52418 2004-12-18 Bruno Haible <bruno@clisp.org>
52420 * lib/fatal-signal.c (fatal_signals): Make non-const.
52421 (init_fatal_signals): New function.
52422 (uninstall_handlers, install_handlers): Ignore signals that were set to
52424 (at_fatal_signal): Call init_fatal_signals.
52425 (init_fatal_signal_set): Likewise. Ignore signals that were set to
52427 Reported by Paul Eggert.
52429 2004-12-18 Bruno Haible <bruno@clisp.org>
52431 * doc/alloca.texi: New file.
52432 * doc/alloca-opt.texi: New file.
52434 2004-12-17 Jim Meyering <jim@meyering.net>
52436 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
52437 Otherwise, install-sh could exit with improper exit status when
52438 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
52440 2004-12-16 Simon Josefsson <jas@extundo.com>
52442 * tests/test-base64.c: Add license.
52444 2004-12-15 Stepan Kasal <address@hidden>
52446 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
52448 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
52450 * modules/getcwd (Files): Add m4/d-ino.m4.
52451 Suggested by Mark D. Baushke.
52453 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
52455 * lib/getdate.y (textint): New member "negative".
52456 (time_zone_hhmm): New function.
52457 Expect 14 shift-reduce conflicts, not 13.
52458 (o_colon_minutes): New rule.
52459 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
52460 (yylex): Set the "negative" member of signed numbers.
52462 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
52464 * doc/getdate.texi (Time of day items, Time zone items):
52465 Describe new formats +00:00, UTC+00:00.
52467 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
52469 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
52470 spurious "-l"s. Problem reported by Stepan Kasal.
52472 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
52474 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
52475 in Autoconf 2.59. Problem reported by Mark D. Baushke.
52477 2004-12-04 Simon Josefsson <jas@extundo.com>
52479 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
52480 Vandoorselaere <yoann@prelude-ids.org>.
52482 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
52484 Changes imported from coreutils.
52485 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
52487 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
52489 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
52491 Changes imported from coreutils.
52492 * lib/hard-locale.c: Assume <locale.h> exists.
52493 Include "strdup.h".
52494 (GLIBC_VERSION): New macro.
52495 (hard_locale): Assume setlocale exists.
52496 Rewrite to avoid #ifdef.
52497 Use strdup rather than malloc + strcpy.
52498 * lib/human.c: Assume <locale.h> exists.
52499 (human_readable): Assume localeconv exists.
52501 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
52503 * modules/hard-locale (Depends-on): Add strdup.
52505 2004-12-01 Jakub Jelinek <jakub@redhat.com>
52507 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
52508 convert T2, not T. (Imported from libc.)
52510 2004-11-30 Simon Josefsson <jas@extundo.com>
52512 * modules/restrict (License): Change to LGPL.
52514 2004-11-30 Simon Josefsson <jas@extundo.com>
52516 * m4/restrict.m4: Add copyright and copying conditions.
52518 2004-11-30 Simon Josefsson <jas@extundo.com>
52520 * m4/base64.m4: New file.
52522 2004-11-30 Simon Josefsson <jas@extundo.com>
52524 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
52527 * tests/test-base64.c: New file.
52529 * modules/base64: New file.
52531 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
52533 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
52534 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
52536 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
52538 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
52540 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
52541 (__getcwd.c): Don't restore errno; glibc doesn't.
52542 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
52543 first, falling back to our code only if its results look suspicious.
52544 Ensure that the resulting buffer is only as large as necessary.
52546 * lib/readutmp.c: Include readutmp.h first.
52547 Include <errno.h>, since readutmp.h no longer does that.
52548 * lib/readutmp.h: Don't include <errno.h>,
52549 <sys/param.h>, <time.h>; not needed to establish interface.
52550 (errno): Remove decl.
52551 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
52552 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
52553 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
52555 2004-11-28 Simon Josefsson <jas@extundo.com>
52557 * lib/base64.h, base64.c: New file.
52559 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
52561 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
52563 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
52565 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
52566 (Depends-on): Remove pathmax, same. Add mempcpy.
52567 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
52568 (Makefile.am): Append getcwd.h to lib_SOURCES.
52569 (Include): Add getcwd.h.
52570 (Maintainer): Change from Jim Meyering to "all, glibc",
52571 since getdate now uses intended-for-glibc code.
52572 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
52573 (Depends-on): Depend on getcwd. Do not depend on pathmax.
52575 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
52577 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
52578 HP's ANSI C compiler.
52579 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
52580 Declaring int functions causes warnings on some modern systems and
52581 shouldn't be needed to compile on ancient ones.
52582 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
52585 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
52586 with the following changes.
52587 (__set_errno): Parenthesize properly.
52588 Include <stdbool.h>.
52589 (MIN, MAX, MATCHING_INO): New macros.
52590 (__getcwd): Define with prototype, not K&R form.
52591 Use heuristics to allocate default buffer on stack if possible.
52592 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
52593 behavior, and to avoid the PATH_MAX limit when computing
52595 Use MATCHING_INO to compare inode number to file.
52596 Check for arithmetic overflow in size calculations.
52597 Fix bug in reallocation of dot array that caused getcwd to fail
52598 on directories nested deeper than 75.
52599 Be more careful about saving errno on error.
52600 Do not use realloc; use only free+malloc, as this is a bit
52601 more flexible and avoids a needless copy operation.
52602 Do not inspect st_dev and st_ino for symbolic links; POSIX
52603 doesn't specify the latter.
52604 Check for closedir errors.
52605 Avoid needless casts.
52606 Use "#ifdef weak_alias" around weak_alias, to be like other
52608 The following changes to getcwd.c have effect only when used in
52609 gnulib; they have no effect inside glibc proper.
52610 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
52611 as alloca isn't used.
52612 (alloca, __alloca): Likewise.
52613 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
52614 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
52615 unconditionally, as gnulib assumes C89 or better.
52616 Do not include <sys/param.h>.
52617 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
52618 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
52620 (NULL) [!defined NULL]: Remove; we assume C89 or better.
52621 Include <dirent.h> in a way that is compatible with modern Autoconf.
52622 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
52623 New macros, if not already defined.
52624 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
52625 Use "_LIBC", not "defined _LIBC", for consistency.
52626 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
52628 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
52629 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
52630 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
52631 credit only to Jim Meyering and adjust the copyright dates.
52632 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
52633 <stdlib.h>, <unistd.h>, "pathmax.h".
52634 Instead, include "xgetcwd.h" (first) and "getcwd.h".
52635 (INITIAL_BUFFER_SIZE): Remove.
52636 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
52638 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
52640 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
52641 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
52642 Use the _ONCE methods, for efficiency.
52643 Check for fcntl.h. In test program, include <errno.h>
52644 and <fcntl.h> if available. Remove old K&R cruft from
52645 test program. Check for common errors in GNU/Linux,
52646 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
52647 don't do AC_LIBOBJ, as that's getcwd.m4's job.
52648 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
52649 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
52651 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
52652 accommodate new getcwd.c.
52653 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
52654 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
52655 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
52656 that's all we need now.
52658 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52660 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
52661 argp-parse.c depends on getopt internals, that means we should
52662 always use our getopt, to be on the safe side.
52663 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
52664 order not to spoil the result of an eventual previous invocation
52665 of gl_GETOPT_SUBSTITUTE.
52667 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52669 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
52670 redefinition warnings. To avoid them, include the defines
52671 in `#if !defined __need_getopt ... #endif'. The only place
52672 where __getopt_argv_const is used is in definitions
52673 of getopt_long and getopt_long_only below, which are as well
52674 protected by `#ifndef __need_getopt'.
52675 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
52676 __need_getopt after including <stdio.h> and <unistd.h> These
52677 headers might have defined it.
52679 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
52681 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
52683 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
52685 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
52686 (futimens): New function, which uses futimes if available.
52687 (futimens, utimens): Support timespec==NULL, with same semantics
52688 as utime and utimens.
52689 * lib/utimens.h (futimens): New decl.
52691 2004-11-23 Jim Meyering <jim@meyering.net>
52693 * lib/getopt_.h: Remove trailing blanks.
52695 2004-11-23 Jim Meyering <jim@meyering.net>
52697 * lib/__fpending.c: Add comment.
52699 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
52701 * modules/canonicalize (Depends-on): Add xreadlink.
52702 Problem reported by James Youngman.
52704 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
52706 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
52708 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
52709 optopt): Use them instead of invoking ## directly; otherwise, the
52710 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
52712 2004-11-19 Bruno Haible <bruno@clisp.org>
52714 * lib/strtok_r.c: Move comments from here...
52715 * lib/strtok_r.h: ... to here.
52717 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
52719 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
52720 implementations that mishandle size_t overflow.
52722 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
52724 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
52725 might fail. Problem reported by Yoann Vandoorselaere.
52726 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
52727 implementations that mishandle size_t overflow.
52729 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
52731 * modules/canon-host (Depends-on): Add strdup.
52733 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
52735 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
52737 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
52739 * lib/canon-host.c: Include "strdup.h".
52740 (canon_host): Use getaddrinfo if available, so that IPv6 works.
52741 Use strdup instead of malloc/strcpy to duplicate strings.
52743 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
52744 (human_space_before_unit): New constant.
52745 * lib/human.c (human_readable): Support it.
52747 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
52748 (xgetcwd): Set errno correctly when failing.
52749 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
52750 the failure is actually due to a PATH_MAX problem.
52752 Further getopt changes to make it more likely that glibc will
52753 buy the changes back.
52754 * lib/getopt.c (POSIXLY_CORRECT): New constant.
52755 (getopt): Use it, so to preserve glibc semantic
52756 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
52757 when compiling for libc.
52758 * lib/getopt_.h (__getopt_argv_const): Bring it back.
52759 (getopt_long, getopt_long_only): Use it.
52761 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
52762 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
52763 (getopt): Argv is now char * const *, as per standard.
52764 (_getopt_internal_r, _getopt_internal): Argv is now char **,
52765 not char *__getopt_argv_const *.
52766 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
52767 _getopt_long_only_r): Likewise.
52768 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
52769 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
52770 _getopt_long_r, _getopt_long_only_r): Likewise.
52771 * lib/getopt_.h (__getopt_argv_const): Remove.
52772 (getopt): Argv is now char * const *, as per standard.
52774 * lib/getdate.y (tORDINAL): New token.
52775 (day, relunit): Allow it for relative times.
52776 (relative_time_table): Use tORDINAL for ordinals.
52778 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
52780 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
52781 Document that "second" isn't allowed as an ordinal number.
52783 2004-11-16 Jim Meyering <jim@meyering.net>
52785 * modules/closeout (Depends-on): Add fpending.
52787 2004-11-15 Jim Meyering <jim@meyering.net>
52789 * lib/closeout.c: Include "__fpending.h" once again.
52790 Include <stdbool.h>.
52791 (close_stdout): Don't fail just because stdout was closed initially,
52792 since some programs don't write to stdout in the normal course of
52793 operation (other than --version and --help), and we don't want this
52794 function to make e.g. `touch file >&-' fail.
52795 But do fail if it was closed and someone has tried to write to it.
52796 E.g., `printf foo >&-' must fail.
52798 2004-11-13 Jim Meyering <jim@meyering.net>
52800 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
52802 2004-11-12 Simon Josefsson <jas@extundo.com>
52804 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
52805 small doc fix is still pending.
52807 2004-11-11 Simon Josefsson <jas@extundo.com>
52809 * modules/strtok_r: New file.
52811 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52814 2004-11-11 Simon Josefsson <jas@extundo.com>
52816 * m4/strtok_r.m4: New file.
52818 * m4/getopt.m4: Replace opterr.
52820 2004-11-11 Simon Josefsson <jas@extundo.com>
52822 * lib/strtok_r.h, strtok_r.c: New file.
52824 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
52826 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
52827 of replacing opterr, getopt, etc. This should handle the
52828 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
52830 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
52832 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
52833 we can stop lying to compilers about the constness of argv when we
52834 are compiled outside glibc.
52835 (getopt, getopt_long, getopt_long_only): Use it.
52836 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
52837 _getopt_internal, getopt): Likewise.
52838 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
52839 _getopt_long_only_r): Likewise.
52840 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
52841 _getopt_long_r, _getopt_long_only_r): Likewise.
52843 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
52844 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
52845 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
52846 the other external symbols.
52847 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
52848 declaration, since the above renaming now works around collisions.
52850 2004-11-11 Jim Meyering <jim@meyering.net>
52852 * lib/linebreak.c: Remove trailing blanks.
52853 * lib/alloca_.h: Likewise.
52854 * lib/acosl.c: Likewise.
52855 * lib/euidaccess.c: Likewise.
52856 * lib/allocsa.h: Likewise.
52858 2004-11-10 Simon Josefsson <jas@extundo.com>
52860 * m4/getaddrinfo.m4: New file.
52862 2004-11-10 Simon Josefsson <jas@extundo.com>
52864 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
52866 2004-11-10 Simon Josefsson <jas@extundo.com>
52868 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52871 * modules/getaddrinfo: New file.
52873 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
52875 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
52877 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
52879 * lib/mktime.c (SHR): New macro, which is a portable
52880 substitute for >> that should work even on Crays.
52881 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
52882 Problem reported by Mark D. Baushke in
52883 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
52884 * lib/getdate.y (SHR): Likewise.
52886 * lib/strftime.c (SHR): Likewise.
52888 * lib/quotearg.c (struct quoting_options): Use unsigned int for
52889 quote_these_too, so that right shifts are well defined. All uses
52892 2004-11-10 Jim Meyering <jim@meyering.net>
52894 Ensure that no close failure goes unreported.
52895 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
52896 return early when it seems there's nothing to flush.
52897 Don't include __fpending.h.
52899 2004-11-10 Jim Meyering <jim@meyering.net>
52901 * modules/closeout (Depends-on): Remove fpending.
52903 2004-11-10 Jim Meyering <jim@meyering.net>
52905 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
52907 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
52909 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
52911 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
52912 and AC_REQUIRE when possible, to avoid duplicate checks.
52913 Check for <wchar.h>.
52915 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
52917 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
52919 2004-11-09 Bruno Haible <bruno@clisp.org>
52921 * m4/sockpfaf.m4: New file.
52923 2004-11-05 Bruno Haible <bruno@clisp.org>
52925 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
52926 Reported by Mark D. Baushke <mdb@cvshome.org>.
52928 2004-11-04 Bruno Haible <bruno@clisp.org>
52930 2004-09-11 Bruno Haible <bruno@clisp.org>
52931 * allocsa.valgrind: New file.
52932 2004-02-06 Bruno Haible <bruno@clisp.org>
52933 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
52934 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
52935 Reported by Christopher Seip <chris.seip@hp.com>.
52937 2004-11-04 Bruno Haible <bruno@clisp.org>
52939 * modules/allocsa (Files): Add lib/allocsa.valgrind.
52940 (Makefile.am): Distribute it.
52942 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
52944 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
52945 with errno == ERANGE if the buffer is too small.
52946 Problem reported by Mark D. Baushke.
52948 2004-11-03 Albert Chin <china@thewrittenword.com>
52949 Paul Eggert <eggert@cs.ucla.edu>
52951 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
52952 equivalent, substitute $ac_type for equivalent type rather than
52953 blindly using uint32_t *always* which won't work if uint32_t is not
52954 available. Define _UINT32_T to work around typedef of uint32_t if
52955 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
52958 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
52960 * m4/jm-macros.m4: Sync from coreutils.
52961 (gl_MACROS): Check for mbrlen, for pathchk.
52962 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
52964 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
52966 * lib/xreadlink.c (MAXSIZE): New macro.
52967 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
52968 size does not exceed MAXSIZE. Avoid cast.
52969 As suggested by Mark D. Baushke in
52970 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
52971 if readlink fails with buffer size just under MAXSIZE, try again
52974 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
52976 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
52978 2004-11-02 Derek R. Price <derek@ximbiot.com>
52979 and Paul Eggert <eggert@cs.ucla.edu>
52981 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
52982 (get_date): Overparenthesize to avoid GCC warning.
52984 2004-11-02 Bruno Haible <bruno@clisp.org>
52986 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
52989 2004-11-02 Bruno Haible <bruno@clisp.org>
52991 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
52992 function returns void.
52994 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
52996 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
52997 fflush_unlocked, flockfile, funlockfile, funlockfile,
52998 fputs_unlocked, putc_unlocked.
53000 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
53002 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53003 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
53006 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
53008 * modules/getdate (Files): Add doc/getdate.texi.
53009 (Depends-on): Add setenv, xalloc.
53011 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
53013 * lib/getdate.y: Add support for TZ="foo" within a date string.
53014 Fix some bugs near time_t boundaries. Reject dates with
53015 out-of-range components, e.g., "Sept 31".
53016 Include <stdlib.h>, "setenv.h", "xalloc.h".
53017 (ISDIGIT_LOCALE): Remove; unused.
53018 Note that the TZ and time functions used here are not reentrant.
53019 (mktime_ok, get_tz): New functions.
53020 (TZBUFSIZE): New constant.
53021 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
53022 This requires that we sometimes generate our own TZ="XXX..." setting.
53024 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
53026 * doc/getdate.texi: New file, from coreutils with modifications for
53027 the new TZ parsing.
53029 2004-10-27 Derek R. Price <derek@ximbiot.com>
53031 * lib/mktime.c (not_equal_tm): Remove redundant check.
53033 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
53035 * modules/regex (lib_SOURCES): Add regex.c.
53036 Reported by James Youngman in
53037 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
53039 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
53041 * lib/getdate.y: Use Bison 1.875 features, and some minor
53042 code cleanups. This change does not affect semantics.
53043 Don't include <stdlib.h>; no longer needed.
53044 Don't include unlocked-io.h; only the "#if TEST" code uses
53045 stdio, and performance isn't crucial there.
53046 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
53047 Bison 1.875 features as described below.
53048 All uses of "PC." replaced by "pc->".
53049 (YYSTYPE): Add a forward declaration.
53050 (yylex, yyerror): Use full prototypes in forward decls.
53051 Use "%pure-parser" rather than obsolescent "%pure_parser".
53052 Use %parse-param and %lex-param instead of obsolescent
53053 YYPARSE_PARAM and YYLEX_PARAM.
53054 (meridian_table, month_and_day_table, time_units_table,
53055 relative_time_table, time_zone_table, military_table,
53056 lookup_zone, lookup_word, get_date):
53057 Use NULL instead of 0 where appropriate.
53058 (to_hour): Avoid abort (), to avoid a dependency on
53060 (yyerror, yylex): Now accepts parser_control * arg.
53061 (main) [TEST]: Use '\0' rather than 0 for char.
53063 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
53065 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
53067 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
53069 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
53070 It's now the caller's responsibility to handle the case where
53071 !HAVE_GETPAGESIZE && !defined getpagesize.
53073 * lib/mktime.c (leapyear): Arg is long int, not int.
53075 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
53077 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
53079 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
53081 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
53082 missing. Problem reported by James Youngman.
53084 2004-10-16 Simon Josefsson <jas@extundo.com>
53086 * gnulib-tool: Fix comments. Fix parse problem.
53087 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
53089 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
53091 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
53092 implementation of getopt_long. Problem reported by Alexander Taler in:
53093 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
53095 2004-10-15 Bruno Haible <bruno@clisp.org>
53097 * gnulib-tool: Untabify. Initialize supplied_libname.
53098 (func_usage): More homogenous output.
53099 (func_modules_transitive_closure, func_modules_to_filelist,
53100 func_emit_lib_Makefile_am): New functions.
53101 (func_import): New function, extracted from big case statement. Use
53102 func_get_license, func_modules_transitive_closure,
53103 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
53104 opt_lgpl. Don't use test -a, as it's not portable.
53105 (func_create_testdir): Use func_modules_transitive_closure,
53106 func_modules_to_filelist, func_emit_lib_Makefile_am.
53108 2004-10-15 Bruno Haible <bruno@clisp.org>
53110 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
53112 2004-10-15 Bruno Haible <bruno@clisp.org>
53114 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
53115 the portions belonging to each module.
53116 Suggested by Derek Robert Price <derek@ximbiot.com>.
53118 2004-10-12 Simon Josefsson <jas@extundo.com>
53120 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53121 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
53124 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
53126 * modules/vsnprintf: New file.
53128 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
53130 * m4/vsnprintf.m4: New file.
53132 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
53134 * lib/vsnprintf.h: New file.
53135 * lib/vsnprintf.c: New file.
53137 2004-10-11 Bruno Haible <bruno@clisp.org>
53139 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
53142 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
53144 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
53146 2004-10-07 Bruno Haible <bruno@clisp.org>
53148 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
53149 fits into the provided buffer.
53151 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
53153 * lib/diacrit.c, diacrit.h: Add GPL notice.
53155 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
53157 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
53158 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
53159 This avoids a potential constant-folding bug.
53161 2004-10-05 Bruno Haible <bruno@clisp.org>
53163 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
53164 for the declaration of strsep.
53166 2004-10-05 Bruno Haible <bruno@clisp.org>
53168 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
53170 2004-10-04 Simon Josefsson <jas@extundo.com>
53172 * modules/memmem: New file.
53173 * tests/test-memmem.c: New file.
53174 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
53176 2004-10-04 Simon Josefsson <jas@extundo.com>
53178 * m4/memmem.m4: New file.
53180 2004-10-04 Simon Josefsson <jas@extundo.com>
53182 * lib/memmem.h: New file.
53183 * lib/memmem.c: New file, taken from glibc.
53185 2004-10-04 Simon Josefsson <jas@extundo.com>
53187 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
53188 '#ifdef USE_UNLOCKED_IO'.
53190 2004-10-04 Simon Josefsson <jas@extundo.com>
53192 * config/srclist.txt: Add memmem from glibc.
53194 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53196 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
53198 * modules/argmatch, modules/argp, modules/closeout, modules/error,
53199 modules/exclude, modules/getdate, modules/getline,
53200 modules/getndelim2, modules/getpass, modules/getpass-gnu,
53201 modules/getusershell, modules/linebuffer, modules/md5,
53202 modules/mountlist, modules/posixtm, modules/readtokens,
53203 modules/readutmp, modules/regex, modules/sha1,
53204 modules/version-etc, modules/yesno:
53205 Remove dependency on unlocked-io.
53207 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53209 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
53211 * m4/unlocked-io.m4: Add copyright notice.
53212 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
53214 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53216 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
53217 * lib/xmalloc.c (xmemdup): Likewise.
53218 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
53219 XFREE): Remove these long-obsolescent macros.
53220 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
53221 * lib/xstrdup.c: Remove.
53223 * lib/regex.c (re_comp): Cast gettext return value to char *,
53224 Problem reported by Martin Neitzel via Mark D. Baushke.
53226 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
53228 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
53229 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
53230 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
53231 regex.c, sha1.c, version-etc.c, yesno.c:
53232 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
53233 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
53234 the includer's responsibility.
53236 Sync from coreutils.
53238 * lib/modechange.c (mode_compile): Don't decrement a pointer that
53239 points to the start of a string, as the C Standard says the
53240 resulting behavior is undefined.
53242 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
53243 simple -> simple_backups, numbered_existing ->
53244 numbered_existing_backups, numbered -> numbered_backups
53245 to avoid shadowing problems. All uses changed.
53246 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
53247 * lib/backupfile.c (check_extension, numbered_backup):
53248 Rename locals to avoid shadowing 'basename'.
53249 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
53252 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
53253 * lib/.cvsignore: Add getopt.h.
53255 2004-10-04 Bruno Haible <bruno@clisp.org>
53257 * modules/README: New file.
53258 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
53261 2004-10-02 Jim Meyering <jim@meyering.net>
53263 * lib/dirfd.h, getpagesize.h: Add copyright notice.
53265 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
53267 * modules/strsep: New file.
53269 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
53271 * m4/strsep.m4: New file.
53273 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
53275 * lib/strsep.h: New file.
53276 * lib/strsep.c: New file.
53278 2004-10-01 Simon Josefsson <jas@extundo.com>
53280 * lib/snprintf.c (snprintf): Handle size==0.
53282 2004-10-01 Simon Josefsson <jas@extundo.com>
53283 Bruno Haible <bruno@clisp.org>
53285 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
53286 (snprintf): Declare 'args'.
53288 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
53290 * lib/snprintf.c: Remove comments as to why each header is needed.
53292 2004-10-01 Bruno Haible <bruno@clisp.org>
53294 * MODULES.html.sh: Add strsep.
53296 2004-09-30 Simon Josefsson <jas@extundo.com>
53298 * modules/snprintf: New file.
53300 2004-09-30 Simon Josefsson <jas@extundo.com>
53302 * m4/snprintf.m4: New file.
53304 2004-09-30 Simon Josefsson <jas@extundo.com>
53306 * lib/snprintf.h, lib/snprintf.c: New files.
53308 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
53310 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
53311 (hol_entry_help): Never translate an empty string.
53312 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
53313 * lib/argp.h (OPTION_NO_TRANS): New option.
53315 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
53317 * modules/argp (Maintainer): Replace Simon Josefsson
53318 by Sergey Poznyakoff.
53320 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
53322 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
53323 changes merged back into glibc.
53325 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
53327 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
53329 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
53331 * lib/xvasprintf.c: Include xalloc.h.
53332 (xvasprintf): Use xalloc_die, not xmalloc_die.
53334 2004-09-29 Bruno Haible <bruno@clisp.org>
53336 * modules/alloca-opt: New file, derived from modules/alloca.
53337 * modules/allocsa: Depend on alloca-opt instead of alloca.
53338 * modules/setenv: Likewise.
53339 * modules/vasnprintf: Likewise.
53340 * MODULES.html.sh: Add alloca-opt.
53342 2004-09-28 Simon Josefsson <jas@extundo.com>
53344 * gnulib-tool: New parameter --lgpl, to asseert that modules are
53345 LGPL, and to replace license template from GPL to LGPL.
53347 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
53349 * modules/dummy: Change license to LGPL.
53351 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
53353 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
53355 2004-09-24 Simon Josefsson <jas@extundo.com>
53357 * modules/minmax (License): Change from GPL to LGPL.
53359 2004-09-23 Simon Josefsson <jas@extundo.com>
53361 * gnulib-tool (--import): Typo.
53363 2004-09-23 Simon Josefsson <jas@extundo.com>
53365 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
53367 2004-09-22 Bruno Haible <bruno@clisp.org>
53369 * modules/*: Add 'License' field.
53370 * gnulib-tool: Accept --extract-license option.
53371 (func_get_license): New function.
53373 2004-09-21 Bruno Haible <bruno@clisp.org>
53375 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
53376 Reported by Simon Josefsson.
53378 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
53380 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
53381 gl_AC_TYPE_LONG_LONG.
53383 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
53385 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
53387 2004-09-18 Simon Josefsson <jas@extundo.com>
53388 and Paul Eggert <eggert@cs.ucla.edu>
53390 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
53391 calls with autoreconf. Define GL_LIB.
53393 2004-09-14 Karl Berry <karl@gnu.org>
53395 * config/srclist.txt: unsync setenv.c, sigh.
53397 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
53399 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
53400 Problem reported by Bruno Haible in:
53401 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
53403 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
53405 * config/srclist.txt: Comment out argp-pvh.c.
53407 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
53409 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
53410 in case some system header has #define'd it. Problem reported by
53411 Soeren D. Schulze in
53412 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
53414 2004-09-09 Karl Berry <karl@gnu.org>
53416 * regex.[ch]: delete from the root. These were supposed to be
53417 synced with emacs cvs, but this has not happened for about
53418 a year, and anyway nothing else uses emacs regex.[ch].
53419 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
53420 lib/regex[.ch] is untouched.
53422 2004-09-09 Bruno Haible <bruno@clisp.org>
53424 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
53426 2004-09-09 Bruno Haible <bruno@clisp.org>
53428 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
53430 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
53432 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
53434 * modules/xvasprintf: New file.
53435 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
53437 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
53439 * lib/xvasprintf.h: New file.
53440 * lib/xvasprintf.c: New file.
53441 * lib/xasprintf.c: New file.
53443 2004-09-08 Bruno Haible <bruno@clisp.org>
53445 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
53447 2004-09-08 Bruno Haible <bruno@clisp.org>
53449 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
53450 length is > INT_MAX.
53451 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
53454 2004-09-08 Bruno Haible <bruno@clisp.org>
53456 * lib/stdint_.h: New file, taken from GNU clisp.
53458 2004-09-08 Bruno Haible <bruno@clisp.org>
53459 Oskar Liljeblad <oskar@osk.mine.nu>
53461 * modules/stdint: New file.
53462 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
53464 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
53466 Import from coreutils.
53467 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
53468 strings on unbounded length. alloca's performance benefits aren't
53469 that important here.
53470 (V_STRDUP): Remove.
53471 (parse_with_separator): New function, with most of the internals
53472 of the old parse_user_spec. Allow user to omit both user and group,
53473 for compatibility with FreeBSD.
53474 Clone only the user name, not the entire spec.
53475 Do not set *uid, *gid unless entirely successful.
53476 Avoid memory leak in some failing cases.
53477 Fix regression for USER.GROUP reported by Dmitry V. Levin in
53478 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
53479 (parse_user_spec): Rewrite to use parse_with_separator.
53481 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
53483 * modules/userspec: Don't depend on alloca.
53485 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
53487 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
53489 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
53491 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
53492 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
53493 utimecmp, utimens, xnanosleep. Rename sha to sha1.
53495 2004-08-16 Simon Josefsson <jas@extundo.com>
53497 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
53498 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
53499 Add --dry-run for --import.
53500 Let user provided command line parameters override configure.ac
53503 2004-08-12 Simon Josefsson <jas@extundo.com>
53505 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
53506 as discussed with Paul Eggert in threads rooted at
53507 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
53509 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
53510 Before, the test was empty, and relied on ELIDE_CODE in source
53512 (gl_PREREQ_GETOPT): New macro.
53513 (gl_GETOPT): Use them.
53515 2004-08-12 Simon Josefsson <jas@extundo.com>
53517 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
53518 * lib/getopt_.h: Renamed from getopt.h.
53520 2004-08-12 Simon Josefsson <jas@extundo.com>
53522 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
53523 Change default library name from libfoo to libgnu.
53524 Now, if you have a configure.ac that says:
53527 gl_MODULES(error getopt etcetera)
53529 you can import all you need by running:
53530 ../gnulib/gnulib-tool --import
53532 * modules/getopt (Files): Rename getopt.h to getopt_.h.
53533 (Makefile.am): Rewrite, use logic from argz.
53534 (Include): Use <getopt.h> instead of "getopt.h".
53536 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53538 * modules/argp (Files): Add m4/unlocked-io.m4.
53539 (Depends-on): Add extensions.
53541 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53543 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
53544 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
53545 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
53546 Check for program_invocation_name, program_invocation_short_name,
53547 flockfile, funlockfile, features.h, _getopt_long_only_r.
53549 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53551 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
53552 its complicated substitute.
53553 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
53554 and program_invocation_name.
53555 (__argp_basename) [!_LIBC]: Remove; the only use was
53556 replaced by its body.
53557 (__argp_short_program_name): Change condition from
53558 !defined __argp_short_program_name to
53559 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
53560 to match argp-namefrob.h.
53561 (__argp_failure): Don't assume strerror_r returns char *.
53562 * lib/argp-parse.c (N_): Define unconditionally.
53563 (argp_default_options): Fill out initializers with 0 to avoid
53566 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53568 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
53571 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
53573 Merge from coreutils.
53575 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
53577 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
53578 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
53580 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
53582 Merge from coreutils.
53584 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
53585 wmemchr or wmemcpy. Problem reported by Robert Dahlem
53586 for Reliant Unix 5.43.
53588 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
53589 (union fooround): Use uintmax_t, not long int.
53590 The rest is a merge from libc:
53591 [defined _LIBC]: Include <shlib-compat.h>.
53592 (_obstack) [defined _LIBC]: Remove after 2.3.4.
53594 * lib/settime.c (settime): Recode to avoid warning with
53597 * lib/strverscmp.c: Convert to UTF-8.
53599 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
53601 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
53604 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
53606 * modules/xalloc-die: New file.
53607 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
53609 * modules/md5 (Files): Add m4/uint32_t.m4.
53610 * modules/sha1: Renamed from modules/sha.
53612 Rename lib/sha.h to lib/sha1.h.
53613 Rename lib/sha.c to lib/sha1.c.
53614 Rename m4/sha.m4 to m4/sha1.m4.
53615 (lib_SOURCES): Likewise.
53616 (configure.ac): Rename gl_SHA to gl_SHA1.
53617 (Include): sha.h -> sha1.h.
53619 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
53621 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
53622 * m4/sha1.m4: Renamed from sha.m4.
53623 (gl_SHA1): Renamed from gl_SHA. All uses changed.
53625 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
53627 * lib/obstack.h (obstack_empty_p):
53628 Don't assume that chunk->contents is suitably aligned.
53629 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
53630 Likewise. Problem reported by Benno in
53631 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
53633 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
53634 readable. This could be improved further but it'd take some work.
53636 2004-08-08 Simon Josefsson <jas@extundo.com>
53638 * modules/xgethostname (Depends-on): Remove exit and error (not
53641 * modules/getpass-gnu: Add getpass.h.
53642 (Depends-on): Add stdbool.
53643 * modules/getpass: Add getpass.h.
53645 2004-08-08 Simon Josefsson <jas@extundo.com>
53647 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
53648 Check getpass declaration.
53650 2004-08-08 Simon Josefsson <jas@extundo.com>
53652 * lib/xgethostname.c: Don't include error.h (not used).
53654 * lib/getpass.h: Add.
53655 * lib/getpass.c: Include getpass.h first.
53657 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
53659 * lib/xalloc-die.c: New file.
53660 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
53662 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
53663 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
53665 (_, N_, xalloc_die): Move to xalloc-die.c.
53666 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
53667 so that we needn't mess with xalloc_msg_memory_exhausted.
53669 * lib/sha1.h: Renamed from sha.h.
53670 (SHA1_H): Renamed from _SHA_H.
53671 (sha1_ctx): Renamed from sha_ctx.
53672 (sha1_init_ctx): Renamed from sha_init_ctx.
53673 (sha1_process_block): Renamed from sha_process_block.
53674 (sha1_process_bytes): Renamed from sha_process_bytes.
53675 (sha1_finish_ctx): Renamed from sha_finish_ctx.
53676 (sha1_read_ctx): Renamed from sha_read_ctx.
53677 (sha1_stream): Renamed from sha_stream.
53678 (sha1_buffer): Renamed from sha_buffer.
53679 * lib/sha1.c: Likewise; renamed from sha.c.
53680 Do not include <sys/types.h>.
53681 Include <stddef.h> rather than <stdlib.h>.
53683 2004-08-08 Bruno Haible <bruno@clisp.org>
53685 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
53686 FILESYSTEM_PREFIX_LEN.
53687 * lib/progreloc.c: Likewise.
53688 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
53690 2004-08-06 Simon Josefsson <jas@extundo.com>
53692 * modules/progname (Depends-on): Don't depend on stdbool.
53694 2004-08-06 Simon Josefsson <jas@extundo.com>
53696 * modules/getsubopt: New file.
53697 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53700 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
53702 More merge from coreutils.
53704 * m4/utimens.m4, m4/utimecmp.m4: New files.
53705 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
53706 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
53707 prereq.m4, sha.m4: Import changes from coreutils.
53709 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
53711 More merge from coreutils.
53712 * modules/raise, modules/readtokens0, modules/utimens:
53713 * modules/utimecmp, module/xnanosleep: New files.
53714 * modules/strftime: Add lib/strftime.h.
53715 Change include from <time.h> to "strftime.h".
53716 * modules/yesno: Add lib/yesno.h.
53717 * modules/backupfile: Remove lib/addext.c.
53718 * modules/euidaccess: Add stat-macros.h.
53719 * modules/canonicalize, modules/euidaccess,
53720 modules/filemode, modules/lchown, modules/makepath,
53721 modules/rmdir, modules/stat: Likewise.
53723 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
53726 * lib/argp-help.c (make_hol, hol_append): Don't assume that
53727 SIZE_MAX is a valid preprocessor constant.
53728 (__argp_basename): Change from "#ifndef _LIBC"
53729 to "#ifndef __argp_short_program_name", so that
53730 we don't compile these functions for tar.
53732 More merges from coreutils.
53733 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
53734 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
53735 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
53736 * lib/addext.c: Remove; no longer needed.
53737 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
53738 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
53739 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
53740 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
53741 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
53742 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
53743 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
53744 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
53745 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
53746 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
53747 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
53748 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
53749 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
53750 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
53751 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
53752 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
53753 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
53754 Import changes from coreutils.
53756 2004-08-05 Simon Josefsson <jas@extundo.com>
53758 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
53760 2004-08-05 Simon Josefsson <jas@extundo.com>
53762 * m4/getsubopt.m4: New file.
53764 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
53766 Merge from coreutils.
53768 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
53769 * m4/getcwd-path-max.m4: New files.
53771 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
53772 FILESYSTEM_PREFIX_LEN ->
53773 FILE_SYSTEM_PREFIX_LEN.
53774 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
53775 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
53776 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
53777 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
53779 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
53780 prerequisite modules now handle the DOS stuff.
53781 Don't check for unistd.h.
53783 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
53785 Merge from coreutils.
53787 * lib/.gdb-history: Remove; this doesn't belong here.
53789 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
53790 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
53791 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
53792 * lib/getcwd.c: New files.
53794 * lib/dirname.h: Include <stdbool.h>.
53795 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
53796 for consistency with POSIX terminology. All uses changed.
53797 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
53798 (strip_trailing_slashes): Use bool for booleans.
53799 * lib/stripslash.c (strip_trailing_slashes): Likewise.
53801 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
53802 sometimes returns a positive errno value even when it succeeds.
53803 (print_errno_message) [!LIBC]: Fall back on strerror if
53804 __strerror_r fails.
53806 * lib/path-concat.c (mempcpy): Don't define if a system header defines
53807 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
53808 (longest_relative_suffix): New function.
53809 (path_concat): Use it. Assume first argument is not NULL.
53810 Port to DOS. Omit redundant separators.
53811 Report an error instead of returning NULL.
53812 Use mempcpy instead of memcpy.
53813 (xpath_concat): Remove: not declared or used.
53815 * lib/same.h: Include <stdbool.h>
53816 (same_name): Return bool, not int.
53817 * lib/same.c (same_name): Likewise.
53818 (errno): Don't declare; we assume C89 or better now.
53820 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
53821 if not already defined.
53823 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
53824 * lib/dup-safer.c (errno): Likewise.
53826 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
53828 Merge from coreutils.
53829 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
53830 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
53831 * modules/path-concat: Don't depend on strdup.
53833 2004-08-03 Simon Josefsson <jas@extundo.com>
53835 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
53836 * lib/progname.h: Don't include stdbool.h.
53838 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
53840 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
53841 * MODULES.html.sh (func_all_modules): Remove fatal.
53843 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
53845 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
53847 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
53849 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
53852 2004-08-02 Simon Josefsson <jas@extundo.com>
53854 * lib/getsubopt.h: New file, with comments from Bruno Haible.
53855 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
53856 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
53858 2004-08-01 Simon Josefsson <jas@extundo.com>
53860 * lib/xgetdomainname.c: Include stdlib.h, for free().
53862 2004-07-19 Bruno Haible <bruno@clisp.org>
53864 * MODULES.html.sh (func_all_modules): Add dummy.
53866 2004-07-16 Simon Josefsson <jas@extundo.com>
53868 * modules/dummy: New file.
53870 2004-07-16 Simon Josefsson <jas@extundo.com>
53872 * lib/dummy.c: New file.
53874 2004-07-16 Bruno Haible <bruno@clisp.org>
53876 * lib/backupfile.h: Add extern "C" for C++.
53877 * lib/closeout.h: Likewise.
53878 * lib/copy-file.h: Likewise.
53879 * lib/findprog.h: Likewise.
53880 * lib/full-write.h: Likewise.
53881 * lib/pathname.h: Likewise.
53882 * lib/progname.h: Likewise.
53883 * lib/stpcpy.h: Likewise.
53884 * lib/stpncpy.h: Likewise.
53885 * lib/strcase.h: Likewise.
53886 * lib/strstr.h: Likewise.
53887 * lib/xalloc.h: Likewise.
53889 * lib/mbswidth.h: Add extern "C" for C++.
53890 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
53892 2004-07-13 Robert Millan <robertmh@gnu.org>
53894 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
53896 2004-07-09 Simon Josefsson <jas@extundo.com>
53898 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
53899 failed without this.)
53901 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
53903 * modules/chown (Files): Add lib/fchown-stub.c, since
53904 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
53906 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
53908 * lib/fchown-stub.c: New file.
53910 2004-06-24 Jim Meyering <jim@meyering.net>
53912 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
53914 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
53916 * modules/argz: Omit "#include".
53918 * MODULES.html.sh (func_all_modules): Add calloc, to match
53919 2004-06-01 addition of calloc module.
53921 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
53923 * m4/argz.m4: New file, which is autoupdated from libtool.
53925 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
53927 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
53930 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
53932 * config/srclist-update: Don't insist on "USA." before the
53933 close-comment, as libtool omits the period and puts the */ on a
53935 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
53936 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
53938 2004-06-22 Gary V. Vaughan <gary@gnu.org>
53940 * modules/argz: New file.
53941 * MODULES.html.sh (func_all_modules): Add argz.
53943 2004-06-12 Jim Meyering <jim@meyering.net>
53944 and Paul Eggert <eggert@cs.ucla.edu>
53946 * modules/hash (Files): Add lib/xalloc.h.
53947 * modules/pipe (Depends-on): Add wait-process.
53948 * modules/stat (Depends-on): Add xalloc.
53949 * modules/userspec (Files): Add lib/userspec.h.
53952 Upgrade from gettext-0.13.
53953 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
53954 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
53955 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
53957 2004-06-10 Jim Meyering <jim@meyering.net>
53959 * lib/calloc.c: New file.
53961 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
53963 * lib/getdate.y (yylex): Allow space between sign and number.
53964 Problem reported by Dan Jacobson.
53966 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
53968 Merge from coreutils CVS.
53970 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
53971 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
53972 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
53973 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
53974 xstrtol.m4: Fix copyright date and/or serial number.
53976 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
53977 See if we need an fchown replacement.
53978 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
53979 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
53980 and use the replacement function if we detect either defect.
53982 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
53985 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
53986 and Jim Meyering <jim@meyering.net>
53988 Merge from coreutils CVS.
53990 * lib/stat-macros.h: New file, with contents from file-type.h
53991 and coreutils' system.h.
53992 * lib/file-type.c: Include "stat-macros.h".
53993 * lib/file-type.h (file_type): Move all macro definitions to new file,
53996 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
53997 Wrap old code with this conditional.
53998 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
53999 function that does not dereference symlinks.
54000 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
54002 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
54003 dependency problems.
54004 (xreadlink): Accept new arg SIZE, for efficiency.
54005 All decls and uses changed.
54006 * lib/xreadlink.h: Include <stddef.h>, for size_t.
54008 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
54009 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
54011 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
54014 2004-06-01 Jim Meyering <jim@meyering.net>
54016 * m4/calloc.m4: New file.
54018 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
54020 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
54021 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
54022 Also, fix a typo in a diagnostic.
54024 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
54026 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
54027 or AC_FUNC_REALLOC.
54029 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
54031 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
54032 macros to be defined.
54033 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
54034 the allocator returns NULL because the requested size is zero.
54036 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
54038 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
54039 var. Add comment explaining why libc still defines it. This
54040 merges the following patch from glibc:
54041 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
54043 2004-05-20 Andreas Schwab <schwab@suse.de>
54045 * m4/free.m4: Replace free if it not known to work, not the other
54048 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
54050 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
54051 present in glibc since revision 1.1 of this file.
54052 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
54053 obstack_alignment_mask, obstack_alloc, obstack_base,
54054 obstack_blank, obstack_blank_fast, obstack_chunk_size,
54055 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
54056 obstack_grow0, obstack_init, obstack_int_grow,
54057 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
54058 obstack_next_free, obstack_object_size, obstack_ptr_grow,
54059 obstack_ptr_grow_fast, obstack_room): Remove declarations of
54060 nonexistent functions.
54062 2004-05-18 Karl Berry <karl@gnu.org>
54064 * config/srclist.txt: break link for vasnprintf.c.
54066 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
54068 Port obstack to the AS/400, where pointers are 16 bytes wide and
54069 you cannot cast an integer to a valid pointer. This patch is
54070 currently waiting to be integrated into glibc; see
54071 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
54073 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
54074 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
54075 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
54076 (struct obstack): temp member is now a union of a pointer and
54077 an integer, instead of an integer. All integer uses changed.
54078 This does not affect the physical layout of struct obstack,
54079 except on hosts (like the AS/400) where the size or alignment of
54080 void * is greater than that of ptrdiff_t.
54081 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
54082 __STDC__)]: Store temporary in pointer member of union, not
54084 * lib/obstack.c: Include <stddef.h>, for offsetof.
54085 (struct fooalign): Remove; it doesn't need a name.
54086 (union fooround): Change double to long double, and add void *.
54087 (DEFAULT_ALIGNMENT): Use offsetof to compute.
54088 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
54089 not a macro. Hence the values are always int; so remove all
54090 casts-to-int in uses.
54092 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
54094 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
54095 we can get this patch merged into glibc.
54097 2004-05-17 Derek R. Price <derek@ximbiot.com>
54098 Paul Eggert <eggert@cs.ucla.edu>
54100 * m4/argp: Depend on alloca.
54102 2004-05-17 Derek R. Price <derek@ximbiot.com>
54103 Paul Eggert <eggert@cs.ucla.edu>
54105 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
54108 2004-05-17 Bruno Haible <bruno@clisp.org>
54110 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
54111 precision that consists of a '.' followed by an empty digit string.
54112 Patch by Tor Lillqvist <tml@iki.fi>.
54114 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
54116 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
54117 for backward compatibility with older code. We need our own
54118 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
54119 it under some other name, and our alloca.h will define it.
54121 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
54122 Derek Price <derek@ximbiot.com>
54124 * lib/alloca.c: Include <alloca.h>, to get our interface.
54125 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
54126 include <alloca.h> first. Use C89 prototype for alloca; this
54127 requires including <stddef.h> for size_t. Use extern "C" if C++.
54128 Use #elif for simplicity, since we can assume C89 now.
54129 Don't try to source the system alloca.h since it will not be found
54130 and to prevent recursively including its replacement.
54131 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
54132 * lib/regex.c: Likewise.
54134 2004-05-16 Derek Price <derek@ximbiot.com>
54135 Paul Eggert <eggert@cs.ucla.edu>
54137 getline cleanup. This changes the getndelim2 API: both order of
54138 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
54141 * lib/getline.c: Don't include stddef.h or stdio.h, since our
54142 interface does that.
54143 (getline): Always use getdelim, so that we don't have two
54144 copies of this code.
54145 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
54147 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
54148 (GETNDELIM2_MAXIMUM): New macro.
54149 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
54150 instead of the old practice of delim2==0. All callers changed.
54151 Return -1 on overflow, instead of returning junk.
54152 Do not set *linesize unless allocation succeeds.
54153 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
54154 that we include sys/types.h.
54155 * lib/getnline.h: Likewise.
54156 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
54157 (getndelim2): Reorder arguments.
54158 * lib/getnline.c (getnline, getndelim):
54159 Don't discard the NMAX argument.
54160 (getnline): Invoke getndelim, to avoid code duplication.
54161 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
54162 of (size_t) -1 by callers of the getnline family.
54164 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
54166 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
54167 Check for gettimeofday.
54168 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
54169 Check for settimeofday, stime.
54171 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
54173 * lib/nanosleep.c (suspended): Change its type from int to
54174 sig_atomic_t volatile.
54175 (first_call): Make it private to rpl_nanosleep, and have it
54176 be zero initially as that's a bit faster.
54177 (my_usleep): Round up fractional times instead of truncating them,
54178 as this is the usual meaning for 'sleep'.
54180 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
54182 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
54183 (ENOSYS): Define if not defined.
54184 (settime): Fall back on stime if it exists and settimeofday fails.
54185 But don't bother with fallbacks if a method fails with errno == EPERM.
54187 2004-05-11 Jim Meyering <jim@meyering.net>
54189 Prior to this change, the save_cwd caller required read access to the
54190 current directory on most systems (ones with the fchdir function).
54192 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
54193 fails, try write-only, and finally, resort to using xgetcwd.
54195 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
54197 * lib/obstack.c, obstack.h: Import changes from libc.
54199 2004-04-28 Bruno Haible <bruno@clisp.org>
54201 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
54202 also implicitly appends .exe to executables.
54203 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
54204 accepts Windows pathnames.
54205 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54206 Treat Cygwin like Windows, since it now accepts Windows pathnames.
54207 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54208 Treat Cygwin like Windows, since it now accepts Windows pathnames.
54209 Reported by Derek Robert Price <derek@ximbiot.com>.
54211 2004-04-21 Karl Berry <karl@gnu.org>
54213 * config/srclist.txt (localcharset.c): break sync.
54215 2004-04-20 Paul Eggert <eggert@twinsun.com>
54217 * m4/host-os.m4: Add a copyright notice.
54219 2004-04-20 Jim Meyering <jim@meyering.net>
54221 Change UTILS_ to gl_ in AC_DEFINE'd names.
54222 Change utils_- and jm_-prefixed variables, too.
54223 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
54224 UTILS_FUNC_MKDIR_TRAILING_SLASH.
54225 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
54227 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
54228 Don't emit trailing blanks.
54229 Also rename jm_-prefixed variables to have gl_ prefix.
54231 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
54232 Also rename jm_-prefixed variables to have gl_ prefix.
54234 * m4/jm-macros.m4: Reflect the renamings.
54235 * m4/prereq.m4: Likewise.
54237 2004-04-20 Jim Meyering <jim@meyering.net>
54239 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
54242 2004-04-20 Jim Meyering <jim@meyering.net>
54243 Bruno Haible <bruno@clisp.org>
54245 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
54246 memory when realloc fails.
54248 2004-04-19 Jim Meyering <jim@meyering.net>
54250 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
54251 now that readutmp.c may call `free (0)'.
54253 2004-04-19 Bruno Haible <bruno@clisp.org>
54255 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
54256 * m4/inttypes_h.m4: Likewise.
54257 * m4/stdint_h.m4: Likewise.
54258 * m4/intmax_t.m4: Likewise.
54259 * m4/uintmax_t.m4: Likewise.
54261 2004-04-18 Jim Meyering <jim@meyering.net>
54263 * m4/prereq.m4: Don't forbid jm_ prefix.
54265 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
54266 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
54267 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
54268 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
54269 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
54270 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
54271 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
54272 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
54273 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
54274 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
54275 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
54276 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
54277 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
54278 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
54279 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
54280 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
54281 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
54282 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
54283 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
54285 2004-04-18 Jim Meyering <jim@meyering.net>
54287 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
54288 failure, don't leak memory and do call END_UTMP_ENT.
54290 2004-04-16 Jim Meyering <jim@meyering.net>
54292 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
54293 coreutils' stat program.
54294 (gl_PREREQ): Don't require jm_PREREQ_STAT.
54296 2004-04-11 Paul Eggert <eggert@twinsun.com>
54298 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
54300 (CHAR_BIT): Remove, since we assume C89.
54301 Include <stdint.h> if available, as per current Autoconf CVS advice.
54303 2004-03-31 Jim Meyering <jim@meyering.net>
54305 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
54306 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
54307 * m4/xalloc.m4: Likewise.
54309 2004-03-30 Paul Eggert <eggert@twinsun.com>
54311 Merge from coreutils.
54313 * m4/inttostr.m4: New file.
54314 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
54315 Require AM_STDBOOL_H and gl_TIMESPEC instead.
54316 Require gl_CLOCK_TIME.
54317 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
54319 2004-03-30 Paul Eggert <eggert@twinsun.com>
54321 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
54322 not bool, to be more consistent with Unix conventions.
54323 Suggested by Bruno Haible.
54325 Merge from coreutils.
54327 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
54328 * lib/umaxtostr.c: New files.
54330 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
54331 the usual <time.h> dance.
54332 (get_date): Change signature to support fractional time stamps.
54333 All callers changed.
54334 * lib/getdate.y: Include "getdate.h" first, as we can now
54335 assume C89 and don't need to worry about 'const'.
54336 Similarly, include "unlocked-io.h" near start, not in middle.
54337 Include <limits.h>.
54338 (textint.value): Use long int rather than int.
54339 (textint.digits): Use size_t rather than int.
54340 (BILLION, LOG10_BILLION): New constants.
54341 (parser_control): New member rel_ns. Members day_ordinal,
54342 time_zone, month, day, hour, minutes, rel_year, rel_month,
54343 rel_day, rel_hour, rel_minutes, rel_seconds
54344 are now long int, not int. Member seconds is now struct timespec,
54345 not int. New member timespec_seen. Members dates_seen, days_seen,
54346 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
54348 (%union.intval): Now long int, not int.
54349 New member timespec.
54350 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
54351 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
54352 (spec): Now is a timespec or an item list.
54353 (timespec, items): New nonterminals.
54354 (time, rel, relunit, number, get_date):
54355 Add support for fractional seconds.
54356 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
54357 (gmtime, localtime, mktime): Remove decls; not needed with C89.
54358 (to_hour): First arg is now long int, not int.
54359 (to_year): Returns long int, not int.
54360 Don't treat year -70 like 70.
54361 (tm_diff): Returns long int, not int.
54362 (lookup_word): Use bool instead of int when appropriate.
54363 (yylex): Use size_t for count, not int.
54364 Detect overflow when parsing large integer constants.
54365 Add support for fractions.
54366 (get_date): Make pointers 'const' if possible.
54367 Use more-portable code to detect integer overflow.
54368 (main) [TEST]: Adjust to above changes. Test for localtime failure.
54369 Don't use ctime; it's not reliable if the year has >4 digits.
54371 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
54372 This is for compatibility with BSD.
54374 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
54375 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
54376 From coreutils' system.h.
54378 * lib/userspec.c: Don't include "posixver.h".
54379 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
54380 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
54381 compatible extension. Simplify code by removing a boolean int
54382 that was always nonzero if a string was nonnull.
54384 2004-03-30 Jim Meyering <jim@meyering.net>
54386 Merge from coreutils.
54388 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
54389 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
54390 on some systems one must include <grp.h> before it.
54391 Reported by Christian Krackowizer.
54393 2004-03-30 Jim Meyering <jim@meyering.net>
54395 Merge from coreutils.
54397 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
54399 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
54400 an empty input stream.
54402 * lib/readtokens.c: Include <stdbool.h>.
54403 (readtoken): Use `size_t' rather than int/long.
54404 All callers adjusted.
54405 Use `bool' rather than `int' where appropriate.
54406 Use memset rather than an explicit loop.
54407 Use x2nrealloc rather than xrealloc.
54408 Allow the use of `\0' as a delimiter.
54409 (readtokens): Likewise.
54410 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
54412 2004-03-30 Jim Meyering <jim@meyering.net>
54414 * m4/realloc.m4: Remove file, since now it does no more than
54415 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
54416 the `configure.ac' section of module/realloc.
54417 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
54419 2004-03-30 Bruno Haible <bruno@clisp.org>
54421 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
54424 2004-03-29 Paul Eggert <eggert@twinsun.com>
54426 Merge changes to getloadavg.c from coreutils and Emacs.
54428 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
54429 Define to an expression, not to the empty string.
54430 Include cloexec.h and xalloc.h.
54431 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
54432 Use set_cloexec_flag rather than rolling our own.
54433 * lib/cloexec.c, lib/cloexec.h: New files.
54435 2004-03-29 Paul Eggert <eggert@twinsun.com>
54437 * m4/cloexec.m4: New file.
54439 2004-03-18 Paul Eggert <eggert@twinsun.com>
54441 * lib/getopt.h: Sync with libc CVS.
54443 2004-03-18 Paul Eggert <eggert@twinsun.com>
54444 Bruno Haible <bruno@clisp.org>
54446 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
54449 2004-03-18 Paul Eggert <eggert@twinsun.com>
54450 Bruno Haible <bruno@clisp.org>
54452 * lib/mbswidth.h: Include <wchar.h> only if
54453 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
54455 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
54457 2004-03-09 Paul Eggert <eggert@twinsun.com>
54459 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
54460 Sync with libc CVS.
54461 * lib/getopt_int.h: New file, also synced from libc.
54463 2004-03-09 Paul Eggert <eggert@twinsun.com>
54465 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
54466 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
54467 Bring back getopt.c, getopt.h, getopt1.c.
54469 2004-03-07 Paul Eggert <eggert@twinsun.com>
54471 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
54472 All uses changed. Check for sa_sigaction member; this fixes
54473 a bug first reported by Jason Andrade in
54474 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
54476 2004-03-07 Paul Eggert <eggert@twinsun.com>
54478 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
54479 '#if' expressions. Unlike the code it replaces, it does not
54480 depend on (defined _SC_PAGESIZE). However, it does depend on
54481 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
54482 first reported by Jason Andrade in
54483 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
54485 2004-02-25 Simon Josefsson <jas@extundo.com>
54487 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
54489 2004-02-25 Simon Josefsson <jas@extundo.com>
54491 * lib/strdup.h: New file.
54492 * lib/strdup.c: Include it.
54493 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
54494 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
54496 2004-02-23 Karl Berry <karl@gnu.org>
54498 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
54499 (from fencepost.gnu.org:/gd/gnuorg).
54501 2004-02-23 Karl Berry <karl@gnu.org>
54503 * config/srclistvars.sh (GNUORG) [karl]: redefine.
54504 * config/srclist.txt: add maintain/standards documents.
54506 2004-02-18 Bruno Haible <bruno@clisp.org>
54508 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
54509 Reported by Derek Robert Price <derek@ximbiot.com>.
54511 2004-02-16 Karl Berry <karl@gnu.org>
54513 * config/mkinstalldirs, install-sh: update from automake.
54515 2004-02-06 Karl Berry <karl@gnu.org>
54517 * m4/po.m4: update from gettext 0.14.1.
54519 2004-02-06 Karl Berry <karl@gnu.org>
54521 * lib/config.charset: update from gettext 0.14.1.
54523 2004-02-05 Paul Eggert <eggert@twinsun.com>
54525 Add comments and code, prompted by suggestions from Bruno Haible
54527 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
54528 describing the enum quoting_style values.
54529 * lib/quotearg.c (quotearg_alloc): New function.
54530 (quotearg_buffer_restyled): Treat lone { and } as special.
54531 Treat = as special. Work around bug with older shells
54532 that "see" a '\' that is really the 2nd byte of a multibyte char.
54533 Quote empty string with shell_quoting_style.
54535 2004-02-03 Bruno Haible <bruno@clisp.org>
54537 * m4/pipe.m4: New file, from GNU gettext.
54539 2004-02-03 Bruno Haible <bruno@clisp.org>
54541 * lib/pipe.h: New file, from GNU gettext.
54542 * lib/pipe.c: New file, from GNU gettext.
54544 2004-01-27 Bruno Haible <bruno@clisp.org>
54546 * m4/execute.m4: New file, from GNU gettext.
54548 2004-01-27 Bruno Haible <bruno@clisp.org>
54550 * lib/execute.h: New file, from GNU gettext.
54551 * lib/execute.c: New file, from GNU gettext.
54552 * lib/w32spawn.h: New file, from GNU gettext.
54554 2004-01-24 Paul Eggert <eggert@twinsun.com>
54556 Merge from diffutils.
54558 * lib/file-type.c (file_type): Add typed memory objects.
54559 * lib/file-type.h (S_TYPEISTMO): New macro.
54561 * lib/c-stack.h (c_stack_action): Remove argv argument.
54562 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
54563 (die): Don't calculate message unless segv_action returns.
54564 (get_stack_location, min_address_from_argv, max_address_from_argv,
54565 volatile stack_base, volatile_stack_size): Remove.
54566 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
54567 that every segmentation violation is a stack overflow. (Ouch!)
54568 See Debian bug 136249 (still outstanding) for more info about why
54569 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
54571 2004-01-24 Paul Eggert <eggert@twinsun.com>
54573 Exit-status fix from coreutils.
54575 Use exit_failure consistently in place of EXIT_FAILURE,
54576 so that program exit statuses are consistent on failure.
54578 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
54579 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
54580 * lib/argmatch.h: Comment fix to match the above.
54581 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
54582 Now a macro referring to exit_failure, instead of a separate
54583 variable. Include "exitfail.h" to get it.
54584 * lib/xstrtol.h: Include "exitfail.h".
54585 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
54587 * lib/long-options.c (parse_long_options): Use prototype
54588 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
54591 2004-01-21 Jim Meyering <jim@meyering.net>
54593 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
54594 so as not to conflict with a different-sized __mktime_internal
54595 function in GNU libc.
54596 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
54597 Problem building statically-linked `ls' reported by Michael Brunnbauer.
54599 2004-01-20 Karl Berry <karl@gnu.org>
54601 * config/config.guess: update from config.
54603 * config/srclistvars.sh: GNUWWWLICENSES for karl.
54605 2004-01-20 Bruno Haible <bruno@clisp.org>
54607 Safer stack allocation.
54608 * lib/setenv.c: Include allocsa.h.
54609 (alloca): Remove fallback definition.
54610 (freea): Remove macro.
54611 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
54614 2004-01-20 Bruno Haible <bruno@clisp.org>
54616 * m4/eealloc.m4: New file, from GNU gettext.
54618 2004-01-20 Bruno Haible <bruno@clisp.org>
54620 * m4/allocsa.m4: New file, from GNU gettext.
54622 2004-01-20 Bruno Haible <bruno@clisp.org>
54624 * lib/xallocsa.h: New file, from GNU gettext.
54625 * lib/xallocsa.c: New file, from GNU gettext.
54627 2004-01-20 Bruno Haible <bruno@clisp.org>
54629 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
54631 2004-01-20 Bruno Haible <bruno@clisp.org>
54633 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
54634 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
54637 2004-01-20 Bruno Haible <bruno@clisp.org>
54639 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
54642 2004-01-20 Bruno Haible <bruno@clisp.org>
54644 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
54646 2004-01-20 Bruno Haible <bruno@clisp.org>
54648 * lib/eealloc.h: New file.
54650 2004-01-20 Bruno Haible <bruno@clisp.org>
54652 * lib/binary-io.h: Avoid warnings on Cygwin.
54654 2004-01-20 Bruno Haible <bruno@clisp.org>
54656 * lib/allocsa.h: New file, from GNU gettext.
54657 * lib/allocsa.c: New file, from GNU gettext.
54659 2004-01-18 Karl Berry <karl@gnu.org>
54661 * doc/gpl.texi, doc/lgpl.texi: new files.
54663 2004-01-18 Karl Berry <karl@gnu.org>
54665 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
54666 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
54668 2004-01-15 Paul Eggert <eggert@twinsun.com>
54670 Merge from coreutils.
54672 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
54673 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
54674 (gl_DEFAULT_POSIX2_VERSION): Move
54675 the documentation from 'configure' into 'config.hin',
54676 so that 'configure --help' isn't burdened by it and
54677 we don't have to worry about its formatting there.
54678 Reword the documentation so that it's more succinct
54679 and can be run together into a single paragraph.
54680 * m4/same.m4 (gl_SAME): Check for pathconf.
54682 2004-01-15 Paul Eggert <eggert@twinsun.com>
54684 Merge from coreutils.
54686 * lib/posixver.c: Include posixver.h.
54688 * lib/same.c: Include <stdbool.h>, <limits.h>.
54689 (_POSIX_NAME_MAX): Define if not defined.
54691 (same_name): If file names are silently truncated, report
54692 that the file names are the same if they are the same after
54693 the silent truncation.
54695 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
54696 conversion function.
54697 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
54698 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
54701 2004-01-15 Jim Meyering <jim@meyering.net>
54703 Merge from coreutils.
54705 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
54706 if no library is required.
54707 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
54708 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
54709 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
54710 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
54711 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
54712 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
54713 value, $ac_cv_search_crypt, if it's "none required".
54714 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
54715 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
54716 not gl_FUNC_GETLOADAVG.
54717 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
54718 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
54720 2004-01-15 Jim Meyering <jim@meyering.net>
54722 Merge from coreutils.
54724 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
54725 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
54726 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
54728 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
54729 optional configure-time default.
54731 * lib/version-etc.c (version_etc_copyright): Update copyright date.
54733 * lib/xreadlink.c (xreadlink): Correct outdated comment.
54735 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
54737 Merge from coreutils.
54739 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
54740 value, $ac_cv_search_nanosleep, if it's "none required".
54742 2004-01-14 Paul Eggert <eggert@twinsun.com>
54744 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
54745 with like-named macro in fnmatch.c.
54746 (EXT): Use an internal constant instead.
54748 Merge fnmatch patches from glibc.
54749 * lib/fnmatch.c (mbsinit): Remove define.
54750 Add libc_hidden_ver (__fnmatch, fnmatch).
54751 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
54752 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
54754 2004-01-14 Karl Berry <karl@gnu.org>
54756 * config/install-sh: update from automake.
54758 2004-01-13 Karl Berry <karl@gnu.org>
54760 * config/install-sh: update from automake.
54762 2004-01-09 Karl Berry <karl@gnu.org>
54764 * config/install-sh: update from automake.
54766 2004-01-05 Karl Berry <karl@gnu.org>
54768 * config/config.{sub,guess}: update from config.
54770 2003-12-31 Karl Berry <karl@gnu.org>
54772 * config/depcomp: update from automake.
54774 2003-12-14 Karl Berry <karl@gnu.org>
54776 * lib/config.charset: update from gettext-runtime.
54778 2003-12-03 Paul Eggert <eggert@twinsun.com>
54780 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
54781 Bug reported by Alfred M. Szmidt.
54783 2003-12-03 Bruno Haible <bruno@clisp.org>
54785 * m4/gettext.m4: Upgrade from gettext-0.13.
54786 * m4/po.m4: Upgrade from gettext-0.13.
54787 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
54788 * m4/intmax.m4: New file, from gettext-0.13.
54789 * m4/printf-posix.m4: New file, from gettext-0.13.
54791 2003-11-29 Karl Berry <karl@gnu.org>
54793 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
54795 2003-11-25 Paul Eggert <eggert@twinsun.com>
54796 Bruno Haible <bruno@clisp.org>
54798 * lib/printf-parse.h: Don't include sys/types.h.
54799 (ARG_NONE): New macro.
54800 (char_directive): Change type of *arg_index fields to size_t.
54801 * lib/printf-parse.c: Don't include sys/types.h.
54802 (SSIZE_MAX): Remove macro.
54803 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
54804 Remove unnecessary overflow check.
54805 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
54808 2003-11-25 Bruno Haible <bruno@clisp.org>
54810 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
54812 2003-11-25 Bruno Haible <bruno@clisp.org>
54814 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
54817 2003-11-24 Paul Eggert <eggert@twinsun.com>
54819 * modules/alloca: Remove dependency on xalloc.
54821 2003-11-24 Paul Eggert <eggert@twinsun.com>
54823 * lib/alloca.c: Remove dependency on xalloc module.
54824 (xalloc_die): Remove.
54825 (memory_full) [!defined emacs]: New macro.
54826 [!defined emacs]: Don't include xalloc.h.
54827 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
54828 address arithmetic overflows. Change datatypes a bit to avoid
54831 2003-11-22 Jim Meyering <jim@meyering.net>
54833 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
54836 2003-11-21 Karl Berry <karl@gnu.org>
54838 * config/config.{sub,guess}: update from config.
54840 2003-11-18 Karl Berry <karl@gnu.org>
54842 * config/config.{sub,guess}: update from config.
54844 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
54846 2003-11-17 Paul Eggert <eggert@twinsun.com>
54848 * README: Mention that S+T cannot overflow if S is the size of
54849 an existing object and T is sufficiently small.
54851 2003-11-17 Jim Meyering <jim@meyering.net>
54853 On systems without utime and without a utimes function capable of
54854 dealing with a NULL struct utimbuf* argument, this utime replacement
54855 could -- in unusual circumstances -- leak a file descriptor.
54856 * lib/utime.c: Include <unistd.h> and <errno.h>.
54857 (utime_null): Be sure to close `fd' and to preserve errno.
54858 Reported by Geoff Collyer via Arnold Robbins.
54860 2003-11-17 Bruno Haible <bruno@clisp.org>
54862 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
54863 (Depends-on): Add xsize.
54865 2003-11-17 Bruno Haible <bruno@clisp.org>
54867 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
54869 2003-11-17 Bruno Haible <bruno@clisp.org>
54871 * lib/vasnprintf.c (alloca): Remove fallback definition.
54872 (freea): Remove definition.
54873 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
54874 Reported by Paul Eggert.
54876 2003-11-16 Paul Eggert <eggert@twinsun.com>
54877 Bruno Haible <bruno@clisp.org>
54879 Protect against address arithmetic overflow.
54880 * lib/printf-args.h: Include stddef.h.
54881 (arguments): Change type of field 'count' to size_t.
54882 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
54883 'unsigned int' where appropriate.
54884 * lib/printf-parse.h: Include sys/types.h.
54885 (char_directive): Change type of *arg_index fields to ssize_t.
54886 (char_directives): Change type of fields 'count', max_*_length to
54888 * lib/printf-parse.c: Include sys/types.h and xsize.h.
54889 (SSIZE_MAX): Define fallback value.
54890 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
54891 instead of 'int' where appropriate. Check a_allocated, d_allocated
54892 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
54893 * lib/vasnprintf.c: Include xsize.h.
54894 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
54895 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
54896 overflow. Avoid wraparound when converting a width or precision from
54899 2003-11-16 Bruno Haible <bruno@clisp.org>
54901 Update from GNU gettext.
54902 * lib/printf-parse.c: Generalize to it can be compiled for wide
54904 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
54905 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
54906 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
54907 SNPRINTF): New macros.
54908 Don't include <alloca.h> if the file is used inside libintl.
54909 (local_wcslen): New function, for Solaris 2.5.1.
54910 (VASNPRINTF): Use it instead of wcslen.
54912 2003-11-16 Bruno Haible <bruno@clisp.org>
54914 * lib/xsize.h (xmax): New function.
54915 (xsum, xsum3, xsum4): Declare as "pure" functions.
54917 2003-11-12 Paul Eggert <eggert@twinsun.com>
54919 * modules/xalloc (Files): Undo latest change, since xalloc.h
54920 no longer needs SIZE_MAX or PTRDIFF_MAX.
54922 2003-11-12 Paul Eggert <eggert@twinsun.com>
54924 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
54927 2003-11-12 Paul Eggert <eggert@twinsun.com>
54929 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
54930 "return", to pacify some unknown compiler. Problem reported
54931 by Joerg Schilling.
54933 2003-11-12 Paul Eggert <eggert@twinsun.com>
54935 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
54936 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
54937 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
54938 heuristic is just as accurate as far as we know, and it removes a
54939 dependency on size_max.m4 and ptrdiff_max.m4.
54941 2003-11-11 Bruno Haible <bruno@clisp.org>
54943 * modules/xsize (Files): Add m4/size_max.m4.
54944 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
54946 2003-11-11 Bruno Haible <bruno@clisp.org>
54948 * m4/size_max.m4: New file.
54949 * m4/ptrdiff_max.m4: New file.
54950 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
54951 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
54952 (gl_XALLOC): Invoke it.
54954 2003-11-11 Bruno Haible <bruno@clisp.org>
54956 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
54957 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
54960 2003-11-10 Paul Eggert <eggert@twinsun.com>
54962 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
54963 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
54964 rejected some allocations of exactly SIZE_MAX - 2 bytes.
54966 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
54967 not (size_t) -1, since it's defined here.
54969 2003-11-09 Karl Berry <karl@gnu.org>
54971 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
54973 2003-11-06 Paul Eggert <eggert@twinsun.com>
54975 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
54976 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
54977 Reject sizes of exactly SIZE_MAX bytes.
54978 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
54979 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
54981 2003-11-05 Bruno Haible <bruno@clisp.org>
54983 * lib/xsize.h: Include limits.h, to avoid a possible collision with
54984 SIZE_MAX defined in <limits.h> on Solaris.
54986 2003-11-04 Jim Meyering <jim@meyering.net>
54988 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
54989 variable names, rather than @VAR@.
54990 * modules/poll: Likewise.
54992 2003-11-04 Bruno Haible <bruno@clisp.org>
54994 * modules/xsize: New file.
54995 * modules/linebreak: Depend on xsize.
54996 * MODULES.html.sh (func_all_modules): Add xsize.
54998 2003-11-04 Bruno Haible <bruno@clisp.org>
55000 * m4/xsize.m4: New file.
55002 2003-11-04 Bruno Haible <bruno@clisp.org>
55004 * lib/xsize.h: New file.
55005 * lib/linebreak.c: Include xsize.h.
55006 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
55007 argument for overflow.
55008 Suggested by Paul Eggert.
55010 2003-11-03 Karl Berry <karl@gnu.org>
55012 * config/config.{guess,sub}: update from config.
55014 2003-11-03 Jim Meyering <jim@meyering.net>
55016 * modules/userspec (lib_SOURCES): Add userspec.h.
55017 (Include): Add "userspec.h".
55018 Improve description.
55020 2003-11-03 Jim Meyering <jim@meyering.net>
55022 * lib/userspec.c: Include "userspec.h".
55023 * lib/userspec.h: New file.
55025 2003-11-03 Bruno Haible <bruno@clisp.org>
55027 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
55029 2003-11-03 Bruno Haible <bruno@clisp.org>
55031 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
55032 available, to avoid (extremely rare) race condition.
55033 Suggested by Paul Eggert.
55035 2003-11-02 Karl Berry <karl@gnu.org>
55037 * config/srclist.txt (vasprintf.c): sync broken, sigh.
55039 2003-10-31 Paul Eggert <eggert@twinsun.com>
55041 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
55042 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
55043 (read_filesystem_list): Set and use me_type_malloced.
55044 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
55045 whatever the type happens to be), for brevity and consistency.
55046 Check for size calculation overflow on Alphas running OSF/1.
55048 2003-10-31 Jim Meyering <jim@meyering.net>
55050 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
55052 * lib/linebuffer.c: Include <string.h> for declaration of memset.
55054 2003-10-30 Paul Eggert <eggert@twinsun.com>
55055 Bruno Haible <bruno@clisp.org>
55057 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
55058 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
55060 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
55062 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
55063 netbsd*-gnu*. Suggested by Robert Millan.
55065 2003-10-29 Paul Eggert <eggert@twinsun.com>
55067 * modules/group-member: Depend on stdbool.
55069 2003-10-29 Paul Eggert <eggert@twinsun.com>
55071 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
55073 2003-10-29 Paul Eggert <eggert@twinsun.com>
55075 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
55076 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
55077 after the 'gnu' in these cases. This fixes some bugs in the
55078 previous change, and is based on suggestions by Robert Millan.
55080 2003-10-29 Paul Eggert <eggert@twinsun.com>
55082 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
55083 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
55085 * lib/quotearg.c (quotearg_n_options): Use it.
55086 * lib/group-member.c: Include <stdbool.h>.
55087 (free_group_info): Arg is now const *; don't free arg.
55088 (get_group_info): Now returns bool and accepts struct group_info *,
55089 rather than returning a malloc'ed struct group_info *.
55090 All uses changed. Check for overflow in internal size calculation.
55092 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
55093 rather than xmalloc/xrealloc.
55094 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
55095 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
55096 conformance bug: the old code used a pointer after freeing the
55097 storage that it addressed.
55098 * lib/hash.c (hash_initialize): Simplify the code by using
55099 xalloc_oversized rather than doing it by hand.
55100 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
55101 the buffer preserved. Use free and xmalloc instead.
55102 * lib/quotearg.c (quotearg_n_options): Likewise.
55103 Use a simpler test for size overflow. Don't use xalloc_oversized
55104 because unsigned int might be wider than size_t (!); this suggests
55105 that we should switch from unsigned int to size_t for slot numbers.
55107 2003-10-28 Paul Eggert <eggert@twinsun.com>
55109 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
55110 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
55111 NetBSD kernels. Requested by Richard Stallman.
55113 2003-10-27 Paul Eggert <eggert@twinsun.com>
55115 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
55116 to allocate the returned structure. Do not allocate a subarray,
55117 as x2nrealloc will do that.
55118 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
55119 instead of xnrealloc.
55120 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
55122 2003-10-27 Bruno Haible <bruno@clisp.org>
55124 * lib/stdbool_.h: Better support for BeOS.
55126 2003-10-26 Paul Eggert <eggert@twinsun.com>
55128 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
55131 2003-10-26 Paul Eggert <eggert@twinsun.com>
55133 * lib/xalloc.h (xalloc_oversized): New static inline function, for
55134 callers that want to do their own size-overflow checking. Include
55135 <stdbool.h>, since xalloc_oversized returns bool.
55136 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
55137 to use xalloc_oversized.
55139 Add two functions x2realloc, x2nrealloc, for programs that grow
55140 arrays dynamically by doubling their sizes.
55141 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
55142 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
55145 Port to C99 semantics for 'inline' of external functions.
55146 Bug reported by Bruno Haible.
55147 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
55148 with the old contents of xnmalloc.
55149 (xnmalloc, xmalloc): Use it.
55150 (xnrealloc_inline): New static inline function,
55151 with the old contents of xnrealloc.
55152 (xnrealloc, xrealloc): Use it.
55154 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
55157 2003-10-26 Karl Berry <karl@gnu.org>
55159 * config/srclist.txt (COPYING.DOC): no longer available from
55160 /gd/gnuorg; don't know where the ultimate source is.
55162 2003-10-25 Paul Eggert <eggert@twinsun.com>
55164 Fix several address-calculation bugs in the hash modules,
55165 plus some minor code cleanup.
55167 * lib/hash.h: Include <stdbool.h>, for bool.
55168 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
55169 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
55170 hash_get_n_entries, hash_get_max_bucket_length,
55171 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
55172 hash_rehash): Use size_t rather than unsigned.
55173 * lib/hash.c (struct hash_table, hash_get_n_buckets,
55174 hash_get_n_buckets_used, hash_get_n_entries,
55175 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
55176 hash_get_entries, hash_do_for_each, hash_string, is_prime,
55177 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
55179 (SIZE_MAX): Define if not defined.
55180 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
55181 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
55183 Use const * when possible.
55184 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
55185 (check_tuning): Fix bug: if tuning parameters were very close to
55186 0 or 1, rounding errors could have caused subscript violations.
55187 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
55188 (hash_initialize): Add 'fail:' label
55189 to free table and return NULL, and use it to simplify code.
55190 Use calloc rather than clearing the storage ourself.
55191 (hash_initialize, hash_rehash): Check for arithmetic overflow in
55192 buffer size calculations.
55193 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
55194 Include <stddef.h>, for size_t.
55195 * lib/hash-pjw.c (hash_pjw): Likewise.
55196 Switch to method described by Bruno Haible.
55197 Include <limits.h>, for CHAR_BIT.
55198 (SIZE_BITS): New macro.
55200 2003-10-23 Paul Eggert <eggert@twinsun.com>
55202 * m4/getline.m4 (AM_FUNC_GETLINE):
55203 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
55204 hosts. Problem reported by Derek Robert Price in
55205 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
55206 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
55207 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
55209 2003-10-21 Paul Eggert <eggert@twinsun.com>
55211 * lib/getndelim2.c (getndelim2): When size calculation overflows,
55212 ceiling the allocation at NMAX bytes rather than silently
55213 discarding input bytes before NMAX is reached. This makes
55214 a difference only if NMAX exceeds SIZE_MAX / 2.
55216 * lib/obstack.c: Merge from glibc.
55217 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
55218 Add libc_hidden_def (_obstack_newchunk).
55219 (_obstack_free) [! defined _LIBC]: Remove.
55220 [defined _LIBC]: Make a strong alias from obstack_free, rather than
55221 a clone of the function body.
55222 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
55223 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
55225 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
55227 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
55230 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
55231 (obstack_ptr_grow_fast, obstack_int_grow_fast):
55232 Don't use lvalue casts, as GCC plans to remove support for them
55233 in GCC 3.5. Reported by Joseph S. Myers. This bug
55234 was also present in the non-GCC version, indicating that this
55235 code had always been buggy and had never been widely used.
55236 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
55237 Use the fast variant of each macro, rather than copying the
55238 definiens of the fast variant; that way, we'll be more likely to
55239 catch future bugs in the fast variants.
55241 2003-10-20 Bruno Haible <bruno@clisp.org>
55243 * modules/wait-process: New file.
55244 * MODULES.html.sh (func_all_modules): Add wait-process.
55246 2003-10-20 Bruno Haible <bruno@clisp.org>
55248 * m4/wait-process.m4: New file.
55250 2003-10-20 Bruno Haible <bruno@clisp.org>
55252 * lib/wait-process.h: New file, from GNU gettext.
55253 * lib/wait-process.c: New file, from GNU gettext.
55255 2003-10-19 Jim Meyering <jim@meyering.net>
55257 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
55260 2003-10-18 Karl Berry <karl@gnu.org>
55262 * config/config.guess: update from config.
55264 2003-10-16 Paul Eggert <eggert@twinsun.com>
55266 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
55267 (getgroups): First arg is int, not size_t.
55268 Don't let 'free' mangle errno.
55270 2003-10-16 Paul Eggert <eggert@twinsun.com>
55272 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
55274 2003-10-16 Karl Berry <karl@gnu.org>
55276 * config/config.{guess,sub}: update from config.
55278 2003-10-16 Jim Meyering <jim@meyering.net>
55280 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
55283 2003-10-15 Paul Eggert <eggert@twinsun.com>
55285 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
55286 (SIZE_MAX): Remove.
55287 (new_exclude, add_exclude_file): Initial size no longer needs to
55289 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
55290 our own address arithmetic overflow checking.
55292 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
55293 (fnmatch): Do not alloca more than 2000 wide characters;
55294 instead, use malloc for large buffers.
55295 Check for address arithmetic overflow, and return -1
55296 with errno set to ENOMEM in that case.
55297 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
55298 (NEW_PATTERN): Do not alloca more than 8000 bytes;
55299 instead, return -1. Check for address arithmetic overflow.
55301 2003-10-14 Paul Eggert <eggert@twinsun.com>
55303 Handle invalid suffixes and overflow independently, so that
55304 callers can treat them independently as needed. Fix some bugs in
55305 suffix handling, e.g., "100k@" was not diagnosed as an invalid
55306 suffix for a human-readable blocksize. The major caller-visible
55307 change is the addition of a new
55308 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
55309 that both overflow and suffix chars were found.
55311 * lib/human.c (humblock): Don't check separately for invalid suffix
55312 char; that is xstrtoumax's job (now that its bug is fixed).
55313 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
55314 INTMAX_MAX]: New macros.
55315 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
55316 TYPE_MAXIMUM): New macros.
55317 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
55318 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
55319 if overflow occurs, as it's what __strtol does and it's more useful
55321 (__xstrtol): If __strtol reports some error other than ERANGE,
55322 reflect it to the caller as LONGINT_INVALID. If it reports
55323 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
55324 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
55325 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
55327 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
55328 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
55329 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
55330 [defined UINTMAX_MAX]: New macros.
55332 2003-10-14 Bruno Haible <bruno@clisp.org>
55334 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
55336 2003-10-14 Bruno Haible <bruno@clisp.org>
55338 * m4/sig_atomic_t: New file, from GNU gettext.
55339 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
55341 2003-10-14 Bruno Haible <bruno@clisp.org>
55343 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
55344 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
55345 Also use volatile where needed.
55347 2003-10-12 Paul Eggert <eggert@twinsun.com>
55349 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
55350 Change maintainer from Bruno Haible to 'all'.
55352 2003-10-12 Paul Eggert <eggert@twinsun.com>
55354 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
55356 2003-10-12 Paul Eggert <eggert@twinsun.com>
55358 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
55359 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
55360 and define in terms of the other primitives.
55361 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
55362 (SIZE_MAX): Define if not already defined.
55363 (array_size_overflow): New function.
55364 (xalloc_die): Abort instead of exiting if 'error' returns.
55365 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
55366 (xmalloc, xrealloc): Use them.
55367 (xcalloc): Check for address arithmetic overflow.
55368 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
55369 a bit faster than strcpy.
55371 2003-10-10 Simon Josefsson <jas@extundo.com>
55373 * modules/argp (Depends-on): Add restrict and strcase.
55375 2003-10-10 Simon Josefsson <jas@extundo.com>
55377 * m4/argp.m4: Add AC_C_INLINE.
55379 2003-10-08 Paul Eggert <eggert@twinsun.com>
55381 Merge getpass from libc, plus a few fixes.
55383 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
55384 Include <stdbool.h>.
55385 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
55386 __fsetlocking to empty.
55387 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
55388 do include <bits/libc-lock.h>.
55389 Do not include <fcntl.h>; not needed.
55390 [_LIBC]: Include <wchar.h>.
55391 (NOTCANCEL_MODE): New macro.
55392 (flockfile, funlockfile) [_LIBC]: New macros.
55393 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
55394 [!_LIBC]: New macros.
55395 (call_fclose): New function.
55396 (getpass): Use it. Save tty stream separately; this simplifies the
55397 code and makes it more reliable if stdin happens to equal stdout.
55398 Invoke __fsetlocking on tty.
55399 Handle thread cancellation if needed.
55400 Namespace cleanup (use __tcgetattr, __getline).
55401 Use bool for Booleans.
55402 [USE_IN_LIBIO]: Handle wide streams.
55403 [!_LIBC]: Unconditionally do the fseek, since we don't know what
55404 stream might go where.
55406 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
55407 doesn't have to include <stdio.h> before us.
55408 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
55409 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
55410 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
55411 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
55412 if not declared, so that we can use getpass.c code from libc without
55414 (flockfile, ftrylockfile, funlockfile): New macros.
55416 2003-10-08 Paul Eggert <eggert@twinsun.com>
55418 * modules/getpass: Depend on stdbool.
55420 2003-10-08 Paul Eggert <eggert@twinsun.com>
55422 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
55424 2003-10-07 Karl Berry <karl@gnu.org>
55426 * config/config.{guess,sub}: update from config.
55428 2003-10-06 Jim Meyering <jim@meyering.net>
55429 Bruno Haible <bruno@clisp.org>
55431 This lets translators provide better translations for the
55432 "Written by ..." part of --version output.
55433 * lib/version-etc.h: Include stdarg.h.
55434 (version_etc_copyright): Declare as readonly.
55435 (version_etc): Make this function variadic with a NULL-terminated list
55436 of author name strings.
55437 (version_etc_va): New declaration.
55438 * lib/version-etc.c: Include stdarg.h, stdlib.h.
55439 (version_etc_copyright): Declare as readonly.
55440 (version_etc_va): New function. Provide a different translatable string
55441 for each possible number of authors < 10. Abbreviate when there are 10
55443 (version_etc): Make this function variadic. Call version_etc_va.
55444 Suggestion from Gary V. Vaughan.
55446 * lib/long-options.h (parse_long_options): Change prototype: the
55447 authors string is moved to the end and becomes variadic.
55448 * lib/long-options.c: Include stdarg.h.
55449 (parse_long_options): Make this function variadic, too.
55450 Call version_etc_va, not version_etc.
55452 2003-10-06 Bruno Haible <bruno@clisp.org>
55454 * modules/version-etc-2: Remove file.
55455 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
55457 2003-10-06 Bruno Haible <bruno@clisp.org>
55459 * modules/fatal-signal: New file.
55460 * MODULES.html.sh (func_all_modules): Add fatal-signal.
55462 2003-10-06 Bruno Haible <bruno@clisp.org>
55464 * m4/fatal-signal.m4: New file.
55465 * m4/signalblocking.m4: New file, from GNU gettext.
55467 2003-10-06 Bruno Haible <bruno@clisp.org>
55469 * lib/version-etc-2.h: Remove file.
55470 * lib/version-etc-2.c: Remove file.
55472 2003-10-06 Bruno Haible <bruno@clisp.org>
55474 * lib/fatal-signal.h: New file, from GNU gettext.
55475 * lib/fatal-signal.c: New file, from GNU gettext.
55477 2003-10-05 Paul Eggert <eggert@twinsun.com>
55479 * README: Rework advice for preventing empty .o files.
55480 Don't recommend ELIDE constructs. Recommend <stddef.h>,
55483 2003-10-04 Karl Berry <karl@gnu.org>
55485 * lib/argp*: update from libc.
55487 2003-10-04 Karl Berry <karl@gnu.org>
55489 * config/config.{guess,sub}: update from config.
55491 2003-10-02 Bruno Haible <bruno@clisp.org>
55493 * modules/lchown (Include): Add lchown.h.
55494 * modules/time_r (Include): Use "..." syntax.
55495 * modules/xgetdomainname (Include): Add xgetdomainname.h.
55497 2003-10-01 Simon Josefsson <jas@extundo.com>
55499 * MODULES.html.sh (func_all_modules): Move gethostname from section
55500 'based on' to section 'lacking' POSIX:2001.
55502 2003-10-01 Larry Jones <lawrence.jones@eds.com>
55504 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
55505 to output mode on the same stream.
55507 2003-09-29 Paul Eggert <eggert@twinsun.com>
55509 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
55510 Fix arg typo in previous patch.
55512 2003-09-28 Jim Meyering <jim@meyering.net>
55514 * lib/error.c: Correct cpp indentation.
55516 2003-09-27 Paul Eggert <eggert@twinsun.com>
55518 * modules/free: New file.
55520 2003-09-27 Paul Eggert <eggert@twinsun.com>
55522 * m4/free.m4: New file.
55524 2003-09-27 Paul Eggert <eggert@twinsun.com>
55526 * lib/minmax.h (MIN, MAX)
55527 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
55528 Omit the special code that used __typeof__, since we worry that
55529 it could be more trouble than it's worth. See:
55530 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
55531 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
55533 * lib/free.c: New file.
55535 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
55537 Trivial fixes to Makefile.am parts of module listings.
55538 * modules/strstr: Append strstr.h to lib_SOURCES.
55539 * modules/strcase: Likewise, for strcase.h.
55541 2003-09-27 Karl Berry <karl@gnu.org>
55543 * config/mkinstalldirs: update from automake.
55545 2003-09-26 Paul Eggert <eggert@twinsun.com>
55547 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
55548 (error_tail): Do not loop, reallocating temporary buffer, since
55549 the output cannot contain more wide characters than the input
55550 contains bytes, the size must be big enough already. This avoids
55551 one potential size overflow calculation. Check for size overflow
55552 when calculating temporary buffer size. Free temporary buffer
55553 when done, if it was allocated with malloc; this plugs a memory
55554 leak. Remove casts from void * to pointers, that are no longer
55555 needed now that we're assuming C89 or better.
55557 Merge error changes from glibc.
55559 * lib/error.c, error.h: Update copyright notice header to match glibc.
55560 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
55561 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
55562 Disable cancellation while printing error.
55563 * lib/error.h: Prepend __ to parameter names.
55565 2003-09-26 Jim Meyering <jim@meyering.net>
55567 * lib/error.c (error_tail): Move some declarations
55568 into inner scope where the local variables are used.
55570 2003-09-26 Bruno Haible <bruno@clisp.org>
55572 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
55574 Don't define stpncpy through config.h; it's now done through stpncpy.h.
55576 2003-09-26 Bruno Haible <bruno@clisp.org>
55578 * lib/stpncpy.h (gnu_stpncpy): New declaration.
55579 (stpncpy): Define as alias for gnu_stpncpy.
55580 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
55582 2003-09-25 Simon Josefsson <jas@extundo.com>
55584 * lib/xgetdomainname.h: New file.
55585 * lib/xgetdomainname.c: New file.
55587 2003-09-25 Simon Josefsson <jas@extundo.com>
55588 Bruno Haible <bruno@clisp.org>
55590 * modules/getdomainname: New file.
55591 * modules/xgetdomainname: New file.
55592 * MODULES.html.sh (func_all_modules): Add getdomainname,
55595 2003-09-25 Simon Josefsson <jas@extundo.com>
55596 Bruno Haible <bruno@clisp.org>
55598 * m4/getdomainname.m4: New file.
55600 2003-09-25 Simon Josefsson <jas@extundo.com>
55601 Bruno Haible <bruno@clisp.org>
55603 * lib/getdomainname.h: New file.
55604 * lib/getdomainname.c: New file.
55606 2003-09-25 Karl Berry <karl@gnu.org>
55608 * lib/argp-fmtstream.c, argp-help.c: update from libc.
55610 2003-09-25 Karl Berry <karl@gnu.org>
55612 * config/install-sh: update from automake.
55614 2003-09-25 Bruno Haible <bruno@clisp.org>
55616 * modules/version-etc-2: New file, from modules/version-etc with
55618 * MODULES.html.sh (func_all_modules): Add version-etc-2.
55620 2003-09-25 Bruno Haible <bruno@clisp.org>
55622 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
55623 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
55625 2003-09-24 Simon Josefsson <jas@extundo.com>
55627 * modules/xgethostname: Add xgethostname.h.
55629 2003-09-24 Paul Eggert <eggert@twinsun.com>
55631 * lib/linebuffer.c (freebuffer): Don't free the argument, just
55632 the buffer associated with the argument. Bug reported by
55635 2003-09-24 Paul Eggert <eggert@twinsun.com>
55637 * README: Document assumptions that 'int' is at least 32 bits
55638 wide, that integer arithmetic is 2's complement without overflow,
55639 that there are no holes in integer values, that adding sizes of
55640 two nonoverlapping objects can't overflow, and that all-bits-zero
55641 yields scalar zero. Fix spelling and capitalization typos.
55643 2003-09-19 Karl Berry <karl@gnu.org>
55645 * lib/argp.h: update from libc.
55647 2003-09-17 Paul Eggert <eggert@twinsun.com>
55649 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
55650 to avoid spurious warnings like "AC_RUN_IFELSE was called before
55651 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
55653 2003-09-17 Paul Eggert <eggert@twinsun.com>
55655 * gnulib-tool: Use "test -h", not "test -L", for portability
55656 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
55657 (tags_regexp): Remove, since \| doesn't conform to POSIX.
55658 (sed_extract_prog): Issue s commands one-by-one, rather than
55659 using \| in one s command.
55661 2003-09-16 Paul Eggert <eggert@twinsun.com>
55663 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
55664 input error, instead of returning NULL the next time we are called
55665 (and therefore losing track of errno).
55667 2003-09-16 Bruno Haible <bruno@clisp.org>
55669 * gnulib-tool (func_create_testdir): Warn about duplicated
55672 2003-09-15 Paul Eggert <eggert@twinsun.com>
55674 * modules/argmatch, modules/fatal, modules/obstack,
55675 modules/xalloc, modules/xgethostname: Sort dependencies by
55676 importance, not alphabetically.
55678 2003-09-15 Paul Eggert <eggert@twinsun.com>
55680 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
55681 fails, so that the caller gets the proper errno.
55683 * lib/readutmp.c (read_utmp): Likewise.
55684 Check for fstat error. Close stream and free storage
55687 2003-09-14 Karl Berry <karl@gnu.org>
55689 * config/srclist.txt (strdup.c): disable for c89 changes.
55691 2003-09-14 Jim Meyering <jim@meyering.net>
55693 * lib/getloadavg.c: Correct cpp indentation.
55694 * lib/strdup.c: Likewise.
55695 * lib/vasnprintf.c: Likewise.
55697 2003-09-14 Bruno Haible <bruno@clisp.org>
55699 * modules/fwriteerror: New file.
55700 * MODULES.html.sh (func_all_modules): Add fwriteerror.
55702 2003-09-14 Bruno Haible <bruno@clisp.org>
55704 * lib/fwriteerror.h: New file.
55705 * lib/fwriteerror.c: New file.
55707 2003-09-12 Paul Eggert <eggert@twinsun.com>
55709 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
55710 modules/xgethostname, modules/xalloc: Depend on exit.
55712 2003-09-12 Paul Eggert <eggert@twinsun.com>
55714 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
55716 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
55717 and AC_MINIX, too, so that their extensions are available.
55719 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
55720 This macro has been superseded by gl_BACKUPFILE.
55722 More patches to assume C89 or better.
55724 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
55726 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
55728 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
55729 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
55730 Include <string.h>, <stdlib.h> unconditionally.
55731 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
55732 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
55733 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
55734 headers or for string.h.
55735 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
55738 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
55740 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
55741 * m4/userspec.m4 (gl_USERSPEC): Likewise.
55742 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
55743 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
55744 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55745 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
55747 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
55748 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
55749 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
55751 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
55752 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
55753 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
55756 2003-09-12 Paul Eggert <eggert@twinsun.com>
55758 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
55759 * lib/obstack.c [!defined _LIBC]: Likewise.
55760 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
55761 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
55762 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
55764 More changes to assume C89 or better.
55766 * lib/error.c (error_tail): Assume vprintf.
55768 * lib/argmatch.c (getenv): Remove decl.
55769 * lib/progreloc.c (get_full_program_name): Define via prototype.
55770 * lib/setenv.c (clearenv): Likewise.
55771 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
55773 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
55774 (malloc, memcpy): Remove decls.
55775 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
55776 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
55777 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
55778 (memcpy): Remove macro.
55779 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
55780 (__P): Remove. All uses removed.
55781 (PTR): Remove. All uses changed to void *.
55782 (CHAR_BIT, NULL): Remove.
55783 (spaces, zeros, memset_space, memset_zero)
55784 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
55786 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
55787 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
55788 Define with prototype.
55789 Remove now-unnecessary prototype decl.
55790 (extra_args_spec): Assume ANSI C. All uses changed.
55791 (extra_args_spec_iso): Remove.
55792 (my_strftime, emacs_strftimeu): Define via prototype.
55793 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
55795 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
55796 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
55797 (strtoul, strtol): Remove decls.
55798 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
55800 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
55801 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
55802 (LOCALE_PARAM_PROTO): New macro.
55803 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
55804 (INTERNAL (strtol), strtol): Define with a prototype.
55805 (PARAMS): Remove. All uses removed.
55806 * lib/tempname.c: Include <string.h> unconditionally.
55807 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
55808 * lib/xgethostname.c (main): Define with a prototype.
55809 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
55810 Include <stdlib.h> unconditionally.
55811 (calloc, malloc, realloc, free): Remove decls.
55812 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
55813 Include <stdlib.h> unconditionally. Sort include file names.
55815 (xstrtod): Define with a prototype.
55816 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
55817 (strtol, strtoul): Remove decls.
55819 2003-09-11 Paul Eggert <eggert@twinsun.com>
55821 More patches to assume C89 or better.
55822 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
55823 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
55824 string.h, memchr, STDC_HEADERS.
55826 2003-09-11 Paul Eggert <eggert@twinsun.com>
55828 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
55829 Include <stdlib.h>, <string.h> unconditionally.
55830 Remove now-unnecessary cast to char *.
55831 * lib/strnlen.c: Include <string.h> unconditionally.
55832 * lib/yesno.c (yesno): Define with a prototype.
55834 2003-09-11 Bruno Haible <bruno@clisp.org>
55836 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
55838 2003-09-10 Jim Meyering <jim@meyering.net>
55840 * lib/error.c: Correct indentation of cpp directives.
55842 2003-09-10 Bruno Haible <bruno@clisp.org>
55844 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
55845 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
55846 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
55847 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
55848 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
55849 <stdlib.h> and <string.h> checks.
55850 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
55851 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
55853 2003-09-10 Bruno Haible <bruno@clisp.org>
55855 * lib/strcspn.c: Include <string.h> unconditionally.
55856 * lib/strpbrk.c: Include <string.h> unconditionally.
55857 * lib/strstr.c: Include <string.h> unconditionally.
55858 * lib/unicodeio.c: Include <string.h> unconditionally.
55859 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
55860 * lib/unsetenv.c: Likewise.
55861 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
55862 * lib/yesno.c: Include <stdlib.h> unconditionally.
55863 (rpmatch): Add prototype.
55865 2003-09-09 Paul Eggert <eggert@twinsun.com>
55867 More patches to assume C89 or better.
55868 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
55869 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
55870 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
55872 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
55874 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
55876 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
55878 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
55879 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
55880 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
55882 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
55883 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
55885 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
55887 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
55888 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
55889 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
55890 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
55891 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
55892 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
55894 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
55895 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
55896 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
55897 C headers, or for string.h.
55898 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
55899 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
55900 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
55901 headers, memory.h, stdlib.h, string.h, strings.h.
55902 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
55903 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
55904 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
55906 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
55907 headers, memory.h, string.h.
55908 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
55909 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
55911 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
55913 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
55914 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
55915 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
55916 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
55917 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
55919 2003-09-09 Paul Eggert <eggert@twinsun.com>
55923 * lib/acosl.c (main): Use a prototype.
55924 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
55927 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
55929 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
55930 (getopt, etopt_long, getopt_long_only, _getopt_internal)
55931 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
55933 * lib/getopt.c (const): Remove macro.
55934 Include <string.h> unconditionally.
55935 (my_index): Remove; all uses changed to strchr.
55936 (strlen): Remove decl.
55937 (exchange): Remove forward decl; no longer needed.
55938 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
55939 Define with prototype.
55940 * lib/getopt1.c (const): Remove macro.
55941 (getopt_long, getopt_long_only, main): Define with prototype.
55943 * lib/getugroups.c: Include <string.h> unconditionally.
55945 * lib/getusershell.c: Include <stdlib.h> unconditionally.
55946 (getusershell, setusershell, endusershell, readname, main):
55947 Define with prototypes.
55949 * lib/group-member.c: Include group-member.h first.
55950 Include <stdlib.h> unconditionally.
55952 * lib/hard-locale.c: Include hard-locale.h first.
55953 Include <stdlib.h>, <string.h> unconditionally.
55955 * lib/hash.c (free, malloc): Remove decls.
55956 Include <stdlib.h> unconditionally.
55958 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
55959 (getenv): Do not declare.
55961 * lib/idcache.c: Include <string.h> unconditionally.
55963 * lib/long-options.c: Include long-options.h first, to test interface.
55964 Include <stdlib.h> unconditionally.
55966 * lib/makepath.c: Include makepath.h first, to test interface.
55967 Include <stdlib.h> and <string.h> unconditionally.
55969 * lib/linebuffer.c: Include <stdlib.h>.
55970 (free): Remove decl.
55972 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
55973 stddef.h. rpl_malloc returns void *, not char *.
55974 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
55977 * lib/md5.h: Include <limits.h> unconditionally.
55978 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
55979 (__P): Remove; all uses removed.
55980 * lib/md5.c: Include "md5.h" first.
55981 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
55982 md5_buffer, md5_process_bytes, md5_process_block):
55983 Define with prototypes.
55984 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
55985 * lib/sha.c: Include "sha.h" first.
55986 Include <stdlib.h>, <string.h> unconditionally.
55988 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
55989 * lib/memcmp.c (__ptr_t): Likewise.
55990 * lib/memrchr.c (__ptr_t): Likewise.
55991 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
55992 Include <string.h> unconditionally.
55993 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
55994 * lib/memchr.c: Include <stdlib.h> unconditionally.
55995 * lib/memchr.c (LONG_MAX): Remove.
55996 * lib/memrchr.c (LONG_MAX): Likewise.
55997 * lib/memchr.c (__memchr): Define via a prototype.
55998 * lib/memrchr.c (__memrchr): Likewise.
55999 * lib/memcmp.c (__P): Remove, and remove all uses.
56000 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
56001 Remove forward decls; no longer needed.
56002 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
56003 Use types required by C89 in prototype.
56005 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
56006 * lib/savedir.c: Likewise.
56007 * lib/mkdir.c (free): Remove decl.
56008 * lib/rmdir.c (rmdir): Define with a prototype.
56009 * lib/savedir.c: Include savedir.h first, to test interface.
56011 * lib/mktime.c (STDC_HEADERS): Remove.
56012 Include <stdlib.h>, <string.h> unconditionally.
56014 * lib/modechange.c: Include <stdlib.h> unconditionally.
56015 (malloc): Remove decl.
56017 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
56018 (free): Remove decl.
56020 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
56021 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
56022 (This type really should be intptr_t, but that's a C99ism.)
56023 (_obstack_memcpy): Remove: all uses changed to memcpy.
56024 Include <string.h> unconditionally.
56025 (struct obstack): Assume __STDC__ for types of members
56026 chunkfun, freefun, extra_arg.
56027 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
56028 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
56029 obstack_begin, obstack_specify_allocation,
56030 obstack_specify_allocation_with_arg, obstack_chunkfun,
56031 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
56032 Remove unprototyped decls and the macros that use them.
56033 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
56034 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
56035 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
56036 (defined __STDC__ && __STDC__)]:
56037 Remove nonprototyped code.
56038 Include <stdlib.h> unconditionally.
56039 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
56040 _obstack_allocated_p, _obstack_free, obstack_free,
56041 _obstack_memory_used, print_and_abort):
56042 Define using prototypes.
56043 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
56044 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
56045 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
56046 obstack_next_free, obstack_object_size, obstack_room) [0]:
56047 Remove unused, unprototyped code.
56049 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
56051 * lib/physmem.c (physmem_total, physmem_available, main): Define
56054 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
56055 (main): Define with a prototype.
56057 * lib/posixver.c (getenv): Remove decl.
56059 * lib/putenv.c (malloc): Returns void *, not char *.
56060 Include <string.h> unconditionally.
56061 (strchr, memcpy, NULL): Do not define.
56063 * lib/readtokens.c: Include readtokens.h first, to test interface.
56064 Include <stdlib.h>, <string.h> unconditionally.
56065 (init_tokenbuffer): Define with a prototype.
56067 * lib/regex.c (PARAMS): Remove. All uses removed.
56068 All uses of _RE_ARGS removed, too.
56069 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
56071 (bzero): Assume memset exists.
56072 (memcmp, memcpy, NULL): Remove.
56073 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
56074 char, or assignments to local vars of type signed char.
56075 (init_syntax_once, PREFIX(extract_number_and_incr),
56076 PREFIX(print_partial_compiled_pattern),
56077 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
56078 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
56079 PREFIX(regex_grow_registers), PREFIX(regex_compile),
56080 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
56081 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
56082 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
56083 wcs_compile_range, byte_compile_range, truncate_wchar,
56084 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
56085 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
56086 count_mbs_length, wcs_re_match_2_internal,
56087 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
56088 PREFIX(alt_match_null_string_p),
56089 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
56090 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
56091 regfree, PREFIX(extract_number)): Define with prototype. Remove
56092 now-unnecessary declaration, if any.
56093 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
56095 Remove now-unnecessary casts among pointer types.
56096 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
56098 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
56099 (free): Remove decl.
56101 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
56103 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
56104 (free): Remove decl.
56106 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
56107 * lib/xgetcwd.c: Likewise.
56109 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
56110 (free): Remove decl.
56112 * lib/strchrnul.c (strchrnul): Define with a prototype.
56113 Fix bug: c_in was not converted to char before searching.
56115 The following changes are not K&R related:
56117 * lib/group-member.h: Include <sys/types.h>, so that this file is
56119 * lib/makepath.h: Likewise.
56121 * lib/getusershell.c (readname, default_index, line_size, readname):
56122 Use size_t, not int, for sizes.
56123 (readname): If the size overflows, report an error instead of
56126 2003-09-09 Paul Eggert <eggert@twinsun.com>
56128 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
56131 2003-09-09 Paul Eggert <eggert@twinsun.com>
56133 * README: New section: portability guidelines.
56135 2003-09-09 Derek Robert Price <derek@ximbiot.com>
56137 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
56140 2003-09-09 Derek Robert Price <derek@ximbiot.com>
56142 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
56144 2003-09-08 Paul Eggert <eggert@twinsun.com>
56146 Assume C89 or better; remove K&R cruft.
56147 A few of these changes were first proposed by Derek Robert Price
56148 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
56150 * lib/addext.c: Include <string.h> unconditionally.
56151 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
56152 Don't declare getenv or malloc.
56154 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
56155 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
56157 (find_stack_direction, alloca): Use prototypes.
56159 * lib/atexit.c (atexit): Define using a prototype.
56161 * lib/basename.c, dirname.c, stripslash.c:
56162 Include <string.h> unconditionally.
56164 * lib/bcopy.c: Include <stddef.h>.
56165 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
56167 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
56169 * lib/error.h (error, error_at_line, error_print_progname)
56170 [! (defined (__STDC__) && __STDC__)]: Remove decls.
56171 * lib/error.c: Include error.h first, to check interface.
56172 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56173 (VA_START): Remove; all uses changeed to va_start.
56174 (exit, strerror): Remove decls.
56175 (error_print_progname): Prototype uncondionally.
56176 Don't include <errno.h>; no longer needed.
56177 (private_strerror): Remove.
56178 (error_tail): Always define.
56179 (error, error_at_line): Assume C89 or better; always use prototypes.
56180 * lib/fatal.c: Include "fatal.h" first, to test interface.
56181 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56182 (VA_START): Remove; all uses changed to va_start.
56183 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
56185 (exit): Remove decl.
56186 (fatal): Prototype unconditionally. Assume va_start works.
56187 Abort at end, to pacify gcc.
56189 * lib/euidaccess.c (main): Define with a prototype.
56191 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
56193 * lib/exitfail.c: Include <stdlib.h> unconditionally.
56195 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
56197 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
56198 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
56199 (getenv): Remove decl.
56200 (fnmatch): Define using a prototype.
56201 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
56202 (FCT): Define using a prototype.
56204 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
56206 * lib/gethostname.c: Include <stddef.h>.
56207 (gethostname): Define with prototype. Length is size_t, not int.
56209 2003-09-08 Paul Eggert <eggert@twinsun.com>
56211 Assume C89 or better; remove K&R cruft.
56212 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
56213 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
56214 string.h, getenv, malloc.
56215 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
56217 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
56218 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
56219 do not check for strerror.
56220 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
56221 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
56222 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
56223 do not check for doprnt or vprintf.
56224 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
56225 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
56227 2003-09-08 Paul Eggert <eggert@twinsun.com>
56229 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
56230 getversion.c should have been removed then, but was accidentally
56233 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
56234 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
56236 2003-09-08 Karl Berry <karl@gnu.org>
56238 * config/config.sub, config.guess, srclistvars.sh: update from savannah
56239 config, forget about prep.
56241 * config/depcomp, missing: update from automake.
56243 2003-09-07 Paul Eggert <eggert@twinsun.com>
56245 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
56246 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
56248 2003-09-07 Paul Eggert <eggert@twinsun.com>
56250 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
56251 copy_tm_result. Bug reported by Simon Josefsson in
56252 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
56254 2003-09-06 Paul Eggert <eggert@twinsun.com>
56256 * m4/time_r.m4: New file.
56257 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
56258 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
56259 is. Check for timegm declaration.
56260 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
56261 Do not check for gmtime_r.
56262 Replace mktime if __mktime_internal does not exist and if mktime
56263 hasn't been replaced already.
56265 2003-09-06 Paul Eggert <eggert@twinsun.com>
56267 * lib/time_r.c, lib/time_r.h: New files.
56269 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
56271 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
56272 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
56274 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
56276 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
56277 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
56278 Include <time_r.h>.
56280 * lib/timegm.c: Switch to glibc implementation, with the following
56282 [defined HAVE_CONFIG_H]: Include <config.h>.
56283 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
56284 (__mktime_internal) [!defined _LIBC]: New decl.
56285 (__gmtime_r) [!defined _LIBC]: New macro and function.
56286 (timegm): Use a prototype, since gnulib assumes C89.
56287 Do not bother declaring tmp to be const, as it's not really usefu.
56288 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
56289 (timegm): Declare only if HAVE_DECL_TIMEGM.
56291 2003-09-06 Paul Eggert <eggert@twinsun.com>
56293 * MODULES.html.sh (func_all_modules): Add time_r.
56294 * modules/time_r: New file.
56295 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
56296 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
56298 2003-09-03 Paul Eggert <eggert@twinsun.com>
56300 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
56301 Bug reported by Lute Kamstra in
56302 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
56304 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
56305 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
56306 course with correspondingly smaller numbers for tomorrow and
56307 yesterday. From Tadayoshi Funaba. Originally installed into
56308 sh-utils on 1999-08-07, but the patch got lost (I guess during the
56311 2003-08-31 Simon Josefsson <jas@extundo.com>
56313 * modules/timegm: New file.
56314 * MODULES.html.sh (func_all_modules): Add timegm.
56316 2003-08-31 Simon Josefsson <jas@extundo.com>
56318 * m4/timegm.m4: New file.
56320 2003-08-31 Simon Josefsson <jas@extundo.com>
56322 * lib/timegm.h: New file.
56323 * lib/timegm.c: New file. Based on
56324 wget-1.8.2/src/http.c:mktime_from_utc.
56326 2003-08-31 Karl Berry <karl@gnu.org>
56328 * lib/argp.h: update from libc.
56330 2003-08-28 Bruno Haible <bruno@clisp.org>
56332 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
56333 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
56334 followed by '#define fnmatch fnmatch_posix' gives an error.
56336 2003-08-28 Bruno Haible <bruno@clisp.org>
56338 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
56339 warning on QNX, which defines O_BINARY to 000000.
56341 2003-08-27 Jim Meyering <jim@meyering.net>
56343 * m4/mkstemp.m4: Require that the system mkstemp be able to create
56344 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
56345 would fail after 32. Reported by Danny Levinson. Details here:
56346 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
56348 2003-08-24 Bruno Haible <bruno@clisp.org>
56350 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
56351 MSVC7 <stdio.h> is included later.
56353 2003-08-22 Simon Josefsson <jas@extundo.com>
56355 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
56357 2003-08-20 Karl Berry <karl@gnu.org>
56359 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
56361 2003-08-20 Bruno Haible <bruno@clisp.org>
56363 * modules/progname: New file.
56364 * MODULES.html.sh (func_all_modules): Add progname.
56366 2003-08-20 Bruno Haible <bruno@clisp.org>
56368 * lib/progname.h: New file, from GNU gettext.
56369 * lib/progname.c: New file, from GNU gettext.
56370 * lib/progreloc.c: New file, from GNU gettext.
56372 2003-08-19 Jim Meyering <jim@meyering.net>
56374 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
56375 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
56377 2003-08-19 Bruno Haible <bruno@clisp.org>
56379 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
56382 2003-08-19 Bruno Haible <bruno@clisp.org>
56384 * lib/xstrdup.c: Assume <string.h> exists.
56386 2003-08-18 Paul Eggert <eggert@twinsun.com>
56388 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
56391 2003-08-18 Jim Meyering <jim@meyering.net>
56393 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
56394 * m4/lib-ld.m4: Likewise.
56396 2003-08-18 Jim Meyering <jim@meyering.net>
56398 * lib/setenv.h: Indent nested cpp directive.
56399 * lib/vasnprintf.c: Remove trailing blanks.
56401 2003-08-17 Simon Josefsson <jas@extundo.com>
56403 * modules/xstrndup: New file.
56404 * MODULES.html.sh (func_all_modules): Add xstrndup.
56406 2003-08-17 Simon Josefsson <jas@extundo.com>
56408 * modules/argp: Fix autoconf macro name. Add more dependencies.
56410 2003-08-17 Simon Josefsson <jas@extundo.com>
56412 * m4/xstrndup.m4: New file.
56414 2003-08-17 Simon Josefsson <jas@extundo.com>
56416 * m4/argp.m4: New file.
56418 2003-08-17 Simon Josefsson <jas@extundo.com>
56419 Bruno Haible <bruno@clisp.org>
56421 * lib/xstrndup.h: New file.
56422 * lib/xstrndup.c: New file.
56424 2003-08-17 Bruno Haible <bruno@clisp.org>
56426 * modules/strndup (Files, Include): Add lib/strndup.h.
56428 2003-08-17 Bruno Haible <bruno@clisp.org>
56430 * modules/euidaccess (Files): Add lib/euidaccess.h.
56432 2003-08-17 Bruno Haible <bruno@clisp.org>
56434 * lib/strndup.h: New file.
56436 2003-08-17 Bruno Haible <bruno@clisp.org>
56438 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
56439 like AC_GNU_SOURCE.
56440 * modules/extensions (configure.ac): Comment out the invocation of
56441 gl_USE_SYSTEM_EXTENSIONS.
56443 2003-08-16 Paul Eggert <eggert@twinsun.com>
56445 Merges from coreutils, etc.
56446 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
56447 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
56448 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
56450 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
56451 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
56453 2003-08-16 Paul Eggert <eggert@twinsun.com>
56455 Document merge from coreutils.
56456 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
56457 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
56458 * modules/utime: Add m4/utimes-null.m4.
56460 2003-08-16 Paul Eggert <eggert@twinsun.com>
56462 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
56463 space, undoing this 2003-08-12 change:
56464 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
56466 2003-08-16 Paul Eggert <eggert@twinsun.com>
56468 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
56469 strtoul.c from libc, undoing this 2003-08-12 change:
56470 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
56472 2003-08-16 Jim Meyering <jim@meyering.net>
56474 Merges from coreutils.
56475 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
56476 prefix. Adjust cache variables similarly. Create 500 rather than
56477 just 300 files, to exercise bug on Darwin6.5, too.
56478 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
56480 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
56481 AM_SYS_POSIX_TERMIOS.
56482 Reported by mkc@mathdogs.com.
56483 Also change use of $am_cv_sys_posix_termios
56484 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
56485 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
56486 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
56487 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
56488 in /proc/mounts until it finds one with matching device number. This
56489 is unnecessary when the FILE argument *is* a mount point. No stat call
56490 is necessary in that case. So, disable the statvfs-testing code on
56491 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
56492 as RedHat bug# 84846.
56493 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
56494 to 1MB, so as not to render systems with no stack size limit (e.g.,
56495 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
56496 Include <unistd.h>. On some systems,
56497 it is required for the definition of _SC_PAGESIZE.
56499 2003-08-16 Jim Meyering <jim@meyering.net>
56501 Merge from coreutils.
56502 * lib/xstrtoimax.c: #else #if -> #elif.
56503 * lib/xstrtoumax.c: Likewise.
56505 2003-08-16 Jim Meyering <jim@meyering.net>
56507 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
56508 * m4/utimes.m4: Removed.
56509 * m4/utimes-null.m4: Renamed from utimes.m4.
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>
56518 and Paul Eggert <eggert@cs.ucla.edu>
56520 Merges from coreutils, etc.
56522 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
56523 using the latest version from cvs. This avoids problems with #line
56524 directives using a vendor (Sun) compiler.
56525 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
56526 Don't set GETGROUPS_LIB here; now it's
56527 done via getgroups.m4's wrapper function.
56528 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
56529 rather than just in sh-util/configure.in, so that the
56530 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
56532 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
56533 AC_FUNC_GETLOADAVG where to find getloadavg.c.
56534 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
56535 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
56536 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
56537 Remove code that is now done by the newly-required macros.
56538 Append $(EXEEXT) to DF_PROG.
56539 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
56540 Do not invoke or require the following here,
56541 since prereq.m4 or some gnulib .m4 now does this for us:
56542 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
56543 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
56544 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
56545 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
56546 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
56547 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
56548 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
56550 Do not replace the following functions, as this is now the job
56551 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
56552 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
56553 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
56554 atexit getpass, strdup, getpagesize.
56556 Do not check for the following functions, as this is now the job
56557 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
56558 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
56560 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
56561 Check for sys/sysctl.h.
56562 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
56563 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
56564 of checking for ssize_t ourselves.
56566 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
56567 Require every macro that gnulib/modules/* suggests for us.
56568 (jm_PREREQ_ADDEXT): New macro.
56569 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
56570 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
56572 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
56573 (gl_PHYSMEM): Use it.
56574 Also check for `table' function.
56575 Check for new headers and functions.
56576 Add check for sys/sysmp.h.
56577 With suggestions from Kaveh Ghazi.
56578 Ignore headers that are present but cannot be compiled. This
56579 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
56582 2003-08-15 Paul Eggert <eggert@twinsun.com>
56584 Document merge from coreutils.
56585 * modules/userspec: Depend on posixver.
56586 * modules/strftime: Depend on tzset.
56588 2003-08-15 Paul Eggert <eggert@twinsun.com>
56590 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
56591 rather than tab, after '#' in shell-script copyright notices.
56592 Suggested by Bruno Haible.
56594 2003-08-15 Paul Eggert <eggert@twinsun.com>
56596 * config/srclist-update: Use three spaces, rather than tab, after '#'
56597 in shell-script copyright notices. Suggested by Bruno Haible.
56598 Remove unnecessary parenthesization in regular expression.
56600 2003-08-15 Jim Meyering <jim@meyering.net>
56602 Merge from coreutils.
56603 * lib/xgethostname.c: Include <stdlib.h>.
56604 (xghostname): Don't exit for anything other than memory-related
56605 failure; just return NULL.
56606 * lib/userspec.c: Include "posixver.h".
56607 (parse_user_spec): Accept `.' as a separator only
56608 in pre-POSIX-200112 mode.
56609 * lib/strtoimax.c: Use #elif rather than #else #if.
56610 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
56611 Remove function, now that we can rely on a working tzset function.
56612 [!_LIBC]: Ensure that the required autoconf test has been run.
56613 [!defined _NL_CURRENT && HAVE_STRFTIME]:
56614 Use underlying_strftime for %r.
56615 * lib/sha.c: Merge in some clean-up and optimization changes from
56617 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
56618 Ensure that it is a multiple of 64.
56619 Rearrange loop exit tests so as to avoid performing an
56620 additional fread after encountering an error or EOF.
56621 * lib/realloc.c: Update copyright date.
56623 2003-08-15 Jim Meyering <jim@meyering.net>
56624 and Paul Eggert <eggert@twinsun.com>
56626 Merge from coreutils.
56627 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
56628 member but strut utmpx does not. Needed for AIX 4.3.3.
56629 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
56631 2003-08-15 Jim Meyering <jim@meyering.net>
56632 and Paul Eggert <eggert@cs.ucla.edu>
56634 Merges from coreutils, etc.
56635 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
56636 Require gl_FUNC_TZSET_CLOBBER.
56637 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
56638 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
56641 2003-08-14 Paul Eggert <eggert@twinsun.com>
56643 Help the merge from coreutils.
56644 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
56645 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
56646 * m4/tzset.m4: Use it too.
56648 2003-08-14 Paul Eggert <eggert@twinsun.com>
56650 * modules/tzset: New file.
56652 2003-08-14 Jim Meyering <jim@meyering.net>
56654 Merges from coreutils.
56655 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
56656 variable names, rather than @FNMATCH_H@.
56657 * modules/alloca: Likewise for $(ALLOCA_H).
56659 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
56660 the three copies of the literal target, `fnmatch.h'.
56661 * modules/alloca (alloca.h): Likewise.
56663 2003-08-14 Jim Meyering <jim@meyering.net>
56665 Merge from coreutils.
56666 * m4/tzset.m4: New file.
56667 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
56668 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
56669 otherwise, AIX 5.1 systems would end up using the latter.
56670 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
56671 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
56672 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
56673 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
56675 2003-08-14 Jim Meyering <jim@meyering.net>
56677 Merge from coreutils.
56678 * lib/obstack.h: Whitespace changes.
56679 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
56680 and xcalloc return values.
56681 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
56682 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
56683 hang on OSF/1 5.1 for DIR on both local and remote file systems.
56684 Reported by (and fix confirmed by) Nelson H. F. Beebe.
56685 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
56687 Use mntctl's return value to drive the entry-processing loop, since
56688 we can't rely on the value of the vmt_length member in the last
56689 entry. On some systems doing so could result in exhausting
56690 virtual memory. Based in part on a patch from Mike Jetzer.
56692 2003-08-14 Jim Meyering <jim@meyering.net>
56693 and Paul Eggert <eggert@twinsun.com>
56695 Merges from coreutils, plus other fixes.
56696 * lib/physmem.c: Merge in portability changes from gcc/libiberty
56697 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
56698 for credits and details. Thanks to Kaveh Ghazi for helping
56699 to keep these files in sync.
56700 (ARRAY_SIZE): Define it.
56701 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
56702 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
56703 (memcasecmp): Don't assume size_t fits in unsigned int.
56704 Remove casts and duplicate code.
56705 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
56706 (memcpy): Remove definition.
56707 Merge in some clean-up and optimization changes from glibc.
56708 [BLOCKSIZE]: Move definition to top of file.
56709 Ensure that it is a multiple of 64.
56710 Rearrange loop exit tests so as to avoid performing an
56711 additional fread after encountering an error or EOF.
56712 * lib/md5.h (md5_uintptr): Define.
56713 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
56714 return to the initial working directory. Preserve errno
56716 * lib/idcache.c: Include "xalloc.h".
56717 (xmalloc, xrealloc): Remove decls.
56718 (getuser): Remove casts no longer required in C89.
56719 * lib/human.c: Include stdio.h, for sprintf.
56720 * lib/group-member.c: Include "xalloc.h".
56721 (xmalloc, xrealloc): Remove decls.
56722 (get_group_info): Remove casts no longer required in C89.
56723 * lib/getusershell.c (readname): Remove casts no longer required in
56725 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
56726 * lib/getline.c: Whitespace fix, from coreutils.
56728 2003-08-13 Paul Eggert <eggert@twinsun.com>
56730 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
56733 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
56734 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
56735 Undo previous (whitespace-only) change.
56737 2003-08-13 Paul Eggert <eggert@twinsun.com>
56739 * lib/exclude.c: Include <ctype.h>
56740 (IN_CTYPE_DOMAIN): New macro.
56741 (is_space): New fn.
56742 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
56745 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
56746 Undo previous (whitespace-only) change.
56748 2003-08-13 Paul Eggert <eggert@twinsun.com>
56750 * config/srclist-update: Change update back to the old behavior,
56751 leaving whitespace alone. Use one 'sed' command rather than a
56753 (fixlicense): Now a variable, not a function.
56754 (remove_trailing_blanks): Remove.
56755 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
56756 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
56757 Undo previous (whitespace-only) change.
56759 2003-08-12 Paul Eggert <eggert@twinsun.com>
56761 Merge from coreutils.
56762 * modules/euidaccess: Add lib_SOURCES, include for new
56765 2003-08-12 Paul Eggert <eggert@twinsun.com>
56767 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
56768 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
56769 Normalize leading white space and remove trailing white space.
56771 Merge from coreutils
56772 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
56774 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
56775 0.12.1. These files are now being upgraded automatically by
56776 ../config/srclist-update.
56778 2003-08-12 Paul Eggert <eggert@twinsun.com>
56780 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
56781 Normalize leading white space and remove trailing white space.
56782 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
56783 notice, as per ../config/srclist-update.
56785 Merge from coreutils.
56786 * lib/euidaccess.h: New file.
56787 * lib/euidaccess.c: Include it.
56788 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
56789 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
56790 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
56792 2003-08-12 Paul Eggert <eggert@twinsun.com>
56794 * config/srclist-update: Add copyright notice.
56795 (remove_id_lines, remove_trailing_blanks): New constants.
56796 (fixfile): Use them to normalize spacing a bit in copied files.
56797 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
56798 Normalize leading white space and remove trailing white space.
56800 * config/texinfo.tex: Sync with texinfo.
56802 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
56803 strtoul.c from libc, to merge coreutils whitespace changes.
56805 * config/srclist.txt: Get the following m4 files from gettext:
56806 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
56807 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
56808 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
56811 2003-08-12 Karl Berry <karl@gnu.org>
56813 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
56816 2003-08-11 Paul Eggert <eggert@twinsun.com>
56818 * modules/gnu-source, m4/gnu-source.m4:
56819 Remove; we're assuming Autoconf 2.54 or later now.
56820 Suggested by Bruno Haible.
56821 * MODULES.html.sh (func_all_modules): Remove gnu-source.
56823 2003-08-11 Bruno Haible <bruno@clisp.org>
56825 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
56827 2003-08-11 Bruno Haible <bruno@clisp.org>
56829 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
56830 (vasnprintf): Use it instead of wcslen.
56832 2003-08-11 Bruno Haible <bruno@clisp.org>
56834 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
56835 value to ensure that _Bool promotes to int. Use #define for _Bool when
56836 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
56838 2003-08-10 Karl Berry <karl@gnu.org>
56840 * lib/regex.h: update from libc (whitespace fix).
56842 2003-08-09 Paul Eggert <eggert@twinsun.com>
56844 Merge some files from coreutils. These changes were
56845 originally made by Jim Meyering.
56846 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
56847 many older Unixes require this.
56848 * lib/alloca.c (alloca): Remove cast to argument of free;
56849 no longer needed in C89.
56850 * lib/alloca_.h, regex.h: Fix white space to match
56851 what GNU indent does.
56853 2003-08-09 Paul Eggert <eggert@twinsun.com>
56855 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
56856 apparently Emacs's Unicode mode got confused before my 2003-08-05
56859 2003-08-08 Paul Eggert <eggert@twinsun.com>
56861 * m4/extensions.m4: New file.
56862 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
56863 Require gl_USE_SYSTEM_EXTENSIONS.
56864 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
56865 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
56867 2003-08-08 Paul Eggert <eggert@twinsun.com>
56869 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
56870 * modules/extensions, modules/gnu-source: New files.
56871 * modules/timespec, modules/unlocked-io: Depend on extensions.
56873 2003-08-07 Paul Eggert <eggert@twinsun.com>
56875 * modules/restrict: New file.
56876 * MODULES.html.sh (func_all_modules): Add restrict.
56877 * modules/regex: Depend on restrict.
56879 2003-08-07 Paul Eggert <eggert@twinsun.com>
56881 * m4/restrict.m4: New file.
56882 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
56884 2003-08-07 Bruno Haible <bruno@clisp.org>
56886 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
56887 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
56889 2003-08-07 Bruno Haible <bruno@clisp.org>
56891 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
56892 makes the module 'getndelim2' compatible with the module 'getline'.
56894 2003-08-05 Paul Eggert <eggert@twinsun.com>
56896 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
56897 byte with "\201" to avoid glitches when editing that source file
56898 with multi-gnome-terminal.
56900 2003-08-05 Paul Eggert <eggert@twinsun.com>
56902 * lib/bumpalloc.h: Remove.
56904 2003-08-05 Paul Eggert <eggert@twinsun.com>
56906 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
56907 * modules/bumpalloc: Remove.
56909 2003-08-04 Paul Eggert <eggert@twinsun.com>
56911 * lib/getloadavg.c: Change copyright notice and spacing to conform to
56914 Merge from coreutils.
56915 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
56917 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
56918 from Karl Berry, implemented by Jim Meyering.
56919 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
56920 from Dmitry V. Levin.
56921 Remove anachronistic cast of xrealloc.
56922 * lib/fnmatch_.h (__const): Remove. Use 'const'.
56923 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
56924 type. Otherwise, it wouldn't compile with at least /bin/cc on
56925 ymp-cray-unicos9.0.2.X.
56926 Combine two mostly-identical uses of alloca into one.
56927 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
56929 2003-08-04 Dave Love <d.love@dl.ac.uk>
56933 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
56934 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
56935 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
56936 obsolete NLIST_NAME_UNION.
56937 [__GNU__]: Undef BSD and FSCALE.
56938 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
56940 2003-08-03 Paul Eggert <eggert@twinsun.com>
56942 * lib/stdbool_.h (_Bool): Make it signed char, instead of
56943 an enum type, so that it's guaranteed to promote to int. See:
56944 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
56946 2003-08-03 Karl Berry <karl@gnu.org>
56948 * config/depcomp: update from automake.
56950 2003-07-31 Paul Eggert <eggert@twinsun.com>
56952 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
56953 (strerror): Don't assume that a printable int fits in 14 bytes.
56955 2003-07-31 Bruno Haible <bruno@clisp.org>
56957 * modules/getpass-gnu: New file.
56958 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
56960 2003-07-31 Bruno Haible <bruno@clisp.org>
56962 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
56964 2003-07-24 Karl Berry <karl@gnu.org>
56966 * config/missing: update from automake.
56968 2003-07-24 Derek Robert Price <derek@ximbiot.com>
56969 Bruno Haible <bruno@clisp.org>
56971 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
56972 * lib/getline.c (getline, getdelim): Likewise.
56973 Remove _GNU_SOURCE define; now it's defined in config.h through
56976 2003-07-23 Karl Berry <karl@gnu.org>
56978 * config/config.sub: update from prep.
56980 2003-07-22 Paul Eggert <eggert@twinsun.com>
56982 * modules/xalloc (Depends-on): Add exitfail.
56983 * modules/xmemcoll: Likewise.
56985 2003-07-22 Paul Eggert <eggert@twinsun.com>
56987 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
56988 over-parenthesization in macros.
56990 Sync with coreutils.
56992 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
56995 Use `exit_failure' for xalloc and xmemcoll instead of their own
56996 private exit-failure variables.
56997 * lib/xalloc.h (xalloc_exit_failure): Remove.
56998 * lib/xmalloc.c: Likewise. Include exitfail.h.
56999 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
57000 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
57001 * lib/xmemcoll.c: Likewise. Include exitfail.h.
57002 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
57004 2003-07-20 Jim Meyering <jim@meyering.net>
57006 * modules/closeout (Depends-on): Add exitfail.
57007 Suggestion from Bruno Haible.
57009 2003-07-19 Karl Berry <karl@gnu.org>
57011 * config/config.sub: update from prep.
57013 2003-07-18 Paul Eggert <eggert@twinsun.com>
57015 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
57017 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
57018 to test that it can stand by itself. Include "exitfail.h".
57019 Clients should set exit_failure instead.
57020 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
57022 2003-07-18 Bruno Haible <bruno@clisp.org>
57024 * modules/getndelim2: New file.
57025 * modules/getline: Share files with module getndelim2.
57026 * modules/getnline: Depend on getndelim2 instead of sharing files with
57027 it. Add getnline.c to lib_SOURCES.
57028 * MODULES.html.sh (func_all_modules): Add getndelim2.
57030 2003-07-18 Bruno Haible <bruno@clisp.org>
57032 * m4/getndelim2.m4: New file.
57033 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
57034 invoke gl_PREREQ_GETNDELIM2.
57035 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
57036 gl_PREREQ_GETNDELIM2.
57037 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
57040 2003-07-18 Bruno Haible <bruno@clisp.org>
57042 * lib/getndelim2.h: New file.
57043 * lib/getndelim2.c: Make into a module of its own. Include config.h,
57045 (getndelim2): Make non-static. Change return type to ssize_t.
57046 * lib/getline.h: Change argument names.
57047 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
57048 * lib/getnline.c: Include getndelim2.h.
57050 2003-07-18 Andreas Schwab <schwab@suse.de>
57052 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
57054 2003-07-17 Karl Berry <karl@gnu.org>
57056 * config/config.sub: update from prep.
57058 2003-07-17 Bruno Haible <bruno@clisp.org>
57060 * modules/getnline: New file.
57061 * modules/getline: Add lib/getndelim2.c to source file list.
57062 * MODULES.html.sh (func_all_modules): Add getnline.
57064 2003-07-17 Bruno Haible <bruno@clisp.org>
57066 * m4/getnline.m4: New file.
57068 2003-07-17 Bruno Haible <bruno@clisp.org>
57070 * m4/Makefile.am.in: Remove file.
57071 * m4/Makefile.am: Remove file.
57072 * m4/Makefile.in: Remove file.
57074 2003-07-17 Bruno Haible <bruno@clisp.org>
57076 * lib/getnline.h: New file.
57077 * lib/getnline.c: New file.
57078 * lib/getndelim2.c: New file, extracted from getline.c.
57079 (getndelim2): Renamed from getdelim2, with added nmax argument.
57080 * lib/getline.c: Include getndelim2.c.
57081 (getdelim2): Moved out to getndelim2.c.
57082 (getline, getdelim): Update.
57084 2003-07-17 Bruno Haible <bruno@clisp.org>
57086 * lib/Makefile.am: Remove file.
57087 * lib/Makefile.in: Remove file.
57089 2003-07-17 Bruno Haible <bruno@clisp.org>
57091 * configure.in: Remove file.
57092 * Makefile.in: Remove file.
57094 2003-07-17 Bruno Haible <bruno@clisp.org>
57096 * MODULES.html.sh: Put the </BODY> right before </HTML>.
57098 2003-07-16 Karl Berry <karl@gnu.org>
57100 * config/srclist-update: was running fixlicense twice, which caused
57101 texinfo.tex to be nullified for some reason. Simplify,
57102 $gplsrc is no longer needed as far as I can see?
57104 2003-07-16 Jim Meyering <jim@meyering.net>
57106 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
57108 2003-07-15 Paul Eggert <eggert@twinsun.com>
57110 * config/srclist.txt: Get the following files from gettext-runtime/intl
57111 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
57112 ref-del.sin. From Bruno Haible.
57113 * config/srclist-update (fixfile): Change grep pattern again, since the
57114 previous fix didn't work (there was another trailing $). Use
57115 '[$]' to escape the $s.
57117 2003-07-15 Karl Berry <karl@gnu.org>
57119 * lib/vasnprintf.c: update from gettext.
57121 2003-07-15 Karl Berry <karl@gnu.org>
57123 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
57124 gets expanded when surrounded by '$'.
57126 2003-07-15 Jim Meyering <jim@meyering.net>
57128 * modules/save-cwd: Don't depend on error. From Derek Price.
57130 2003-07-15 Jim Meyering <jim@meyering.net>
57132 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
57134 2003-07-14 Simon Josefsson <jas@extundo.com>
57136 * modules/mempcpy: New file.
57137 * MODULES.html.sh (func_all_modules): Add mempcpy.
57139 2003-07-14 Simon Josefsson <jas@extundo.com>
57141 * m4/mempcpy.m4: New file.
57143 2003-07-14 Simon Josefsson <jas@extundo.com>
57145 * lib/mempcpy.h: New file.
57146 * lib/mempcpy.c: New file.
57148 2003-07-14 Paul Eggert <eggert@twinsun.com>
57150 * modules/getdate, modules/posixtm: Depend on mktime.
57152 2003-07-14 Paul Eggert <eggert@twinsun.com>
57154 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
57155 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
57156 unicodeio.c, unicodeio.h, unlocked-io.h:
57157 Switch from LGPL to GPL.
57159 2003-07-14 Paul Eggert <eggert@twinsun.com>
57161 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
57162 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
57163 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
57164 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
57165 vasprintf.c, vasprintf.h: Regenerate. These files are now being
57166 updated automatically by ../config/srclist-update. This changes
57167 their license from LPGL to GPL.
57169 2003-07-14 Paul Eggert <eggert@twinsun.com>
57171 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
57172 assumed to refer to the root of the most recent stable gettext version.
57173 * config/srclistvars.sh: Add defaults for eggert.
57174 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
57175 Match "This program" as well as "The program". This is needed
57178 2003-07-14 Jim Meyering <jim@meyering.net>
57180 Don't emit diagnostics. Let callers do that.
57181 * lib/save-cwd.c: Don't include "error.h".
57182 (save_cwd): Don't call error. Ensure that errno is valid
57183 when returning nonzero.
57185 * lib/save-cwd.h (restore_cwd): Update prototype.
57186 * lib/save-cwd.c (restore_cwd): Remove two parameters.
57187 Simplify. Don't call error upon failure. Let callers do that.
57188 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
57189 when auditing is enabled. But don't bother updating the #if.
57191 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
57193 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
57194 it breaks C++ compilation.
57195 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
57197 2003-07-10 Simon Josefsson <jas@extundo.com>
57199 * modules/strchrnul (Makefile.am): Add strchrnul.h.
57201 2003-07-10 Jim Meyering <jim@meyering.net>
57203 * m4/clock_time.m4: Remove trailing blank.
57204 * m4/intmax_t.m4: Likewise.
57206 2003-07-10 Jim Meyering <jim@meyering.net>
57208 * lib/vasnprintf.c: Remove trailing blanks.
57209 Make cpp indentation consistent.
57211 2003-07-09 Paul Eggert <eggert@twinsun.com>
57213 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
57214 posixver.c, strftime.c, strnlen.c, strverscmp.c:
57215 Switch from LGPL to GPL.
57217 2003-07-09 Paul Eggert <eggert@twinsun.com>
57219 * config/srclist.txt: Sort sublists. Add
57220 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
57221 that differ from gnulib for one reason or another; we'd like this list
57222 to be smaller but for now let's document what we have.
57224 2003-07-08 Paul Eggert <eggert@twinsun.com>
57226 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
57227 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
57228 and sweeter "eval x=$x".
57229 * config/srclist.txt: Get lib/argp* from glibc.
57231 2003-07-07 Paul Eggert <eggert@twinsun.com>
57233 * lib/mktime.c: Fix some boundary cases and remove need for floating
57236 Issue a compile-time diagnostic if time_t is floating point, or if
57237 two's complement arithmetic is not in effect, or if arithmetic
57238 right shift does not propagate the sign. These assumptions were
57239 all in the original code but they weren't checked.
57241 (TIME_T_MIDPOINT, verify): New macros.
57242 (__isleap): Remove; it has integer overflow problems.
57243 (leapyear): New function, without those problems.
57244 (ydhms_tm_diff): Remove; splitting into two parts.
57245 (ydhms_diff): New function, containing the arithmetic part of
57246 the old ydhms_tm_diff function. Issue a compile-time
57247 diagnostic if we are not using C99 integer division.
57248 Avoid casts when possible.
57249 (guess_time_tm): New function, containing the checking part of
57250 the old ydhms_tm_diff function. Return the new value, rather than
57251 the difference between it and the old. Accept a new argument T
57252 so that *T specifies the old value. Check for overflow in the result.
57254 (__mktime_internal): Use a time_t offset, not a long int offset.
57255 This undoes the 2003-06-04 change, which is no longer needed now
57256 that we have better overflow checking.
57257 (localtime_offset): Likewise.
57259 (__mktime_internal): Avoid harmful overflow on hosts where time_t
57260 and long are 64-bit but int is only 32-bit.
57261 (ydhms_diff): Use long int to store year1 and yday1.
57262 Issue a compile-time diagnostic if long int is not wide enough.
57264 (__mktime_internal): Use long int to store adjusted year and yday.
57265 Use plain C rather than preprocessor commands, if that doesn't
57267 Check for overflow (and try to repair) after each probe
57268 rather than checking only at the very end. This avoids some bugs
57269 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
57270 does not equal GMT offset at maximum time).
57271 Use integer to check for overflow rather than floating point; this
57272 is more portable to non-IEEE hosts, and is a tad faster.
57273 When we detect that we are oscillating between two values,
57274 don't check whether tm_isdst has the requested value, since
57275 we already know the answer. When tm_isdst has the wrong value,
57276 use a different heuristic to find the right one, based on the
57277 extreme values actually observed in practice in tz2003a,
57278 rather than the (overly optimistic) "previous 3 calendar quarters".
57280 (not_equal_tm, print_tm, check_result): Use "const T" rather than
57281 "T const" to accommodate glibc style.
57282 (check_result): Use less-confusing report format. "long" -> "long int.
57284 Don't loop if the iteration overflows time_t.
57285 Allow a negative step in the iteration.
57287 2003-07-06 Karl Berry <karl@gnu.org>
57289 * config/depcomp: update from automake.
57290 * config/config.sub: update from prep.
57292 2003-07-03 Karl Berry <karl@gnu.org>
57294 * config/config.guess: update from prep.
57296 2003-07-01 Paul Eggert <eggert@twinsun.com>
57298 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
57299 xreadlink.c now includes it unconditionally.
57301 2003-07-01 Paul Eggert <eggert@twinsun.com>
57303 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
57304 having it depend on HAVE_SYS_TYPES_H.
57306 2003-07-01 Bruno Haible <bruno@clisp.org>
57308 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
57309 <sys/types.h> should be sufficient.
57310 Reported by Paul Eggert.
57312 2003-06-26 Karl Berry <karl@gnu.org>
57314 * config/depcomp: update from automake.
57316 2003-06-26 Bruno Haible <bruno@clisp.org>
57318 * modules/human: Depend on module stdbool.
57320 2003-06-25 Bruno Haible <bruno@clisp.org>
57322 * modules/readlink: New file.
57323 * modules/xreadlink: Depend on it.
57324 * MODULES.html.sh (func_all_modules): Add readlink.
57326 2003-06-25 Bruno Haible <bruno@clisp.org>
57328 * m4/readlink.m4: New file.
57330 2003-06-25 Bruno Haible <bruno@clisp.org>
57332 * lib/readlink.c: New file.
57334 2003-06-22 Karl Berry <karl@gnu.org>
57336 * config/srclist.txt: update mkinstalldirs from automake.
57337 * config/mkinstalldirs: update.
57339 2003-06-22 Bruno Haible <bruno@clisp.org>
57341 Portability to mingw32.
57342 * m4/ssize_t.m4: New file, from GNU gettext.
57343 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
57344 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
57346 2003-06-22 Bruno Haible <bruno@clisp.org>
57348 * modules/safe-read: Add m4/ssize_t.m4.
57349 * modules/xreadlink: Add m4/ssize_t.m4.
57351 2003-06-20 Bruno Haible <bruno@clisp.org>
57353 Assume C89, so PARAMS isn't needed.
57354 * lib/unicodeio.h (PARAMS): Remove.
57355 * lib/unicodeio.c: Don't use PARAMS.
57357 2003-06-18 Karl Berry <karl@gnu.org>
57359 * config/config.{guess,sub}: update from prep.
57361 2003-06-18 Jim Meyering <jim@meyering.net>
57363 Merge changes from coreutils.
57364 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
57365 Remove explicit declarations of xmalloc and realloc.
57367 (read_utmp): Remove anachronistic cast of xmalloc.
57369 2003-06-17 Paul Eggert <eggert@twinsun.com>
57371 Assume C89, so PARAMS isn't needed.
57372 * lib/backupfile.h (PARAMS): Remove. All uses removed.
57373 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
57374 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
57375 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
57376 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
57377 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
57378 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
57379 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
57380 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
57381 lib/xstrtod.h, lib/xstrtol.h: Likewise.
57382 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
57383 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
57384 no longer needed. Anyway, config.h should always be included before any
57387 2003-06-11 Simon Josefsson <jas@extundo.com>
57389 * modules/sysexits: New file.
57390 * MODULES.html.sh (func_all_modules): Add sysexits.
57392 2003-06-11 Simon Josefsson <jas@extundo.com>
57394 * lib/sysexit_.h: New file.
57396 2003-06-11 Derek Price <derek@ximbiot.com>
57398 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
57401 2003-06-11 Bruno Haible <bruno@clisp.org>
57403 * m4/sysexits.m4: New file.
57405 2003-06-10 Simon Josefsson <jas@extundo.com>
57407 * lib/argp.h: New file, from glibc.
57408 * lib/argp-ba.c: New file, from glibc.
57409 * lib/argp-eexst.c: New file, from glibc.
57410 * lib/argp-fmtstream.c: New file, from glibc.
57411 * lib/argp-fmtstream.h: New file, from glibc.
57412 * lib/argp-fs-xinl.c: New file, from glibc.
57413 * lib/argp-help.c: New file, from glibc.
57414 * lib/argp-namefrob.h: New file, from glibc.
57415 * lib/argp-parse.c: New file, from glibc.
57416 * lib/argp-pv.c: New file, from glibc.
57417 * lib/argp-pvh.c: New file, from glibc.
57418 * lib/argp-xinl.c: New file, from glibc.
57420 2003-06-10 Simon Josefsson <jas@extundo.com>
57422 * modules/strchrnul: New file.
57424 2003-06-10 Simon Josefsson <jas@extundo.com>
57426 * modules/argp: New file.
57428 2003-06-10 Simon Josefsson <jas@extundo.com>
57430 * m4/strchrnul.m4: New file.
57432 2003-06-10 Simon Josefsson <jas@extundo.com>
57434 * lib/strchrnul.h: New file.
57435 * lib/strchrnul.c: New file.
57437 2003-06-10 Bruno Haible <bruno@clisp.org>
57439 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
57441 2003-06-07 Karl Berry <karl@gnu.org>
57443 * config/config.{guess,sub}: update from prep.
57445 2003-06-07 Jim Meyering <jim@meyering.net>
57447 * modules/strtod: Use $(...) notation, not @...@ for
57448 AC_REPLACE'd variables.
57449 * modules/localcharset: Likewise.
57451 2003-06-07 Jim Meyering <jim@meyering.net>
57453 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
57454 in place of my name in the copyright comment.
57455 Remove definition and uses of __P.
57458 * lib/stat.c: Don't declare xmalloc explicitly.
57459 Instead, include "xalloc.h".
57460 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
57461 xrealloc, and xcalloc return values.
57462 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
57464 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
57466 2003-06-07 Bruno Haible <bruno@clisp.org>
57468 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
57469 avoid AC_CONFIG_LINKS.
57470 * modules/fnmatch (Makefile.am): Use explicit creation rule for
57471 fnmatch.h, to avoid AC_CONFIG_LINKS.
57472 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
57474 2003-06-07 Bruno Haible <bruno@clisp.org>
57476 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
57477 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
57478 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
57480 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
57481 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
57484 2003-06-06 Jim Meyering <jim@meyering.net>
57486 Merge from coreutils.
57487 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
57488 Consolidate declarations and initializations of *_base* locals.
57490 Merge from coreutils.
57491 This avoids a core dump on systems without GNU putenv,
57492 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
57493 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
57494 (unsetenv): New static function, from GNU libc.
57495 (rpl_putenv): Use it.
57497 * lib/modechange.c: Remove trailing blanks.
57499 Merge from coreutils.
57500 * lib/fsusage.c: Remove declaration of statfs.
57501 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
57503 * lib/posixtm.c: Include <stdbool.h> unconditionally.
57505 2003-06-06 Jim Meyering <jim@meyering.net>
57507 * lib/stdbool_.h: Renamed from stdbool.h.in.
57509 2003-06-06 Jim Meyering <jim@meyering.net>
57510 Bruno Haible <bruno@clisp.org>
57512 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
57513 Adjust Makefile.am snippet not to redirect directly to target.
57514 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
57516 2003-06-05 Paul Eggert <eggert@twinsun.com>
57518 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
57519 mismatch, look in future quarters as well as past. This fixes a
57520 bug when processing fall-backwards gaps immediately after a long
57521 period of daylight-saving time.
57523 * lib/mktime.c: Assume freestanding C89 or better.
57524 (HAVE_LIMITS_H): Remove. Assume it's 1.
57525 (__P): Remove; not used.
57526 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
57527 (mktime, not_equal_tm, print_tm, check_result,
57528 main): Use prototypes. Use const * where appropriate.
57529 (main): Fix typo in testing code that uncovered by above changes.
57530 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
57532 2003-06-04 Paul Eggert <eggert@twinsun.com>
57534 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
57535 locale.h, localeconv. This merges changes from coreutils.
57537 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
57538 It can be removed after the next Autoconf is released.
57539 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
57542 2003-06-04 Paul Eggert <eggert@twinsun.com>
57544 * lib/mktime.c: Fix Debian bug 177940
57545 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
57546 (localtime_offset): Now long int, not time_t, because we want it
57547 to be guaranteed to be signed. All uses changed.
57548 (__mktime_internal): If overflow would occur when adding offset,
57551 Merge 'human' changes from coreutils. Rewrite to support
57552 locale-specific notations like thousands separators.
57553 * lib/human.c: Simplify authorship notice.
57554 Include human.h immediately after config.h.
57555 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
57556 <limits.h>: Do not include, since human.h does.
57557 (SIZE_MAX, UINTMAX_MAX): New macros.
57558 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
57559 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
57560 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
57561 (power_letter): Renamed from suffixes.
57562 (generate_suffix_backwards): Remove.
57563 (adjust_value): Now takes int style (because of human.h changes)
57564 and long double value (for greater precision on some platforms).
57565 (group_number): New function.
57566 (human_readable): Use it. Use integer options, not enum.
57567 Put the options before the sizes in the arg list.
57568 Support all the new options.
57569 The old human_readable function has been removed;
57570 use inttostr.h instead.
57571 (human_readable, default_block_size, humblock):
57572 Use uintmax_t, not int, for block sizes.
57573 (human_readable_inexact, block_size_types): Remove.
57574 (block_size_opts): New constant.
57575 (human_options): Renamed from human_block_size, with new signature
57576 that allows block sizes up to UINTMAX_MAX. All callers changed.
57577 * lib/human.h: Add copyright and authorship notice.
57578 Include <limits.h> and <stdbool.h> unconditionally.
57579 (PARAMS): Remove. All uses removed.
57580 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
57581 (enum human_inexact_style): Remove tag; now a nameless enum.
57582 (human_floor, human_ceiling, human_round_to_even): Now have
57583 values 2, 0, 1 rather than -1, 1, 0.
57584 (human_group_digits, human_suppress_point_zero, human_autoscale,
57585 human_base_1024, human_SI, human_B): New constants.
57586 (human_readable_inexact, human_block_size): Remove.
57587 (human_readable): Size args are now uintmax_t, not int.
57588 (human_options): New decl.
57590 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
57591 unnecessary now that we assume C89 or better. This change
57592 imported from coreutils.
57594 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
57595 arbitrarily. This is the same patch as 2003-05-28, but it got lost
57596 in the 2003-05-30 sync from glibc.
57598 .h files should stand alone, but we shouldn't include <sys/types.h>
57599 if we can get away with just <stddef.h>.
57601 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
57602 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
57603 rather than <sys/types.h>, as we merely need size_t.
57604 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
57606 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
57607 Include <stdio.h>, to get FILE.
57608 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
57609 memcasecmp.h has included <stddef.h> and all we need is size_t.
57610 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
57611 our interface, instead of including <sys/types.h>
57613 2003-06-04 Paul Eggert <eggert@twinsun.com>
57615 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
57616 now, as glibc mktime is buggy on non-glibc systems.
57618 2003-06-03 Karl Berry <karl@gnu.org>
57620 * config/config.sub: update from prep.
57622 2003-06-02 Paul Eggert <eggert@twinsun.com>
57625 Fix some minor time-related bugs with POSIX time arguments.
57626 Some valid time stamps were being rejected (notably -1, and
57627 time stamps before 1900 on 64-bit hosts). And some invalid
57628 time stamps were being accepted, e.g. September 31.
57630 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
57631 that we can return (time_t) -1 successfully.
57632 * lib/posixtm.c: Likewise.
57633 [HAVE_STDBOOL_H]: Include <stdbool.h>.
57634 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
57635 (t): Remove static var.
57636 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
57637 of static var. All uses changed.
57638 (year): Do not reject years before 1900; they can occur with
57640 (posix_time_parse): Do not check for out-of-range components;
57641 that is now the caller's responsibility, since our checks were
57642 only approximations.
57643 (posixtime): Use mktime to check for out-of-range components,
57644 since it knows them exactly.
57645 If mktime returns (time_t) -1, check whether an error actually occurred
57646 by invoking localtime on -1.
57647 (main) [TEST_POSIXTIME]: Check for input data errors, and report
57648 posixtime failures better.
57649 Improve the test data (in comments only).
57651 2003-06-02 Karl Berry <karl@gnu.org>
57653 * config/mkinstalldirs (version): new variable.
57654 (--version): new option.
57655 (usage): improve message.
57657 2003-05-30 Karl Berry <karl@gnu.org>
57659 * lib/mktime.c: update from libc.
57661 2003-05-30 Bruno Haible <bruno@clisp.org>
57663 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
57664 * config/config.rpath: Upgrade to gettext-0.12.1.
57666 2003-05-30 Bruno Haible <bruno@clisp.org>
57668 * m4/gettext.m4: Upgrade to gettext-0.12.1.
57669 * m4/nls.m4: New file, from gettext-0.12.1.
57670 * m4/po.m4: New file, from gettext-0.12.1.
57671 * m4/progtest.m4: Upgrade to gettext-0.12.1.
57673 2003-05-30 Bruno Haible <bruno@clisp.org>
57675 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
57676 * lib/localcharset.h: Likewise.
57677 * lib/localcharset.c: Likewise.
57679 2003-05-29 Karl Berry <karl@gnu.org>
57681 * config/config.rpath: update from gettext.
57683 2003-05-28 Paul Eggert <eggert@twinsun.com>
57685 Assume the headers required for C89 freestanding compilers.
57686 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
57687 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
57688 * m4/human.m4 (gl_HUMAN): Likewise.
57689 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
57690 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
57691 * m4/userspec.m4 (gl_USERSPEC): Likewise.
57692 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
57693 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57694 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
57696 2003-05-28 Paul Eggert <eggert@twinsun.com>
57698 Assume the headers required for C89 freestanding compilers.
57699 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
57700 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
57701 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
57702 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
57703 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
57704 define, since <limits.h> is guaranteed to do that.
57705 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
57706 * lib/exclude.c: Include <stdbool.h> unconditionally.
57707 * lib/tempname.c: Include <stddef.h> unconditionally.
57708 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
57709 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
57710 <stddef.h> does that.
57711 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
57712 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
57713 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
57715 * lib/xstrtol.c: Likewise.
57716 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
57717 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
57719 * lib/addext.c (addext): Use assignment rather than cast, to avoid
57720 warnings on some platforms.
57722 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
57725 2003-05-26 Jim Meyering <jim@meyering.net>
57727 Merge in a change from coreutils:
57728 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
57729 that is guaranteed to be `no'. Use `no_such_member' to indicate
57730 that condition, rather than `-1' which is slightly misleading.
57731 Change the name of the cache variable to have the gl_ prefix.
57732 Prompted by a patch from Richard Dawe for DJGPP.
57734 2003-05-24 Karl Berry <karl@gnu.org>
57736 * config/config.guess: update from prep.
57738 2003-05-22 Karl Berry <karl@gnu.org>
57740 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
57742 2003-05-20 Karl Berry <karl@gnu.org>
57744 * config/config.guess: update from prep.
57746 2003-05-18 Karl Berry <karl@gnu.org>
57748 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
57749 might actually be set by the user.
57751 * config/depcomp, install-sh, mdate-sh: update from automake.
57753 2003-05-17 Bruno Haible <bruno@clisp.org>
57755 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
57756 invalid expansion for AC_EGREP_CPP.
57757 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
57758 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
57759 Suggested by Akim Demaille <akim@epita.fr> in
57760 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
57762 2003-05-12 Jim Meyering <jim@meyering.net>
57764 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
57765 the space-padded-by-default conversion specifiers, %e, %k, %l.
57767 2003-05-12 Bruno Haible <bruno@clisp.org>
57769 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
57770 the string is longer than 4 KB.
57772 2003-05-11 Karl Berry <karl@gnu.org>
57774 * config/config.{guess,sub}: update from prep.
57776 2003-05-09 Bruno Haible <bruno@clisp.org>
57778 * modules/error: Add m4/strerror_r.m4 to file list.
57780 2003-05-03 Bruno Haible <bruno@clisp.org>
57782 Upgrade to Unicode-4.0.
57783 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
57784 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
57785 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
57786 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
57787 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
57788 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
57789 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
57790 Change width of U+E0100..U+E01EF from 1 to 0.
57792 2003-04-25 Jim Meyering <jim@meyering.net>
57794 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
57795 of type size_t, not int.
57797 2003-04-25 Bruno Haible <bruno@clisp.org>
57799 * lib/copy-file.c: Include <stddef.h>, for size_t.
57801 2003-04-21 Paul Eggert <eggert@twinsun.com>
57803 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
57804 code which expansion is under static control. Patch imported from
57805 Akim Demaille's patch to Bison; see
57806 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
57808 2003-04-14 Bruno Haible <bruno@clisp.org>
57810 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
57812 2003-04-11 Jim Meyering <jim@meyering.net>
57814 Merge changes from Coreutils.
57816 2003-03-22 Jim Meyering <jim@meyering.net>
57818 * lib/strftime.c (widen): Cast alloca return value to proper type.
57820 2003-01-19 Ulrich Drepper <drepper@redhat.com>
57823 * lib/strftime.c (my_strftime): Handle very large width
57824 specifications for numeric values correctly. Improve checks for
57827 2003-01-19 Jim Meyering <jim@meyering.net>
57829 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
57831 (nl_get_alt_digit) [! defined my_strftime]: Define.
57832 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
57833 _nl_get_alt_digit and _nl_get_walt_digit.
57835 * lib/strftime.c (my_strftime): Merge in locale-related changes from
57836 libc. These changes have no effect outside of _LIBC.
57838 2003-04-10 Bruno Haible <bruno@clisp.org>
57840 * modules/findprog: New file.
57841 * MODULES.html.sh (func_all_modules): Add it.
57843 2003-04-10 Bruno Haible <bruno@clisp.org>
57845 * m4/findprog.m4: New file.
57846 * m4/eaccess.m4: New file.
57848 2003-04-10 Bruno Haible <bruno@clisp.org>
57850 * lib/findprog.h: New file, from GNU gettext.
57851 * lib/findprog.c: New file, from GNU gettext.
57853 2003-04-05 Jim Meyering <jim@meyering.net>
57855 Merge changes from Coreutils.
57857 * lib/exclude.h (PARAMS): Remove definition and uses.
57858 * lib/exclude.c: Remove uses of `PARAMS'.
57860 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
57861 Add test-cases for DOS filenames. Declare program_name.
57862 (main): Set up program_name. Patch by Rich Dawe.
57864 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
57866 Use mntctl's return value to drive the entry-processing loop, since
57867 we can't rely on the value of the vmt_length member in the last
57868 entry. On some systems doing so could result in exhausting
57869 virtual memory. Based in part on a patch from Mike Jetzer.
57871 2003-04-04 Bruno Haible <bruno@clisp.org>
57873 * modules/linebreak: New file.
57874 * MODULES.html.sh (func_all_modules): Add it.
57876 2003-04-04 Bruno Haible <bruno@clisp.org>
57878 * m4/linebreak.m4: New file.
57880 2003-04-04 Bruno Haible <bruno@clisp.org>
57882 * lib/linebreak.h: New file, from GNU gettext.
57883 * lib/linebreak.c: New file, from GNU gettext with slight
57885 * lib/lbrkprop.h: New file, from GNU gettext.
57887 2003-04-03 Bruno Haible <bruno@clisp.org>
57889 * modules/utf8-ucs4: New file.
57890 * modules/utf16-ucs4: New file.
57891 * modules/ucs4-utf8: New file.
57892 * modules/ucs4-utf16: New file.
57893 * MODULES.html.sh (func_all_modules): Add them.
57895 2003-04-03 Bruno Haible <bruno@clisp.org>
57897 * m4/utf-ucs4.m4: New file.
57898 * m4/ucs4-utf.m4: New file.
57900 2003-04-03 Bruno Haible <bruno@clisp.org>
57902 * lib/utf8-ucs4.h: New file, from GNU gettext.
57903 * lib/utf16-ucs4.h: New file, from GNU gettext.
57904 * lib/ucs4-utf8.h: New file, from GNU gettext.
57905 * lib/ucs4-utf16.h: New file, from GNU gettext.
57907 2003-04-02 Bruno Haible <bruno@clisp.org>
57909 * modules/binary-io: New file.
57910 * MODULES.html.sh (func_all_modules): Add it.
57912 2003-04-02 Bruno Haible <bruno@clisp.org>
57914 * lib/binary-io.h: New file, from GNU gettext.
57916 2003-04-01 Bruno Haible <bruno@clisp.org>
57918 * modules/pathname: New file.
57919 * MODULES.html.sh (func_all_modules): Add it.
57921 2003-04-01 Bruno Haible <bruno@clisp.org>
57923 * lib/pathname.h: New file, from GNU gettext.
57924 * lib/concatpath.c: New file, from GNU gettext.
57926 2003-03-30 Bruno Haible <bruno@clisp.org>
57928 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
57930 2003-03-30 Bruno Haible <bruno@clisp.org>
57932 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
57933 function chown() doesn't exist.
57935 2003-03-28 Bruno Haible <bruno@clisp.org>
57937 * modules/copy-file: New file.
57938 * MODULES.html.sh (func_all_modules): Add it.
57940 2003-03-28 Bruno Haible <bruno@clisp.org>
57942 * m4/copy-file.m4: New file.
57944 2003-03-28 Bruno Haible <bruno@clisp.org>
57946 * lib/copy-file.h: New file, from GNU gettext.
57947 * lib/copy-file.c: New file, from GNU gettext.
57949 2003-03-18 Jim Meyering <jim@meyering.net>
57951 * lib/quote.c (quote_n): Fix typo in comment.
57953 2003-03-18 Bruno Haible <bruno@clisp.org>
57955 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
57957 * m4/onceonly_2_57.m4: Likewise.
57959 2003-03-17 Bruno Haible <bruno@clisp.org>
57961 * m4/onceonly.m4: Require autoconf 2.54 or newer.
57962 (m4_quote): Remove macro.
57963 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
57965 2003-03-14 Jim Meyering <jim@meyering.net>
57967 Merge changes from Coreutils.
57968 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
57969 to be const, in order to avoid warnings.
57970 (obstack_room): Likewise.
57971 (obstack_empty_p): Likewise.
57973 2003-03-14 Bruno Haible <bruno@clisp.org>
57975 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
57976 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
57978 2003-03-13 Paul Eggert <eggert@twinsun.com>
57980 Merge changes from Bison.
57981 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
57982 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
57983 when compiling Bison 1.875's `bitset bset = obstack_alloc
57984 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
57985 * lib/hash.c: Include <stdbool.h> unconditionally.
57987 2003-03-13 Paul Eggert <eggert@twinsun.com>
57989 * m4/onceonly.m4 (m4_quote): New macro.
57990 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
57991 Quote AC_FOREACH variable-expansions properly.
57993 2003-03-13 Paul Eggert <eggert@twinsun.com>
57995 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
57997 2003-03-09 Paul Eggert <eggert@twinsun.com>
57999 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
58000 Reported by Bruce Becker; see:
58001 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
58003 2003-03-03 Paul Eggert <eggert@twinsun.com>
58004 Bruno Haible <bruno@clisp.org>
58006 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
58007 Reported by John Hughes, see
58008 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
58010 2003-02-20 Bruno Haible <bruno@clisp.org>
58012 * MODULES.html.sh (func_all_modules): Add poll.
58014 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
58016 * modules/poll: New file.
58018 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
58020 * lib/poll_.h: New file.
58021 * lib/poll.c: New file.
58023 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
58025 * m4/poll.m4: New file.
58027 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
58029 * modules/mathl: New file.
58031 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
58033 * lib/mathl.h: New file.
58034 * lib/acosl.c: New file.
58035 * lib/asinl.c: New file.
58036 * lib/atanl.c: New file.
58037 * lib/ceill.c: New file.
58038 * lib/cosl.c: New file.
58039 * lib/expl.c: New file.
58040 * lib/floorl.c: New file.
58041 * lib/frexpl.c: New file.
58042 * lib/ldexpl.c: New file.
58043 * lib/logl.c: New file.
58044 * lib/sincosl.c: New file.
58045 * lib/sinl.c: New file.
58046 * lib/sqrtl.c: New file.
58047 * lib/tanl.c: New file.
58048 * lib/trigl.c: New file.
58049 * lib/trigl.h: New file.
58051 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
58053 * m4/mathl.m4: New file.
58055 2003-02-18 Bruno Haible <bruno@clisp.org>
58057 * MODULES.html.sh (func_all_modules): Add mathl.
58059 2003-02-17 Bruno Haible <bruno@clisp.org>
58061 * modules/mkdtemp: New module.
58062 * MODULES.html.sh (func_all_modules): Add it.
58064 2003-02-17 Bruno Haible <bruno@clisp.org>
58066 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
58068 2003-02-17 Bruno Haible <bruno@clisp.org>
58070 * lib/mkdtemp.h: New file, from GNU gettext.
58071 * lib/mkdtemp.c: New file, from GNU gettext.
58073 2003-02-02 Jim Meyering <jim@meyering.net>
58075 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
58078 2003-01-31 Bruno Haible <bruno@clisp.org>
58080 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
58082 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
58084 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
58086 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
58089 2003-01-31 Bruno Haible <bruno@clisp.org>
58091 * lib/rename.c: #undef rename before defining rpl_rename.
58092 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
58094 2003-01-30 Bruno Haible <bruno@clisp.org>
58096 * modules/vasnprintf, modules/vasprintf: New modules.
58097 * MODULES.html.sh (func_all_modules): Add them.
58099 2003-01-30 Bruno Haible <bruno@clisp.org>
58101 * m4/signed.m4: New file, from GNU gettext.
58102 * m4/longdouble.m4: New file, from GNU gettext.
58103 * m4/wchar_t.m4: New file, from GNU gettext.
58104 * m4/wint_t.m4: New file, from GNU gettext.
58105 * m4/vasnprintf.m4: New file.
58106 * m4/vasprintf.m4: New file.
58108 2003-01-30 Bruno Haible <bruno@clisp.org>
58110 * lib/printf-args.h: New file, from GNU gettext.
58111 * lib/printf-args.c: New file, from GNU gettext.
58112 * lib/printf-parse.h: New file, from GNU gettext.
58113 * lib/printf-parse.c: New file, from GNU gettext.
58114 * lib/vasnprintf.h: New file, from GNU gettext.
58115 * lib/vasnprintf.c: New file, from GNU gettext.
58116 * lib/asnprintf.c: New file, from GNU gettext.
58117 * lib/vasprintf.h: New file, from GNU gettext with modifications.
58118 * lib/vasprintf.c: New file, from GNU gettext.
58119 * lib/asprintf.c: New file, from GNU gettext.
58121 2003-01-29 Bruno Haible <bruno@clisp.org>
58123 * modules/stpncpy: New module.
58124 * MODULES.html.sh (func_all_modules): Add it.
58126 2003-01-29 Bruno Haible <bruno@clisp.org>
58128 * m4/stpncpy.m4: New file.
58130 2003-01-29 Bruno Haible <bruno@clisp.org>
58132 * lib/stpncpy.h: New file, from GNU gettext with modifications.
58133 * lib/stpncpy.c: New file, from GNU gettext with modifications.
58135 2003-01-28 Bruno Haible <bruno@clisp.org>
58137 * modules/c-ctype: New module.
58138 * MODULES.html.sh (func_all_modules): Add it.
58140 2003-01-28 Bruno Haible <bruno@clisp.org>
58142 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
58144 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
58147 2003-01-27 Bruno Haible <bruno@clisp.org>
58149 * modules/xsetenv: New module.
58150 * MODULES.html.sh (func_all_modules): Add it.
58152 2003-01-27 Bruno Haible <bruno@clisp.org>
58154 * lib/xsetenv.h: New file, from GNU gettext.
58155 * lib/xsetenv.c: New file, from GNU gettext.
58157 2003-01-23 Jim Meyering <jim@meyering.net>
58159 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
58160 from working on systems without dirfd (at least Irix and OSF1/Tru64).
58162 2003-01-23 Bruno Haible <bruno@clisp.org>
58164 * modules/minmax: New module.
58165 * MODULES.html.sh (func_all_modules): Add it.
58167 2003-01-23 Bruno Haible <bruno@clisp.org>
58169 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
58172 2003-01-22 Bruno Haible <bruno@clisp.org>
58174 * modules/exit: New module.
58175 * MODULES.html.sh (func_all_modules): Add it.
58177 2003-01-22 Bruno Haible <bruno@clisp.org>
58179 * lib/exit.h: New file, from GNU gettext.
58181 2003-01-19 Bruno Haible <bruno@clisp.org>
58183 * gnulib-tool: Recognize option --extract-maintainer.
58184 (func_get_maintainer): New function.
58185 * modules/*: Add Maintainer entry.
58187 2003-01-16 Jim Meyering <jim@meyering.net>
58189 * m4/regex.m4: The `regex' struct is both input and output.
58190 Initialize it before each use. Patch by Tim Waugh.
58192 2003-01-16 Bruno Haible <bruno@clisp.org>
58194 * MODULES.html.sh: Add a table of contents. Add the module name as
58195 leftmost column. Add hyperlinks.
58197 2003-01-15 Bruno Haible <bruno@clisp.org>
58199 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
58201 2003-01-15 Bruno Haible <bruno@clisp.org>
58203 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
58204 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
58207 2003-01-15 Bruno Haible <bruno@clisp.org>
58209 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
58211 2003-01-15 Bruno Haible <bruno@clisp.org>
58213 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
58214 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
58216 2003-01-14 Jim Meyering <jim@meyering.net>
58218 * lib/same.c (same_name): Tweak a comment.
58220 2003-01-14 Bruno Haible <bruno@clisp.org>
58222 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
58223 when a string comparison is sufficient.
58225 2003-01-14 Bruno Haible <bruno@clisp.org>
58227 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
58230 2003-01-14 Bruno Haible <bruno@clisp.org>
58232 * lib/hash-pjw.c: Add comment about low quality of this function.
58234 2003-01-13 Bruno Haible <bruno@clisp.org>
58236 * modules/stpcpy: Distribute lib/stpcpy.h.
58237 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
58239 2003-01-13 Bruno Haible <bruno@clisp.org>
58241 * modules/*: Add a description.
58242 * modules/strpbrk: Fix Makefile.am snippet.
58243 * modules/strtoimax: Fix dependencies.
58244 * modules/strtoumax: Likewise.
58246 2003-01-13 Bruno Haible <bruno@clisp.org>
58248 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
58249 * modules/alloca (Makefile.am): All object files depend on alloca.h.
58250 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
58252 2003-01-13 Bruno Haible <bruno@clisp.org>
58254 * gnulib-tool (func_create_testdir): Store config/* files in the main
58256 * config.rpath: Move to ...
58257 * config/config.rpath: ... here.
58258 * modules/gettext: Contains config/config.rpath, not config.rpath.
58259 * modules/iconv: Likewise.
58261 2003-01-12 Paul Eggert <eggert@twinsun.com>
58263 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58264 to avoid collisions with libcurses and libreadline.
58266 * m4/getstr.m4: Remove.
58267 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
58269 2003-01-12 Paul Eggert <eggert@twinsun.com>
58271 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58272 to avoid collisions with libcurses and libreadline.
58274 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
58275 * lib/getstr.h, getstr.c: Remove.
58276 * lib/getline.c: Include "getline.h", to check interface.
58277 Move body of old getstr.c here: this defines MIN_CHUNK and
58278 declares getdelim2, which is renamed from getstr.
58279 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
58281 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
58283 * lib/linebuffer.h: Likewise.
58284 (readline): Remove backward-compatibility macro.
58286 2003-01-12 Paul Eggert <eggert@twinsun.com>
58288 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58289 to avoid collisions with libcurses and libreadline.
58291 * MODULES.html.sh: Remove getstr.
58292 * modules/getline: Depend on unlocked-io, not getstr.
58294 2003-01-12 Jim Meyering <jim@meyering.net>
58296 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
58298 2003-01-10 Bruno Haible <bruno@clisp.org>
58300 * modules/alloca: Change Makefile.am requirements. Simplify Include
58301 requirements. Add lib/alloca_.h to file list.
58303 2003-01-10 Bruno Haible <bruno@clisp.org>
58305 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
58307 2003-01-10 Bruno Haible <bruno@clisp.org>
58309 * lib/alloca_.h: New file.
58310 * lib/getdate.y: Unconditionally include alloca.h.
58311 * lib/makepath.c: Likewise.
58312 * lib/setenv.c: Likewise.
58313 * lib/userspec.c: Likewise.
58315 2003-01-09 Karl Berry <karl@gnu.org>
58317 * MODULES.html.sh: include `dirname $0` in PATH, to find
58320 2003-01-09 Bruno Haible <bruno@clisp.org>
58322 * modules/stdbool: Change configure.ac, Makefile.am requirements.
58323 Simplify Include requirements. Add lib/stdbool.h.in to file list.
58325 2003-01-09 Bruno Haible <bruno@clisp.org>
58327 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
58329 2003-01-09 Bruno Haible <bruno@clisp.org>
58331 * lib/stdbool.h.in: New file.
58333 2003-01-09 Bruno Haible <bruno@clisp.org>
58335 * gnulib-tool (func_all_modules): Ignore files ending in ~.
58336 * MODULES.html.sh: Likewise.
58338 2003-01-08 Jim Meyering <jim@meyering.net>
58340 * lib/full-write.c: Undefine and define-away `const' after inclusion
58341 of errno.h, not before. Suggestion from Bruno Haible.
58343 2003-01-08 Bruno Haible <bruno@clisp.org>
58345 * modules/full-read: Depend on full-write.
58347 2003-01-08 Bruno Haible <bruno@clisp.org>
58349 * lib/safe-read.c: Include specification header first, to ensure its
58351 * lib/full-write.c: Likewise.
58353 2003-01-07 Jim Meyering <jim@meyering.net>
58355 * lib/full-write.c: Rework so that it may serve to define full_read,
58357 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
58359 2003-01-07 Bruno Haible <bruno@clisp.org>
58361 * lib/strtoimax.c: Include <stdint.h> as an alternative to
58363 * lib/xstrtol.h: Likewise.
58364 * lib/xstrtoimax.c: Likewise.
58365 * lib/xstrtoumax.c: Likewise.
58366 * lib/human.h: Likewise.
58368 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
58369 on systems that have <inttypes.h> but not <stdint.h>.
58371 2003-01-07 Bruno Haible <bruno@clisp.org>
58373 * MODULES.html.sh: Add copyright notice.
58374 (missed_files): Omit CVS directory entries.
58375 (func_module): Make it work with sed-3.02.
58376 * MODULES.txt: Remove file.
58378 2003-01-06 Jim Meyering <jim@meyering.net>
58380 * lib/version-etc.c: Update year in translatable copyright string.
58382 2003-01-03 Karl Berry <karl@gnu.org>
58384 * config/config.{guess,sub}: update from prep.
58386 2003-01-02 Karl Berry <karl@gnu.org>
58388 * doc/COPYING.DOC: belatedly updated to 1.2.
58390 2003-01-01 Karl Berry <karl@gnu.org>
58392 * gnulib-tool (func_verify_module): report module name $module in
58393 error message, not $1.
58394 * gnulib-tool (create-testdir): don't complain if destdir couldn't
58395 be created, only if it doesn't exist.
58396 * gnulib-tool (last_checkin_date): don't expand the $Date here.
58398 2002-12-31 Paul Eggert <eggert@twinsun.com>
58400 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
58402 2002-12-31 Paul Eggert <eggert@twinsun.com>
58404 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
58405 memcmp if strcoll doesn't work.
58407 2002-12-31 Bruno Haible <bruno@clisp.org>
58409 * lib/utime.c (utime_null): No need to call ftruncate if the file was
58412 2002-12-31 Bruno Haible <bruno@clisp.org>
58414 * lib/memcoll.c (STRCOLL): New macro.
58417 2002-12-31 Bruno Haible <bruno@clisp.org>
58419 * lib/localcharset.h: New file.
58420 * lib/localcharset.c: Include it.
58421 * lib/unicodeio.c: Likewise.
58423 2002-12-31 Bruno Haible <bruno@clisp.org>
58425 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
58426 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
58428 2002-12-31 Bruno Haible <bruno@clisp.org>
58430 * lib/getline.h: Include <stddef.h>, for size_t.
58432 * lib/unicodeio.h: Include <stddef.h>, for size_t.
58433 * lib/unicodeio.c: Don't include <stddef.h>.
58435 2002-12-31 Bruno Haible <bruno@clisp.org>
58437 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
58440 2002-12-24 Karl Berry <karl@gnu.org>
58442 * config/config.guess: update from prep.
58444 2002-12-24 Bruno Haible <bruno@clisp.org>
58446 General infrasructure.
58447 * m4/README: Rewritten.
58448 * m4/onceonly.m4: New file.
58449 * m4/onceonly_2_57.m4: New file.
58452 * m4/atexit.m4: New file.
58455 * m4/strtod.m4: New file.
58458 * m4/strtol.m4: New file.
58461 * m4/strtoul.m4: New file.
58464 * m4/memchr.m4: New file.
58467 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
58468 (jm_FUNC_MEMCMP): Invoke it.
58471 * m4/memcpy.m4: New file.
58474 * m4/memmove.m4: New file.
58477 * m4/memset.m4: New file.
58480 * m4/strcspn.m4: New file.
58483 * m4/strpbrk.m4: New file.
58486 * m4/strstr.m4: New file.
58489 * m4/strerror.m4: New file.
58492 * m4/mktime.m4: Renamed from jm-mktime.m4.
58493 (gl_PREREQ_MKTIME): New macro.
58494 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
58497 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
58498 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
58499 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
58502 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
58503 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
58504 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
58507 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
58508 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
58509 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
58511 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
58514 * m4/xalloc.m4: New file.
58517 * m4/alloca.m4: New file.
58520 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
58521 (jm_FUNC_PUTENV): Invoke it.
58524 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
58525 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
58526 when invoked twice.
58527 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
58531 * m4/memrchr.m4: New file.
58534 * m4/stpcpy.m4: New file.
58537 * m4/strcase.m4: New file.
58540 * m4/strdup.m4: New file.
58543 * m4/strnlen.m4: New file.
58546 * m4/strndup.m4: New file.
58549 * m4/xstrtod.m4: New file.
58552 * m4/xstrtol.m4: New file.
58555 * m4/getdate.m4: New file.
58557 Module unlocked-io.
58558 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
58559 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
58560 * m4/jm-glibc-io.m4n: Remove file.
58562 Module long-options.
58563 * m4/long-options.m4: New file.
58566 * m4/md5.m4: New file.
58569 * m4/sha.m4: New file.
58572 * m4/getstr.m4: New file.
58575 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
58576 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
58577 <sys/types.h>, for size_t. Use the function name gnu_getline, not
58578 simply getline. Infoke gl_PREREQ_GETLINE.
58581 * m4/obstack.m4: New file.
58584 * m4/hash.m4: New file.
58587 * m4/readtokens.m4: New file.
58590 * m4/strverscmp.m4: New file.
58593 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
58597 * m4/strtoll.m4: New file.
58600 * m4/strtoull.m4: New file.
58603 * m4/strtoimax.m4: New file.
58606 * m4/strtoumax.m4: New file.
58609 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
58610 jm_AC_PREREQ_XSTRTOIMAX.
58611 Moved the strtol prerequisites to strtol.m4.
58612 Moved the strtoll prerequisites to strtoll.m4.
58613 Moved the strtoimax prerequisites to strtoimax.m4.
58616 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
58617 jm_AC_PREREQ_XSTRTOUMAX.
58618 Moved the strtoul prerequisites to strtoul.m4.
58619 Moved the strtoull prerequisites to strtoull.m4.
58620 Moved the strtoumax prerequisites to strtoumax.m4.
58623 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
58624 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
58627 * m4/dup2.m4: New file.
58630 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
58631 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
58634 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
58635 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
58637 Module gettimeofday.
58638 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
58639 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
58640 gl_PREREQ_GETTIMEOFDAY.
58643 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
58644 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
58647 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
58648 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
58649 jm_AC_TYPE_UINTMAX_T.
58650 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
58653 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
58654 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
58657 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
58658 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
58661 * m4/timespec.m4 (gl_TIMESPEC): New macro.
58662 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
58663 * m4/st_mtim.m4: Indentation.
58666 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
58667 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
58668 gl_PREREQ_NANOSLEEP.
58671 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
58672 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
58673 (gl_REGEX): New macro.
58676 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
58677 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
58680 * m4/rmdir.m4: New file.
58683 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
58684 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
58685 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
58688 * m4/dirname.m4: New file.
58691 * m4/getopt.m4: New file.
58693 Module unistd-safer.
58694 * m4/unistd-safer.m4: New file.
58697 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
58699 (gl_PREREQ_FNMATCH_EXTRA): New macro.
58700 (gl_FUNC_FNMATCH_POSIX): New macro.
58701 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
58702 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
58706 * m4/exclude.m4: New file.
58709 * m4/human.m4: New file.
58715 * m4/backupfile.m4: New file.
58716 * m4/d-ino.m4: Indentation.
58719 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
58720 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
58721 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
58724 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
58728 * m4/euidaccess.m4: New file.
58731 * m4/file-type.m4: New file.
58734 * m4/fileblocks.m4: New file.
58737 * m4/filemode.m4: New file.
58740 * m4/isdir.m4: New file.
58743 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
58744 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
58747 * m4/makepath.m4: New file.
58750 * m4/modechange.m4: New file.
58753 * m4/mountlist.m4: New file.
58754 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
58757 Module path-concat.
58758 * m4/path-concat.m4: New file.
58761 * m4/pathmax.m4: New file.
58764 * m4/same.m4: New file.
58767 * m4/save-cwd.m4: New file.
58770 * m4/savedir.m4: New file.
58773 * m4/xgetcwd.m4: New file.
58774 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
58777 * m4/xreadlink.m4: New file.
58780 * m4/safe-read.m4: New file.
58783 * m4/safe-write.m4: New file.
58786 * m4/closeout.m4: New file.
58788 Module stdio-safer.
58789 * m4/stdio-safer.m4: New file.
58792 * m4/getpass.m4: New file.
58795 * m4/getugroups.m4: New file.
58797 Module group-member.
58798 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
58799 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
58802 * m4/idcache.m4: New file.
58805 * m4/userspec.m4: New file.
58808 * m4/clock_time.m4: New file.
58809 * m4/gettime.m4: New file.
58812 * m4/settime.m4: New file.
58815 * m4/posixtm.m4: New file.
58817 Module gethostname.
58818 * m4/gethostname.m4: New file.
58821 * m4/canon-host.m4: New file.
58824 * m4/codeset.m4: New file, from gettext-0.11.5.
58825 * m4/gettext.m4: New file, from gettext-0.11.5.
58826 * m4/glibc21.m4: New file, from gettext-0.11.5.
58827 * m4/iconv.m4: New file, from gettext-0.11.5.
58828 * m4/intdiv0.m4: New file, from gettext-0.11.5.
58829 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
58830 * m4/inttypes.m4: New file, from gettext-0.11.5.
58831 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
58832 * m4/isc-posix.m4: New file, from gettext-0.11.5.
58833 * m4/lcmessage.m4: New file, from gettext-0.11.5.
58834 * m4/lib-ld.m4: New file, from gettext-0.11.5.
58835 * m4/lib-link.m4: New file, from gettext-0.11.5.
58836 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
58837 * m4/progtest.m4: New file, from gettext-0.11.5.
58838 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
58839 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
58840 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
58842 Module localcharset.
58843 * m4/localcharset.m4: New file.
58845 Module hard-locale.
58846 * m4/hard-locale.m4: New file.
58849 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
58851 * m4/mbrtowc.m4: Add comment.
58854 * m4/memcasecmp.m4: New file.
58857 * m4/memcoll.m4: New file.
58860 * m4/unicodeio.m4: New file.
58863 * m4/rpmatch.m4: New file.
58866 * m4/yesno.m4: New file.
58869 * m4/exitfail.m4: New file.
58872 * m4/c-stack.m4 (gl_C_STACK): New macro.
58873 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
58876 * m4/error.m4 (gl_ERROR): New macro.
58877 (jm_PREREQ_ERROR): Use onceonly macros.
58880 * m4/fatal.m4: New file.
58883 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
58884 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
58886 Module getpagesize.
58887 * m4/getpagesize.m4: New file.
58889 Module getusershell.
58890 * m4/getusershell.m4: New file.
58893 * m4/physmem.m4: New file.
58896 * m4/posixver.m4: New file.
58899 * m4/quotearg.m4: New file.
58902 * m4/quote.m4: New file.
58905 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
58908 * m4/sig2str.m4: New file.
58911 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
58913 * m4/intmax_t.m4: New file.
58914 * m4/d-type.m4: Indentation.
58915 * m4/jm-macros.m4: Update.
58916 * m4/prereq.m4 (jm_PREREQ): Update.
58917 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
58918 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
58919 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
58920 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
58921 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
58922 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
58923 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
58924 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
58925 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
58926 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
58927 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
58928 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
58929 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
58930 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
58931 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
58932 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
58933 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
58934 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
58935 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
58937 2002-12-24 Bruno Haible <bruno@clisp.org>
58939 * MODULES.txt: Update according to m4/ changes.
58942 * config.rpath: New file, from gettext-0.11.5.
58944 * modules/*: New module descriptions.
58945 * gnulib-tool: New file.
58946 * MODULES.html.sh: New file.
58948 2002-12-21 Karl Berry <karl@gnu.org>
58950 * doc/fdl.texi: update to version 1.2.
58952 2002-12-19 Karl Berry <karl@gnu.org>
58954 * config/config.guess: update from prep.
58956 2002-12-18 Bruno Haible <bruno@clisp.org>
58958 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
58959 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
58961 2002-12-17 Bruno Haible <bruno@clisp.org>
58963 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
58964 stdlib.h, string.h.
58966 2002-12-17 Bruno Haible <bruno@clisp.org>
58968 * lib/canon-host.c (strdup): Remove unused declaration.
58970 * lib/fsusage.c: Include full_read.h.
58971 (get_fs_usage): Use full_read instead of safe_read.
58973 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
58975 2002-12-12 Karl Berry <karl@gnu.org>
58977 * config/config.guess: update from prep.
58979 2002-12-11 Bruno Haible <bruno@clisp.org>
58981 * m4/setenv.m4: New file, from gettext-0.11.5.
58983 2002-12-11 Bruno Haible <bruno@clisp.org>
58985 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
58987 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
58990 2002-12-11 Bruno Haible <bruno@clisp.org>
58992 * setenv.c (alloca): Fall back to malloc.
58993 (freea): New macro.
58994 (setenv): Use freea() to free memory allocated with alloca().
58996 2002-11-13 Bruno Haible <bruno@clisp.org>
58998 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
58999 function declarations.
59000 * unsetenv.c (unsetenv): Likewise.
59002 2002-03-04 Bruno Haible <bruno@clisp.org>
59004 Portability to AIX 4.3.3.
59005 * unsetenv.c: New file, extracted from setenv.c.
59006 * setenv.c: Move the unsetenv() function to unsetenv.c.
59008 2001-12-20 Bruno Haible <bruno@clisp.org>
59010 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
59011 use malloc instead. For SunOS 4.
59013 2001-12-11 Bruno Haible <bruno@clisp.org>
59015 * setenv.c: Declare alloca.
59016 (compar_fn_t): New typedef.
59017 (KNOWN_VALUE, STORE_VALUE): Use it.
59019 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
59022 2002-12-10 Paul Eggert <eggert@twinsun.com>
59024 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
59025 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
59026 Choose values that are less likely to collide with system fnmatch
59028 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
59029 defined (e.g., a pure POSIX system).
59030 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
59031 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
59033 2002-12-06 Paul Eggert <eggert@twinsun.com>
59035 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
59036 a pain in practice to deal with generated m4 files. This change
59037 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
59039 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
59040 and jm-glibc-io.m4, as they are no longer a special case.
59041 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
59042 kludge and the auto-generation stuff. Check only whether the
59043 functions are declared, not whether they exist, since older hosts
59044 that don't declare the functions can't use the optimization anyway.
59046 2002-12-06 Jim Meyering <jim@meyering.net>
59048 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
59050 Merge in changes from libc's misc/error.c, in preparation
59051 for the merge of gnulib's changes back into libc.
59053 * lib/error.c (_): Define only if not already defined.
59054 Move definition to follow all #include directives.
59055 Include unlocked-io.h only if !_LIBC.
59056 [_LIBC]: Include <libio/libioP.h>.
59057 [USE_IN_LIBIO]: Include <libio/iolibio.h>
59058 (fflush): Tweak definition to use INTUSE.
59061 2002-12-05 Paul Eggert <eggert@twinsun.com>
59063 * lib/alloca.c [defined emacs]: Include "lisp.h".
59064 (xalloc_die) [defined emacs]: New macro.
59065 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
59066 [! defined emacs]: Include <xalloc.h>.
59067 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
59068 (pointer): Typedef to POINTER_TYPE *.
59069 (malloc): Remove decl; we now always use xmalloc.
59070 (alloca): Use old-style definition, since Emacs needs this.
59071 Check for arithmetic overflow when computing combined size.
59073 2002-12-04 Paul Eggert <eggert@twinsun.com>
59075 Do not generate unlocked-io.h automatically, since it's easier to
59076 maintain it by hand.
59078 * lib/unlocked-io.h: New file, from GNU diffutils,
59079 but with proper copyright notice and attribution.
59080 * lib/gen-uio: Remove.
59081 * lib/Makefile.am: Add copyright notice.
59082 (libfetish_a_SOURCES): Add unlocked-io.h.
59083 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
59084 (DISTCLEANFILES, io_functions): Remove macros.
59085 (EXTRA_DIST): Remove gen_uio.
59086 (unlocked-io.h): Remove rule.
59088 2002-12-04 Jim Meyering <jim@meyering.net>
59090 Reflect the fact that stat.c and lstat.c are no longer generated.
59091 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
59092 (DISTCLEANFILES): Likewise.
59093 (EXTRA_DIST): Likewise.
59094 (all_local): Don't depend on stat.c or lstat.c.
59095 (stat.c, lstat.c): Remove rules.
59096 (EXTRA_DIST): Remove xstat.in.
59098 * lib/xstat.in: Remove file. Contents moved into stat.c.
59099 * lib/stat.c: New file. Contents mostly from xstat.in.
59100 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
59101 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
59103 * lib/safe-read.c: Rework so that it may serve to define safe_write,
59105 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
59107 2002-12-03 Jim Meyering <jim@meyering.net>
59109 * lib/safe-read.c, safe-write.c: Change variable names and comments,
59110 but not semantics, to minimize the differences between these two files.
59111 (safe_read): Change comment to mention SAFE_READ_ERROR.
59113 * lib/safe-read.c (IS_EINTR): Define.
59114 (safe_read): Use IS_EINTR in place of in-function cpp directives.
59116 2002-12-02 Jim Meyering <jim@meyering.net>
59118 * lib/safe-read.c (EINTR): Define.
59119 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
59120 (INT_MAX): Provide fallback.
59121 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
59123 * lib/safe-read.h (SAFE_READ_ERROR): Define.
59125 2002-12-02 Bruno Haible <bruno@clisp.org>
59127 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
59128 Define, taken from safe-read.c.
59129 (INT_MAX): Provide fallback.
59130 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
59131 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
59133 * lib/safe-read.c (EINTR): Remove definition.
59134 (safe_read): Don't use EINTR if it is absent.
59136 2002-12-01 Jim Meyering <jim@meyering.net>
59138 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
59140 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
59142 2002-11-27 Paul Eggert <eggert@twinsun.com>
59144 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
59145 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
59146 with `if (! (value < limit)) abort ();', for readability.
59148 2002-11-26 Karl Berry <karl@gnu.org>
59150 * lib/strdup.c: copy from libc again, with jim's ok.
59151 * lib/.cppi-disable: re-add strdup.c
59153 2002-11-25 Karl Berry <karl@gnu.org>
59155 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
59156 instead of "strtol.c".
59158 2002-11-25 Karl Berry <karl@gnu.org>
59160 * config/install-sh: update from automake for variable quoting, $0 in
59163 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
59164 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
59167 2002-11-25 Jim Meyering <jim@meyering.net>
59169 * lib/mktime.c: Sync from libc, now that it has the latest fix.
59171 2002-11-24 Karl Berry <karl@gnu.org>
59173 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
59174 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
59176 2002-11-24 Jim Meyering <jim@meyering.net>
59178 Update from coreutils:
59180 * lib/mktime.c: Merge in changes from libc.
59182 Avoid a link-time failure on some Linux systems.
59183 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
59185 (__mon_yday): Declare with the STATIC attribute.
59186 (__mktime_internal): Likewise.
59187 Based on a report from Greg Schafer.
59189 2002-11-23 Jim Meyering <jim@meyering.net>
59191 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
59192 Use `unsigned', not `int', as type of index.
59194 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
59196 * lib/fsusage.c: Remove unneeded parentheses around operands of
59199 2002-11-22 Paul Eggert <eggert@twinsun.com>
59201 * lib/quotearg.h: Allow multiple inclusion by surrounding with
59202 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
59203 so that we can be included first.
59204 (PARAMS): Remove; we now assume C89 or later. All uses removed.
59205 * lib/quotearg.c: Include quotearg.h immediately after config.h.
59206 No need to include stddef.h or sys/types.h any more.
59207 Surround local include files with "", not "<>".
59208 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
59209 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
59210 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
59211 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
59212 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
59213 (ISPRINT): Remove; no longer needed now that we assume C89.
59215 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
59218 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
59219 quotearg_char): Use SIZE_MAX rather than
59220 (size_t) -1 when we are talking about "infinity".
59222 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
59224 2002-11-22 Paul Eggert <eggert@twinsun.com>
59226 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
59227 hint that one should use `if (! x) abort ();' rather than `assert
59228 (x);', and anyway it's one less thing to worry about configuring.
59229 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
59230 hash_rehash, hash_insert): Use abort rather than assert.
59232 2002-11-22 Bruno Haible <bruno@clisp.org>
59234 * lib/safe-read.h: Assume C89. Add comments.
59235 (safe_read): Change return type to size_t.
59236 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
59237 byte counts > SSIZE_MAX correctly.
59238 * lib/safe-write.h: New file.
59239 * lib/safe-write.c: New file.
59240 * lib/full-read.h: New file.
59241 * lib/full-read.c: New file.
59242 * lib/full-write.h: Assume C89. Add comments.
59243 * lib/full-write.c: Include safe-write.h.
59244 (full_write): Rewritten to use safe_write.
59245 Suggested by Jim Meyering and Paul Eggert.
59247 2002-11-21 Jim Meyering <jim@meyering.net>
59249 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
59251 Merge in changes from the coreutils.
59253 2002-09-25 Paul Eggert <eggert@twinsun.com>
59254 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
59256 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
59257 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
59258 int. Work more efficiently if X is the same width as uintmax_t.
59259 Do not compare X to -1, to avoid bogus compiler warning.
59260 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
59261 Don't assume that f_frsize and f_bsize are the same type.
59263 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
59264 warning on FreeBSD.
59266 * lib/makepath.c (make_path): Restore umask *before* creating the final
59268 (make_path): Minor reformatting.
59270 * lib/xmalloc.c: Adjust to work with new autoconf macros,
59271 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
59272 HAVE_MALLOC/HAVE_REALLOC.
59274 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
59275 dummy ones. At least on GNU/Linux systems, `auto' means something
59277 From Michael Stone.
59279 2002-11-21 Bruno Haible <bruno@clisp.org>
59281 Remove case insensitive option matching.
59282 * lib/argmatch.h (argcasematch): Remove declaration.
59283 (ARGCASEMATCH): Remove macro.
59284 (__xargmatch_internal): Remove case_sensitive argument.
59285 (XARGMATCH): Update.
59286 (XARGCASEMATCH): Remove macro.
59287 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
59288 case_sensitive argument.
59289 (argcasematch): Remove function.
59290 (__xargmatch_internal): Remove case_sensitive argument.
59291 (main): Use XARGMATCH instead of XARGCASEMATCH.
59293 * lib/xmalloc.c: Change compile-time error message. Add comment about
59294 required autoconf version.
59296 2002-11-20 Paul Eggert <eggert@twinsun.com>
59298 Merge argmatch cleanups from Bison. Assume C89.
59300 * lib/argmatch.c: Include config.h here, not in argmatch.h.
59301 Include stdlib.h, for EXIT_FAILURE.
59302 Always include <string.h>, since we assume C89.
59303 (EXIT_FAILURE): Remove pre-C89 bug workaround.
59304 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
59305 Include <stddef.h> instead, since it's all we need for size_t.
59306 (PARAMS): Remove. All uses removed.
59307 (ARRAY_CARDINALITY): Do not bother to #undef.
59308 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
59309 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
59310 Remove unnecessary parentheses.
59311 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
59312 Insert necessary parentheses.
59313 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
59314 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
59316 2002-11-19 Bruno Haible <bruno@clisp.org>
59318 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
59319 * lib/mbswidth.h: Include <stddef.h>, for size_t.
59321 * lib/mbswidth.h (PARAMS): Remove macro.
59322 (mbswidth, mbsnwidth): Use ANSI C function declarations.
59323 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
59325 * lib/gcd.h (PARAMS): Remove macro.
59326 (gcd): Use ANSI C function declarations.
59327 * lib/gcd.c (gcd): Likewise.
59329 2002-11-15 Bruno Haible <bruno@clisp.org>
59331 * lib/strcspn.c: Include <stddef.h>.
59332 (strcspn): Use ANSI C function declaration. Change return type to
59334 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
59335 (strpbrk): Use NULL.
59336 * lib/strpbrk.h (PARAMS): Remove macro.
59337 (strpbrk): Use ANSI C function declaration.
59338 * lib/strstr.c: Don't include <sys/types.h>.
59339 * lib/strstr.h (PARAMS): Remove macro.
59340 (strstr): Use ANSI C function declarations.
59342 2002-11-14 Karl Berry <karl@gnu.org>
59344 * config/mkinstalldirs: `do' on separate line, instead of
59347 2002-11-06 Bruno Haible <bruno@clisp.org>
59349 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
59350 * lib/gcd.c (gcd): Likewise.
59352 2002-11-05 Bruno Haible <bruno@clisp.org>
59354 * lib/gcd.h: New file, from gettext-0.11.5.
59355 * lib/gcd.c: New file, from gettext-0.11.5.
59357 2002-11-05 Bruno Haible <bruno@clisp.org>
59359 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59360 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59361 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59362 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59364 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
59366 * lib/makepath.c: Include gettext.h instead of <locale.h> and
59369 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
59370 * lib/human.c: Include gettext.h instead of <libintl.h>.
59371 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
59372 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
59373 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
59374 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
59375 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
59376 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
59377 (textdomain): Remove definition.
59378 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
59380 * lib/long-options.c: Remove include of <libintl.h> and definition of
59382 * lib/same.c: Remove include of <libintl.h> and definition of _.
59384 2002-11-04 Owen Taylor <otaylor@redhat.com>
59386 * lib/config.charset: A few additions for Solaris.
59388 2002-11-04 Bruno Haible <haible@clisp.cons.org>
59390 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
59391 * lib/localcharset.c (locale_charset): Declare as extern "C".
59393 2002-11-04 Bruno Haible <haible@clisp.cons.org>
59395 * lib/config.charset: msdos in uk_UA uses CP1125.
59397 2002-11-04 Bruno Haible <bruno@clisp.org>
59399 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
59400 * lib/strcase.h: New file, from GNU gettext-0.11.5.
59401 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
59402 * lib/strstr.h: New file, from GNU gettext-0.11.5.
59403 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
59405 2002-11-04 Bruno Haible <bruno@clisp.org>
59407 * lib/localcharset.c (locale_charset): Don't return an empty string.
59409 2002-11-04 Bruno Haible <bruno@clisp.org>
59411 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
59414 2002-11-04 Bruno Haible <bruno@clisp.org>
59416 * lib/config.charset: Update for newest glibc. Add canonical names
59417 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
59419 2002-11-04 Bruno Haible <bruno@clisp.org>
59421 * lib/config.charset: Add support for NetBSD.
59423 2002-11-04 Bruno Haible <bruno@clisp.org>
59425 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
59427 2002-11-01 Bruno Haible <bruno@clisp.org>
59429 * configure.in: Add AC_CONFIG_AUX_DIR call.
59430 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
59432 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
59434 2002-09-28 Karl Berry <karl@gnu.org>
59436 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
59437 installed automake until the next release, since changes have been
59440 2002-09-25 Karl Berry <karl@gnu.org>
59442 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
59443 * lib/getopt*: copy from libc/posix.
59444 * lib/gettext.h: copy from gettext.
59445 * lib/.cppi-disable: add strdup.c, gettext.h.
59447 2002-09-25 Karl Berry <karl@gnu.org>
59449 * config/srclist.txt: enable gettext.h check.
59450 * config/config.{guess,sub}: update from prep.
59451 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
59452 from automake 1.6.3.
59455 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
59457 * regex.c (PATFETCH): Remove the translating fetch.
59458 (PATFETCH_RAW): Rename to PATFETCH.
59459 (set_image_of_range): New fun.
59460 (SET_RANGE_TABLE_WORK_AREA): Use it.
59461 (regex_compile): Don't translate the pattern chars so eagerly.
59462 Only do it when inserting an `exactn' bytecode or when handling
59464 (mutually_exclusive_p): Avoid empty statement.
59466 2002-07-06 Jim Meyering <meyering@lucent.com>
59468 * m4/README: Don't mention Makefile.am.in.
59469 Outline how I've tested changes to .m4 files. Yep, it's a pain.
59471 2002-07-01 Jim Meyering <meyering@lucent.com>
59473 * lib/c-stack.c: Include sys/time.h.
59474 From Volker Borchert.
59476 2002-06-26 Paul Eggert <eggert@twinsun.com>
59478 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
59480 2002-06-26 Paul Eggert <eggert@twinsun.com>
59482 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
59483 New macro. Use it uniformly instead of
59484 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
59485 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
59486 reported by Vin Shelton.
59488 2002-06-22 Paul Eggert <eggert@twinsun.com>
59490 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
59491 Do not assume SA_SIGINFO behavior.
59492 Bug reported by Jim Meyering on NetBSD 1.5.2.
59494 2002-06-22 Jim Meyering <meyering@lucent.com>
59496 * m4/c-stack.m4: New file, from diffutils-2.8.2.
59497 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
59499 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
59500 now that configure.ac uses AC_GNU_SOURCE.
59501 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
59502 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
59504 Update to latest tools. Suggestions from Paul Eggert.
59505 * m4/stdbool.m4: New file, from diffutils-2.8.2.
59506 * m4/gnu-source.m4: Update from diffutils-2.8.2.
59507 * m4/fnmatch.m4: Likewise.
59508 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
59509 to AC_HEADER_STDBOOL
59511 2002-06-22 Jim Meyering <meyering@lucent.com>
59513 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
59514 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
59516 2002-06-22 Jim Meyering <meyering@lucent.com>
59518 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
59520 * lib/exitfail.c, exitfail.h: Likewise.
59521 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
59523 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
59525 (EXTRA_DIST): Add fnmatch_loop.c.
59526 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
59528 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
59529 * lib/fnmatch.c: Update from diffutils-2.8.2.
59530 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
59531 * lib/fnmatch.h: Remove file.
59533 2002-06-21 Jim Meyering <meyering@lucent.com>
59535 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
59536 * m4/mbrtowc.m4: Likewise.
59538 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
59539 * m4/mbswidth.m4: Reflect name change:
59540 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
59541 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
59543 * m4/lib-link.m4: Update from gettext-0.11.2.
59544 * m4/gettext.m4: Likewise.
59546 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
59547 From Alfred M. Szmidt.
59549 2002-06-18 Paul Eggert <eggert@twinsun.com>
59551 * lib/file-type.h: Report an error if neither S_ISREG nor
59552 S_IFREG is defined, instead of using a test specific to glibc
59553 2.2. This should be safe, since POSIX requires S_ISREG and
59554 Unix Version 7 had S_IFREG. We don't need to check for
59555 <sys/types.h> since we don't use any symbols that it defines.
59557 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
59559 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
59560 $@-t, so that each temporary file name is unique and valid in the first
59561 8 characters, for operation under DOS.
59563 2002-06-15 Paul Eggert <eggert@twinsun.com>
59565 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
59567 2002-06-15 Jim Meyering <meyering@lucent.com>
59569 Work even with DJGPP 2.03, which lacks support for symlinks.
59571 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
59573 * lib/lchown.c (S_ISLNK): Likewise.
59575 2002-06-15 Jim Meyering <meyering@lucent.com>
59577 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
59578 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
59579 have been included before this file.
59581 2002-06-14 Jim Meyering <meyering@lucent.com>
59583 * lib/file-type.h: Use the version from diffutils-2.8.2.
59584 * lib/file-type.c: Likewise.
59586 2002-06-07 Jim Meyering <meyering@lucent.com>
59588 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
59589 They're needed at least for NetBSD 1.5.2.
59590 ($statxfs_includes): Include those same headers.
59591 ($statxfs_includes): Include sys/vfs.h if available.
59592 ($statxfs_includes): Likewise for sys/statvfs.h.
59593 Check for the following members in both structs statfs and statvfs:
59594 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
59596 2002-06-01 Jim Meyering <meyering@lucent.com>
59598 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
59599 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
59601 2002-05-28 Jim Meyering <meyering@lucent.com>
59603 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
59604 Reported by Volker Borchert.
59606 2002-05-27 Jim Meyering <meyering@lucent.com>
59608 Fix a problem seen only on nonconforming systems whereby ls.c's
59609 use of localtime, and then of gettimeofday would cause trouble:
59610 the localtime call used to initialize rpl_gettimeofday's save
59611 mechanism would clobber ls's current local time information so
59612 that in any long listing the first file would always be listed
59613 with date 1970-01-01. Analysis by Volker Borchert.
59615 * lib/gettimeofday.c (localtime): Undefine.
59616 (rpl_localtime): New function.
59618 2002-05-27 Jim Meyering <meyering@lucent.com>
59620 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
59623 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
59624 use the replacement function; it wouldn't resolve at link time.
59625 Reported by Volker Borchert.
59627 2002-05-22 Jim Meyering <meyering@lucent.com>
59629 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
59631 * lib/file-type.h: New file.
59632 * lib/file-type.c (file_type): New file/function. Extracted from
59635 2002-04-30 Jim Meyering <meyering@lucent.com>
59637 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
59639 2002-04-29 Paul Eggert <eggert@twinsun.com>
59641 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
59643 2002-04-29 Paul Eggert <eggert@twinsun.com>
59645 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
59646 Do not check for alloca.h (no longer used) or stdbool.h (was never
59647 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
59649 2002-04-29 Paul Eggert <eggert@twinsun.com>
59651 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
59653 2002-04-29 Jim Meyering <meyering@lucent.com>
59655 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
59656 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
59657 Use AC_FUNC_STRNLEN here instead.
59659 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
59660 With autoconf-2.53a, it's part of AC_PROG_CC.
59662 2002-04-28 Paul Eggert <eggert@twinsun.com>
59664 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
59665 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
59667 2002-04-28 Paul Eggert <eggert@twinsun.com>
59669 * lib/sig2str.h, lib/sig2str.c: New files.
59670 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
59672 2002-04-28 Paul Eggert <eggert@twinsun.com>
59674 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
59675 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
59676 of 127, since 64 is the largest conceivable number for ancient
59678 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
59680 2002-04-28 Jim Meyering <meyering@lucent.com>
59682 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
59684 2002-04-24 Jim Meyering <meyering@lucent.com>
59686 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
59687 (jm_PREREQ): Use it.
59689 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
59690 mach/mach.h fcntl.h.
59691 Check for this function: setlocale.
59693 2002-04-24 Jim Meyering <meyering@lucent.com>
59695 * lib/gettext.h: New file, from Gettext.
59696 * lib/Makefile.am (INCLUDES): Remove -I../intl.
59697 (libfetish_a_SOURCES): Add gettext.h.
59699 2002-04-16 Jim Meyering <meyering@lucent.com>
59701 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
59702 ut_pid, ut_id, ut_exit.
59704 2002-04-16 Jim Meyering <meyering@lucent.com>
59706 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
59707 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
59708 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
59710 2002-04-12 Jim Meyering <meyering@lucent.com>
59712 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
59713 now-bogus check for f_type in sys/mount.h. Instead, just test for the
59714 existence of the getmntinfo function. Needed for Darwin 5.3.
59716 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
59717 This is necessary at least on Darwin 5.3.
59719 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
59720 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
59721 strnlen.o in the library, and that makes some versions of ranlib
59724 2002-04-12 Jim Meyering <meyering@lucent.com>
59726 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
59728 2002-04-09 Jim Meyering <meyering@lucent.com>
59730 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
59731 to be more precise. Rather than saying we're checking whether the
59732 function `works', say what we're testing.
59733 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
59734 Reported by Bruno Haible.
59736 2002-03-10 Jim Meyering <meyering@lucent.com>
59738 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
59739 Suggestion from Santiago Vila.
59741 2002-03-08 Jim Meyering <meyering@lucent.com>
59743 * lib/rename.c: Mention that this wrapper is needed also on
59744 mips-dec-ultrix4.4 systems.
59746 2002-03-02 Jim Meyering <meyering@lucent.com>
59748 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
59749 not HAVE_CLOCK_SETTIME.
59751 2002-02-27 Paul Eggert <eggert@twinsun.com>
59753 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
59754 Check for clock_settime.
59756 2002-02-27 Paul Eggert <eggert@twinsun.com>
59758 * lib/nanosleep.h: Rename to....
59759 * lib/timespec.h: New name for nanosleep.h. All uses changed.
59761 * lib/gettime.c: New file.
59762 * lib/settime.c: New file.
59763 * lib/stime.c: Remove.
59765 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
59766 timespec.h. Remove nanosleep.h.
59768 2002-02-25 Paul Eggert <eggert@twinsun.com>
59770 * m4/acl.m4: New file.
59771 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
59772 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
59774 2002-02-25 Paul Eggert <eggert@twinsun.com>
59776 * lib/acl.c, lib/acl.h: New files.
59777 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
59779 2002-02-24 Jim Meyering <meyering@lucent.com>
59781 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
59782 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
59783 cause trouble. Reported by Nelson Beebe.
59785 2002-02-23 Paul Eggert <eggert@twinsun.com>
59787 * lib/path-concat.c (xpath_concat): Reorder code to pacify
59788 compilers that don't know that xalloc_die never returns.
59790 2002-02-20 Jim Meyering <meyering@lucent.com>
59792 * lib/getdate.c: Regenerate using bison-1.33.
59794 2002-02-17 Jim Meyering <meyering@lucent.com>
59796 * config/config.guess (main): Don't use `head -1'; it's no longer
59797 portable. Use `sed 1q' instead.
59799 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
59801 * m4/codeset.m4: Upgrade to gettext-0.11.
59802 * m4/gettext.m4: Upgrade to gettext-0.11.
59803 * m4/glibc21.m4: Upgrade to gettext-0.11.
59804 * m4/iconv.m4: Upgrade to gettext-0.11.
59805 * m4/isc-posix.m4: Upgrade to gettext-0.11.
59806 * m4/lcmessage.m4: Upgrade to gettext-0.11.
59807 * m4/lib-ld.m4: New file, from gettext-0.11.
59808 * m4/lib-link.m4: New file, from gettext-0.11.
59809 * m4/lib-prefix.m4: New file, from gettext-0.11.
59810 * m4/progtest.m4: Upgrade to gettext-0.11.
59812 2002-02-15 Paul Eggert <eggert@twinsun.com>
59814 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
59815 (jm_PREREQ): Use it.
59817 2002-02-15 Paul Eggert <eggert@twinsun.com>
59819 * lib/posixver.c, lib/posixver.h: New files.
59820 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
59822 2002-02-02 Paul Eggert <eggert@twinsun.com>
59823 Bruno Haible <bruno@clisp.org>
59825 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
59826 (fwrite_success_callback): New declaration.
59827 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
59828 print_unicode_char. Call failure callback instead of error.
59829 (fwrite_success_callback): New function.
59830 (exit_failure_callback): New function.
59831 (fallback_failure_callback): New function.
59832 (print_unicode_char): Call unicode_to_mb.
59834 2002-01-26 Jim Meyering <meyering@lucent.com>
59836 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
59837 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
59839 2002-01-26 Jim Meyering <meyering@lucent.com>
59841 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
59843 2002-01-22 Paul Eggert <eggert@twinsun.com>
59845 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
59847 2002-01-22 Jim Meyering <meyering@lucent.com>
59849 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
59850 Otherwise, some versions of automake would omit the rule that makes
59851 Makefile from Makefile.in.
59853 2002-01-21 Paul Eggert <eggert@twinsun.com>
59855 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
59856 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
59857 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
59858 (memcoll): Set errno to zero if there is no error.
59860 * lib/quotearg.c (quotearg_buffer_restyled):
59861 Fix bug with quoting buffers containing NUL when backslashing escapes.
59862 This bug was exposed by the other changes in this patch.
59863 (quotearg_n_options): New arg ARGSIZE.
59864 All callers changed.
59865 (quoting_options_from_style): New function.
59866 (quotearg_n_style): Use it.
59867 (quotearg_n_style_mem): New function.
59869 * lib/quotearg.h (quotearg_n_style_mem): New function.
59871 2002-01-19 Jim Meyering <meyering@lucent.com>
59873 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
59874 Remove useless quotes: DF_PROG="df".
59875 * m4/strnlen.m4: New file.
59877 2002-01-16 Paul Eggert <eggert@twinsun.com>
59879 * lib/backupfile.c (ISDIGIT): Comment fix.
59880 * lib/getdate.y (ISDIGIT): Likewise.
59881 * lib/posixtm.c (ISDIGIT, year): Likewise.
59882 * lib/strverscmp.c (ISDIGIT): Likewise.
59883 * lib/userspec.c (ISDIGIT): Likewise.
59885 2002-01-16 Jim Meyering <meyering@lucent.com>
59887 * lib/getdate.y: Add three semicolons, each just before a closing
59888 brace. Bison (as of version 1.31) no longer papers over that mistake.
59890 2002-01-05 Jim Meyering <meyering@lucent.com>
59892 * lib/version-etc.c (version_etc_copyright): Update copyright year.
59894 2001-12-19 Paul Eggert <eggert@twinsun.com>
59896 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
59897 not silently exit merely because the output buffer happens to
59898 have nothing pending.
59900 2001-12-18 Paul Eggert <eggert@twinsun.com>
59902 See the big note in ../ChangeLog.
59903 * lib/human.c (suffixes): Prefer K to k for 1024.
59904 (generate_suffix_backwards): New function.
59905 (human_readable_inexact): Use it.
59906 * lib/xstrtol.c (__xstrtol): If there is no number but there
59907 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
59908 Accept 'K' as well as 'k'.
59910 2001-12-15 Jim Meyering <meyering@lucent.com>
59912 * lib/regex.h (__restrict_arr): Update from libc.
59914 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
59915 as `remote' if the name starts with `//'. Suggested by Michael Stone.
59918 2001-12-14 Jim Meyering <meyering@lucent.com>
59920 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
59921 Suggestion from Bruno Haible.
59923 2001-12-10 Jim Meyering <meyering@lucent.com>
59925 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
59926 xrealloc, Instead, include "xalloc.h".
59927 (initbuffer): Don't cast xmalloc return value to char*.
59928 (readline): Reword comment.
59929 Don't cast xrealloc return value to char*
59930 Return NULL, not 0.
59932 2001-12-09 Jim Meyering <meyering@lucent.com>
59934 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
59935 about `signed and unsigned type in conditional expression'.
59936 * lib/posixtm.c (posix_time_parse): Likewise.
59938 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
59940 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
59941 to avoid a pedantic warning.
59943 * lib/getstr.c: Don't include assert.h.
59944 (getstr): Remove warning-evoking assertions.
59945 Return -1 if offset parameter is out of bounds.
59946 Change the type of a local from int to size_t.
59948 * lib/strftime.c (my_strftime_localtime_r): Include this function
59949 definition in the `#if ! HAVE_TM_GMTOFF' block.
59951 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
59952 Include xalloc.h instead.
59954 2001-12-02 Jim Meyering <meyering@lucent.com>
59956 * lib/tempname.c: Don't declare getenv, thus reverting the change of
59957 2001-11-18. It's no longer necessary, now that stdlib.h is always
59960 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
59961 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
59963 2001-11-30 Akim Demaille <akim@epita.fr>
59965 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
59966 before being defined.
59968 2001-11-27 Paul Eggert <eggert@twinsun.com>
59970 * lib/quotearg.h (quotearg_n, quotearg_n_style):
59971 First arg is int, not unsigned.
59972 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
59973 (SIZE_MAX, UINT_MAX): New macros.
59974 (quotearg_n_options): Abort if N is negative.
59975 Avoid overflow check on hosts where size_t is 64 bits and int
59976 is 32 bits, as overflow is impossible there.
59977 Fix off-by-one typo that caused unnecessary reallocation.
59979 2001-11-27 Jim Meyering <meyering@lucent.com>
59981 * lib/tempname.c: Merge with version from libc.
59982 * lib/regex.c: Likewise.
59984 * lib/tempname.c: Include stdlib.h unconditionally. On some old
59985 systems for which STDC_HEADERS is 0, it was not included, resulting in
59986 a warning about an integer-to-pointer conversion problem with getenv.
59987 Reported by Volker Borchert.
59989 2001-11-26 Jim Meyering <meyering@lucent.com>
59991 * lib/gtod.h: Remove file.
59992 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
59993 * lib/gettimeofday.c: Don't include gtod.h.
59994 (GTOD_init): Remove function.
59995 (rpl_gettimeofday): Do its job here instead, rather than aborting.
59996 Suggestion from Volker Borchert.
59998 2001-11-23 Jim Meyering <meyering@lucent.com>
60000 * lib/hash.h (struct hash_table): Don't define here. Merely declare
60002 * lib/hash.c (struct hash_table): Define it here instead.
60004 2001-11-22 Jim Meyering <meyering@lucent.com>
60006 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
60008 2001-11-20 Jim Meyering <meyering@lucent.com>
60010 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
60011 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
60013 2001-11-19 Jim Meyering <meyering@lucent.com>
60015 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
60016 directory. Use "conftestXXXXXX" as the template.
60017 Suggestion from Paul Eggert.
60019 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
60020 immediately, so the test doesn't mistakenly hit the max-open-files
60023 2001-11-18 Paul Eggert <eggert@twinsun.com>
60025 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
60026 (TEMPORARIES): New macro.
60027 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
60028 removes an artificial limitation (e.g. HP-UX 10.20, where
60031 2001-11-18 Jim Meyering <meyering@lucent.com>
60033 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
60035 2001-11-18 Jim Meyering <meyering@lucent.com>
60037 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
60040 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
60041 files will be created before anything else.
60043 2001-11-17 Paul Eggert <eggert@twinsun.com>
60045 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
60046 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
60048 2001-11-17 Jim Meyering <meyering@lucent.com>
60050 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
60051 Prompted by a report from Bob Proulx.
60053 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
60054 Instead, require UTILS_FUNC_MKSTEMP.
60056 2001-11-17 Jim Meyering <meyering@lucent.com>
60058 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
60059 Now, that's done as part of AC_FUNC_STRTOD.
60061 2001-11-17 Jim Meyering <meyering@lucent.com>
60063 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
60064 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
60065 rather than group writable. Patch by Juan F. Codagnone.
60067 * lib/readtokens.c: Remove explicit declarations of xmalloc and
60068 xrealloc, Instead, include "xalloc.h".
60070 * lib/mountlist.c: Include unlocked-io.h after all system headers.
60071 Remove explicit declarations of xmalloc, xrealloc,
60072 and xstrdup. Instead, include "xalloc.h".
60074 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
60076 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
60078 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
60080 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
60081 Reported by Padraig Brady.
60083 * lib/mkstemp.c: #undef mkstemp.
60085 (rpl_mkstemp): Rename from mkstemp.
60088 2001-11-16 Jim Meyering <meyering@lucent.com>
60090 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
60091 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
60092 determine the amount of total physical memory, use pstat_getstatic.
60093 HPUX-11 doesn't define _SC_PHYS_PAGES.
60094 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
60095 If sysconf couldn't be used to determine the amount of available
60096 physical memory, use both pstat_getstatic and pstat_getdynamic.
60097 Based on a patch from Bob Proulx.
60099 2001-11-10 Jim Meyering <meyering@lucent.com>
60101 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
60102 (jm_PREREQ): Use it.
60104 2001-11-09 Jim Meyering <meyering@lucent.com>
60106 * m4/jm-macros.m4: Require autoconf-2.52f.
60107 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
60108 Use these AC_-prefixed names, not the AM_-prefixed ones.
60110 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
60112 2001-11-05 Jim Meyering <meyering@lucent.com>
60114 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
60116 2001-11-04 Jim Meyering <meyering@lucent.com>
60118 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
60121 2001-11-03 Jim Meyering <meyering@lucent.com>
60123 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
60126 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
60127 know the name of the variable in the macro definition.
60129 2001-11-03 Jim Meyering <meyering@lucent.com>
60131 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
60132 in argmatch_to_argument call.
60134 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
60137 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
60138 e.g., a fault due to an attempt to free a NULL pointer.
60140 2001-11-01 Jim Meyering <meyering@lucent.com>
60142 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
60143 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
60145 2001-11-01 Jim Meyering <meyering@lucent.com>
60147 * lib/dirfd.c, lib/dirfd.h: New files.
60148 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
60150 * lib/hash.c (hash_print) [TESTING]: Clean up.
60152 2001-10-22 Paul Eggert <eggert@twinsun.com>
60154 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
60155 to avoid a warning if -Wall.
60157 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
60160 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
60161 (per RMS's instructions, this is now the canonical source)
60162 * lgpl/, gpl/: New directories.
60164 2001-10-21 Paul Eggert <eggert@twinsun.com>
60166 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
60168 2001-10-21 Jim Meyering <meyering@lucent.com>
60170 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
60171 this code would end up calling gettext even in packages built
60172 with --disable-nls.
60173 * lib/getopt.c (_): Likewise.
60174 * lib/regex.c (_): Likewise.
60176 2001-10-20 Paul Eggert <eggert@twinsun.com>
60178 * m4/error.m4 (jm_PREREQ_ERROR):
60179 Do not invoke AC_CHECK_FUNCS with strerror_r, as
60180 AC_FUNC_STRERROR_R does that.
60181 Check for strerror declaration.
60183 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
60184 are supposed to have them these days.
60185 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
60186 Merge changes from latest Autoconf CVS.
60187 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
60188 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
60189 POSIX decided to standardize on the int flavor of strerror_r.
60191 2001-10-20 Paul Eggert <eggert@twinsun.com>
60193 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
60194 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
60195 Use strerror_r that is only a macro, even if it is not a function.
60196 (strerror): Check for HAVE_DECL_STRERROR before declaring.
60197 (private_strerror): Use prototypes, not old-style function definition.
60198 (print_errno_message): New function.
60199 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
60200 char*-flavored one.
60201 (error_tail, error, error_at_line): Use it.
60203 2001-10-11 Jim Meyering <meyering@lucent.com>
60205 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
60206 and quote_n (1, ... to avoid clobbering a buffer.
60208 2001-10-05 Jim Meyering <meyering@lucent.com>
60210 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
60212 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
60213 * lib/hash-pjw.h: New file.
60215 2001-09-30 Jim Meyering <meyering@lucent.com>
60217 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
60218 `struct fsstat' has the `f_fstypename' member.
60219 Use that to define FS_TYPE, which is now used to make
60220 the getfsstat link test tighter.
60222 2001-09-30 Jim Meyering <meyering@lucent.com>
60224 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
60225 Include <sys/ucred.h>, for Apple Darwin.
60226 Include sys/mount.h and sys/fs_types.h only if available.
60228 (read_filesystem_list): Use FS_TYPE.
60230 2001-09-29 Paul Eggert <eggert@twinsun.com>
60232 * lib/exclude.c (excluded_filename): 0 -> false, since it's
60235 2001-09-29 Jim Meyering <meyering@lucent.com>
60237 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
60238 [one-argument getmntent function]): Include stdio.h before mntent.h.
60239 SunOS 4.1.x needs it for the declaration of `FILE'.
60240 Patch by Volker Borchert.
60242 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
60243 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
60244 sys/fs_types.h, and make the link-test for getfsstat guard #include
60245 directives with appropriate #if HAVE_*_H tests so that we can
60246 detect getfsstat on Apple Darwin1.3.7 systems.
60247 Reported by Nelson Beebe.
60248 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
60250 2001-09-28 Paul Eggert <eggert@twinsun.com>
60252 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
60253 #defines strtoimax. Also treat the other strto* functions
60256 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
60257 Check for strtoul and strtoumax,
60258 as those declarations are made even in the signed case.
60259 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
60260 Likewise, for strtol and strtoimax.
60262 2001-09-28 Paul Eggert <eggert@twinsun.com>
60264 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
60265 #defines strtoimax. Also treat the other strto* functions
60268 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
60269 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
60270 (strtoimax, strtoumax): Do not declare if already defined as a macro.
60272 2001-09-26 Jim Meyering <meyering@lucent.com>
60274 Most macros in unlocked-io.h had the wrong number of arguments.
60275 * lib/gen-uio: New script.
60276 (USE_UNLOCKED_IO): Define to 1 if not already defined.
60277 * lib/unlocked-io.hin: Remove file.
60278 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
60279 rather than trying to embed it here.
60280 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
60281 Reported by Padraig Brady.
60283 2001-09-25 Volker Borchert <bt@teknon.de>
60285 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
60288 2001-09-24 Jim Meyering <meyering@lucent.com>
60290 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
60292 2001-09-23 Jim Meyering <meyering@lucent.com>
60294 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
60295 instead of the mere test for existence of mntent.h. The latter
60296 would get a false-positive on AIX 3.4 systems.
60297 In the outer getmntent if-block, don't die if neither of the getmntent
60298 tests succeeds. Instead, just fall through and continue with the
60301 2001-09-23 Jim Meyering <meyering@lucent.com>
60303 * lib/mountlist.c: Remove useless parentheses in #if directives.
60304 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
60305 the deprecated MOUNTED symbol is no longer defined in mntent.h.
60307 2001-09-22 Jim Meyering <meyering@lucent.com>
60309 * m4/gettext.m4: New file. From gettext.
60310 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
60311 * m4/progtest.m4: Likewise
60312 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
60313 * m4/glibc21.m4: Likewise.
60315 * m4/libintl.m4: Remove. No longer used.
60317 2001-09-22 Jim Meyering <meyering@lucent.com>
60319 * lib/localcharset.c: Update from latest gettext.
60320 * lib/config.charset: Likewise.
60322 2001-09-20 Jim Meyering <meyering@lucent.com>
60324 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
60326 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
60329 2001-09-20 Jim Meyering <meyering@lucent.com>
60331 * lib/xstrtol.c (strtoimax): Guard declaration with
60332 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
60333 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
60334 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
60335 (strtoumax): Likewise, for completeness (it wasn't necessary).
60337 2001-09-17 Paul Eggert <eggert@twinsun.com>
60339 * lib/strtoimax.c (HAVE_LONG_LONG):
60340 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
60341 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
60342 to work around bug in IBM C compiler.
60344 2001-09-17 Jim Meyering <meyering@lucent.com>
60346 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
60347 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
60348 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
60349 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
60350 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
60351 whenever the right hand side need not be expanded by the shell.
60353 2001-09-16 Paul Eggert <eggert@twinsun.com>
60355 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
60356 library. It's not correct, as some older glibcs are buggy.
60357 fnmatch wasn't fixed until glibc 2.2.
60359 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
60360 special shell magic here.
60362 2001-09-16 Jim Meyering <meyering@lucent.com>
60364 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
60365 * m4/jm-macros.m4: Require it.
60367 2001-09-16 Jim Meyering <meyering@lucent.com>
60369 * lib/mkdir.c: New file.
60371 2001-09-15 Jim Meyering <meyering@lucent.com>
60373 * m4/jm-macros.m4: Check for help2man.
60375 2001-09-11 Jim Meyering <meyering@lucent.com>
60377 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
60378 The body, by Paul Eggert, was moved here from configure.in.
60379 * m4/jm-macros.m4: Require UTILS_HOST_OS.
60381 2001-09-04 Paul Eggert <eggert@twinsun.com>
60383 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
60384 (jm_PREREQ): Use it.
60386 2001-09-04 Paul Eggert <eggert@twinsun.com>
60388 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
60389 Use ssize_t, not int, to store result of readlink.
60390 Check for ssize_t overflow as well as size_t overflow,
60391 as POSIX says the result of readlink is implementation-defined
60392 when ssize_t overflows.
60393 Remove unnecessary cast to char*.
60394 Use free+malloc instead of realloc, as the storage doesn't need
60395 to be preserved and it's clearer and can be more efficient that way.
60396 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
60397 * lib/xreadlink.h (xreadlink): Update prototype.
60399 2001-09-04 Paul Eggert <eggert@twinsun.com>
60401 * lib/xgetcwd.c: Revert some of the previous change; intead,
60402 fix the HAVE_GETCWD_NULL code to behave more like the
60403 !HAVE_GETCWD_NULL code used to.
60405 Include "xalloc.h".
60406 (xgetcwd): Do not return NULL when memory is exhausted; instead,
60409 2001-09-03 Paul Eggert <eggert@twinsun.com>
60411 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
60412 sys/param.h, as pathmax.h includes them.
60414 2001-09-03 Paul Eggert <eggert@twinsun.com>
60416 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
60417 (jm_PREREQ_XGETCWD): New macro.
60419 * m4/getcwd.m4: New file.
60421 2001-09-03 Paul Eggert <eggert@twinsun.com>
60423 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
60424 like the HAVE_GETCWD_NULL code.
60425 Include pathmax.h if not HAVE_GETCWD.
60426 Do not include xalloc.h.
60427 (INITIAL_BUFFER_SIZE): New symbol.
60428 Do not use xmalloc / xrealloc, since the caller is responsible for
60429 handling errors. Preserve errno around `free' during failure.
60430 Do not overrun buffer when using getwd.
60432 2001-09-03 Paul Eggert <eggert@twinsun.com>
60434 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
60435 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
60438 2001-09-03 Paul Eggert <eggert@twinsun.com>
60440 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
60441 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
60442 spotted by Jim Meyering.
60444 2001-09-03 Jim Meyering <meyering@lucent.com>
60446 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
60449 2001-09-02 Jim Meyering <meyering@lucent.com>
60451 * lib/error.c: Update from GNU libc.
60453 2001-09-01 Jim Meyering <meyering@lucent.com>
60455 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
60458 2001-09-01 Jim Meyering <meyering@lucent.com>
60460 * lib/xreadlink.c: New file.
60461 * lib/xreadlink.h: New file.
60462 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
60465 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
60466 doesn't conflict with sparc Solaris 7's definition in
60467 /usr/include/sys/int_types.h.
60469 * lib/exclude.c: Use `""', not `<>' to #include non-system header
60471 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
60472 and strncasecmp as r-values. Unixware didn't have declarations.
60474 2001-08-31 Paul Eggert <eggert@twinsun.com>
60476 * lib/xstrtol.h: Add copyright notice.
60477 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
60478 LONGINT_INVALID_SUFFIX_CHAR.
60480 2001-08-31 Paul Eggert <eggert@twinsun.com>
60482 * lib/xstrtol.c (strtoimax): New decl.
60484 2001-08-31 Paul Eggert <eggert@twinsun.com>
60486 * lib/xgetcwd.c: Don't include pathmax.h.
60487 Include stdlib.h and unistd.h if available.
60489 (xmalloc, xstrdup, free): Remove decls.
60490 (xgetcwd): Don't assume sizes fit in unsigned.
60491 Check for overflow when computing sizes.
60492 Simplify reallocation code.
60494 2001-08-31 Paul Eggert <eggert@twinsun.com>
60496 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
60497 a directory's st_size can have an arbitrary value, so the old
60498 usage could waste an arbitrary amount of memory. All uses
60500 * lib/savedir.h: Update prototype.
60502 2001-08-31 Paul Eggert <eggert@twinsun.com>
60504 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
60506 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
60509 Also, make the following further changes to make this file's
60510 configuration more similar to that of strtol.c:
60511 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
60512 (strtoumax, uintmax_t, strtoull, strtol): Remove.
60513 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
60514 (strtoimax): Renamed from strtoumax. All uses of unsigned values
60515 changed to signed values.
60517 And make the following changes as well:
60518 Fix copyright notice, as 1999 was missing.
60519 (verify): New macro.
60520 (strtoimax): Check sizes at compile-time, not run-time.
60521 Prefer strtol to strtoll if both work.
60522 (main): Remove; it was not that useful and was a pain to maintain.
60524 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
60526 2001-08-31 Jim Meyering <meyering@lucent.com>
60528 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
60529 Use an initial, malloc'd, buffer of length 128 rather than
60530 a statically allocated one of length 1024.
60532 2001-08-30 Paul Eggert <eggert@twinsun.com>
60534 Simplify code, partly by assuming autoconf 2.52 semantics.
60536 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
60538 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
60539 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
60541 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
60542 Move AC_REQUIRE to next-to-top level, to avoid confusion.
60543 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
60544 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
60545 jm_AC_HEADER_INTTYPES_H.
60546 * m4/jm-macros.m4 (jm_MACROS): Likewise.
60548 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
60550 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
60551 Quote first arg of AC_DEFUN.
60552 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
60553 since they are needed to parse the include file even if we need
60554 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
60555 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
60556 but with opposite signedness.
60558 2001-08-30 Paul Eggert <eggert@twinsun.com>
60560 Merge 'exclude' changes from tar 1.13.22.
60561 This fixes one or two unlikely storage allocation overflow bugs,
60562 but doesn't change user-visible behavior otherwise.
60564 2001-08-30 Paul Eggert <eggert@twinsun.com>
60566 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
60567 (jm_PREREQ_EXCLUDE): New macro.
60569 2001-08-30 Paul Eggert <eggert@twinsun.com>
60571 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
60574 2001-08-30 Paul Eggert <eggert@twinsun.com>
60576 * lib/hash.c: Remove '2001' from copyright notice.
60578 2001-08-30 Paul Eggert <eggert@twinsun.com>
60580 * lib/full-write.h: New file.
60581 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
60582 * lib/full-write.c: Correct credits, as cccp.c no longer
60583 exists and anyway it was so heavily changed from the old cccp
60584 code as to be unrecognizable. Include full-write.h.
60585 (full_write) Return size_t, with short writes meaning failure.
60586 All callers changed. This fixes a bug with large buffers
60588 * lib/utime.c: Include full-write.h.
60590 2001-08-30 Paul Eggert <eggert@twinsun.com>
60592 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
60593 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
60594 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
60595 Include if available.
60596 (<xalloc.h>): Include
60597 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
60598 (verify): New macro. Use it to verify that EXCLUDE macros do not
60599 collide with FNM macros.
60600 (struct patopts): New struct.
60601 (struct exclude): Use it, as exclude patterns now come with options.
60602 (new_exclude): Support above changes.
60603 (new_exclude, add_exclude_file):
60604 Initial size must now be a power of two to simplify overflow checking.
60605 (free_exclude, fnmatch_no_wildcards): New function.
60606 (excluded_filename): No longer requires options arg, as the options
60607 are determined by add_exclude. Now returns bool, not int.
60608 (excluded_filename, add_exclude):
60609 Add support for the fancy new exclusion options.
60610 (add_exclude, add_exclude_file): Now takes int options arg.
60611 Check for arithmetic overflow when computing sizes.
60612 (add_exclude_file): xrealloc might modify errno, so don't
60613 realloc until after errno might be used.
60615 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
60617 (free_exclude): New decl.
60618 (add_exclude, add_exclude_file): Now takes int options arg.
60619 (excluded_filename): No longer requires options arg, as the options
60620 are determined by add_exclude. Now returns bool, not int.
60622 2001-08-30 Paul Eggert <eggert@twinsun.com>
60624 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
60626 2001-08-27 Jim Meyering <meyering@lucent.com>
60628 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
60630 * lib/version-etc.c (N_): Remove definition.
60631 Revert most of last change.
60632 Instead, simply don't mark the `Copyright...' string for translation.
60633 Based on advice from Paul Eggert.
60635 * lib/strtoxmax.c: Tweak comment.
60637 2001-08-26 Jim Meyering <meyering@lucent.com>
60639 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
60641 * m4/xstrtoimax.m4: New file.
60642 * m4/xstrtoumax.m4: Add comments explaining why we
60643 AC_REPLACE_FUNCS(strtol).
60645 2001-08-26 Jim Meyering <meyering@lucent.com>
60647 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
60648 of copyright with `%s' so translators don't get an untranslated
60650 (COPYRIGHT_YEAR): Define.
60651 (version_etc): Use fprintf rather than fputs.
60652 Suggestion from Ulrich Drepper.
60654 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
60656 * lib/strtoll.c: New file, from GNU libc.
60657 * lib/xstrtoimax.c: New file.
60659 * lib/xstrtol.h: Add xstrtoimax.
60660 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
60661 * lib/strtoimax.c: New file. Likewise, but first define
60664 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
60666 * lib/strtoxmax.c: ... then renamed to this.
60668 2001-08-18 Paul Eggert <eggert@twinsun.com>
60670 * m4/inttypes.m4: Add AC_PREREQ(2.13).
60671 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
60672 (jm_AC_TYPE_INTMAX_T): New macro.
60673 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
60675 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
60677 * m4/longlong.m4: Renamed from ulonglong.m4.
60678 * m4/inttypes.m4: Renamed from inttypes_h.m4.
60679 * m4/uintmax_t.m4: Removed.
60681 2001-08-13 Paul Eggert <eggert@twinsun.com>
60683 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
60684 Port to Solaris 8, where 'sed' requires a space after the 'r'
60685 command, and where sh dislikes "$/". Clean up the spacing a bit.
60686 Redirect output to $tmp just once.
60688 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
60690 * lib/addext.c (<errno.h>): Include.
60691 (errno): Declare if not defined.
60692 (addext): Work correctly when pathconf returns -1 and leaves
60693 errno alone because there is no limit. Also, work even if
60694 pathconf returns a value greater than SIZE_MAX.
60696 2001-08-12 Jim Meyering <meyering@lucent.com>
60698 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
60699 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
60700 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
60701 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
60702 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
60703 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
60704 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
60705 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
60706 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
60707 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
60708 utime.m4, utimes.m4, xstrtoumax.m4:
60709 Quote the first argument in each use of AC_DEFUN.
60711 2001-08-12 Jim Meyering <meyering@lucent.com>
60713 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
60714 Simply `return getcwd (NULL, 0);'.
60715 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
60716 Use 1300 as initial value for length, not PATH_MAX.
60718 * lib/pathmax.h: Clean up cpp syntax.
60720 2001-08-12 Jim Meyering <meyering@lucent.com>
60722 * lib/gettimeofday.c: New file.
60723 * lib/gtod.h: New file.
60724 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
60726 2001-08-05 Jim Meyering <meyering@lucent.com>
60728 * m4/jm-macros.m4: Require autoconf-2.52.
60730 2001-08-04 Jim Meyering <meyering@lucent.com>
60732 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
60733 stmt, to get in sync with glibc.
60735 2001-08-03 Paul Eggert <eggert@twinsun.com>
60737 The following changes are from gettext 0.10.39 as maintained by
60740 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
60741 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
60742 with inverted sense. All uses changed.
60744 * lib/mbswidth.c: Don't include <limits.h>.
60745 Include <stdlib.h> and <string.h> unconditionally.
60746 (iswcntrl, mbsinit, ISCNTRL): New macros.
60747 (mbsnwidth): Use K&R style function declarations.
60748 Don't bother checking for MB_LEN_MAX == 1, since the compiler
60749 can optimize it when MB_CUR_MAX == 1.
60750 The width of control characters is zero, not 1.
60752 2001-08-03 Paul Eggert <eggert@twinsun.com>
60754 The following changes are from gettext 0.10.39 as maintained by
60755 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
60757 * m4/codeset.m4: Upgrade to serial AM1.
60758 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
60759 all uses changed. Quote first arg of AC_DEFUN.
60760 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
60762 * m4/iconv.m4: Upgrade to serial AM2.
60763 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
60764 Add --with-libconv-prefix.
60765 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
60766 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
60767 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
60768 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
60769 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
60771 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
60772 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
60773 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
60774 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
60775 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
60776 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
60777 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
60778 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
60779 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
60781 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
60784 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
60785 not the default value.
60787 2001-06-25 Bruno Haible <haible@clisp.cons.org>
60788 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
60789 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
60790 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
60791 Also check for iswcntrl, used for wcwidth fallback.
60792 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
60795 2001-08-03 Jim Meyering <meyering@lucent.com>
60797 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
60798 as it was in the original. Reported by Paul Eggert.
60800 2001-07-16 Jim Meyering <meyering@lucent.com>
60802 * m4/gettimeofday.m4: New file.
60803 Prompted by a report from Bernhard Baehr.
60805 2001-07-15 Jim Meyering <meyering@lucent.com>
60807 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
60808 stuff. Now it's in ../Makefile.cfg.
60810 2001-07-15 Jim Meyering <meyering@lucent.com>
60812 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
60813 (BUILT_SOURCES): Add unlocked-io.h.
60814 (io_functions): Define.
60815 (unlocked-io.h): New rule.
60816 (DISTCLEANFILES): Add unlocked-io.h.
60817 (all-local): Depend on unlocked-io.h, to ensure it is created.
60819 * lib/unlocked-io.hin: New file
60821 * lib/regex.c: Update from glibc.
60823 2001-07-05 Jim Meyering <meyering@lucent.com>
60825 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
60827 (libfetish_a_SOURCES): Put all .h files here instead.
60828 Remove a thus-exposed (better checks in automake) duplicate and
60829 two unnecessary .h files.
60831 2001-07-04 Jim Meyering <meyering@lucent.com>
60833 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
60834 that generates jm-glibc-io.m4 so that it doesn't trigger any make
60837 2001-07-02 Jim Meyering <meyering@lucent.com>
60839 The following changes were prompted by suggestions from Bruno Haible.
60841 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
60843 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
60844 definition of EXTRA_DIST.
60845 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
60846 ensure that the generated file is created/updated whenever the list
60847 of $(unlocked_functions) is changed.
60848 (jm-glibc-io.m4): New rule.
60849 (unlocked-io.h): New rule -- currently unused.
60851 2001-06-24 Jim Meyering <meyering@lucent.com>
60853 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
60854 unmatched right bracket, rather than kludging it with an extra,
60855 falsely-matching quote in a comment. Patch by Akim Demaille.
60857 2001-06-11 Jim Meyering <meyering@lucent.com>
60859 * lib/regex.c: Update from GNU libc.
60861 2001-05-27 Jim Meyering <meyering@lucent.com>
60863 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
60864 Check for ut_type in struct utmp.
60866 2001-05-27 Jim Meyering <meyering@lucent.com>
60868 * lib/readutmp.h (UT_TYPE): Define.
60870 2001-05-24 Jim Meyering <meyering@lucent.com>
60872 * lib/argmatch.c: Include "quote.h".
60873 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
60874 quote function. Reported by Göran Uddeborg.
60876 2001-05-22 Jim Meyering <meyering@lucent.com>
60878 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
60879 now that we use the package-supplied version unconditionally.
60880 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
60882 2001-05-21 Jim Meyering <meyering@lucent.com>
60884 * m4/regex.m4: Change a couple backticks to single quotes to avoid
60885 shell syntax errors.
60887 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
60889 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
60891 2001-05-20 Paul Eggert <eggert@twinsun.com>
60893 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
60894 Don't bother to check library strftime, since
60895 we'll be using our own my_strftime function anyway.
60896 Define my_strftime instead of strftime.
60898 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
60900 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
60901 which is not yet declared.
60903 2001-05-15 Jim Meyering <meyering@lucent.com>
60905 * m4/regex.m4: Use proper quoting so brackets appear in the test
60907 Reported by, and with help from, Bruno Haible.
60909 2001-05-13 Jim Meyering <meyering@lucent.com>
60911 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
60914 2001-05-11 Paul Eggert <eggert@twinsun.com>
60916 dirname code cleanup. base_name now behaves more compatibly
60917 with POSIX basename when given file names that have trailing
60918 slashes, and similarly for dir_name. Add new primitives
60919 base_len and dir_len. Put the directory-name-related decls
60922 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
60923 * lib/backupfile.c (base_name): Likewise.
60924 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
60925 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
60926 * lib/makepath.c (strip_trailing_slashes): Likewise.
60927 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
60928 ISSLASH): Likewise.
60929 * lib/rename.c (strip_trailing_slashes): Likewise.
60930 * lib/same.c (base_name): Likewise.
60931 * lib/stripslash.c (ISSLASH): Likewise.
60933 * lib/addext.c: Include <dirname.h> after size_t is defined.
60934 * lib/backupfile.c: Likewise.
60936 * lib/addext.c (addext): Use base_len to trim redundant
60937 trailing slashes instead of doing it ourselves.
60938 But do not trim the last slash if it is not redundant.
60940 * lib/backupfile.c (find_backup_file_name,
60941 max_backup_version): Use base_len instead of rolling it ourselves.
60942 Handle the case of "" and (on DOS) "C:" correctly.
60944 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
60945 needed. Include <string.h>, <dirname.h>.
60946 (base_name): Allow file names ending in slashes, other than names
60947 that are all slashes. In this case, return the basename followed
60948 by the slashes. This is more general, and can be used in places
60949 where the original base_name purposely had an assertion failure.
60950 (base_len): New function.
60952 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
60953 Do not include <assert.h>; no longer needed.
60955 (memrchr): Remove decl.
60956 (dir_name_r): Remove.
60957 (dir_len): Renamed from dirlen. All callers changed.
60958 Rewrite in terms of base_name, for simplicity and consistency.
60959 (dir_name): Never return NULL. All callers changed.
60960 Do not include <stdlib.h> in test program; no longer needed.
60961 return 0; is fine for test program.
60963 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
60965 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
60967 * lib/path-concat.c (path_concat): Use base_len to compute
60968 base length, not strlen; this means we cannot rely on memcpy
60971 * lib/same.c (STREQ): Remove.
60972 (same_name): Handle the case where the basename ends in trailing '/'.
60974 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
60975 a slash was stripped. Do not strip the last slash after a
60976 file system prefix.
60978 2001-05-11 Paul Eggert <eggert@twinsun.com>
60980 * lib/Makefile.am (libfetish_a_SOURCES):
60981 Add strftime.c, since we now compile it on all hosts.
60983 * lib/strftime.c (my_strftime):
60984 Define to nstrftime if emacs, but only if my_strftime is not defined.
60985 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
60986 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
60987 Add one more extra argument: a nanoseconds value.
60990 (my_strftime function): Add %N format.
60991 (emacs_strftimeu): Renamed from emacs_strftime,
60992 with extra ut argument.
60994 2001-05-09 Paul Eggert <eggert@twinsun.com>
60996 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
60998 2001-04-21 Jim Meyering <meyering@lucent.com>
61000 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
61003 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
61005 * m4/ftruncate.m4: Check for chsize.
61006 Link with ftruncate.o unconditionally if ftruncate is missing.
61007 This was required when cross-compiling to i586-mingw32msvc.
61009 2001-04-08 Jim Meyering <meyering@lucent.com>
61011 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
61012 recomputed; that's necessary when the offset spans a DST transition.
61013 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
61015 2001-04-02 Jim Meyering <meyering@lucent.com>
61017 * lib/regex.h, regex.c: Update from GNU libc.
61019 2001-03-24 Jim Meyering <meyering@lucent.com>
61021 * m4/jm-macros.m4: Require autoconf-2.49d.
61023 2001-03-20 Bruno Haible <haible@clisp.cons.org>
61025 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
61027 2001-03-19 Paul Eggert <eggert@twinsun.com>
61029 * lib/version-etc.c (version_etc_copyright): Update to 2001.
61031 2001-03-17 Jim Meyering <meyering@lucent.com>
61033 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
61034 now that the version in autoconf is equivalent.
61035 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
61037 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
61038 Suggestion from Akim Demaille.
61040 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
61041 (jm_PREREQ_TEMPNAME): New function.
61043 2001-03-16 Paul Eggert <eggert@twinsun.com>
61045 * lib/tempname.c (uint64_t): Define to uintmax_t if
61046 not defined, and if UINT64_MAX is not defined.
61047 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
61048 Reported by John David Anglin.
61050 2001-03-15 Bruno Haible <haible@clisp.cons.org>
61052 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
61053 resolve alias if codeset is empty.
61054 * lib/config.charset (BeOS): Use wildcard syntax.
61056 2001-03-13 Jim Meyering <meyering@lucent.com>
61058 * lib/path-concat.c (path_concat)
61059 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
61060 concatenating e.g., `C:' and `foo'.
61063 2001-03-06 Bruno Haible <haible@clisp.cons.org>
61065 * lib/localcharset.c (locale_charset): Don't use
61066 setlocale(LC_CTYPE,NULL). Don't return NULL.
61067 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
61069 2001-03-06 Bruno Haible <haible@clisp.cons.org>
61071 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
61072 support for DOS/DJGPP.
61074 2001-03-01 Paul Eggert <eggert@twinsun.com>
61076 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
61077 lacks mkstemp. Compile our own tempname.c if we compile our own
61078 mkstemp.c, as mkstemp relies on tempname.
61080 2001-03-01 Jim Meyering <meyering@lucent.com>
61082 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
61083 AH_VERBATIM really does output its argument verbatim.
61085 2001-02-28 Paul Eggert <eggert@twinsun.com>
61087 * lib/Makefile.am (libfetish_a_SOURCES):
61088 Add dup-safer.c, fopen-safer.c.
61089 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
61091 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
61092 * lib/unistd-safer.h: New files.
61094 2001-02-25 Paul Eggert <eggert@twinsun.com>
61096 The mkstemp replacement is taken from glibc 2.2.2, with some
61097 portability fixes for use outside glibc, as follows:
61099 * lib/tempname.c (struct_stat64): New macro.
61100 (direxists, __gen_tempname): Use it.
61101 This avoids a portability problem with Solaris 8.
61103 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
61104 (<stddef.h>, <stdint.h>, <string.h>):
61105 Include only if STDC_HEADERS || _LIBC.
61106 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
61107 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
61108 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
61109 (__set_errno): Define this macro if <errno.h> doesn't.
61110 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
61111 Define these macros if <stdio.h> doesn't.
61112 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
61113 Define these macros if <sys/stat.h>
61114 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
61115 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
61116 __xstat64): Define if not _LIBC.
61117 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
61118 (__gen_tempname): Invoke gettimeofday only if
61119 HAVE_GETTIMEOFDAY || _LIBC;
61120 otherwise, fall back on plain "time".
61121 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
61123 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
61125 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
61127 2001-02-18 Paul Eggert <eggert@twinsun.com>
61129 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
61131 2001-02-17 Paul Eggert <eggert@twinsun.com>
61133 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
61134 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
61135 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
61136 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
61138 2001-02-17 Paul Eggert <eggert@twinsun.com>
61140 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
61141 Remove workaround macros for hosts that have mbrtowc but not
61142 mbstate_t, as we now insist on proper declarations for both
61143 before using mbrtowc.
61145 2001-02-17 Jim Meyering <meyering@lucent.com>
61147 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
61148 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
61149 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
61152 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
61153 rather than AC_CACHE_VAL.
61155 2001-02-17 Jim Meyering <meyering@lucent.com>
61157 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
61158 around included file name.
61160 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
61162 * lib/strftime.c: Update from GNU libc (the only changes were to
61165 2001-02-17 Jim Meyering <meyering@lucent.com>
61167 * lib/regex.c: Update from libc.
61169 2001-02-17 Bruno Haible <haible@clisp.cons.org>
61171 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
61174 2001-02-16 Paul Eggert <eggert@twinsun.com>
61176 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
61177 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
61178 Reported by Mark Hounschell via Paul Eggert.
61180 2001-02-07 Jim Meyering <meyering@lucent.com>
61182 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
61184 2001-02-05 Jim Meyering <meyering@lucent.com>
61186 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
61187 it includes the patch required for `large file' support with at least
61188 HP-UX's 10.20 /bin/cc.
61190 2001-02-03 Jim Meyering <meyering@lucent.com>
61192 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
61193 AS_IF, now that it works once again (mysteriously).
61194 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61196 2001-01-30 Jim Meyering <meyering@lucent.com>
61198 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
61199 * m4/chown.m4: Rename conftestchown to conftest.chown.
61200 * m4/rename.m4: s/conftestdir/conftest.d1/ and
61201 s/conftestdir2/conftest.d2/.
61202 * m4/utimes.m4: s/conftestdata/conftest.data/
61203 Inspired by Pavel Roskin's change in autoconf.
61205 2001-01-30 Bruno Haible <haible@clisp.cons.org>
61207 * lib/config.charset: Update for FreeBSD 4.2.
61209 2001-01-27 Jim Meyering <meyering@lucent.com>
61211 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
61213 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61215 2001-01-26 Jim Meyering <meyering@lucent.com>
61217 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
61218 quotearg.c includes it.
61220 2001-01-26 Jim Meyering <meyering@lucent.com>
61222 * lib/quotearg.c: Include stddef.h.
61223 * lib/quote.c: Include stddef.h.
61224 Reported by Axel Kittenberger.
61226 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
61227 line in double quotes so that it evokes a better diagnostic.
61228 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
61229 Reported by Axel Kittenberger.
61231 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
61233 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
61234 as if it was a `charset'.
61236 2001-01-21 Bruno Haible <haible@clisp.cons.org>
61238 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
61241 2001-01-21 Bruno Haible <haible@clisp.cons.org>
61243 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
61244 to avoid a warning. Add back 'const' to inptr.
61246 2001-01-20 Jim Meyering <meyering@lucent.com>
61248 Be sure that headers are checked before used in code compiled
61249 for the type checks.
61250 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
61251 In place of that, invoke jm_CHECK_ALL_TYPES.
61252 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
61253 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
61254 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
61255 The check for ssize_t was mistakenly run before the test for unistd.h.
61257 The configure-time check for stdbool.h was missing.
61258 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
61259 (jm_PREREQ_HASH): New function.
61261 2001-01-17 Jim Meyering <meyering@lucent.com>
61263 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
61264 for autoconf-2.49c.
61265 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
61267 2001-01-16 Jim Meyering <meyering@lucent.com>
61269 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
61272 2001-01-14 Jim Meyering <meyering@lucent.com>
61274 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
61275 foo and bar. Create conftestdir/ in the script, not in the C code.
61276 Remove directories in the script, not in the C code.
61277 Remove conftestdir{,2} before trying to create the directory.
61278 Make the entire configure script fail if the mkdir fails.
61280 2001-01-14 Jim Meyering <meyering@lucent.com>
61282 * lib/rename.c: New file. From Volker Borchert.
61283 Include stdlib.h, string.h or strings.h, and xalloc.h.
61284 Use strip_trailing_slashes rather than open-coding it.
61286 2001-01-03 Paul Eggert <eggert@twinsun.com>
61288 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
61290 2001-01-03 Jim Meyering <meyering@lucent.com>
61292 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
61293 of local `inptr' to avoid warning with some system declarations of
61296 2001-01-02 Volker Borchert <bt@teknon.de>
61298 * m4/rename.m4: New file.
61299 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
61301 2001-01-01 Jim Meyering <meyering@lucent.com>
61303 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
61304 even on systems with utmpx.h. It's necessary for the declaration of
61305 utmp's ut_user member. Reported by Andreas Jaeger.
61307 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
61308 available. They are required for the declarations of getgrgid and
61310 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
61311 Reported by Andreas Jaeger.
61313 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
61315 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
61316 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
61317 so `make install' also works in VPATH builds.
61319 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
61321 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
61322 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
61323 can be used in subdirectories.
61325 2000-12-29 Paul Eggert <eggert@twinsun.com>
61327 * lib/modechange.c: Do not assume that mode_t uses the
61328 traditional octal encoding. E.g. "chmod 1 FOO" should set
61329 the other-execute bit of FOO even if S_IXOTH != 1.
61331 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
61332 WOTH, XOTH, ALLM): New macros.
61333 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
61334 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
61336 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
61337 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
61339 No need to use uintmax_t; unsigned long is long enough.
61340 Don't bother to get suffix since we don't use it.
61342 2000-12-26 Jim Meyering <meyering@lucent.com>
61344 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
61345 better with autoheader.
61347 2000-12-24 Jim Meyering <meyering@lucent.com>
61349 * lib/hash.c (is_prime): Return explicit boolean values.
61350 (hash_get_first): Return NULL to appease Irix5.6's 89.
61351 Reported by Nelson Beebe.
61353 2000-12-19 Bruno Haible <haible@clisp.cons.org>
61355 * lib/localcharset.c (locale_charset): Add support for Win32.
61357 2000-12-18 Paul Eggert <eggert@twinsun.com>
61359 * lib/physmem.h, lib/physmem.c: New files.
61361 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
61362 (noinst_HEADERS): Add physmem.h.
61364 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
61365 't' for compatibility with Solaris 8 sort.
61367 2000-12-18 Bruno Haible <haible@clisp.cons.org>
61369 * lib/config.charset: Add support for BeOS.
61371 2000-12-17 Jim Meyering <meyering@lucent.com>
61373 * m4/dos.m4 (jm_AC_DOS): New file and macro.
61374 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
61376 2000-12-16 Jim Meyering <meyering@lucent.com>
61378 This bug had a serious impact on chown: `chown N:M FILE' (for integer
61379 N and M) would have treated it like `chown N:N FILE'.
61381 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
61383 2000-12-16 Jim Meyering <meyering@lucent.com>
61385 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
61386 SHELLS_FILE to a file name that's useful on djgpp systems.
61388 (ADDITIONAL_DEFAULT_SHELLS): Define.
61389 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
61390 Based mostly on a patch from Prashant TR.
61392 2000-12-16 Bruno Haible <haible@clisp.cons.org>
61394 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
61395 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
61396 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
61398 2000-12-08 Andreas Schwab <schwab@suse.de>
61400 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
61401 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
61403 2000-12-07 Jim Meyering <meyering@lucent.com>
61405 * lib/stripslash.c (ISSLASH): Define.
61406 (strip_trailing_slashes): Use ISSLASH rather than comparing against
61410 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
61411 (dir_name_r): Declare this function as static.
61412 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
61413 manifest itself on a name containing a mix of slashes and
61415 Make this function work with names starting with a DOS-style
61416 drive letter and colon prefix.
61417 (dir_name): Append `.' if necessary.
61418 Based mostly on patches from Prashant TR and Eli Zaretskii.
61420 * lib/dirname.h (dir_name_r): Remove prototype.
61422 2000-12-06 Paul Eggert <eggert@twinsun.com>
61424 * m4/off_t-format.m4: Remove this file.
61425 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
61427 2000-12-06 Jim Meyering <meyering@lucent.com>
61429 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
61430 replacement strtoull, we may well need the replacement strtoul, too.
61431 Check for declarations of strtoul and strtoull.
61432 Check for strtol. Mainly as a cue to cause automake to include
61433 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
61434 Check for limits.h -- strtol.c needs it.
61436 2000-12-05 Jim Meyering <meyering@lucent.com>
61438 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
61440 2000-12-04 Jim Meyering <meyering@lucent.com>
61442 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
61443 Also include memory.h, stdlib.h, unistd.h if appropriate.
61444 Reported by Andreas Jaeger (conflicting declaration of malloc).
61446 2000-12-02 Jim Meyering <meyering@lucent.com>
61448 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
61449 * m4/jm-macros.m4 (jm_MACROS): require it.
61451 2000-12-02 Jim Meyering <meyering@lucent.com>
61453 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
61455 2000-12-01 Paul Eggert <eggert@twinsun.com>
61457 * lib/memrchr.c: Include <config.h> before any system include file.
61459 2000-11-30 Jim Meyering <meyering@lucent.com>
61461 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
61463 2000-11-30 Jim Meyering <meyering@lucent.com>
61465 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
61467 2000-11-29 Paul Eggert <eggert@twinsun.com>
61469 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
61471 2000-11-26 Jim Meyering <meyering@lucent.com>
61473 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
61475 2000-11-22 Paul Eggert <eggert@twinsun.com>
61477 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
61478 size of (size_t) -1; it's not portable.
61480 2000-11-17 Jim Meyering <meyering@lucent.com>
61482 * lib/strstr.c: Update from GNU libc.
61484 2000-11-17 Akim Demaille <akim@epita.fr>
61486 * lib/obstack.h: Formatting changes.
61487 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
61488 prevent type checking.
61489 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
61490 cast the value to (void *): assigning a `foo *' to a `void *'
61492 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
61494 2000-11-16 Jim Meyering <meyering@lucent.com>
61496 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
61498 2000-11-11 Jim Meyering <meyering@lucent.com>
61500 * lib/error.c: Add a couple #includes, merging from GNU libc version.
61502 2000-11-10 Jim Meyering <meyering@lucent.com>
61504 * lib/obstack.h: Update from GNU libc.
61505 * lib/obstack.c: Likewise.
61507 2000-11-08 Bruno Haible <haible@clisp.cons.org>
61509 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
61511 2000-11-06 Paul Eggert <eggert@twinsun.com>
61513 * lib/getusershell.c (setusershell): Use rewind rather than
61514 fseek/fseeko, to avoid configuration hassles with fseeko.
61515 Don't bother opening SHELLS_FILE if shellstream is NULL;
61516 it's not necessary.
61518 2000-11-05 Jim Meyering <meyering@lucent.com>
61520 * lib/makepath.h (make_dir): Declare.
61521 * lib/makepath.c (make_dir): Remove `static' attribute.
61524 2000-11-04 Jim Meyering <meyering@lucent.com>
61526 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
61528 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
61530 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
61531 last one in a bucket, advance to the next bucket.
61533 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
61535 * lib/fnmatch.c: Do not comment out all the code if we are using
61536 the GNU C library, because in some cases we are replacing buggy
61537 code in the GNU C library itself.
61539 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
61541 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
61542 (regex_compile): Catch bogus \(\1\).
61544 2000-10-30 Paul Eggert <eggert@twinsun.com>
61546 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
61547 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
61548 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
61550 2000-10-30 Paul Eggert <eggert@twinsun.com>
61552 * lib/error.h, getline.h, modechange.h:
61553 Remove "2000" from Copyright line, as the file hasn't been
61554 changed this year other than in the copyright notice.
61556 * lib/xalloc.h: Add "2000" to Copyright line, as this file
61557 was changed this year.
61559 2000-10-29 Jim Meyering <meyering@lucent.com>
61561 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
61563 * m4/ls-mntd-fs.m4: Likewise
61565 2000-10-29 Jim Meyering <meyering@lucent.com>
61567 * lib/xstat.in: Fix grammar in comment.
61569 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
61571 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
61572 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
61573 doesn't define __restrict_arr.
61575 2000-10-28 Jim Meyering <meyering@lucent.com>
61577 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
61578 (jm_PREREQ_MEMCHR): New function.
61580 2000-10-28 Jim Meyering <meyering@lucent.com>
61582 * lib/memchr.c: Update from libc.
61583 Adjust for portability:
61584 [HAVE_STDLIB_H]: Include stdlib.h.
61585 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
61586 Undef __memchr, too.
61587 [!weak_alias]: Define __memchr to memchr.
61589 * lib/regex.c: Update from libc.
61590 * lib/regex.h: Likewise.
61591 * lib/getopt1.c: Likewise.
61592 * lib/memcmp.c: Likewise.
61594 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
61595 Avoid using fseek, when possible -- it's broken by design.
61596 Patch by Ulrich Drepper.
61598 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
61600 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
61601 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
61602 Giving in to popular pressure to shut up the compiler with casts.
61604 2000-10-26 Jim Meyering <meyering@lucent.com>
61606 * lib/strftime.c: Update from libc.
61608 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
61610 * regex.c: More `unsigned char' -> `re_char' changes.
61611 Also change several `int' into `re_wchar_t'.
61612 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
61613 (PUSH_FAILURE_POINTER): Don't cast any more.
61614 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
61615 We want GCC to complain, since this piece of code makes
61616 re_match non-reentrant, which *should* be fixed.
61617 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
61618 (EXTEND_BUFFER): Use RETALLOC.
61619 (SET_LIST_BIT): Don't cast.
61620 (re_wchar_t): New type.
61621 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
61622 that those two functions will always properly return.
61623 (IMMEDIATE_QUIT_CHECK): Cast to void.
61624 (analyse_first): Use recursion rather than an explicit stack.
61625 (re_compile_fastmap): Can't fail anymore.
61626 (re_search_2): Don't check re_compile_fastmap for failure.
61627 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
61628 Now also sets the new value (passed in a new argument).
61629 (re_match_2_internal): Use it.
61630 Also, use a new var `reg' of type size_t when looping through regs
61631 rather than reuse the inappropriate `mcnt'.
61633 2000-10-25 Jim Meyering <meyering@lucent.com>
61635 * lib/obstack.c: Update from libc.
61637 2000-10-24 Kenichi Handa <handa@etl.go.jp>
61639 * regex.c (regex_compile): Change the way of handling a range from
61640 a char less than 256 to a char not less than 256.
61642 2000-10-24 Andrew Innes <andrewi@gnu.org>
61644 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
61646 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
61647 so that re_search functions only quit when callers expect them to.
61649 2000-10-23 Jim Meyering <meyering@lucent.com>
61651 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
61652 wrong. That set_locale call must not have any side effects.
61655 2000-10-22 Jim Meyering <meyering@lucent.com>
61657 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
61658 [CYCLIC]: Remove now-unused definition.
61660 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
61661 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
61662 Suggestion from Ulrich Drepper.
61664 2000-10-21 Jim Meyering <meyering@lucent.com>
61666 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
61667 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
61668 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
61670 2000-10-21 Jim Meyering <meyering@lucent.com>
61672 * lib/dirname.c (memrchr): Declare if necessary.
61673 (dir_name): Remove the restriction that there be no
61674 trailing slashes. Now, this code skips past them, effectively
61676 [TEST_DIRNAME] (main): New unit tests.
61678 * lib/memrchr.c: New file from GNU libc.
61679 Undef __memrchr, too.
61680 [!weak_alias]: Define __memrchr to memrchr.
61681 Guard weak_alias use with `#ifdef weak_alias'.
61683 2000-10-21 Jim Meyering <meyering@lucent.com>
61685 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
61686 (dir_name): Use dir_name_r.
61687 * lib/dirname.h (dir_name_r): Declare it.
61689 2000-10-17 Jim Meyering <meyering@lucent.com>
61691 * lib/quote.h (PARAMS): Define and use.
61692 Reported by Akim Demaille.
61694 * lib/getopt.c: Update from libc.
61696 2000-10-16 Jim Meyering <meyering@lucent.com>
61698 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
61702 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
61704 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
61706 2000-09-25 Jim Meyering <meyering@lucent.com>
61708 * lib/md5.h (rol): Define (from GnuPG).
61710 * lib/sha.c: Give credit (GnuPG) where due.
61711 (M): Use rol rather than open-coding it.
61712 Add a FIXME comment.
61714 2000-09-21 Jim Meyering <meyering@lucent.com>
61716 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
61717 Reported by Michael Stone.
61719 2000-09-20 Jim Meyering <meyering@lucent.com>
61721 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
61722 (noinst_HEADERS): Add sha.h.
61723 Based on code from Scott G. Miller and from GnuPG.
61725 2000-09-18 Jim Meyering <meyering@lucent.com>
61727 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
61728 LIBS. Otherwise, everyone ends up linking with -lelf for some
61730 Reported by Mike Stone.
61732 2000-09-15 Jim Meyering <meyering@lucent.com>
61734 * lib/regex.c: Update from libc.
61736 2000-09-10 Jim Meyering <meyering@lucent.com>
61738 * lib/getopt.c (_getopt_internal): Update from glibc.
61740 2000-09-09 Jim Meyering <meyering@lucent.com>
61742 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
61743 think it should be used as a general replacement for isascii.
61744 * lib/fnmatch.c: Likewise.
61745 * lib/mbswidth.c: Likewise
61746 * lib/regex.c: Likewise.
61749 * lib/userspec.c: Include sys/param.h and limits.h.
61751 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
61752 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
61753 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
61754 UID, GID. Check range.
61756 2000-09-06 Jim Meyering <meyering@lucent.com>
61758 * lib/getopt.c (_getopt_internal): Update from glibc.
61760 2000-08-30 Jim Meyering <meyering@lucent.com>
61762 * lib/strftime.c: Merge in changes from GNU libc.
61764 2000-08-26 Jim Meyering <meyering@lucent.com>
61766 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
61767 * m4/fpending.m4: New file.
61769 2000-08-26 Jim Meyering <meyering@lucent.com>
61771 * lib/closeout.c: Include "__fpending.h".
61772 (close_stdout_status): Return right away if there's nothing to flush.
61774 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
61775 * lib/__fpending.c: New file.
61776 * lib/__fpending.h: New file.
61778 2000-08-20 Jim Meyering <meyering@lucent.com>
61780 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
61781 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
61782 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
61784 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
61786 Improve fileutils installation on systems where running
61787 programs (like install) can't be unlinked.
61788 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
61789 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
61791 2000-08-07 Paul Eggert <eggert@twinsun.com>
61793 Standardize on "memory exhausted" instead of "Memory exhausted"
61794 or "virtual memory exhausted".
61795 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
61796 "virtual memory exhausted".
61797 * lib/same.c (same_name): Invoke xalloc_die instead of printing
61799 * lib/userspec.c (parse_user_spec): Likewise.
61800 * lib/bumpalloc.h: comment fix
61801 * lib/same.c, userspec.c: Include xalloc.h.
61803 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
61804 not char *const and pointing to a constant array.
61805 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
61806 (xrealloc): Comment fix.
61808 * lib/userspec.c (parse_user_spec):
61809 Don't translate a message until just before returning,
61810 to avoid unnecessary translation.
61812 2000-08-07 Jim Meyering <meyering@lucent.com>
61814 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
61815 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
61816 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
61817 getgroups.c, gethostname.c, getopt.h, group-member.c,
61818 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
61819 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
61820 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
61821 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
61822 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
61823 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
61824 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
61825 yesno.c: Back out Copyright date changes for each file with no change
61826 this year. This eases coordination with other programs using the same
61827 source code modules. From Paul Eggert.
61829 2000-08-06 Paul Eggert <eggert@twinsun.com>
61831 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
61832 not char, for compatibility with glibc 2.1.3 strftime.c.
61834 2000-08-03 Greg McGary <greg@mcgary.org>
61836 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
61837 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
61838 (EXTEND_BUFFER): Use them.
61840 2000-08-01 Jim Meyering <meyering@lucent.com>
61842 * lib/dirname.c (ISSLASH): Define.
61843 (BACKSLASH_IS_PATH_SEPARATOR): Define.
61844 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
61845 both `\' and `/' may be use as path separators.
61846 Based on a patch from Prashant TR.
61848 2000-07-31 Paul Eggert <eggert@twinsun.com>
61850 * lib/quotearg.c (quotearg_n_options): Don't make the initial
61851 slot vector a constant, since it might get modified.
61853 2000-07-31 Jim Meyering <meyering@lucent.com>
61855 * lib/xmalloc.c: Use `virtual memory exhausted', not
61856 `Memory exhausted'.
61857 * lib/obstack.c (print_and_abort): Likewise.
61859 2000-07-30 Paul Eggert <eggert@twinsun.com>
61861 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
61862 buffer, so that the caller can always quote one small
61863 component of a "memory exhausted" message in slot 0.
61864 From a suggestion by Jim Meyering.
61866 2000-07-30 Jim Meyering <meyering@lucent.com>
61868 * lib/makepath.c (make_path): Quote the other instance, too.
61870 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
61871 (STATIC_BUF_SIZE): Define.
61872 (quotearg_n_options): Use only statically allocated storage when
61873 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
61874 than STATIC_BUF_SIZE.
61876 2000-07-29 Jim Meyering <meyering@lucent.com>
61878 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
61879 * lib/dirname.c (dir_name): Likewise.
61881 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
61884 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
61885 (dir_name): Assert that there are no trailing slashes.
61887 2000-07-29 Bruno Haible <haible@clisp.cons.org>
61889 * lib/mbswidth.h (mbswidth): Add a flags argument.
61890 (mbswidth): New declaration.
61891 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
61892 * lib/mbswidth.c (mbswidth): Add a flags argument.
61893 (mbsnwidth): New function.
61895 2000-07-24 Jim Meyering <meyering@lucent.com>
61897 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
61899 2000-07-23 Paul Eggert <eggert@twinsun.com>
61901 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
61903 2000-07-23 Paul Eggert <eggert@twinsun.com>
61905 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
61906 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
61907 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
61908 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
61909 invoke multibyte primitives.
61911 2000-07-23 Paul Eggert <eggert@twinsun.com>
61914 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
61915 so that mbstate_t is always defined.
61917 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
61918 be 1 in at least one GCC installation, and this configuration
61919 error is likely to be common. Ignoring MB_LEN_MAX hurts
61920 performance on hosts that have mbrtowc but have only unibyte
61921 locales, but I assume these hosts are rare.
61923 2000-07-23 Paul Eggert <eggert@twinsun.com>
61925 * lib/mbswidth.c (_XOPEN_SOURCE):
61926 Don't define; this causes problems on Solaris 7.
61927 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
61929 2000-07-23 Jim Meyering <meyering@lucent.com>
61931 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
61932 too: getgrgid, getpwuid, getuid.
61934 2000-07-23 Jim Meyering <meyering@lucent.com>
61936 * lib/basename.c (base_name): Add an assertion.
61938 2000-07-23 Bruno Haible <haible@clisp.cons.org>
61940 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
61941 shadow its mbsinit function.
61943 2000-07-17 Bruno Haible <haible@clisp.cons.org>
61945 * lib/mbswidth.h: New file.
61946 * lib/mbswidth.c: New file.
61947 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
61948 (noinst_HEADERS): Add mbswidth.h.
61950 2000-07-17 Bruno Haible <haible@clisp.cons.org>
61952 * lib/config.charset: Add support for FreeBSD. Improve support for
61955 2000-07-16 Bruno Haible <haible@clisp.cons.org>
61957 * m4/mbswidth.m4: New file.
61958 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
61960 2000-07-15 Jim Meyering <meyering@lucent.com>
61962 * lib/makepath.c: Include quote.h.
61963 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
61964 corresponding argument in a `quote (...)' call.
61965 Give better diagnostics.
61967 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
61968 (noinst_HEADERS): Add quote.h.
61970 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
61971 from tar's src/misc.c.
61972 * lib/quote.h: New file. Prototypes for same.
61974 2000-07-14 Paul Eggert <eggert@twinsun.com>
61976 From a suggestion by Bruno Haible.
61977 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
61978 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
61979 to decide whether to define the BeOS workaround macro;
61980 this adjusts to the change to AC_MBSTATE_T.
61982 2000-07-14 Jim Meyering <meyering@lucent.com>
61984 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
61985 jm_AC_TYPE_UINTMAX_T.
61987 2000-07-13 Paul Eggert <eggert@twinsun.com>
61989 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
61991 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
61992 quotearg_buffer_restyled): Add support for
61993 clocale_quoting_style. Undo previous change to
61994 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
61995 and "{RIGHT QUOTATION MARK}" msgids.
61997 2000-07-10 Paul Eggert <eggert@twinsun.com>
61999 From a suggestion by Bruno Haible.
62000 * m4/mbstate_t.m4 (AC_MBSTATE_T):
62001 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
62002 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
62003 and mbstate_t, to a single-part test that simply defines mbstate_t.
62004 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
62005 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
62007 2000-07-10 Jim Meyering <meyering@lucent.com>
62009 * m4/strerror_r.m4: Mirror the correction made in autoconf.
62011 * m4/gnu-source.m4: Output to confdefs.h directly.
62012 Suggestion from Akim Demaille.
62014 2000-07-09 Paul Eggert <eggert@twinsun.com>
62016 The old behavior of quoting `like this' doesn't look good with
62017 newer, ISO-style fonts. See:
62018 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
62020 Instead, quote "like this" by default. Let the translator
62021 tailor the locale-specific quoting behavior by providing
62022 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
62024 * lib/quotearg.c (N_): New macro.
62025 (gettext_default): New function.
62026 (quotearg_buffer_restyled): Use
62027 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
62028 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
62030 2000-07-09 Jim Meyering <meyering@lucent.com>
62032 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
62033 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
62035 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
62036 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
62038 2000-07-09 Jim Meyering <meyering@lucent.com>
62040 * lib/Most files: Update copyright dates to include 2000.
62042 2000-07-08 Jim Meyering <meyering@lucent.com>
62044 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
62046 (xgethostname): Remove now-unnecessary #ifdef.
62047 Move declaration of `err' into loop where it's used.
62049 2000-07-05 Paul Eggert <eggert@twinsun.com>
62050 and Bruno Haible <haible@clisp.cons.org>
62052 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
62053 only if the test for an object-type mbstate_t fails. This
62054 prevents us from mistakenly reporting that mbstate_t is a
62055 system object type after we "#define mbstate_t int" to work
62058 2000-07-05 Paul Eggert <eggert@twinsun.com>
62059 and Bruno Haible <haible@clisp.cons.org>
62061 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
62063 2000-07-05 Bruno Haible <haible@clisp.cons.org>
62065 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
62067 Include <ctype.h> for use of isalpha.
62069 2000-07-05 Bruno Haible <haible@clisp.cons.org>
62071 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
62072 by allocating a larger buffer. Test the gethostname return value for
62073 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
62074 returns an error and ENAMETOOLONG isn't defined.
62076 2000-07-05 Bruno Haible <haible@clisp.cons.org>
62078 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
62081 2000-07-04 Jim Meyering <meyering@lucent.com>
62083 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
62084 of the deprecated AC_CHECKING.
62086 2000-07-04 Jim Meyering <meyering@lucent.com>
62088 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
62089 Reported by Bruno Haible.
62091 2000-07-04 Jim Meyering <meyering@lucent.com>
62093 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
62094 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
62097 2000-07-03 Paul Eggert <eggert@twinsun.com>
62099 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
62100 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
62102 2000-07-03 Paul Eggert <eggert@twinsun.com>
62103 and Bruno Haible <haible@clisp.cons.org>
62105 * lib/quotearg.c (mbrtowc):
62106 Assign to *pwc, and return 1 only if result is nonzero.
62107 (iswprint): Use ISPRINT when substituting our own mbrtowc.
62109 2000-07-03 Jim Meyering <meyering@lucent.com>
62111 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
62113 2000-07-03 Jim Meyering <meyering@lucent.com>
62115 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
62116 This is necessary to get a definition of e.g., UTMP_FILE on
62120 2000-07-02 Jim Meyering <meyering@lucent.com>
62122 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
62124 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
62125 AC_LIBOBJ(function_name).
62126 * m4/chown.m4: Likewise.
62127 * m4/fnmatch.m4: Likewise.
62128 * m4/ftruncate.m4: Likewise.
62129 * m4/getgroups.m4: Likewise.
62130 * m4/getline.m4: Likewise.
62131 * m4/group-member.m4: Likewise.
62132 * m4/jm-macros.m4: Likewise.
62133 * m4/lstat.m4: Likewise.
62134 * m4/malloc.m4: Likewise.
62135 * m4/memcmp.m4: Likewise.
62136 * m4/nanosleep.m4: Likewise.
62137 * m4/putenv.m4: Likewise.
62138 * m4/realloc.m4: Likewise.
62139 * m4/regex.m4: Likewise.
62140 * m4/stat.m4: Likewise.
62141 * m4/strftime.m4: Likewise.
62143 2000-07-02 Jim Meyering <meyering@lucent.com>
62145 * lib/quotearg.c (mbstate_t): Don't define here.
62147 2000-07-02 Jim Meyering <meyering@lucent.com>
62149 * lib/nanosleep.c (SIGCONT): Define if not already defined.
62151 2000-07-01 Jim Meyering <meyering@lucent.com>
62153 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
62155 2000-07-01 Jim Meyering <meyering@lucent.com>
62157 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
62160 2000-07-01 Bruno Haible <haible@clisp.cons.org>
62162 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
62163 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
62165 2000-07-01 Bruno Haible <haible@clisp.cons.org>
62167 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
62168 per change in ../m4/ls-mntd-fs.m4.
62169 (read_filesystem_list): Ignore symbolic links.
62171 2000-06-29 Jim Meyering <meyering@lucent.com>
62173 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
62174 for declaration of strcmp.
62176 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
62178 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
62179 Avoid warning by casting result to `char *' to remove `const'.
62181 2000-06-28 Jim Meyering <meyering@lucent.com>
62183 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
62184 included by quotearg.c, for which we perform this test. From
62187 2000-06-27 Bruno Haible <haible@clisp.cons.org>
62189 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
62190 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
62191 <utmpx.h> exists, put readutmp.o into LIBOBJS.
62193 2000-06-27 Bruno Haible <haible@clisp.cons.org>
62195 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
62197 2000-06-26 Paul Eggert <eggert@twinsun.com>
62199 savedir now sets errno on failure and invokes xmalloc to get memory.
62200 Fix a couple of other minor bugs while we're at it.
62202 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
62203 (NAMLEN): Remove macro.
62204 (malloc, realloc): Remove decls.
62205 (stpcpy): Likewise.
62206 ("xalloc.h"): Include.
62207 (NAME_SIZE_DEFAULT): New macro.
62208 (savedir): Use xmalloc / xrealloc to allocate memory.
62209 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
62210 Skip "" directory entries.
62211 Use strlen to calculate directory entry length, since the old method
62212 is rarely used these days and isn't worth supporting.
62213 Don't use a pointer after freeing it.
62214 Check for integer overflow when calculating allocation size.
62215 Use memcpy to copy entries, instead of stpcpy.
62216 Set errno properly when returning NULL.
62217 Check for readdir error.
62219 2000-06-26 Jim Meyering <meyering@lucent.com>
62221 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
62223 2000-06-25 Jim Meyering <meyering@lucent.com>
62225 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
62226 Linux header bug when _XOPEN_SOURCE is defined to 500.
62228 2000-06-25 Bruno Haible <haible@clisp.cons.org>
62230 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
62233 2000-06-25 Bruno Haible <haible@clisp.cons.org>
62235 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
62237 Don't include <stdlib.h>. Don't declare malloc, realloc.
62239 2000-06-24 Jim Meyering <meyering@lucent.com>
62241 * m4/strerror_r.m4: Revive this file -- to try out an experimental
62242 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
62243 for which strerror does return char*, but which lacks a conveniently
62244 accessible declaration of the function. If the compile-test says
62245 strerror_r doesn't work, then resort to a `run'-test that works on
62246 BeOS and segfaults on DEC Unix.
62248 2000-06-24 Jim Meyering <meyering@lucent.com>
62250 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
62252 2000-06-23 Paul Eggert <eggert@twinsun.com>
62254 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
62255 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
62257 2000-06-23 Paul Eggert <eggert@twinsun.com>
62259 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
62260 (mbrtowc, mbstate_t): Define substitutes if
62261 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
62262 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
62263 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
62265 2000-06-23 Jim Meyering <meyering@lucent.com>
62267 * m4/afs.m4: Add missing AC_MSG_RESULT.
62268 Reported by Bruno Haible.
62270 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
62271 Suggestion from Bruno Haible.
62273 2000-06-23 Jim Meyering <meyering@lucent.com>
62275 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
62277 2000-06-21 Jim Meyering <meyering@lucent.com>
62279 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
62281 2000-06-21 Jim Meyering <meyering@lucent.com>
62283 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
62284 (noinst_HEADERS): Add getstr.h.
62286 * lib/getline.c (getstr): Move into a separate file.
62287 * lib/getstr.c (getstr): New file, extracted from getline.c, with
62288 the following changes: new parameter, delim2; both delim[12]
62289 parameters have type `int', not `char'. The latter would lose
62290 with 8-bit delimiters.
62291 * lib/getstr.h: New file.
62293 2000-06-21 Bruno Haible <haible@clisp.cons.org>
62295 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
62296 than 1024, return a memory chunk of least possible size, instead
62297 of size PATH_MAX + 2. In the loop, increment the size proportionally.
62298 Use free/xmalloc instead of xrealloc to avoid copying for very long
62301 2000-06-21 Bruno Haible <haible@clisp.cons.org>
62303 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
62306 2000-06-21 Bruno Haible <haible@clisp.cons.org>
62308 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
62309 address, not strdup. Include <stdlib.h> and don't declare free().
62311 2000-06-19 Jim Meyering <meyering@lucent.com>
62313 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
62315 2000-06-18 Jim Meyering <meyering@lucent.com>
62317 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
62319 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
62320 `checking whether...' message to be consistent with that of the
62323 2000-06-18 Jim Meyering <meyering@lucent.com>
62325 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
62326 Besides, these days every porting target provides a mkdir function.
62328 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
62329 needed. (this snippet comes from src/system.h).
62331 2000-06-16 Bruno Haible <haible@clisp.cons.org>
62333 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
62335 2000-06-15 Paul Eggert <eggert@twinsun.com>
62337 * lib/human.c (adjust_value): New function.
62338 (human_readable_inexact): Apply rounding style even when
62339 printing approximate values.
62341 2000-06-14 Paul Eggert <eggert@twinsun.com>
62343 * lib/human.c (human_readable_inexact): Allow an input block
62344 size that is not a multiple of the output block size, and vice versa.
62345 Reported by Piergiorgio Sartor.
62347 2000-06-14 Paul Eggert <eggert@twinsun.com>
62349 * lib/getdate.y (get_date): Apply relative times after time
62350 zone indicator, not before. Reported by Todd A. Jacobs.
62352 2000-06-13 Jim Meyering <meyering@lucent.com>
62354 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
62356 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
62358 2000-06-12 Paul Eggert <eggert@twinsun.com>
62360 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
62362 2000-06-12 Jim Meyering <meyering@lucent.com>
62364 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
62365 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
62367 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
62368 the optional argument, `lib'.
62370 2000-06-08 Jim Meyering <meyering@lucent.com>
62372 * m4/largefile.m4: Remove file (now that it's part of autoconf).
62374 2000-06-04 Paul Eggert <eggert@twinsun.com>
62376 Rewrite largefile configuration so that we don't need to run
62377 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
62378 AC_CANONICAL_HOST in configure.in -- jmm]
62380 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
62381 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
62382 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
62383 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
62384 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
62386 Instead of inspecting the output of getconf, try to compile the
62387 test program without and with the macro definition.
62388 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
62389 for getconf. Instead, check for the needed flags by compiling
62392 2000-06-04 Paul Eggert <eggert@twinsun.com>
62394 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
62396 2000-06-04 Jim Meyering <meyering@lucent.com>
62398 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
62399 SunOS 4.1.4 for which gid_t is an unsigned type.
62401 2000-06-03 Jim Meyering <meyering@lucent.com>
62403 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
62404 now that autoconf requires that.
62406 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
62407 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
62408 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
62410 2000-06-03 Jim Meyering <meyering@lucent.com>
62412 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
62414 2000-06-03 Bruno Haible <haible@clisp.cons.org>
62416 * m4/glibc21.m4: New file.
62417 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
62419 2000-06-03 Bruno Haible <haible@clisp.cons.org>
62421 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
62422 newer, don't install charset.alias.
62423 * lib/config.charset: Change the Linux/glibc rules so they become empty
62424 on glibc-2.1 or newer.
62426 2000-06-02 Jim Meyering <meyering@lucent.com>
62428 * lib/mountlist.c: Back out last change. Instead, do this...
62429 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
62430 me_dummy member using the same `ignore'-testing code.
62431 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
62435 2000-05-29 Jim Meyering <meyering@lucent.com>
62437 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
62438 mounts with the `ignore' attribute. Based on a patch from
62441 2000-05-28 Jim Meyering <meyering@lucent.com>
62443 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
62444 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62445 * m4/stat.m4: Likewise.
62446 * m4/lstat.m4: Likewise.
62447 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
62449 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
62450 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
62452 2000-05-26 Jim Meyering <meyering@lucent.com>
62454 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
62456 2000-05-24 Jim Meyering <meyering@lucent.com>
62458 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
62459 autoconf requires that.
62460 * m4/lib-check.m4: Likewise.
62461 * m4/jm-macros.m4: Likewise.
62462 * m4/strftime.m4: Likewise.
62464 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
62465 AC_CHECK_DECLS, now that autoconf requires that.
62467 2000-05-22 Jim Meyering <meyering@lucent.com>
62469 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62470 * m4/lstat.m4: Likewise.
62472 2000-05-22 Jim Meyering <meyering@lucent.com>
62474 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
62476 2000-05-20 Jim Meyering <meyering@lucent.com>
62478 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
62479 (jm_PREREQ): Use it.
62481 2000-05-18 Jim Meyering <meyering@lucent.com>
62483 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
62484 back, too, since it may have been modified by allocate_entry.
62485 (hash_delete): Rewrite to use neither the assignment operator
62486 nor the comma operator in an if-expression.
62488 2000-05-15 Paul Eggert <eggert@twinsun.com>
62491 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
62492 Remove; no longer needed.
62493 "quotearg.h": Add include.
62494 (file_name): Do not bother to explicitly initialize to NULL; it's less
62495 efficient on some hosts.
62496 (close_stdout_status): Remove test as to whether stdout was already
62497 closed; it breaks for the case "echo x | sort >&-".
62498 Quote file name colons.
62499 Do not assume that _("write error") lacks format strings.
62501 2000-05-15 Jim Meyering <meyering@lucent.com>
62503 * lib/version-etc.c (version_etc_copyright): Update the copyright
62504 string used in all --version output.
62506 2000-05-14 Jim Meyering <meyering@lucent.com>
62508 * lib/closeout.c (close_stdout_set_file_name): New function.
62509 (close_stdout_status): Use new file-scoped global.
62510 Return right away if fstat says the stdout file descriptor is invalid.
62511 * lib/closeout.h (close_stdout_set_file_name): Declare.
62513 2000-05-10 Jim Meyering <meyering@lucent.com>
62515 * lib/closeout.c [default_exit_status]: New file-scoped variable.
62516 (close_stdout_set_status): New function.
62517 * lib/closeout.h (close_stdout_set_status): Declare.
62519 2000-05-09 Jim Meyering <meyering@lucent.com>
62521 * m4/gettext.m4: Rename this...
62522 * m4/libintl.m4: ...to this.
62524 2000-05-08 Jim Meyering <meyering@lucent.com>
62526 * lib/long-options.c: Don't include closeout.h.
62527 (parse_long_options): Don't call close_stdout for --version.
62529 2000-05-06 Paul Eggert <eggert@twinsun.com>
62531 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
62532 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
62533 2.1.3 bug. This avoids a clash when files like regex.c define
62536 2000-05-06 Jim Meyering <meyering@lucent.com>
62538 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
62539 (AC_REPLACE_FUNCS): Add strnlen.
62541 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
62542 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
62544 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
62545 AC_SEARCH_LIBS call for nanosleep.
62546 (LIB_NANOSLEEP): Set and AC_SUBST.
62548 2000-05-06 Jim Meyering <meyering@lucent.com>
62550 * lib/strnlen.c: Undefine __strnlen and strnlen.
62551 [!weak_alias]: Define __strnlen to strnlen.
62553 * lib/atexit.c: New file, from libiberty.
62555 2000-05-06 Jim Meyering <meyering@lucent.com>
62557 * lib/closeout.c (close_stdout_status): Also check for errors on the
62560 2000-05-05 Jim Meyering <meyering@lucent.com>
62562 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
62563 AC_SEARCH_LIBS call for clock_gettime.
62564 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
62566 * m4/search-libs.m4: Update from autoconf.
62568 su doesn't work on Solaris 2.6.
62569 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
62570 <shadow.h>. Reported by Dragos Harabor.
62572 2000-05-05 Bruno Haible <haible@clisp.cons.org>
62574 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
62575 memcpy instead of xmalloc, xrealloc, path_concat.
62576 (locale_charset): Treat empty environment variables as absent.
62577 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
62579 2000-05-04 Jim Meyering <meyering@lucent.com>
62581 * lib/getopt.c: Update from glibc.
62582 * lib/obstack.c: Likewise.
62583 * lib/obstack.h: Likewise.
62584 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
62587 * lib/regex.h: Likewise.
62588 * lib/strndup.c: Likewise.
62589 * lib/strnlen.c: New file, from glibc.
62591 2000-05-03 Jim Meyering <meyering@lucent.com>
62593 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
62595 2000-05-02 Paul Eggert <eggert@twinsun.com>
62597 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
62598 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
62599 compile-time test, rather than inspecting host and OS, to
62600 decide whether to define _LARGEFILE_SOURCE.
62602 2000-05-01 Jim Meyering <meyering@lucent.com>
62604 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
62606 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
62607 Based on a patch from Bruno Haible.
62609 2000-05-01 Jim Meyering <meyering@lucent.com>
62611 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
62613 2000-04-29 Jim Meyering <meyering@lucent.com>
62615 * lib/path-concat.c: Declare strdup only if it's not defined.
62616 * lib/canon-host.c: Likewise.
62618 2000-04-28 Jim Meyering <meyering@lucent.com>
62620 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
62621 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
62622 is included first, then limits.h is included by locale.h by libintl.h.
62623 From John David Anglin.
62625 2000-04-25 Jim Meyering <meyering@lucent.com>
62627 * lib/makepath.c (S_IRWXUGO): Define.
62628 (make_path): Always perform explicit chmod if MODE specifies any
62629 of the `special' permission bits. Prompted by a bug report against
62630 install from Mate Wierdl and Joost van Baal.
62632 2000-04-18 Jim Meyering <meyering@lucent.com>
62634 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
62635 (jm_PREREQ): Use it.
62637 2000-04-18 Jim Meyering <meyering@lucent.com>
62639 * lib/README: New file.
62641 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
62642 getpagesize. For BeOS. Based on a patch from Bruno Haible.
62644 2000-04-17 Jim Meyering <meyering@lucent.com>
62647 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
62648 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
62649 Suggestion from Akim Demaille.
62651 2000-04-17 Jim Meyering <meyering@lucent.com>
62653 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
62654 the definition of it to rpl_strftime also defined-away the system's
62657 2000-04-15 Jim Meyering <meyering@lucent.com>
62659 Use `C' to denote so-called `contiguous' files, the same way
62661 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
62662 (ftypelet): Use S_ISCTG.
62663 From Michael Deutschmann.
62665 2000-04-14 Jim Meyering <meyering@lucent.com>
62667 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
62668 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
62671 2000-04-14 Jim Meyering <meyering@lucent.com>
62673 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
62675 2000-04-13 Jim Meyering <meyering@lucent.com>
62677 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
62678 AH_VERBATIM to insert required #ifndef into config.h.in.
62679 Suggestion from Akim Demaille.
62681 2000-04-12 Jim Meyering <meyering@lucent.com>
62683 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
62684 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
62685 Christian Krackowizer.
62687 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
62688 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
62689 (AC_SYS_LARGEFILE): Require.
62690 (AM_C_PROTOTYPES): Require.
62692 2000-04-08 Jim Meyering <meyering@lucent.com>
62694 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
62695 names don't conflict. Reported by Eli Zaretskii.
62697 2000-04-07 Jim Meyering <meyering@lucent.com>
62699 * lib/putenv.c: Move inclusion of errno.h so it follows that of
62700 sys/types.h, to work around system header problems on AIX 3.2.5.
62703 2000-04-07 Bruno Haible <haible@clisp.cons.org>
62705 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
62706 bug. Deal with the different error behavior of Irix iconv.
62708 2000-04-05 Paul Eggert <eggert@twinsun.com>
62710 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
62711 IRIX if the installer said otherwise.
62713 2000-04-05 Jim Meyering <meyering@lucent.com>
62715 Portability tweaks required for ultrix4.3.
62716 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
62717 (jm_CHECK_DECLS): Add getutent to the list of functions.
62718 (_jm_DECL_HEADERS): Add utmpx.h.
62719 From John David Anglin.
62721 * m4/strftime.m4: Back out the 2000-04-02 change.
62722 Instead of that change, simply undefine putenv in the test program.
62724 2000-04-05 Jim Meyering <meyering@lucent.com>
62726 Portability tweaks required for ultrix4.3.
62727 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
62729 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
62730 * lib/canon-host.c: Declare strdup.
62731 * lib/path-concat.c: Likewise.
62732 From John David Anglin.
62734 2000-04-04 Jim Meyering <meyering@lucent.com>
62736 Be more DOS 8.3-friendly.
62737 * lib/ref-add.sin: Renamed from ref-add.sed.in.
62738 * lib/ref-del.sin: Renamed from ref-del.sed.in.
62739 * lib/Makefile.am: Reflect renaming.
62740 Reported by Eli Zaretskii.
62742 Use a temporary file name that won't clash with `charset.alias'
62743 in the DOS 8.3 name space.
62744 * lib/Makefile.am (charset_tmp): Define.
62745 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
62746 (uninstall-local): Likewise.
62747 Reported by Eli Zaretskii.
62749 2000-04-03 Jim Meyering <meyering@lucent.com>
62751 * m4/gettext.m4: Fix typo in comment.
62753 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
62754 textutils/configure.in). Suggestion from Paul Eggert.
62755 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
62757 2000-04-02 Paul Eggert <eggert@twinsun.com>
62759 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
62760 variable in the shell rather than using putenv, which isn't
62761 portable. This avoids the configure-time inter-test dependency
62762 on the potentially-renamed putenv function.
62764 2000-03-30 Paul Eggert <eggert@twinsun.com>
62766 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
62767 before checking struct stat.st_blksize, so that
62768 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
62770 2000-03-29 Paul Eggert <eggert@twinsun.com>
62772 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
62773 since strftime.c uses HAVE_STRFTIME to decide whether to use
62774 the underlying strftime.
62776 2000-03-29 Paul Eggert <eggert@twinsun.com>
62778 * lib/time/strftime.c (my_strftime): Make sure we call the system
62779 strftime, not ourselves, when invoking the underlying strftime.
62781 2000-03-24 Jim Meyering <meyering@lucent.com>
62783 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
62784 (charset_alias): Define.
62785 (install-exec-local): Factor out common code.
62786 (uninstall-local): Split lines longer than 80.
62787 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
62788 (SUFFIXES): Define.
62789 (.sed.in.sed): New rule. Don't redirect directly to $@.
62790 (CLEANFILES): Add ref-add.sed and ref-del.sed.
62792 2000-03-19 Bruno Haible <haible@clisp.cons.org>
62794 * lib/config.charset: Output a line containing "Packages using this
62796 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
62797 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
62798 ref-del.sed): New rules.
62800 2000-03-17 Jim Meyering <meyering@lucent.com>
62802 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
62803 Otherwise, include <strings.h>
62805 2000-03-17 Bruno Haible <haible@clisp.cons.org>
62807 * lib/unicodeio.c (utf8_wctomb): New function.
62808 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
62809 format instead of in UCS-4 with platform dependent endianness.
62811 2000-03-10 Jim Meyering <meyering@lucent.com>
62813 * m4/lib-check.m4: Look for getspnam in -lgen, too.
62814 From Marco Franzen.
62816 2000-03-07 Paul Eggert <eggert@twinsun.com>
62818 * lib/savedir.c (savedir): Work even if directory size is
62819 negative; this can happen with some screwy NFS configurations.
62821 2000-03-06 Jim Meyering <meyering@lucent.com>
62823 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
62824 if it's NULL (because we ran out of memory). From Bruno Haible.
62826 2000-03-05 Jim Meyering <meyering@lucent.com>
62828 * lib/localcharset.c ("path-concat.h"): Include.
62829 (get_charset_aliases): Use path_concat instead of ANSI string
62832 * lib/unicodeio.h (PARAMS): Define.
62833 Use it to guard prototype.
62835 2000-03-04 Jim Meyering <meyering@lucent.com>
62837 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
62838 for lib/localcharset.c.
62840 2000-03-04 Jim Meyering <meyering@lucent.com>
62842 * lib/Makefile.am (install-exec-local): Create $(libdir) before
62843 installing into it.
62844 (uninstall-local): Uncomment this rule so `make distcheck' works
62847 * lib/unicodeio.c (<errno.h>): Include it.
62848 (errno): Declare if not defined.
62850 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
62852 * lib/config.charset: New version, incorporating remarks from a linux
62853 i18n mailing list. From Bruno Haible.
62855 2000-03-04 Bruno Haible <haible@clisp.cons.org>
62857 * m4/codeset.m4: New file.
62858 * m4/iconv.m4: New file.
62859 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
62861 2000-03-03 Jim Meyering <meyering@lucent.com>
62863 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
62865 2000-03-02 Jim Meyering <meyering@lucent.com>
62867 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
62868 the messages come out on separate lines.
62870 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
62871 rather than jm_CHECK_DECLARATIONS.
62872 * m4/decl.m4: Remove now-unused file.
62874 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
62877 2000-03-02 Jim Meyering <meyering@lucent.com>
62879 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
62881 2000-03-01 Jim Meyering <meyering@lucent.com>
62883 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
62884 * lib/unicodeio.c: Likewise.
62886 2000-03-01 Bruno Haible <haible@clisp.cons.org>
62888 * lib/config.charset: New file.
62889 * lib/localcharset.c: New file.
62890 * lib/unicodeio.h, lib/unicodeio.c: New files.
62891 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
62892 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
62893 (noinst_HEADERS): Add unicodeio.h.
62894 (all-local, install-exec-local, charset.alias): New targets.
62896 2000-02-28 Paul Eggert <eggert@twinsun.com>
62898 * lib/quotearg.c (ALERT_CHAR): New macro.
62899 (quotearg_buffer_restyled): Use it.
62901 2000-02-27 Jim Meyering <meyering@lucent.com>
62903 * m4/check-decl.m4: Add getenv to the list.
62905 2000-02-27 Jim Meyering <meyering@lucent.com>
62907 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
62908 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
62910 * lib/backupfile.c: Guard inclusion of stdlib.h with
62911 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
62912 Declare malloc if needed.
62914 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
62915 `#ifndef HAVE_DECL..'
62916 now that autoconf always defines the HAVE_DECL_ symbols.
62917 * lib/human.c: Likewise.
62918 * lib/same.c: Likewise.
62919 * lib/strtoumax.c: Likewise.
62921 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
62922 declaration check was not run.
62923 * lib/hash.c: Likewise.
62924 * lib/human.c: Likewise.
62925 * lib/same.c: Likewise.
62926 * lib/strtoumax.c: Likewise.
62928 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
62929 `.', then first look up the entire `.'-containing string as a login
62932 2000-02-23 Jim Meyering <meyering@lucent.com>
62934 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
62935 in place of my hack.
62937 2000-02-18 Paul Eggert <eggert@twinsun.com>
62939 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
62940 (textint): New typedef.
62941 (parser_control): Member year changed from int to textint.
62943 (YYSTYPE): Removed; replaced by %union with int and textint members.
62944 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
62945 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
62946 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
62947 (tSNUMBER, tUNUMBER): Now of type <textintval>.
62948 (date, number, to_year): Use width of number in digits, not its value,
62949 to determine whether it's a 2-digit year, or a 2-digit time.
62950 (yylex): Store number of digits of numeric tokens.
62951 Reported by John Kendall.
62953 (parser_control): Changed from struct parser_control to typedef (for
62954 consistency). All uses changed.
62956 (tID): Removed; not used.
62957 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
62959 2000-02-14 Paul Eggert <eggert@twinsun.com>
62961 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
62962 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
62964 2000-02-12 Jim Meyering <meyering@lucent.com>
62966 * lib/userspec.c (ISDIGIT): Define it.
62967 (isdigit): Remove definition.
62968 (is_number): Use ISDIGIT, not isdigit.
62969 <libintl.h>: Include.
62970 (_ and N_): Define.
62971 (parse_user_spec): Mark translatable strings.
62973 2000-02-10 Jim Meyering <meyering@lucent.com>
62975 With these changes, nanosleep.[ch] are finally enough like the other
62976 lib/* replacement files to compile on a few more losing systems.
62978 * lib/nanosleep.h: Don't include config.h.
62979 Remove prototype from declaration of nanosleep.
62980 (PARAMS): Remove now-unneeded definition.
62981 * lib/nanosleep.c: #undef nanosleep.
62982 (rpl_nanosleep): Rename from nanosleep.
62984 2000-02-10 Jim Meyering <meyering@lucent.com>
62986 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
62987 gnu_nanosleep to rpl_nanosleep.
62989 2000-02-09 Jim Meyering <meyering@lucent.com>
62991 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
62992 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
62994 2000-02-08 Akim Demaille <akim@epita.fr>
62996 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
62997 `[' and `]' and remove uses of `changequote'.
62998 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
62999 (AC_SYS_LARGEFILE): Likewise.
63000 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
63001 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
63003 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
63004 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
63005 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
63006 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
63008 2000-02-05 Jim Meyering <meyering@lucent.com>
63010 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
63011 Remove explicit use of AC_HEADER_TIME. It is required by
63012 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
63013 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
63014 in autoconf whereby the expansion of the latter ended up preceding
63015 the expansion of its prerequisite, AC_HEADER_TIME.
63016 Reported by Volker Borchert.
63018 2000-02-03 Jim Meyering <meyering@lucent.com>
63020 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
63022 2000-02-03 Jim Meyering <meyering@lucent.com>
63024 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
63025 rather than with `#if HAVE_UTMPNAME'.
63027 2000-02-02 Jim Meyering <meyering@lucent.com>
63029 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
63030 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
63031 Reported by Eli Zaretskii.
63033 2000-02-01 Jim Meyering <meyering@lucent.com>
63035 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
63037 2000-01-31 Jim Meyering <meyering@lucent.com>
63039 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
63040 functions. Add the time.h and sys/time.h headers along with the
63041 AC_REQUIRE'ment of AC_HEADER_TIME.
63043 2000-01-31 Jim Meyering <meyering@lucent.com>
63045 * lib/nanosleep.h (nanosleep): Guard declaration with
63046 `#if ! HAVE_DECL_NANOSLEEP'.
63047 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
63048 the declaration in that vendor's sys/timers.h.
63049 Reported by Christian Krackowizer.
63051 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
63052 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
63053 (ISPRINT): Likewise.
63054 Reported by Tom Tromey.
63056 2000-01-30 Jim Meyering <meyering@lucent.com>
63058 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
63060 * m4/prereq.m4 (utmp_includes): Define.
63061 Check for ut_user and ut_name members in both struct utmpx
63064 2000-01-30 Jim Meyering <meyering@lucent.com>
63066 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
63067 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
63068 header files where only utmpx.ut_user is declared.
63070 * lib/readutmp.h (UT_USER): Define.
63072 2000-01-29 Jim Meyering <meyering@lucent.com>
63074 * m4/lib-check.m4: New file containing library-related checks from
63075 fileutils and sh-utils (textutils had none).
63077 2000-01-28 Jim Meyering <meyering@lucent.com>
63079 * m4/perl.m4: Change format of warning message to look more like that
63080 from the missing script. Suggestion from François Pinard.
63082 2000-01-25 Jim Meyering <meyering@lucent.com>
63084 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
63085 well as time.h in the compile check.
63086 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
63087 Fix typo in cross-compiling case: s/yes/no/.
63089 2000-01-23 Jim Meyering <meyering@lucent.com>
63091 * m4/jm-macros.m4: Move df-related tests here from
63092 fileutils/configure.in
63094 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
63095 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
63097 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
63098 s/space/ac_fsusage_space/.
63099 (jm_FILE_SYSTEM_USAGE): Take two parameters.
63101 * m4/ftruncate.m4: New file (derived from part of
63102 fileutils/configure.in).
63103 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
63104 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
63106 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
63107 AC_SUBST these here, rather than just in sh-util/configure.in, so
63108 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
63110 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
63111 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
63112 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
63113 (AC_SUBST(POW_LIBM)): Likewise.
63114 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
63116 2000-01-23 Jim Meyering <meyering@lucent.com>
63118 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
63121 2000-01-22 Jim Meyering <meyering@lucent.com>
63123 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
63125 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
63127 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
63129 (AC_CHECK_HEADERS): Likewise for sh-utils.
63130 (AC_CHECK_HEADERS): Likewise for textutils.
63131 Merge the three lists of headers.
63133 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
63134 from fileutils' configure.in.
63136 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
63137 code. Moved tests into their own function (_jm_DECL_HEADERS) in
63140 * m4/check-decl.m4: Use #if rather than #ifdef.
63141 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
63142 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
63143 (_jm_DECL_HEADERS): Define new function.
63144 (jm_CHECK_DECLARATIONS): Require it.
63146 2000-01-22 Jim Meyering <meyering@lucent.com>
63148 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
63149 [! HAVE_DECL_STRTOULL]: Declare strtoull.
63150 Required for some AIX systems. Reported by Christian Krackowizer.
63151 [TESTING] (main): New function.
63153 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
63154 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
63157 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
63160 * lib/strverscmp.c (ISDIGIT): Define.
63161 (strverscmp): Use ISDIGIT, not isdigit.
63163 2000-01-19 Jim Meyering <meyering@lucent.com>
63165 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
63166 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
63167 defines `struct timespec' in <sys/time.h>
63169 * m4/c-bs-a.m4: Remove uses of changequote altogether.
63170 Thanks to Akim for explaining.
63172 2000-01-17 Paul Eggert <eggert@twinsun.com>
63174 * lib/nanosleep.c (nanosleep):
63175 Don't use SA_INTERRUPT to decide whether to call sigaction, as
63176 POSIX.1 doesn't require SA_INTERRUPT and some systems
63177 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
63178 it's been part of POSIX.1 since day 1 (in 1988).
63180 2000-01-17 Jim Meyering <meyering@lucent.com>
63182 * lib/interlock: Remove unused file. Reported by François Pinard.
63184 2000-01-16 Paul Eggert <eggert@twinsun.com>
63186 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
63187 alert, backslash, formfeed, and vertical tab unnecessarily in
63188 shell quoting style.
63190 2000-01-16 Jim Meyering <meyering@lucent.com>
63192 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
63193 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
63194 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
63195 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
63197 2000-01-16 Jim Meyering <meyering@lucent.com>
63199 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
63200 because the latter didn't work.
63202 2000-01-15 Jim Meyering <meyering@lucent.com>
63204 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
63205 (AC_REPLACE_FUNCS): Add memcpy and memset.
63206 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
63208 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
63210 2000-01-12 Jim Meyering <meyering@lucent.com>
63212 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
63213 (jm_PREREQ): Use it.
63214 (jm_PREREQ_READUTMP): New macro.
63215 (jm_PREREQ): Use it.
63217 2000-01-11 Paul Eggert <eggert@twinsun.com>
63219 Quote multibyte characters correctly.
63220 * m4/c-bs-a.m4: New file.
63221 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
63222 (jm_PREREQ): Use it.
63224 2000-01-11 Paul Eggert <eggert@twinsun.com>
63226 * m4/uintmax_t.m4: Port to autoconf 2.13.
63228 2000-01-08 Jim Meyering <meyering@ascend.com>
63230 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
63231 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
63233 2000-01-04 Jim Meyering <meyering@ascend.com>
63235 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
63236 jm_STRUCT_DIRENT_D_TYPE.
63237 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
63238 jm_STRUCT_DIRENT_D_INO.
63239 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
63241 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
63243 * m4/utime.m4: Likewise.
63245 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
63246 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
63248 2000-01-03 Paul Eggert <eggert@twinsun.com>
63250 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
63251 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
63253 2000-01-02 Jim Meyering <meyering@ascend.com>
63255 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
63256 remember if this is necessary.
63258 1999-12-26 Jim Meyering <meyering@ascend.com>
63260 * m4/jm-macros.m4: Use it here.
63261 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
63263 1999-12-23 Jim Meyering <meyering@ascend.com>
63265 * m4/jm-macros.m4: Check for clock_gettime (moved from
63266 fileutils/configure.in)
63267 Check for gettimeofday.
63269 1999-12-20 Jim Meyering <meyering@ascend.com>
63271 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
63272 autoconf-2.14a-1999-12-20.
63274 1999-12-19 Jim Meyering <meyering@ascend.com>
63276 * m4/lstat-slash.m4: New file.
63277 * m4/jm-macros.m4: Use the new macro:
63278 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63280 1999-12-07 Jim Meyering <meyering@ascend.com>
63282 * m4/perl.m4: Require that File::Compare be available, too.
63283 Too many systems seem to lack it.
63285 * m4/strftime.m4: Add checks for most of the cpp macros tested in
63286 GNU's strftime.c. Prompted by a patch from Paul Eggert.
63288 1999-11-18 Paul Eggert <eggert@twinsun.com>
63290 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
63291 problem with the QNX 4.25 shell, which doesn't propagate exit
63292 status of failed commands inside shell assignments.
63294 1999-11-17 Jim Meyering <meyering@ascend.com>
63296 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
63298 1999-11-07 Jim Meyering <meyering@ascend.com>
63300 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
63302 1999-11-06 Jim Meyering <meyering@ascend.com>
63304 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
63305 * m4/jm-macros.m4 (jm_MACROS): Use it here.
63307 1999-11-05 Jim Meyering <meyering@ascend.com>
63309 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
63310 configure.in of textutils, fileutils, and sh-utils into this one
63311 (shared between those packages) file.
63312 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
63313 AC_STRUCT_ST_BLKSIZE.
63315 1999-11-03 Jim Meyering <meyering@ascend.com>
63317 * m4/ssize_t.m4: Remove file. No longer needed since the new version
63318 of AC_CHECK_TYPE checks includes unistd.h.
63319 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
63320 Suggestion from Akim Demaille.
63322 1999-10-30 Jim Meyering <meyering@ascend.com>
63324 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
63326 * m4/ls-mntd-fs.m4: Likewise.
63327 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
63328 * m4/jm-winsz1.m4: Likewise.
63330 * m4/const.m4: Remove file, since the fix made it into the experimental
63331 version of autoconf.
63332 * m4/mktime.m4: Likewise.
63334 * m4/check-type.m4: Remove file, now that the latest version of
63335 AC_CHECK_TYPE takes a third arg to specify additional #includes.
63337 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
63338 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
63341 1999-10-04 Jim Meyering <meyering@ascend.com>
63343 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
63345 1999-09-22 Paul Eggert <eggert@twinsun.com>
63347 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
63348 2.95.1 bug with HP-UX 10.20.
63350 1999-09-17 Jim Meyering <meyering@ascend.com>
63352 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
63353 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
63354 due to missing strdup (against sh-utils-2.0).
63356 1999-08-29 Jim Meyering <meyering@ascend.com>
63358 * m4/jm-macros.m4: Require jm_BISON.
63359 * m4/bison.m4: New file.
63361 1999-08-17 Paul Eggert <eggert@twinsun.com>
63363 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
63364 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
63366 1999-08-05 Jim Meyering <meyering@ascend.com>
63368 * m4/getline.m4: Rename test file from conftestdata to conftest.data
63369 to avoid conflicts with `conftest' on 8+3 filesystems.
63370 Suggestion from Eli Zaretskii.
63372 1999-08-04 Jim Meyering <meyering@ascend.com>
63374 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
63375 fileutils and sh-utils (textutils's getline test was inadequate).
63376 (AM_FUNC_GETLINE): Run this test.
63377 (AC_CHECK_FUNCS): Check for getdelim.
63378 Reported by Bob Proulx.
63380 1999-08-02 Jim Meyering <meyering@ascend.com>
63382 * m4/jm-macros.m4: Add a comment.
63384 1999-08-01 Paul Eggert <eggert@twinsun.com>
63386 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
63387 <inttypes.h> defines strtoumax as a macro (and not as a
63390 1999-08-01 Paul Eggert <eggert@twinsun.com>
63392 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
63393 that we can shift, multiply and divide unsigned long long
63394 values; Ultrix cc can't do it.
63396 1999-08-01 Paul Eggert <eggert@twinsun.com>
63398 * m4/mktime.m4: New file, which is a preview of what should appear
63399 in the next public autoconf release.
63401 1999-08-01 Paul Eggert <eggert@twinsun.com>
63403 * m4/lfs.m4: Remove this file.
63404 * m4/largefile.m4: New file. It contains the old contents of
63405 lfs.m4, except that all names with prefix AC_LFS have been
63406 changed to use the prefix AC_SYS_LARGEFILE instead, to be
63407 compatible with future autoconf versions. Also, some minor m4
63408 quoting problems have been fixed.
63410 1999-08-01 Paul Eggert <eggert@twinsun.com>
63412 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
63413 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
63414 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
63415 and simplify the shell code.
63417 1999-08-01 Jim Meyering <meyering@ascend.com>
63419 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
63422 1999-07-20 Jim Meyering <meyering@ascend.com>
63424 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
63426 1999-07-15 Jim Meyering <meyering@ascend.com>
63428 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
63430 1999-05-22 Jim Meyering <meyering@ascend.com>
63432 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
63434 1999-05-20 Jim Meyering <meyering@ascend.com>
63436 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
63437 Add a colon after each `then' in case $4 is empty.
63439 1999-05-16 Jim Meyering <meyering@ascend.com>
63441 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
63443 1999-05-10 Jim Meyering <meyering@ascend.com>
63445 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
63447 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
63450 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
63452 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
63454 1999-05-04 Paul Eggert <eggert@twinsun.com>
63456 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
63457 not CPPFLAGS, so that linking works correctly in IRIX.
63459 1999-04-30 Paul Eggert <eggert@twinsun.com>
63461 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
63463 1999-04-20 Paul Eggert <eggert@twinsun.com>
63465 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
63466 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
63467 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
63468 jm_AC_TYPE_UNSIGNED_LONG_LONG.
63469 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
63471 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
63473 1999-04-20 Jim Meyering <meyering@ascend.com>
63475 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
63476 AC_REPLACE xstroull if necessary. From Paul Eggert.
63477 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
63479 1999-04-18 Jim Meyering <meyering@ascend.com>
63481 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
63482 * m4/jm-macros.m4: Use it.
63484 1999-04-06 Jim Meyering <meyering@ascend.com>
63486 * m4/strftime.m4: Remove test for %f.
63488 1999-03-29 Jim Meyering <meyering@ascend.com>
63490 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
63491 superset of the AC_TYPE_* checks in the textutils, fileutils,
63492 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
63495 1999-03-28 Jim Meyering <meyering@ascend.com>
63497 * m4/jm-macros.m4: Define GNU_PACKAGE here.
63498 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
63499 replaced e.g., in the *.sh files of the sh-utils.
63501 1999-03-20 Jim Meyering <meyering@ascend.com>
63503 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
63504 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
63505 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
63507 1999-03-19 Jim Meyering <meyering@ascend.com>
63509 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
63511 1999-03-12 Jim Meyering <meyering@ascend.com>
63513 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
63515 1999-03-07 Jim Meyering <meyering@ascend.com>
63517 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
63520 1999-02-17 Jim Meyering <meyering@ascend.com>
63522 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
63523 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
63525 1999-02-07 Jim Meyering <meyering@ascend.com>
63527 * m4/group-member.m4: New file -- extracted from sh-utils'
63530 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
63531 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
63533 1999-02-06 Jim Meyering <meyering@ascend.com>
63535 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
63536 * m4/fnmatch.m4: Likewise.
63537 * m4/getgroups.m4: Likewise.
63538 * m4/lstat.m4: Likewise.
63539 * m4/malloc.m4: Likewise.
63540 * m4/putenv.m4: Likewise.
63541 * m4/realloc.m4: Likewise.
63542 * m4/regex.m4: Likewise.
63543 * m4/stat.m4: Likewise.
63544 * m4/strftime.m4: Likewise.
63545 Suggestion from Alain Magloire.
63547 * m4/chown.m4: Use `.$ac_objext', not `.o'.
63548 * m4/fnmatch.m4: Likewise.
63549 * m4/getgroups.m4: Likewise.
63550 * m4/getline.m4: Likewise.
63551 * m4/lstat.m4: Likewise.
63552 * m4/malloc.m4: Likewise.
63553 * m4/memcmp.m4: Likewise.
63554 * m4/putenv.m4: Likewise.
63555 * m4/realloc.m4: Likewise.
63556 * m4/regex.m4: Likewise.
63557 * m4/stat.m4: Likewise.
63558 * m4/strftime.m4: Likewise.
63559 Suggestion from Alain Magloire.
63561 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
63564 * m4/regex.m4: Add a run-time Test for proper operation of
63565 re_compile_pattern.
63567 1999-01-31 Jim Meyering <meyering@ascend.com>
63569 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
63571 1999-01-30 Jim Meyering <meyering@ascend.com>
63573 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
63575 * m4/jm-mktime.m4: Make this a wrapper around the official
63576 AM_FUNC_MKTIME rather than my private copy, now that the official one
63578 * m4/mktime.m4: Remove file.
63580 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
63581 * m4/uptime.m4: Likewise.
63582 * m4/uintmax_t.m4: Likewise.
63584 1999-01-28 Jim Meyering <meyering@ascend.com>
63586 * m4/jm-macros.m4: Use jm_AFS.
63587 * m4/afs.m4: New file (from fileutils' configure.in).
63589 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
63590 * m4/chown.m4: Likewise.
63591 * m4/d-ino.m4: Likewise.
63592 * m4/d-type.m4: Likewise.
63593 * m4/fnmatch.m4: Likewise.
63594 * m4/getgroups.m4: Likewise.
63595 * m4/gettext.m4: Likewise.
63596 * m4/jm-mktime.m4: Likewise.
63597 * m4/jm-winsz2.m4: Likewise.
63598 * m4/lcmessage.m4: Likewise.
63599 * m4/ls-mntd-fs.m4: Likewise.
63600 * m4/malloc.m4: Likewise.
63601 * m4/memcmp.m4: Likewise.
63602 * m4/putenv.m4: Likewise.
63603 * m4/realloc.m4: Likewise.
63604 * m4/st_mtim.m4: Likewise.
63605 * m4/strftime.m4: Likewise.
63607 1999-01-16 Jim Meyering <meyering@ascend.com>
63609 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
63610 (ARGMATCH_DIE_DECL): Define.
63612 1999-01-12 Jim Meyering <meyering@ascend.com>
63614 * m4/Makefile.am.in: Rewrite to avoid using fmt.
63615 Reported by Lars Hecking.
63617 1999-01-10 Jim Meyering <meyering@ascend.com>
63619 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
63621 * m4/inttypes_h.m4: Likewise.
63622 * m4/lstat.m4: Likewise.
63623 * m4/malloc.m4: Likewise.
63624 * m4/readdir.m4: Likewise.
63625 * m4/realloc.m4: Likewise.
63626 * m4/st_dm_mode.m4: Likewise.
63627 * m4/stat.m4: Likewise.
63628 * m4/utimbuf.m4: Likewise.
63629 * m4/utimes.m4: Likewise.
63631 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
63632 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
63633 comments in config.h.in are meaningful.
63635 * m4/jm-macros.m4: Require autoconf-2.13 here.
63637 * m4/regex.m4: By default, don't use the included regex.c on systems
63638 with glibc 2. Suggestion from Uli Drepper.
63640 1999-01-02 Jim Meyering <meyering@ascend.com>
63642 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
63644 1998-12-18 Jim Meyering <meyering@ascend.com>
63646 * m4/Makefile.am.in (Makefile.am): Simplify rule.
63647 Based on a suggestion from Lars Hecking.
63649 1998-11-16 Paul Eggert <eggert@twinsun.com>
63651 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
63653 1998-11-16 Jim Meyering <meyering@ascend.com>
63655 * m4/lfs.m4: Double-quote the `uname...` expression.
63657 1998-11-14 Jim Meyering <meyering@ascend.com>
63659 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
63660 * m4/stat.m4: Likewise.
63662 1998-11-03 Jim Meyering <meyering@ascend.com>
63664 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
63665 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
63667 1998-10-18 Jim Meyering <meyering@ascend.com>
63669 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
63671 1998-10-17 Jim Meyering <meyering@ascend.com>
63673 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
63674 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
63675 calls for those previously hard-coded headers. Instead, take a new
63677 (jm_CHECK_DECLARATIONS): Reflect interface change.
63678 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
63679 (jm_CHECK_DECL_LOCALTIME_R): New macro.
63681 * m4/mktime.m4: Test for spring-forward gap before long-running test.
63683 1998-10-14 Jim Meyering <meyering@ascend.com>
63685 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
63686 instead of "TZ=America/Vancouver". From Paul Eggert.
63688 1998-10-11 Jim Meyering <meyering@ascend.com>
63690 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
63691 This adds a test for a recently added compatibility fix for mktime.c.
63692 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
63694 1998-09-27 Jim Meyering <meyering@ascend.com>
63696 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
63698 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
63699 ../configure.in, including a change from Gordon Matzigkeit to allow
63700 cross-compiling for the Hurd.
63702 * m4/glibc.m4: New file/macro to test for the GNU C Library
63703 versions 1 and 2. From Gordon Matzigkeit.
63706 1998-09-21 Jim Meyering <meyering@ascend.com>
63708 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
63710 1998-08-18 Paul Eggert <eggert@twinsun.com>
63712 Port nanosecond-resolution times to UnixWare 2.1.2 and
63713 pedantic Solaris 2.6.
63715 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
63717 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
63718 Generate name of ns member, instead of just 1 or undef.
63719 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
63721 1998-08-15 Jim Meyering <meyering@ascend.com>
63723 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
63724 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
63725 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
63726 instead of jm_TYPE_SSIZE_T.
63728 1998-08-12 Jim Meyering <meyering@ascend.com>
63730 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
63732 1998-08-02 Jim Meyering <meyering@ascend.com>
63734 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
63735 in acconfig.h manually.
63737 1998-07-31 Paul Eggert <eggert@twinsun.com>
63739 * m4/st_mtim.m4: New file.
63741 1998-07-28 Jim Meyering <meyering@ascend.com>
63743 * m4/utimes.m4: Undef stat.
63745 1998-07-25 Jim Meyering <meyering@ascend.com>
63747 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
63748 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
63750 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
63752 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
63753 uid and gid actually remain unchanged.
63755 1998-07-07 Jim Meyering <meyering@ascend.com>
63757 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
63759 1998-07-04 Jim Meyering <meyering@ascend.com>
63761 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
63762 to prove that this macro can be used in packages without regex.c.
63764 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
63766 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
63769 1998-07-03 Jim Meyering <meyering@ascend.com>
63771 * m4/gettext.m4: Add -lintl if it's found to be necessary.
63773 * m4/gettext.m4: New file -- from gettext-0.10.35.
63774 * m4/lcmessage.m4: Likewise.
63775 * m4/progtest.m4: Likewise.
63777 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
63778 * m4/jm-macros.m4: Require the new macro.
63780 1998-06-29 Jim Meyering <meyering@ascend.com>
63782 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
63783 for the definition of NGROUPS (used in a system header included
63786 1998-06-28 Jim Meyering <meyering@ascend.com>
63788 * m4/ls-mntd-fs.m4: New file.
63789 * m4/fstypename.m4: New file.
63791 * m4/jm-macros.m4: Require the new macro.
63792 * m4/jm-glibc-io.m4: New file.
63794 1998-05-19 Jim Meyering <meyering@ascend.com>
63796 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
63797 * m4/lchown.m4: New file.
63799 * m4/Makefile.am.in: New file.
63800 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
63802 1998-05-14 Jim Meyering <meyering@ascend.com>
63804 * m4/Makefile.am (EXTRA_DIST): Add them.
63805 * m4/jm-macros.m4: New file.
63806 * m4/utimbuf.m4: New file.
63808 1998-05-12 Jim Meyering <meyering@ascend.com>
63810 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
63812 1998-05-11 Jim Meyering <meyering@ascend.com>
63814 * m4/isc-posix.m4: New file.
63816 1998-05-10 Jim Meyering <meyering@ascend.com>
63818 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
63820 1998-05-09 Jim Meyering <meyering@ascend.com>
63822 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
63823 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
63826 * m4/ssize_t.m4: New file.
63827 * m4/mktime.m4: Remove file -- the new automake has this now.
63829 1998-04-26 Jim Meyering <meyering@ascend.com>
63831 * m4/assert.m4: New file.
63832 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
63834 1998-04-05 Jim Meyering <meyering@ascend.com>
63836 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
63837 (jm_PREREQ): Use it here.
63839 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
63841 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
63844 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
63846 * m4/prereq.m4: New file.
63847 * m4/error.m4: New file.
63848 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
63850 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
63852 * m4/getline.m4: Don't set am_cv_func_working_getline before the
63853 cache-check for the same variable -- that defeated the purpose of
63854 the test; the test program was never run. This was a problem only
63855 on systems with losing getline functions -- HP-UX 10.20 is one.
63856 Reported by Bjorn Helgaas.
63858 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
63860 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
63862 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
63864 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
63866 * m4/const.m4: New file. Use an initializer in this declaration
63867 typedef int charset[2]; const charset x;
63868 Reported by Bob Glickstein.
63870 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
63872 * m4/chown.m4: Fix reversed types on -1 args to chown.
63875 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
63877 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
63878 Add lseek and memchr.
63880 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
63881 T.E.Dickey <dickey@clark.net> said that some older preprocessors
63882 have a 20-character limit on names.
63884 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
63886 * m4/inttypes_h.m4: New file.
63887 * m4/uintmax_t.m4: New file.
63888 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
63897 Copyright (C) 1997-2010 Free Software Foundation, Inc.
63899 Copying and distribution of this file, with or without
63900 modification, are permitted provided the copyright notice
63901 and this notice are preserved.